RE: html code generated from Open Office

2018-10-01 Thread Howard Cary Morris
Looked at code, tried to anyway. Way to many includes, which I don’t know how 
to look up.
I’d be better off with compiled code for modules with all includes expanded.

Included read me text of my server code to convert so far.

While I am thinking of it, saw an earlier email about source of help.
For online help, create with Writer and export as .xhtml file headers and 
footers not exported.

Tried dumping .odt file. I could not see text or fonts (must be encoded). But 
other parts were not encoded (like meta data). Seemed to waste a lot of space. 
Saw a lot of other stuff that made it seem like our files are being fed into a 
another language (xml?)

May consider combining .html and .xhtml files for better creation.

Howard

From: Howard Cary Morris
Sent: Thursday, September 13, 2018 1:03 AM
To: dev@openoffice.apache.org
Cc: Apache OO
Subject: RE: html code generated from Open Office

Only reason I want to see Print and print preview code is that I want the HTML5 
look identical to printed code. I will have additional references to understand 
the code.



Sent from Mail for Windows 10




From: Damjan Jovanovic 
Sent: Wednesday, September 12, 2018 7:59:53 PM
To: Howard Cary Morris
Cc: Apache OO
Subject: Re: html code generated from Open Office

Those modules are in our source code, see this link about getting it:
https://openoffice.apache.org/source.html
Building it is quite involved :-/.

What are you looking for in terms of printing?

ODT files are documented but it's a lot of documentation:
https://www.oasis-open.org/standards#opendocumentv1.2

Damjan


On Wed, Sep 12, 2018 at 10:00 PM Howard Cary Morris <
howard_cary_mor...@hotmail.com> wrote:

> OK, where can I get a copy of that module for Writer?
>
> Would also like a copy of module that does print and one that does view
> preprint.
>
> (Mainly for comparison purposes.)
>
> If there is documentation of the format of the .odt files, I might be able
> to write the module from scratch.
>
>
>
> Howard
>
>
>
> *From: *Damjan Jovanovic 
> *Sent: *Monday, September 3, 2018 11:20 PM
> *To: *Apache OO ;
> howard_cary_mor...@hotmail.com
> *Subject: *Re: html code generated from Open Office
>
>
>
> Hi
>
>
>
> If it was me, I said:
>
> The code for the "Save As" -> "HTML document" feature seems to be in:
>
>
>
> main/sc/source/filter/html
>
> for Calc, and
>
> main/sw/source/filter/html
>
> for Writer.
>
> (Not sure if there are more?)
>
>
>
> Thank you for your contribution, and please let us know if you need any
> further help.
>
> Damjan
>
>
>
> On Tue, Sep 4, 2018 at 2:55 AM Howard Cary Morris <
> howard_cary_mor...@hotmail.com> wrote:
>
> Sorry, I seem too have deleted a more recent version of this request.
> Someone sent me name of module that gets invoked for a save as HTML
> request.
> I also like to compare that with the module that does the print request
> and the module that does the print preview. What are all those module names.
> Where can I download those modules from?
>
> Thanks Howard
>
> Sent from Mail >
> for Windows 10
>
> 
> From: Howard Morris (aka Col Boogie) 
> Sent: Monday, January 5, 2015 10:36:20 PM
> To: dev@openoffice.apache.org
> Subject: html code generated from Open Office
>
> The reason I joined Open Office was to enhance the html code generated
> from writer.
>
> For now, I have constructed html code to upload an html file generated by
> Open Office and PHP code to tweak that code and download a better version.
> Everything I have doe so far is in the attached zzz.zip file. Explanations
> are in Readme.txt
>
> I would have liked to have done this directly, but when I asked how to get
> there, I was directed to a site where I could download all the modules one
> by one, and there seemed to be hundreds of them and no indication what any
> of them contained with dubious directions how to put them together. This is
> not how I like to do things, so I went the other way for now.
>
> I seem to have run across documentation that Open Office puts its files
> internally into a XML format. If I could extract the XML directly from the
> .odt file I could do everything from there. Assuming that is true, is there
> an updated copy of https://www.openoffice.org/xml/xml_specification.pdf
> 

Re: html code generated from Open Office

2018-10-01 Thread Peter Kovacs
I took a quick glance at the html filter code in writer. Maybe another 
thing why the code is hard to read is that most comments are in german. 
We do translations on demand. If you are interested in a specific file 
then best practice is to write a comment in 
https://bz.apache.org/ooo/show_bug.cgi?id=39199.


Some examples how to read includes:

