summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosemary <rosemaryseb8@gmail.com>2015-08-09 17:04:48 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-10 02:12:28 +0200
commit06edf7a8057ba5fdb2dd55fb2615e61f65d5ead2 (patch)
treeb07f4c2e1f969e7753c1bd8ce3ea0662d5c7df25
parent2bf0e63205b9f5c7afac1d2298fdca4455cf3ad4 (diff)
PROJECT VERSION record
Conflicts: oox/source/ole/vbaexport.cxx Change-Id: Id0206e4a9495bcf92e8ece0e2ea1e1bd4ef9233b
-rw-r--r--oox/source/ole/vbaexport.cxx22
1 files 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<css::frame::XModel> 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<css::frame::XModel> 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