Adding some Paged Media Module Features

Are you missing a feature? Request it's implementation here.
patrick
Posts: 96

Adding some Paged Media Module Features

Thu Apr 10, 2014 11:04 am

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
Radu
Posts: 5376

Re: Adding some Paged Media Module Features

Thu Apr 10, 2014 2:05 pm

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:

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));
}


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:

Alternatively, a fast Page-Preview beside the Author-View would be a probably a huge market gap.


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.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
patrick
Posts: 96

Re: Adding some Paged Media Module Features

Fri Jul 18, 2014 12:59 pm

Hi Radu,

I did not find the dita framework in the maven repository, can you give me a hint?
alex_jitianu
Posts: 624

Re: Adding some Paged Media Module Features

Fri Jul 18, 2014 3:20 pm

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:

Code: Select all

<dependency>
  <groupId>com.oxygenxml</groupId>
  <artifactId>oxygen</artifactId>
  <classifier>defaultFrameworksSources</classifier>
  <type>jar</type>
  <version>16.1-SNAPSHOT</version>
</dependency>


You can also directly download the sources from the Maven repository.

Best regards,
Alex

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 1 guest