Office2007.wdx plugin (v. 0.0.3)

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

Moderators: Stefan2, white, sheep, Hacker

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Office2007.wdx plugin (v. 0.0.3)

Post by *fenix_productions » 2009-02-10, 18:35 UTC

Hi all.

While playing (still) with tinyXML I wrote new content plugin.

Office2007.wdx v.0.0.3

Allows you to see MS Office 2007 XML files properties.

Microsoft Office 2007 is not needed for this plugin to work!

Supported fields are:

- core - Category, ContentStatus, ContentType, Created, Creator, Description, Identifier, Keywords, Language, LastModifiedBy, LastPrinted, Modified, Revision, Subject, Title, Version;

- application specific - AppVersion, Application, Characters, CharactersWithSpaces, Company, DigitalSig, DigitalSigExt, DocSecurityLevel, HiddenSlides, HyperlinkBase, HyperlinksChanged, Lines, LinksUpToDate, MMClips, Manager, Notes, Pages, Paragraphs, PresentationFormat, ScaleCrop, SharedDoc, Slides, Template, TotalTime, TotalTimeMin, Words, Titles*, Content*;

By default only four extensions are set (DOCX, PPSX, PPTX, XLSX) but you can add more.

Please, test it and report any bugs :)

*) Titles and Content fields can be used in search only!

Download:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/Office2007wdx%7C_0.0.3.zip

Sources (VS 2008):
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/Office2007wdx%7C_0.0.3%7C_src.zip

History
0.0.3- fixed bugs from WLX plugin; added/fixed utf-8 conversion;
0.0.2 - added Titles and Content fields;
0.0.1 - initial version;

Special thanks to:
- Franck8244 - for help with ft_fulltext;
Last edited by fenix_productions on 2009-03-11, 18:59 UTC, edited 5 times in total.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

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

Post by *Alextp » 2009-02-11, 17:59 UTC

Suggestion: auto-installation file (pluginst.inf).
.wdx should be in the root arc folder.

suggestion for name: O2007 Info :)

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2009-02-11, 18:29 UTC

Alextp wrote:Suggestion: auto-installation file (pluginst.inf).
.wdx should be in the root arc folder.
I always forget about it. It will be done ASAP.
Alextp wrote:suggestion for name: O2007 Info :)
Like "old" OOInfo? :D
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

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

Post by *Alextp » 2009-02-15, 14:44 UTC

The request at russian forum: full text field.

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2009-02-15, 17:02 UTC

2Alextp
I will add ft_fulltext field for slides/pages/sheets names.

I can't promise but I will try giving text from whole document.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2009-02-27, 02:19 UTC

Version 0.0.2 released.

I've added two more fields for searching:
- Titles - slides/sheets/pages names,
- Content - documents' content.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

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

Post by *Alextp » 2009-02-27, 14:37 UTC

Good: thanks.

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2009-03-11, 18:56 UTC

0.0.3 is out!

I've fixed bugs found in WLX plugin.

I have also added/corrected UTF-8 conversion so national characters should be displayed properly now (please check).
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

User avatar
Peter
Power Member
Power Member
Posts: 1860
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz
Contact:

user-defined properties?

Post by *Peter » 2011-04-12, 16:16 UTC

The plugin "cdocprop" offers to display user-defined properties (but not for Office 2007). Is there a way to display it in your plugin too?

Peter
TC 9.200a / #266191
Win 7 x64 / Win 10 x64

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2011-04-12, 21:02 UTC

2Peter
I will try to find a time to take look on that on weekend but I can't promise success (haven't been touching c++ since last release).

I would also appreciate if you could send me few files with custom props (I don't personally own MS Office).
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2012-07-15, 11:58 UTC

2Peter
I had tried to make everything work last time and it was truly easy (treat document as zip, unpack specific XML from it and parse).

Unfortunately: it is only for ANSI version and since Unicode is preferred these days I was trying to get it work as such… without any luck.
I have spent whole day yesterday on it (C++ is not my strong side) and I just can't get this work :(

Technical note:
If I set project to multibyte it compiles perfectly well but archives do not open because library I use tries to get ANSI methods calls.
If I set everything to Unicode, I have dozen of type conversion errors I can't fix without pulling my hairs out :(
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

User avatar
Peter
Power Member
Power Member
Posts: 1860
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz
Contact:

Post by *Peter » 2012-07-15, 12:26 UTC

You wrote that you use a ZIP- and another code-package to handle the properties. Did you try the Property-DLL from Microsoft?

Peter
TC 9.200a / #266191
Win 7 x64 / Win 10 x64

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2012-07-15, 13:06 UTC

2Peter
Peter wrote:Did you try the Property-DLL from Microsoft?
Do you mean the one that comes with MS Office I do not own?

The main reason behind this plugin was to know Office 2007 files properties without buying MS suite and Open Office was extremely slow opening files.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

User avatar
Peter
Power Member
Power Member
Posts: 1860
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz
Contact:

Post by *Peter » 2012-07-16, 08:00 UTC

I meant "DocumentFormat.OpenXml.dll" from http://msdn.microsoft.com/en-us/library/bb448854

Maybe this can help you?

Peter
TC 9.200a / #266191
Win 7 x64 / Win 10 x64

User avatar
fenix_productions
Power Member
Power Member
Posts: 1953
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2012-07-16, 18:00 UTC

2Peter
Unfortunately, it seems to be for managed code (.NET)… hence no use.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

Post Reply