Adding some Paged Media Module Features
Are you missing a feature? Request its implementation here.
-
- Posts: 96
- Joined: Mon May 09, 2011 11:54 am
Adding some Paged Media Module Features
Hi,
maybe you can add some features from the Paged Media CSS Module to the Author View, e.g. for displaying the cross-references with target-counter(), target-text()... Alternatively, a fast Page-Preview beside the Author-View would be a probably a huge market gap.
Thanks,
Patrick
maybe you can add some features from the Paged Media CSS Module to the Author View, e.g. for displaying the cross-references with target-counter(), target-text()... Alternatively, a fast Page-Preview beside the Author-View would be a probably a huge market gap.
Thanks,
Patrick
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Adding some Paged Media Module Features
Hi Patrick,
We will consider supporting these CSS Paged Media features in a future version.
In the meantime you have a Java extension which can be used for this.
As an example you can look in the DITA CSSs in the places where the link text is computed:
As you can see, when a link is empty, it calls a special Oxygen CSS extension function called oxy_link-text which in its turn will call a Java extension API called ro.sync.ecss.extensions.api.link.LinkTextResolver.
If you look at the Java sources for ro.sync.ecss.extensions.dita.DITAExtensionsBundle.createLinkTextResolver() you will see an example of how the link text resolver is implemented for DITA.
About this suggestion:
Regards,
Radu
We will consider supporting these CSS Paged Media features in a future version.
In the meantime you have a Java extension which can be used for this.
As an example you can look in the DITA CSSs in the places where the link text is computed:
Code: Select all
*[class~="topic/link"][href]:empty,
*[class~="topic/xref"][href]:empty {
content: oxy_label(text, oxy_getSomeText(oxy_link-text(), 150, true), background-color, rgb(240, 240, 240));
}
If you look at the Java sources for ro.sync.ecss.extensions.dita.DITAExtensionsBundle.createLinkTextResolver() you will see an example of how the link text resolver is implemented for DITA.
About this suggestion:
I don't know if we can implement a generic fast page preview, it depends on the type of XML file which is edited. Maybe you can add your own custom view using a workspace access plugin plugin and possibly use either the Swing JEditorPane (which is not very good) or the newest JavaFX WebView component to render HTML in it. But you will probably have to convert the edited XML to HTML yourself.Alternatively, a fast Page-Preview beside the Author-View would be a probably a huge market gap.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Adding some Paged Media Module Features
Post by alex_jitianu »
Hi Patrick,
The source code of the built-in frameworks is packed as a Maven artifact/classifier. The SDK based sample project has a module named oxygen-sample-framework. Amongst other things, this module also contains the source files for the built-in frameworks. These sources are automatically brought into the project on the generate-resources phase. This means that if you follow the instructions on <oXygen/> Framework Development, after running the command mvn package, you will notice a new folder oxygen-sample-framework/samples/Oxygen Default Frameworks/. Inside this folder are all the source files. The artifact ID and classifier you need to get this sources:
You can also directly download the sources from the Maven repository.
Best regards,
Alex
The source code of the built-in frameworks is packed as a Maven artifact/classifier. The SDK based sample project has a module named oxygen-sample-framework. Amongst other things, this module also contains the source files for the built-in frameworks. These sources are automatically brought into the project on the generate-resources phase. This means that if you follow the instructions on <oXygen/> Framework Development, after running the command mvn package, you will notice a new folder oxygen-sample-framework/samples/Oxygen Default Frameworks/. Inside this folder are all the source files. The artifact ID and classifier you need to get this sources:
Code: Select all
<dependency>
<groupId>com.oxygenxml</groupId>
<artifactId>oxygen</artifactId>
<classifier>defaultFrameworksSources</classifier>
<type>jar</type>
<version>16.1-SNAPSHOT</version>
</dependency>
Best regards,
Alex
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service