fizoblon | 4 Jun 2007 10:59
Picon

Re: Plugin OpenOffice.Org> missing CSS classes P1..Pn (unsolved)


Hi, I tried it on a linux 9.3 with Forrest 0.8 too and the result is the
same,
untill the plugin is not building a css with the classes P1 upto Pxy the
most
of the formatings will not work. Has nobody any small idea?
--

-- 
View this message in context: http://www.nabble.com/Plugin-OpenOffice.Org%3E-missing-CSS-classes-P1..Pn-tf3856731.html#a10946019
Sent from the Apache Forrest - Dev mailing list archive at Nabble.com.

Thorsten Scherler | 5 Jun 2007 19:39
Picon
Favicon
Gravatar

Re: Plugin OpenOffice.Org> missing CSS classes P1..Pn (unsolved)

On Mon, 2007-06-04 at 01:59 -0700, fizoblon wrote:
> Hi, I tried it on a linux 9.3 with Forrest 0.8 too and the result is the
> same,
> untill the plugin is not building a css with the classes P1 upto Pxy the
> most
> of the formatings will not work. Has nobody any small idea?

I see what you mean
http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.input.OpenOffice.org/samples/openoffice-impress.html#Formatting

Like you stated one need to provide the css classes for this styling.

You may want to see as well
http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.input.odt/samples/opendocument-writer.html#Layout

salu2
--

-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions

fizoblon | 6 Jun 2007 07:33
Picon

Re: Plugin OpenOffice.Org> missing CSS classes P1..Pn (unsolved)


yes, it works with the OpenDocument-Input Plugin (your second Link), because
that plugin is using static classes linke strong or codefrag to realize such
formattings. These classes are defined in skin/profile.css.

program code sample (Source of your 2nd link)

but the OpenOffice-Input-Plugin seems not to use the same way. I suppose the
classes are generated dynamically, depending by the order of the using of
the different formattings:

..
<p class="P3">
Bold text
</p>
..          (source of your first link)

This Class 'P3' would be 'P1' if we use it first and before the other
formattings, as you can see
in my source form the first message of this thread:

<p class="P1">bold</p>
<p class="instruction">Italic</p>
<p class="P3">underline</p> 

------------------------

But these classes (up to "<p class="P11">Courier New 10 pkt Blocksatz") are
not defined, 
not in any css-file and not in the html-source where they should belong
(Continue reading)

Thorsten Scherler | 6 Jun 2007 08:57
Picon

Re: Plugin OpenOffice.Org> missing CSS classes P1..Pn (unsolved)

On Tue, 2007-06-05 at 22:33 -0700, fizoblon wrote:
> yes, it works with the OpenDocument-Input Plugin (your second Link), because
> that plugin is using static classes linke strong or codefrag to realize such
> formattings. These classes are defined in skin/profile.css.

Hmm, I have not used the OO plugin myself very much but I just looked
again at the sample http://localhost:8888/samples/openoffice-writer.html
and there bold, italic and some other (like code, warning,...).

> 
> program code sample (Source of your 2nd link)
> 
> but the OpenOffice-Input-Plugin seems not to use the same way. I suppose the
> classes are generated dynamically, depending by the order of the using of
> the different formattings:
> 

It depends on the style you apply in OO.

> ..
> <p class="P3">
> Bold text
> </p>
> ..          (source of your first link)

I am not sure about that, seems that someone changed it the wrong way,
since the above link shows that it is working fine.

> 
> This Class 'P3' would be 'P1' if we use it first and before the other
(Continue reading)


Gmane