diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ole/vbaexport.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index f8752ac4f3f1..66522db48657 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -41,13 +41,22 @@ void exportString(SvStream& rStrm, const OUString& rString) rStrm.WriteOString(aStringCorrectCodepage); } +//section 2.3.4.2.1.6 +void writePROJECTDOCSTRING(SvStream& rStrm) +{ + rStrm.WriteUInt16(0x0005); // id + rStrm.WriteUInt32(0x00000000); // sizeOfDocString + rStrm.WriteUInt16(0x0040); // Reserved + rStrm.WriteUInt32(0x00000000); // sizeOfDocStringUnicode, MUST be even +} + //section 2.3.4.2.1.5 void writePROJECTNAME(SvStream& rStrm) { rStrm.WriteUInt16(0x0004); // id sal_uInt32 sizeOfProjectName = 0x0000000a; // for project name "VBAProject" rStrm.WriteUInt32(sizeOfProjectName); // sizeOfProjectName - //characters of "VBAProject" + //characters of "VBAProject" in MBCS character encodings exportString(rStrm, "VBAProject"); } @@ -91,6 +100,7 @@ void writePROJECTINFORMATION(SvStream& rStrm) writePROJECTLCIDINVOKE(rStrm); writePROJECTCODEPAGE(rStrm); writePROJECTNAME(rStrm); + writePROJECTDOCSTRING(rStrm); } // section 2.3.4.2 |