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: white, Hacker, petermad, Stefan2

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

Office2007.wdx plugin (v. 0.0.3)

Post by *fenix_productions »

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 »

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: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

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 »

The request at russian forum: full text field.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

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: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

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 »

Good: thanks.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

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: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

user-defined properties?

Post by *Peter »

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 10.xx / #266191
Win 10 x64
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

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: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

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: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

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 10.xx / #266191
Win 10 x64
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

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: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

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

Maybe this can help you?

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

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