From 06edf7a8057ba5fdb2dd55fb2615e61f65d5ead2 Mon Sep 17 00:00:00 2001 From: Rosemary Date: Sun, 9 Aug 2015 17:04:48 +0530 Subject: PROJECT VERSION record Conflicts: oox/source/ole/vbaexport.cxx Change-Id: Id0206e4a9495bcf92e8ece0e2ea1e1bd4ef9233b --- oox/source/ole/vbaexport.cxx | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index c6417e28c754..4f6bc1b0e250 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -27,12 +27,6 @@ #define CODEPAGE RTL_TEXTENCODING_MS_1252 #endif -VbaExport::VbaExport(css::uno::Reference xModel): - mxModel(xModel) -{ - maProjectName = "How to get the correct project name?"; -} - namespace { void exportString(SvStream& rStrm, const OUString& rString) @@ -43,8 +37,23 @@ void exportString(SvStream& rStrm, const OUString& rString) } +VbaExport::VbaExport(css::uno::Reference xModel): + mxModel(xModel) +{ + maProjectName = "How to get the correct project name?"; +} + namespace { +//section 2.3.4.2.1.10 +void writePROJECTVERSION(SvStream& rStrm) +{ + rStrm.WriteUInt16(0x0009); // id + rStrm.WriteUInt32(0x00000004); // Reserved + rStrm.WriteUInt32(1467127224); // VersionMajor // TODO: where is this magic number comming from + rStrm.WriteUInt16(5); // VersionMinor // TODO: where is this magic number coming from +} + //section 2.3.4.2.1.9 void writePROJECTLIBFLAGS(SvStream& rStrm) { @@ -133,6 +142,7 @@ void writePROJECTINFORMATION(SvStream& rStrm) writePROJECTHELPFILEPATH(rStrm); writePROJECTHELPCONTEXT(rStrm); writePROJECTLIBFLAGS(rStrm); + writePROJECTVERSION(rStrm); } // section 2.3.4.2 -- cgit