summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorRosemary <rosemaryseb8@gmail.com>2015-08-14 06:57:13 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-10 02:12:29 +0200
commit5f1ecef8d192e224d8f89d39c9ffd913ca4df5ba (patch)
tree0f60a5b356744d6f992ef788c112a9bf1a018d11 /oox
parentcdc44e1c779dd4d4dfa69d3609bf7aca8d084aa3 (diff)
reference registered record
Change-Id: I72a038f0e2ef4e7cd430de8e8c835a6147113e29
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ole/vbaexport.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx
index 761254501319..85c4352da1d6 100644
--- a/oox/source/ole/vbaexport.cxx
+++ b/oox/source/ole/vbaexport.cxx
@@ -498,10 +498,22 @@ void writeREFERENCENAME(SvStream& rStrm)
exportUTF16String(rStrm, "stdole"); // nameUnicode // TODO find out where these values are coming from
}
+// section 2.3.4.2.2.5
+void writeREFERENCEREGISTERED(SvStream& rStrm)
+{
+ rStrm.WriteUInt16(0x000D); // id
+ rStrm.WriteUInt32(104); // size of sizeOfLibid, Libid, reserved 1 and reserved 2
+ rStrm.WriteUInt32(94); // sizeOfLibid
+ exportString(rStrm, "*\\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\\Windows\\SysWOW64\\stdole2.tlb#OLE Automation");
+ rStrm.WriteUInt32(0x00000000); // reserved 1
+ rStrm.WriteUInt16(0x0000); // reserved 2
+}
+
// section 2.3.4.2.2.1
void writeREFERENCE(SvStream& rStrm)
{
writeREFERENCENAME(rStrm);
+ writeREFERENCEREGISTERED(rStrm);
}
// section 2.3.4.2.2