OpenOfficeInfo

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: sheep, Hacker, Stefan2, white

User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

OpenOfficeInfo

Post by *Alextp »

OpenOfficeInfo content plugin

This plugin allows to display properties of OpenOffice documents
http://totalcmd.net/plugring/OOInfo.html
Last edited by Alextp on 2011-09-27, 14:05 UTC, edited 2 times in total.
User avatar
Lefteous
Power Member
Power Member
Posts: 9491
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
Hi,

Very nice! I have already defined some tooltips to get information on OpenOffice documents :D

Just one small hint: I may not be a good idea to use the units as some sort of categorization. I would suggest to keep it flat.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Thanks for the new plugin for TC.
It could also work for older versions of OO :-)

Is it possible to add additional info like: generator, subject, title, keywords, etc.?

What does mean <default> for statistic?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Lefteous
No categorization for statistics? Why, It looks good?

2djk
It could also work for older versions of OO
For what versions? Can you give me sample file?
Is it possible to add additional info like: generator, subject, title, keywords, etc.?
Edit: Generator/subject/title - yes, keywords - can you give me sample file with keywords?
What does mean <default> for statistic?
Nothing - this is auto-added by TC.
"Default" means unit #0.
Last edited by Alextp on 2005-10-27, 15:08 UTC, edited 1 time in total.
User avatar
Lefteous
Power Member
Power Member
Posts: 9491
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
No categorization for statistics? Why, It looks good?
As djk pointed out the default value is useless.
In addition you are not able to add units for your fields.
How to search for a certain value in the statistics field?


Will you add a fulltext search? That would be great!
( I know there is a workaround but a content plugin would much better here )
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Lefteous
In addition you are not able to add units for your fields.
But I don't need them.
How to search for a certain value in the statistics field?
You mean in Alt-F7? Well, no problem, search dialog can specify "Unit" field.
Will you add a fulltext search? That would be great!
Yes, in the next versions.
But I need to handle UTF-8 strings, currently I don't know how to do it in Delphi...
User avatar
Lefteous
Power Member
Power Member
Posts: 9491
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
Well, no problem, search dialog can specify "Unit" field.
Yes but you are using the units as fields. A content plugin that behaves like no other is quite confusing!
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Alextp
I've sent you the files.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2djk
Thanks, I see.
Also I see that OpenOffice 1.0 format (SXW SXC...) is almost the same zipped XML, so I'll add support for it too.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Nice to hear it :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
JP
Senior Member
Senior Member
Posts: 273
Joined: 2003-02-13, 09:15 UTC

Post by *JP »

Is there a plugin to view OpenOffice documents in lister or ctrl+Q?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2JP
Currently - no.
But you may view them with a little change by using IEView. You need to change a little content.xml file inside document.
JP
Senior Member
Senior Member
Posts: 273
Joined: 2003-02-13, 09:15 UTC

Post by *JP »

Alextp wrote:2JP
Currently - no.
But you may view them with a little change by using IEView. You need to change a little content.xml file inside document.
Could you explain how to modify it?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

My translation of this message from forum.wincmd.ru:

How to view OpenOffice files with IEView

1. Open file with ZIP archiver
2. Extract content.xml from it
3. Put to the same folder file sxw-html.xsl (must be in archive)
4. Open content.xml in any text editor, that supports UTF-8
5. After first line
<?xml version="1.0" encoding="UTF-8"?>
insert line:
<?xml-stylesheet href="sxw-html.xsl" type="text/xsl"?>
6. Open content.xml in Mozilla and see document, only without formatting, but with titles, paragraphs, tables and lists.

If you remove second "line" (all file is placed in one line):
<!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd">
then file will be also viewed in IEView.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Version 1.1.0 (download):

28.10.05: added support for OpenOffice 1.0 (format is alsmost the same);
added fields: Generator, Title, Description, Subject, Keywords, User info,
URL, Print date, Printed by, Edition time, Edition cycles
Post Reply