24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Author</strong> Developer Guide | 207ro.sync.ecss.extensions.api.StylesFilter can be provided. The extensions bundle method responsiblefor creating the StylesFilter is create<strong>Author</strong>StylesFilter. The method is called each time a documentopened in an <strong>Author</strong> editor mode matches the document type association where the extensions bundle is defined.The instantiated filter object is kept and used until another extensions bundle corresponding to another DocumentType is activated as a result of the detection process.public StylesFilter create<strong>Author</strong>StylesFilter() {return new SDFStylesFilter();}See the Configuring CSS styles filter section for more details about the styles filter extension.10. In order to edit data in custom tabular format implementations of thero.sync.ecss.extensions.api.<strong>Author</strong>TableCellSpanProvider and thero.sync.ecss.extensions.api.<strong>Author</strong>TableColumnWidthProvider interfaces should be provided.The two methods from the ExtensionsBundle specifying these two extension points arecreate<strong>Author</strong>TableCellSpanProvider and create<strong>Author</strong>TableColumnWidthProvider.public <strong>Author</strong>TableCellSpanProvider create<strong>Author</strong>TableCellSpanProvider() {return new TableCellSpanProvider();}public <strong>Author</strong>TableColumnWidthProvidercreate<strong>Author</strong>TableColumnWidthProvider() {return new TableColumnWidthProvider();}The two table information providers are not reused for different tables. The methods are called for each table in thedocument so new instances should be provided every time. Read more about the cell span and column widthinformation providers in Configuring a Table Cell Span Provider and Configuring a Table Column Width Providersections.If the functionality related to one of the previous extension point does not need to be modified then the developedro.sync.ecss.extensions.api.ExtensionsBundle should not override the corresponding methodand leave the default base implementation to return null.11. Package the compiled class into a jar file.12. Copy the jar file into the frameworks / sdf directory.13. Add the jar file to the <strong>Author</strong> class path.14. Register the Java class by clicking on the Extensions tab. Press the Choose button and select from the displayeddialog the name of the class: SDFExtensionsBundle.Note: The complete source code can be found in the Simple Documentation Framework project, includedin the <strong>Oxygen</strong> <strong>Author</strong> SDK zip available for download on the <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> website.Customize Profiling ConditionsFor each document type, you can configure the phrase-type elements that wrap the profiled content by setting a customro.sync.ecss.extensions.api.ProfilingConditionalTextProvider. This configuration is set bydefault for DITA and Docbook frameworks.Preserve Style and Format on Copy and Paste from External ApplicationsStyled content can be inserted in the <strong>Author</strong> editor by copying or dragging it from:• Office-type applications (Microsoft Word and Microsoft Excel, OpenOffice.org Writer and OpenOffice.orgCalc);• web browsers (like Mozilla Firefox or Microsoft Internet Explorer);• the Data Source Explorer view (where resources are available from WebDAV or CMS servers).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!