#include  Check the vcl module -> main/vcl/inc/vcl/svapp.hxx

#include  check sfx2 module -> 
main/sfx2/inc/sfx2/docfile.hxx


#include  Okay this is special, since it 
refers to Javacode. But I do not know how to find the corresponding Java 
class file.


Sadly we are still restoring OpenGrok, so no help there atm. I am 
searching through Eclipse but that takes ages. Maybe someone has an Idea?


HTH

Peter


On 10/1/18 10:07 PM, Howard Cary Morris wrote:


Looked at code, tried to anyway. Way to many includes, which I don’t 
know how to look up.


I’d be better off with compiled code for modules with all includes 
expanded.


Included read me text of my server code to convert so far.

While I am thinking of it, saw an earlier email about source of help.

For online help, create with Writer and export as .xhtml file headers 
and footers not exported.


Tried dumping .odt file. I could not see text or fonts (must be 
encoded). But other parts were not encoded (like meta data). Seemed to 
waste a lot of space. Saw a lot of other stuff that made it seem like 
our files are being fed into a another language (xml?)


May consider combining .html and .xhtml files for better creation.

Howard

*From: *Howard Cary Morris 
*Sent: *Thursday, September 13, 2018 1:03 AM
*To: *dev@openoffice.apache.org 
*Cc: *Apache OO 
*Subject: *RE: html code generated from Open Office

Only reason I want to see Print and print preview code is that I want 
the HTML5 look identical to printed code. I will have additional 
references to understand the code.




Sent from Mail for 
Windows 10





From: Damjan Jovanovic 
Sent: Wednesday, September 12, 2018 7:59:53 PM
To: Howard Cary Morris
Cc: Apache OO
Subject: Re: html code generated from Open Office

Those modules are in our source code, see this link about getting it:
https://openoffice.apache.org/source.html
Building it is quite involved :-/.

What are you looking for in terms of printing?

ODT files are documented but it's a lot of documentation:
https://www.oasis-open.org/standards#opendocumentv1.2

Damjan


On Wed, Sep 12, 2018 at 10:00 PM Howard Cary Morris <
howard_cary_mor...@hotmail.com> wrote:

> OK, where can I get a copy of that module for Writer?
>
> Would also like a copy of module that does print and one that does view
> preprint.
>
> (Mainly for comparison purposes.)
>
> If there is documentation of the format of the .odt files, I might 
be able

> to write the module from scratch.
>
>
>
> Howard
>
>
>
> *From: *Damjan Jovanovic 
> *Sent: *Monday, September 3, 2018 11:20 PM
> *To: *Apache OO ;
> howard_cary_mor...@hotmail.com
> *Subject: *Re: html code generated from Open Office
>
>
>
> Hi
>
>
>
> If it was me, I said:
>
> The code for the "Save As" -> "HTML document" feature seems to be in:
>
>
>
> main/sc/source/filter/html
>
> for Calc, and
>
> main/sw/source/filter/html
>
> for Writer.
>
> (Not sure if there are more?)
>
>
>
> Thank you for your contribution, and please let us know if you need any
> further help.
>
> Damjan
>
>
>
> On Tue, Sep 4, 2018 at 2:55 AM Howard Cary Morris <
> howard_cary_mor...@hotmail.com> wrote:
>
> Sorry, I seem too have deleted a more recent version of this request.
> Someone sent me name of module that gets invoked for a save as HTML
> request.
> I also like to compare that with the module that does the print request
> and the module that does the print preview. What are all those 
module names.

> Where can I download those modules from?
>
> Thanks Howard
>
> Sent from Mail 
>

> for Windows 10
>
> 
> From: Howard Morris (aka Col Boogie) 
> Sent: Monday, January 5, 2015 10:36:20 PM
> To: dev@openoffice.apache.org
> Subject: html code generated from Open Office
>
> The reason I joined Open Office was to enhance the html code generated
> from writer.
>
> For now, I have constructed html code to upload an html file 
generated by
> Open Office and PHP code to tweak that code and download a better 
version.
> Everything I have doe so far is in the attached zzz.zip file. 
Explanations

> are in Readme.txt
>
> I would have liked to have don

Re: html code generated from Open Office

2018-10-01 Thread Damjan Jovanovic
On Tue, Oct 2, 2018 at 1:27 AM Peter Kovacs  wrote:

> #include  Okay this is special, since it
> refers to Javacode. But I do not know how to find the corresponding Java
> class file.
>

That isn't Java, that is a header file generated from the UNO IDL in
main/offapi/com/sun/star/form/XForm.idl