LCOV - code coverage report
Current view: top level - writerfilter/source/ooxml - OOXMLDocumentImpl.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 415 458 90.6 %
Date: 2014-04-11 Functions: 44 50 88.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <comphelper/sequenceashashmap.hxx>
      21             : 
      22             : #include <com/sun/star/xml/sax/XParser.hpp>
      23             : 
      24             : #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
      25             : #include <com/sun/star/xml/sax/SAXException.hpp>
      26             : #include <com/sun/star/xml/dom/DocumentBuilder.hpp>
      27             : #include <com/sun/star/embed/XHierarchicalStorageAccess.hpp>
      28             : #include <ooxml/resourceids.hxx>
      29             : #include "OOXMLStreamImpl.hxx"
      30             : #include "OOXMLDocumentImpl.hxx"
      31             : #include "OOXMLBinaryObjectReference.hxx"
      32             : #include "OOXMLFastDocumentHandler.hxx"
      33             : #include "OOXMLPropertySetImpl.hxx"
      34             : #include "ooxmlLoggers.hxx"
      35             : 
      36             : #include <tools/resmgr.hxx>
      37             : #include <vcl/svapp.hxx>
      38             : #include <vcl/settings.hxx>
      39             : #include <svx/dialogs.hrc>
      40             : 
      41             : #include <iostream>
      42             : 
      43             : // this extern variable is declared in OOXMLStreamImpl.hxx
      44          14 : OUString customTarget;
      45          14 : OUString embeddingsTarget;
      46             : using ::com::sun::star::xml::sax::SAXException;
      47             : namespace writerfilter {
      48             : namespace ooxml
      49             : {
      50             : 
      51             : #if OSL_DEBUG_LEVEL > 1
      52             : TagLogger::Pointer_t debug_logger(TagLogger::getInstance("DEBUG"));
      53             : #endif
      54             : 
      55             : using namespace ::std;
      56             : 
      57        1745 : OOXMLDocumentImpl::OOXMLDocumentImpl(OOXMLStream::Pointer_t pStream, const uno::Reference<task::XStatusIndicator>& xStatusIndicator)
      58             :     : mpStream(pStream)
      59             :     , mxStatusIndicator(xStatusIndicator)
      60             :     , mnXNoteId(0)
      61             :     , mXNoteType(0)
      62             :     , mxThemeDom(0)
      63             :     , mbIsSubstream(false)
      64             :     , mnPercentSize(0)
      65             :     , mnProgressLastPos(0)
      66             :     , mnProgressCurrentPos(0)
      67        1745 :     , mnProgressEndPos(0)
      68             : {
      69        1745 : }
      70             : 
      71        3490 : OOXMLDocumentImpl::~OOXMLDocumentImpl()
      72             : {
      73        3490 : }
      74             : 
      75       10374 : void OOXMLDocumentImpl::resolveFastSubStream(Stream & rStreamHandler,
      76             :                                              OOXMLStream::StreamType_t nType)
      77             : {
      78       10374 :     OOXMLStream::Pointer_t pStream;
      79             :     try
      80             :     {
      81       10374 :         pStream = OOXMLDocumentFactory::createStream(mpStream, nType);
      82             :     }
      83           0 :     catch (uno::Exception const& e)
      84             :     {
      85             :         SAL_INFO("writerfilter", "resolveFastSubStream: exception while "
      86             :                 "resolving stream " << nType << " : " << e.Message);
      87       10374 :         return;
      88             :     }
      89       20748 :     OOXMLStream::Pointer_t savedStream = mpStream;
      90       10374 :     mpStream = pStream;
      91             : 
      92             :     uno::Reference< xml::sax::XFastParser > xParser
      93       20748 :         (mpStream->getFastParser());
      94             : 
      95       10374 :     if (xParser.is())
      96             :     {
      97       10374 :         uno::Reference<uno::XComponentContext> xContext(mpStream->getContext());
      98             :         OOXMLFastDocumentHandler * pDocHandler =
      99             :             new OOXMLFastDocumentHandler(
     100       10374 :                 xContext, &rStreamHandler, this, mnXNoteId );
     101             : 
     102             :         uno::Reference < xml::sax::XFastDocumentHandler > xDocumentHandler
     103       20748 :             (pDocHandler);
     104             :         uno::Reference < xml::sax::XFastTokenHandler > xTokenHandler
     105       20748 :             (mpStream->getFastTokenHandler(xContext));
     106             : 
     107       10374 :         xParser->setFastDocumentHandler(xDocumentHandler);
     108       10374 :         xParser->setTokenHandler(xTokenHandler);
     109             : 
     110             :         uno::Reference<io::XInputStream> xInputStream =
     111       20748 :             pStream->getDocumentStream();
     112             : 
     113       10374 :         if (xInputStream.is())
     114             :         {
     115        5284 :             struct xml::sax::InputSource oInputSource;
     116        5284 :             oInputSource.aInputStream = xInputStream;
     117        5284 :             xParser->parseStream(oInputSource);
     118             : 
     119        5284 :             xInputStream->closeInput();
     120       10374 :         }
     121             :     }
     122             : 
     123       20748 :     mpStream = savedStream;
     124             : }
     125             : 
     126         841 : void OOXMLDocumentImpl::resolveFastSubStreamWithId(Stream & rStream,
     127             :                                       writerfilter::Reference<Stream>::Pointer_t pStream,
     128             :                       sal_uInt32 nId)
     129             : {
     130         841 :     rStream.substream(nId, pStream);
     131         841 : }
     132             : 
     133        5139 : uno::Reference<xml::dom::XDocument> OOXMLDocumentImpl::importSubStream(OOXMLStream::StreamType_t nType)
     134             : {
     135        5139 :     uno::Reference<xml::dom::XDocument> xRet;
     136             : 
     137       10278 :     OOXMLStream::Pointer_t pStream;
     138             :     try
     139             :     {
     140        5139 :         pStream = OOXMLDocumentFactory::createStream(mpStream, nType);
     141             :     }
     142           0 :     catch (uno::Exception const& e)
     143             :     {
     144             :         SAL_INFO("writerfilter", "importSubStream: exception while "
     145             :                 "importing stream " << nType << " : " << e.Message);
     146           0 :         return xRet;
     147             :     }
     148             : 
     149             :     uno::Reference<io::XInputStream> xInputStream =
     150       10278 :         pStream->getDocumentStream();
     151             : 
     152        5139 :     if (xInputStream.is())
     153             :     {
     154             :         try
     155             :         {
     156        2491 :             uno::Reference<uno::XComponentContext> xContext(mpStream->getContext());
     157        4982 :             uno::Reference<xml::dom::XDocumentBuilder> xDomBuilder(xml::dom::DocumentBuilder::create(xContext));
     158        4982 :             xRet = xDomBuilder->parse(xInputStream);
     159             :         }
     160           0 :         catch (uno::Exception const& e)
     161             :         {
     162             :             SAL_INFO("writerfilter", "importSubStream: exception while "
     163             :                      "parsing stream " << nType << " : " << e.Message);
     164           0 :             return xRet;
     165             :         }
     166             :     }
     167             : 
     168        5139 :     if(OOXMLStream::CUSTOMXML == nType)
     169             :     {
     170         260 :         importSubStreamRelations(pStream, OOXMLStream::CUSTOMXMLPROPS);
     171             :     }
     172        5139 :     if(OOXMLStream::ACTIVEX == nType)
     173             :     {
     174        1389 :         importSubStreamRelations(pStream, OOXMLStream::ACTIVEXBIN);
     175             :     }
     176        5139 :     if(OOXMLStream::CHARTS == nType)
     177             :     {
     178           0 :         importSubStreamRelations(pStream, OOXMLStream::EMBEDDINGS);
     179             :     }
     180             : 
     181        5139 :     return xRet;
     182             : }
     183             : 
     184             : 
     185        1761 : void OOXMLDocumentImpl::importSubStreamRelations(OOXMLStream::Pointer_t pStream, OOXMLStream::StreamType_t nType)
     186             : {
     187        1761 :     uno::Reference<xml::dom::XDocument> xRelation;
     188        3516 :     OOXMLStream::Pointer_t cStream;
     189             :     try
     190             :     {
     191        1767 :        cStream = OOXMLDocumentFactory::createStream(pStream, nType);
     192             :     }
     193          12 :     catch (uno::Exception const& e)
     194             :     {
     195             :         SAL_WARN("writerfilter", "importSubStreamRelations: exception while "
     196             :             "importing stream " << nType << " : " << e.Message);
     197        1767 :         return;
     198             :     }
     199             : 
     200             :     uno::Reference<io::XInputStream> xcpInputStream =
     201        3510 :             cStream->getDocumentStream();
     202             : 
     203        1755 :     if (xcpInputStream.is())
     204             :     {
     205             :         // imporing itemprops files for item.xml from customXml.
     206        1754 :         if(OOXMLStream::CUSTOMXMLPROPS == nType)
     207             :         {
     208             :             try
     209             :             {
     210         260 :                  uno::Reference<uno::XComponentContext> xcpContext(pStream->getContext());
     211         520 :                  uno::Reference<xml::dom::XDocumentBuilder> xDomBuilder(xml::dom::DocumentBuilder::create(xcpContext));
     212         520 :                  xRelation = xDomBuilder->parse(xcpInputStream);
     213             :             }
     214           0 :             catch (uno::Exception const& e)
     215             :             {
     216             :                 SAL_WARN("writerfilter", "importSubStream: exception while "
     217             :                          "parsing stream " << nType << " : " << e.Message);
     218           0 :                 mxCustomXmlProsDom = xRelation;
     219             :             }
     220             : 
     221         260 :             if(xRelation.is())
     222             :             {
     223         260 :                 mxCustomXmlProsDom = xRelation;
     224             :             }
     225             :         }
     226        1494 :         else if(OOXMLStream::ACTIVEXBIN == nType)
     227             :         {
     228             :             // imporing activex.bin files for activex.xml from activeX folder.
     229        1389 :             mxActiveXBin = xcpInputStream;
     230             :         }
     231         105 :         else if(OOXMLStream::EMBEDDINGS == nType)
     232             :         {
     233             :             // imporing activex.bin files for activex.xml from activeX folder.
     234          49 :             mxEmbeddings = xcpInputStream;
     235             :         }
     236          56 :         else if(OOXMLStream::CHARTS == nType)
     237             :         {
     238          56 :             importSubStreamRelations(cStream, OOXMLStream::EMBEDDINGS);
     239             :         }
     240        1755 :     }
     241             : 
     242             : 
     243             : }
     244             : 
     245        5451 : void OOXMLDocumentImpl::setXNoteId(const sal_Int32 nId)
     246             : {
     247        5451 :     mnXNoteId = nId;
     248        5451 : }
     249             : 
     250         303 : sal_Int32 OOXMLDocumentImpl::getXNoteId() const
     251             : {
     252         303 :     return mnXNoteId;
     253             : }
     254             : 
     255          41 : void OOXMLDocumentImpl::setXNoteType(const Id & nId)
     256             : {
     257          41 :     mXNoteType = nId;
     258          41 : }
     259             : 
     260           0 : const Id & OOXMLDocumentImpl::getXNoteType() const
     261             : {
     262           0 :     return mXNoteType;
     263             : }
     264             : 
     265        1088 : const OUString & OOXMLDocumentImpl::getTarget() const
     266             : {
     267        1088 :     return mpStream->getTarget();
     268             : }
     269             : 
     270             : writerfilter::Reference<Stream>::Pointer_t
     271         800 : OOXMLDocumentImpl::getSubStream(const OUString & rId)
     272             : {
     273             :     OOXMLStream::Pointer_t pStream
     274         800 :         (OOXMLDocumentFactory::createStream(mpStream, rId));
     275             : 
     276             :     OOXMLDocumentImpl * pTemp;
     277             :     // Do not pass status indicator to sub-streams: they are typically marginal in size, so we just track the main document for now.
     278         800 :     writerfilter::Reference<Stream>::Pointer_t pRet( pTemp = new OOXMLDocumentImpl(pStream, uno::Reference<task::XStatusIndicator>()) );
     279         800 :     pTemp->setModel(mxModel);
     280         800 :     pTemp->setDrawPage(mxDrawPage);
     281         800 :     pTemp->setIsSubstream( true );
     282         800 :     return pRet;
     283             : }
     284             : 
     285             : writerfilter::Reference<Stream>::Pointer_t
     286          41 : OOXMLDocumentImpl::getXNoteStream(OOXMLStream::StreamType_t nType, const Id & rType,
     287             :                                   const sal_Int32 nId)
     288             : {
     289             : #ifdef DEBUG_ELEMENT
     290             :     debug_logger->startElement("getXNoteStream");
     291             :     debug_logger->attribute("id", nId);
     292             :     debug_logger->endElement();
     293             : #endif
     294             : 
     295             :     OOXMLStream::Pointer_t pStream =
     296          41 :         (OOXMLDocumentFactory::createStream(mpStream, nType));
     297             :     // See above, no status indicator for the note stream, either.
     298          41 :     OOXMLDocumentImpl * pDocument = new OOXMLDocumentImpl(pStream, uno::Reference<task::XStatusIndicator>());
     299          41 :     pDocument->setXNoteId(nId);
     300          41 :     pDocument->setXNoteType(rType);
     301             : 
     302          41 :     return writerfilter::Reference<Stream>::Pointer_t(pDocument);
     303             : }
     304             : 
     305          24 : void OOXMLDocumentImpl::resolveFootnote(Stream & rStream,
     306             :                                         const Id & rType,
     307             :                                         const sal_Int32 nNoteId)
     308             : {
     309             :     writerfilter::Reference<Stream>::Pointer_t pStream =
     310          24 :         getXNoteStream(OOXMLStream::FOOTNOTES, rType, nNoteId);
     311             : 
     312             :     Id nId;
     313          24 :     switch (rType)
     314             :     {
     315             :     case NS_ooxml::LN_Value_wordprocessingml_ST_FtnEdn_separator:
     316             :     case NS_ooxml::LN_Value_wordprocessingml_ST_FtnEdn_continuationSeparator:
     317           0 :         nId = rType;
     318           0 :         break;
     319             :     default:
     320          24 :         nId = NS_ooxml::LN_footnote;
     321          24 :         break;
     322             :     }
     323             : 
     324          24 :     resolveFastSubStreamWithId(rStream, pStream, nId);
     325          24 : }
     326             : 
     327           6 : void OOXMLDocumentImpl::resolveEndnote(Stream & rStream,
     328             :                                        const Id & rType,
     329             :                                        const sal_Int32 nNoteId)
     330             : {
     331             :     writerfilter::Reference<Stream>::Pointer_t pStream =
     332           6 :         getXNoteStream(OOXMLStream::ENDNOTES, rType, nNoteId);
     333             : 
     334             :     Id nId;
     335           6 :     switch (rType)
     336             :     {
     337             :     case NS_ooxml::LN_Value_wordprocessingml_ST_FtnEdn_separator:
     338             :     case NS_ooxml::LN_Value_wordprocessingml_ST_FtnEdn_continuationSeparator:
     339           0 :         nId = rType;
     340           0 :         break;
     341             :     default:
     342           6 :         nId = NS_ooxml::LN_endnote;
     343           6 :         break;
     344             :     }
     345             : 
     346           6 :     resolveFastSubStreamWithId(rStream, pStream, nId);
     347           6 : }
     348             : 
     349          11 : void OOXMLDocumentImpl::resolveComment(Stream & rStream,
     350             :                                        const sal_Int32 nId)
     351             : {
     352             :     writerfilter::Reference<Stream>::Pointer_t pStream =
     353          11 :         getXNoteStream(OOXMLStream::COMMENTS, 0, nId);
     354             : 
     355          11 :     resolveFastSubStreamWithId(rStream, pStream, NS_ooxml::LN_annotation);
     356          11 : }
     357             : 
     358           0 : OOXMLPropertySet * OOXMLDocumentImpl::getPicturePropSet
     359             : (const OUString & rId)
     360             : {
     361             :     OOXMLStream::Pointer_t pStream
     362           0 :         (OOXMLDocumentFactory::createStream(mpStream, rId));
     363             : 
     364             :     writerfilter::Reference<BinaryObj>::Pointer_t pPicture
     365           0 :         (new OOXMLBinaryObjectReference(pStream));
     366             : 
     367           0 :     OOXMLValue::Pointer_t pPayloadValue(new OOXMLBinaryValue(pPicture));
     368             : 
     369             :     OOXMLProperty::Pointer_t pPayloadProperty
     370             :         (new OOXMLPropertyImpl(NS_ooxml::LN_payload, pPayloadValue,
     371           0 :                                OOXMLPropertyImpl::ATTRIBUTE));
     372             : 
     373           0 :     OOXMLPropertySet::Pointer_t pBlipSet(new OOXMLPropertySetImpl());
     374             : 
     375           0 :     pBlipSet->add(pPayloadProperty);
     376             : 
     377           0 :     OOXMLValue::Pointer_t pBlipValue(new OOXMLPropertySetValue(pBlipSet));
     378             : 
     379             :     OOXMLProperty::Pointer_t pBlipProperty
     380             :         (new OOXMLPropertyImpl(NS_ooxml::LN_blip, pBlipValue,
     381           0 :                                OOXMLPropertyImpl::ATTRIBUTE));
     382             : 
     383           0 :     OOXMLPropertySet * pProps = new OOXMLPropertySetImpl();
     384             : 
     385           0 :     pProps->add(pBlipProperty);
     386             : 
     387           0 :     return pProps;
     388             : }
     389             : 
     390           0 : void OOXMLDocumentImpl::resolvePicture(Stream & rStream,
     391             :                                        const OUString & rId)
     392             : {
     393           0 :     OOXMLPropertySet * pProps = getPicturePropSet(rId);
     394             : 
     395           0 :     rStream.props(writerfilter::Reference<Properties>::Pointer_t(pProps));
     396           0 : }
     397             : 
     398         593 : OUString OOXMLDocumentImpl::getTargetForId(const OUString & rId)
     399             : {
     400         593 :     return mpStream->getTargetForId(rId);
     401             : }
     402             : 
     403         388 : void OOXMLDocumentImpl::resolveHeader(Stream & rStream,
     404             :                                       const sal_Int32 type,
     405             :                                       const OUString & rId)
     406             : {
     407             :      writerfilter::Reference<Stream>::Pointer_t pStream =
     408         388 :          getSubStream(rId);
     409         388 :      switch (type)
     410             :      {
     411             :      case NS_ooxml::LN_Value_ST_HdrFtr_even:
     412          94 :          resolveFastSubStreamWithId(rStream, pStream, NS_ooxml::LN_headerl);
     413          94 :         break;
     414             :      case NS_ooxml::LN_Value_ST_HdrFtr_default: // here we assume that default is right, but not necessarily true :-(
     415         180 :          resolveFastSubStreamWithId(rStream, pStream, NS_ooxml::LN_headerr);
     416         180 :          break;
     417             :      case NS_ooxml::LN_Value_ST_HdrFtr_first:
     418         114 :          resolveFastSubStreamWithId(rStream, pStream, NS_ooxml::LN_headerf);
     419         114 :          break;
     420             :      default:
     421           0 :          break;
     422         388 :      }
     423         388 : }
     424             : 
     425         412 : void OOXMLDocumentImpl::resolveFooter(Stream & rStream,
     426             :                                       const sal_Int32 type,
     427             :                                       const OUString & rId)
     428             : {
     429             :      writerfilter::Reference<Stream>::Pointer_t pStream =
     430         412 :          getSubStream(rId);
     431             : 
     432         412 :      switch (type)
     433             :      {
     434             :      case NS_ooxml::LN_Value_ST_HdrFtr_even:
     435          97 :          resolveFastSubStreamWithId(rStream, pStream, NS_ooxml::LN_footerl);
     436          97 :          break;
     437             :      case NS_ooxml::LN_Value_ST_HdrFtr_default: // here we assume that default is right, but not necessarily true :-(
     438         217 :          resolveFastSubStreamWithId(rStream, pStream, NS_ooxml::LN_footerr);
     439         217 :          break;
     440             :      case NS_ooxml::LN_Value_ST_HdrFtr_first:
     441          98 :          resolveFastSubStreamWithId(rStream, pStream, NS_ooxml::LN_footerf);
     442          98 :          break;
     443             :      default:
     444           0 :          break;
     445         412 :      }
     446         412 : }
     447             : 
     448        1745 : void OOXMLDocumentImpl::resolve(Stream & rStream)
     449             : {
     450             : #ifdef DEBUG_RESOLVE
     451             :     debug_logger->startElement("OOXMLDocumentImpl.resolve");
     452             : #endif
     453             : 
     454             :     uno::Reference< xml::sax::XFastParser > xParser
     455        1745 :         (mpStream->getFastParser());
     456             : 
     457        1745 :     if (mxModel.is())
     458             :     {
     459        1704 :         uno::Reference<document::XDocumentPropertiesSupplier> xDocumentPropertiesSupplier(mxModel, uno::UNO_QUERY);
     460        3408 :         uno::Reference<document::XDocumentProperties> xDocumentProperties = xDocumentPropertiesSupplier->getDocumentProperties();
     461        3408 :         comphelper::SequenceAsHashMap aMap(xDocumentProperties->getDocumentStatistics());
     462        1704 :         if (aMap.find("ParagraphCount") != aMap.end())
     463             :         {
     464             :             sal_Int32 nValue;
     465        1584 :             if (aMap["ParagraphCount"] >>= nValue)
     466             :             {
     467        1584 :                 if (mxStatusIndicator.is())
     468             :                 {
     469             :                     // We want to care about the progress if we know the estimated paragraph count and we have given a status indicator as well.
     470             :                     // Set the end position only here, so later it's enough to check if that is non-zero in incrementProgress().
     471         794 :                     mnProgressEndPos = nValue;
     472         794 :                     static ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag());
     473         794 :                     OUString aDocLoad(ResId(RID_SVXSTR_DOC_LOAD, *pResMgr).toString());
     474         794 :                     mxStatusIndicator->start(aDocLoad, mnProgressEndPos);
     475         794 :                     mnPercentSize = mnProgressEndPos / 100;
     476             :                 }
     477             :             }
     478        1704 :         }
     479             :     }
     480             : 
     481        1745 :     if (xParser.is())
     482             :     {
     483        1745 :         uno::Reference<uno::XComponentContext> xContext(mpStream->getContext());
     484             : 
     485             :         OOXMLFastDocumentHandler * pDocHandler =
     486             :             new OOXMLFastDocumentHandler(
     487        1745 :                 xContext, &rStream, this, mnXNoteId );
     488        1745 :         pDocHandler->setIsSubstream( mbIsSubstream );
     489             :         uno::Reference < xml::sax::XFastDocumentHandler > xDocumentHandler
     490        3490 :             (pDocHandler);
     491             :         uno::Reference < xml::sax::XFastTokenHandler > xTokenHandler
     492        3490 :             (mpStream->getFastTokenHandler(xContext));
     493             : 
     494        1745 :         resolveFastSubStream(rStream, OOXMLStream::SETTINGS);
     495        1745 :         mxThemeDom = importSubStream(OOXMLStream::THEME);
     496        1745 :         resolveFastSubStream(rStream, OOXMLStream::THEME);
     497        1745 :         mxGlossaryDocDom = importSubStream(OOXMLStream::GLOSSARY);
     498        1745 :         if (mxGlossaryDocDom.is())
     499          34 :             resolveGlossaryStream(rStream);
     500             : 
     501        1745 :         resolveEmbeddingsStream(mpStream);
     502             : 
     503             :         // Custom xml's are handled as part of grab bag.
     504        1745 :         resolveCustomXmlStream(rStream);
     505             : 
     506        1745 :         resolveActiveXStream(rStream);
     507             : 
     508        1745 :         resolveFastSubStream(rStream, OOXMLStream::FONTTABLE);
     509        1745 :         resolveFastSubStream(rStream, OOXMLStream::STYLES);
     510        1745 :         resolveFastSubStream(rStream, OOXMLStream::NUMBERING);
     511             : 
     512        1745 :         xParser->setFastDocumentHandler( xDocumentHandler );
     513        1745 :         xParser->setTokenHandler( xTokenHandler );
     514             : 
     515        3490 :         xml::sax::InputSource aParserInput;
     516        1745 :         aParserInput.aInputStream = mpStream->getDocumentStream();
     517             :         try
     518             :         {
     519        1745 :             xParser->parseStream(aParserInput);
     520             :         }
     521           2 :         catch (...) {
     522             : #ifdef DEBUG_ELEMENT
     523             :             debug_logger->element("exception");
     524             : #endif
     525        1745 :         }
     526        1745 :     }
     527             : 
     528             : #ifdef DEBUG_RESOLVE
     529             :     debug_logger->endElement();
     530             : #endif
     531        1745 : }
     532             : 
     533       19290 : void OOXMLDocumentImpl::incrementProgress()
     534             : {
     535       19290 :     mnProgressCurrentPos++;
     536             :     // 1) If we know the end
     537             :     // 2) We progressed enough that updating makes sense
     538             :     // 3) We did not reach the end yet (possible in case the doc stat is is misleading)
     539       19290 :     if (mnProgressEndPos && mnProgressCurrentPos > (mnProgressLastPos + mnPercentSize) && mnProgressLastPos < mnProgressEndPos)
     540             :     {
     541        1834 :         mnProgressLastPos = mnProgressCurrentPos;
     542        1834 :         mxStatusIndicator->setValue(mnProgressLastPos);
     543             :     }
     544       19290 : }
     545             : 
     546        1745 : void OOXMLDocumentImpl::resolveCustomXmlStream(Stream & rStream)
     547             : {
     548             :     // Resolving all item[n].xml files from CustomXml folder.
     549        1745 :     uno::Reference<embed::XRelationshipAccess> mxRelationshipAccess;
     550        1745 :     mxRelationshipAccess.set((dynamic_cast<OOXMLStreamImpl&>(*mpStream.get())).accessDocumentStream(), uno::UNO_QUERY_THROW);
     551        1745 :     if (mxRelationshipAccess.is())
     552             :     {
     553        1745 :         static const OUString sCustomType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml");
     554        1745 :         static const OUString sCustomTypeStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/customXml");
     555        1745 :         OUString sTarget("Target");
     556        1745 :         bool bFound = false;
     557        1745 :         sal_Int32 counter = 0;
     558             :         uno::Sequence< uno::Sequence< beans::StringPair > >aSeqs =
     559        3490 :                 mxRelationshipAccess->getAllRelationships();
     560        3490 :         uno::Sequence<uno::Reference<xml::dom::XDocument> > mxCustomXmlDomListTemp(aSeqs.getLength());
     561        3490 :         uno::Sequence<uno::Reference<xml::dom::XDocument> > mxCustomXmlDomPropsListTemp(aSeqs.getLength());
     562       11328 :         for (sal_Int32 j = 0; j < aSeqs.getLength(); j++)
     563             :         {
     564        9583 :             uno::Sequence< beans::StringPair > aSeq = aSeqs[j];
     565       39388 :             for (sal_Int32 i = 0; i < aSeq.getLength(); i++)
     566             :             {
     567       29805 :                 beans::StringPair aPair = aSeq[i];
     568             :                 // Need to resolve only customxml files from document relationships.
     569             :                 // Skipping other files.
     570       59350 :                 if (aPair.Second.compareTo(sCustomType) == 0 ||
     571       29545 :                         aPair.Second.compareTo(sCustomTypeStrict) == 0)
     572         260 :                     bFound = true;
     573       29545 :                 else if(aPair.First.compareTo(sTarget) == 0 && bFound)
     574             :                 {
     575             :                     // Adding value to extern variable customTarget. It will be used in ooxmlstreamimpl
     576             :                     // to ensure customxml target is visited in lcl_getTarget.
     577         260 :                     customTarget = aPair.Second;
     578             :                 }
     579       29805 :             }
     580        9583 :             if(bFound)
     581             :             {
     582         260 :                 uno::Reference<xml::dom::XDocument> customXmlTemp = importSubStream(OOXMLStream::CUSTOMXML);
     583             :                 // This will add all item[n].xml with its relationship file i.e itemprops.xml to
     584             :                 // grabbag list.
     585         260 :                 if(mxCustomXmlProsDom.is() && customXmlTemp.is())
     586             :                 {
     587         260 :                     mxCustomXmlDomListTemp[counter] = customXmlTemp;
     588         260 :                     mxCustomXmlDomPropsListTemp[counter] = mxCustomXmlProsDom;
     589         260 :                     counter++;
     590         260 :                     resolveFastSubStream(rStream, OOXMLStream::CUSTOMXML);
     591             :                 }
     592         260 :                 bFound = false;
     593             :             }
     594        9583 :         }
     595             : 
     596        1745 :         mxCustomXmlDomListTemp.realloc(counter);
     597        1745 :         mxCustomXmlDomPropsListTemp.realloc(counter);
     598        1745 :         mxCustomXmlDomList = mxCustomXmlDomListTemp;
     599        3490 :         mxCustomXmlDomPropsList = mxCustomXmlDomPropsListTemp;
     600        1745 :     }
     601        1745 : }
     602             : 
     603          34 : void OOXMLDocumentImpl::resolveGlossaryStream(Stream & /*rStream*/)
     604             : {
     605          34 :     static OUString sSettingsType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings");
     606          34 :     static OUString sStylesType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles");
     607          34 :     static OUString sFonttableType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable");
     608          34 :     static OUString sWebSettings("http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings");
     609          34 :     static OUString sSettingsTypeStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/settings");
     610          34 :     static OUString sStylesTypeStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/styles");
     611          34 :     static OUString sFonttableTypeStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/fontTable");
     612          34 :     static OUString sWebSettingsStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/webSettings");
     613             : 
     614          34 :     OOXMLStream::Pointer_t pStream;
     615             :     try
     616             :     {
     617          34 :         pStream = OOXMLDocumentFactory::createStream(mpStream, OOXMLStream::GLOSSARY);
     618             :     }
     619           0 :     catch (uno::Exception const& e)
     620             :     {
     621             :         SAL_INFO("writerfilter", "resolveGlossaryStream: exception while "
     622             :                  "createStream for glossary" << OOXMLStream::GLOSSARY << " : " << e.Message);
     623           0 :         return;
     624             :     }
     625          68 :     uno::Reference<embed::XRelationshipAccess> mxRelationshipAccess;
     626          34 :     mxRelationshipAccess.set((dynamic_cast<OOXMLStreamImpl&>(*pStream.get())).accessDocumentStream(), uno::UNO_QUERY_THROW);
     627          34 :     if (mxRelationshipAccess.is())
     628             :     {
     629             : 
     630             :         uno::Sequence< uno::Sequence< beans::StringPair > >aSeqs =
     631          34 :                 mxRelationshipAccess->getAllRelationships();
     632          68 :         uno::Sequence<uno::Sequence< uno::Any> > mxGlossaryDomListTemp(aSeqs.getLength());
     633          34 :          sal_Int32 counter = 0;
     634         184 :          for (sal_Int32 j = 0; j < aSeqs.getLength(); j++)
     635             :          {
     636         150 :               OOXMLStream::Pointer_t gStream;
     637         300 :               uno::Sequence< beans::StringPair > aSeq = aSeqs[j];
     638             :               //Follows following aSeq[0] is Id, aSeq[1] is Type, aSeq[2] is Target
     639         300 :               OUString gId(aSeq[0].Second);
     640         300 :               OUString gType(aSeq[1].Second);
     641         300 :               OUString gTarget(aSeq[2].Second);
     642         300 :               OUString contentType;
     643             : 
     644         150 :               OOXMLStream::StreamType_t nType(OOXMLStream::UNKNOWN);
     645         150 :               bool bFound = true;
     646         266 :               if(gType.compareTo(sSettingsType) == 0 ||
     647         116 :                       gType.compareTo(sSettingsTypeStrict) == 0)
     648             :               {
     649          34 :                   nType = OOXMLStream::SETTINGS;
     650          34 :                   contentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml";
     651             :               }
     652         198 :               else if(gType.compareTo(sStylesType) == 0 ||
     653          82 :                       gType.compareTo(sStylesTypeStrict) == 0)
     654             :               {
     655          34 :                   nType = OOXMLStream::STYLES;
     656          34 :                   contentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml";
     657             :               }
     658         130 :               else if(gType.compareTo(sWebSettings) == 0 ||
     659          48 :                       gType.compareTo(sWebSettingsStrict) == 0)
     660             :               {
     661          34 :                   nType = OOXMLStream::WEBSETTINGS;
     662          34 :                   contentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml";
     663             :               }
     664          62 :               else if(gType.compareTo(sFonttableType) == 0 ||
     665          14 :                       gType.compareTo(sFonttableTypeStrict) == 0)
     666             :               {
     667          34 :                   nType = OOXMLStream::FONTTABLE;
     668          34 :                   contentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml";
     669             :               }
     670             :               else
     671             :               {
     672          14 :                   bFound = false;
     673             :                   //"Unhandled content-type while grab bagging Glossary Folder");
     674             :               }
     675             : 
     676         150 :               if (bFound)
     677             :               {
     678         136 :                   uno::Reference<xml::dom::XDocument> xDom;
     679             :                   try
     680             :                   {
     681         136 :                       gStream = OOXMLDocumentFactory::createStream(pStream, nType);
     682         136 :                       uno::Reference<io::XInputStream> xInputStream = gStream->getDocumentStream();
     683         272 :                       uno::Reference<uno::XComponentContext> xContext(pStream->getContext());
     684         272 :                       uno::Reference<xml::dom::XDocumentBuilder> xDomBuilder(xml::dom::DocumentBuilder::create(xContext));
     685         272 :                       xDom = xDomBuilder->parse(xInputStream);
     686             :                   }
     687           0 :                   catch (uno::Exception const& e)
     688             :                   {
     689             :                       SAL_INFO("writerfilter", "importSubStream: exception while "
     690             :                       "parsing stream of Type" << nType << " : " << e.Message);
     691           0 :                       return;
     692             :                   }
     693             : 
     694         136 :                   if (xDom.is())
     695             :                   {
     696         136 :                       uno::Sequence< uno::Any > glossaryTuple (5);
     697         136 :                       glossaryTuple[0] = uno::makeAny(xDom);
     698         136 :                       glossaryTuple[1] = uno::makeAny(gId);
     699         136 :                       glossaryTuple[2] = uno::makeAny(gType);
     700         136 :                       glossaryTuple[3] = uno::makeAny(gTarget);
     701         136 :                       glossaryTuple[4] = uno::makeAny(contentType);
     702         136 :                       mxGlossaryDomListTemp[counter] = glossaryTuple;
     703         136 :                       counter++;
     704         136 :                   }
     705             :               }
     706         150 :           }
     707          34 :           mxGlossaryDomListTemp.realloc(counter);
     708          68 :           mxGlossaryDomList = mxGlossaryDomListTemp;
     709          34 :       }
     710             : }
     711             : 
     712        2553 : void OOXMLDocumentImpl::resolveEmbeddingsStream(OOXMLStream::Pointer_t pStream)
     713             : {
     714        2553 :     uno::Reference<embed::XRelationshipAccess> mxRelationshipAccess;
     715        2553 :     mxRelationshipAccess.set((dynamic_cast<OOXMLStreamImpl&>(*pStream.get())).accessDocumentStream(), uno::UNO_QUERY_THROW);
     716        2553 :     if (mxRelationshipAccess.is())
     717             :     {
     718        2553 :         OUString sChartType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart");
     719        5106 :         OUString sChartTypeStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/chart");
     720        5106 :         OUString sFootersType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer");
     721        5106 :         OUString sFootersTypeStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/footer");
     722        5106 :         OUString sHeaderType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/header");
     723        5106 :         OUString sHeaderTypeStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/header");
     724             : 
     725        5106 :         OUString sTarget("Target");
     726        2553 :         bool bFound = false;
     727        2553 :         bool bHeaderFooterFound = false;
     728        2553 :         OOXMLStream::StreamType_t streamType = OOXMLStream::UNKNOWN;
     729             :         uno::Sequence< uno::Sequence< beans::StringPair > >aSeqs =
     730        5106 :                 mxRelationshipAccess->getAllRelationships();
     731       12201 :         for (sal_Int32 j = 0; j < aSeqs.getLength(); j++)
     732             :         {
     733        9648 :             uno::Sequence< beans::StringPair > aSeq = aSeqs[j];
     734       39657 :             for (sal_Int32 i = 0; i < aSeq.getLength(); i++)
     735             :             {
     736       30009 :                 beans::StringPair aPair = aSeq[i];
     737       59963 :                 if (aPair.Second.compareTo(sChartType) == 0 ||
     738       29954 :                         aPair.Second.compareTo(sChartTypeStrict) == 0)
     739             :                 {
     740          56 :                     bFound = true;
     741             :                 }
     742       59487 :                 else if(aPair.Second.compareTo(sFootersType) == 0 ||
     743       29534 :                         aPair.Second.compareTo(sFootersTypeStrict) == 0)
     744             :                 {
     745         419 :                     bHeaderFooterFound = true;
     746         419 :                     streamType = OOXMLStream::FOOTER;
     747             :                 }
     748       58680 :                 else if(aPair.Second.compareTo(sHeaderType) == 0 ||
     749       29146 :                         aPair.Second.compareTo(sHeaderTypeStrict) == 0)
     750             :                 {
     751         389 :                     bHeaderFooterFound = true;
     752         389 :                     streamType = OOXMLStream::HEADER;
     753             :                 }
     754       29145 :                 else if(aPair.First.compareTo(sTarget) == 0 && ( bFound || bHeaderFooterFound ))
     755             :                 {
     756             :                     // Adding value to extern variable customTarget. It will be used in ooxmlstreamimpl
     757             :                     // to ensure chart.xml target is visited in lcl_getTarget.
     758         864 :                     customTarget = aPair.Second;
     759             :                 }
     760       30009 :             }
     761        9648 :             if(( bFound || bHeaderFooterFound))
     762             :             {
     763         864 :                 if(bFound)
     764             :                 {
     765          56 :                     importSubStreamRelations(pStream, OOXMLStream::CHARTS);
     766             :                 }
     767         864 :                 if(bHeaderFooterFound)
     768             :                 {
     769         808 :                     OOXMLStream::Pointer_t Stream = OOXMLDocumentFactory::createStream(pStream, streamType);
     770         808 :                     if(Stream)
     771         808 :                         resolveEmbeddingsStream(Stream);
     772             :                 }
     773             : 
     774         864 :                 beans::PropertyValue embeddingsTemp;
     775             :                 // This will add all .xlsx and .bin to grabbag list.
     776         864 :                 if(bFound)
     777             :                 {
     778          56 :                     if(mxEmbeddings.is())
     779             :                     {
     780          49 :                         embeddingsTemp.Name = embeddingsTarget;
     781          49 :                         embeddingsTemp.Value = uno::makeAny(mxEmbeddings);
     782          49 :                         mxEmbeddingsListTemp.push_back(embeddingsTemp);
     783          49 :                         mxEmbeddings.clear();
     784             :                     }
     785             :                 }
     786         864 :                 bFound = false;
     787         864 :                 bHeaderFooterFound = false;
     788             :             }
     789       12201 :         }
     790             :     }
     791        2553 :     if(0 != mxEmbeddingsListTemp.size())
     792             :     {
     793          58 :         mxEmbeddingsList.realloc(mxEmbeddingsListTemp.size());
     794         122 :         for (size_t i = 0; i < mxEmbeddingsListTemp.size(); i++)
     795             :         {
     796          64 :             mxEmbeddingsList[i] = mxEmbeddingsListTemp[i];
     797             :         }
     798        2553 :     }
     799        2553 : }
     800             : 
     801        1745 : void OOXMLDocumentImpl::resolveActiveXStream(Stream & rStream)
     802             : {
     803             :     // Resolving all ActiveX[n].xml files from ActiveX folder.
     804        1745 :     uno::Reference<embed::XRelationshipAccess> mxRelationshipAccess;
     805        1745 :     mxRelationshipAccess.set((dynamic_cast<OOXMLStreamImpl&>(*mpStream.get())).accessDocumentStream(), uno::UNO_QUERY_THROW);
     806        1745 :     if (mxRelationshipAccess.is())
     807             :     {
     808        1745 :         static const OUString sCustomType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/control");
     809        1745 :         static const OUString sCustomTypeStrict("http://purl.oclc.org/ooxml/officeDocument/relationships/control");
     810        1745 :         OUString sTarget("Target");
     811        1745 :         bool bFound = false;
     812        1745 :         sal_Int32 counter = 0;
     813             :         uno::Sequence< uno::Sequence< beans::StringPair > >aSeqs =
     814        3490 :                 mxRelationshipAccess->getAllRelationships();
     815        3490 :         uno::Sequence<uno::Reference<xml::dom::XDocument> > mxActiveXDomListTemp(aSeqs.getLength());
     816        3490 :         uno::Sequence<uno::Reference<io::XInputStream> > mxActiveXBinListTemp(aSeqs.getLength());
     817       11328 :         for (sal_Int32 j = 0; j < aSeqs.getLength(); j++)
     818             :         {
     819        9583 :             uno::Sequence< beans::StringPair > aSeq = aSeqs[j];
     820       39388 :             for (sal_Int32 i = 0; i < aSeq.getLength(); i++)
     821             :             {
     822       29805 :                 beans::StringPair aPair = aSeq[i];
     823             :                 // Need to resolve only ActiveX files from document relationships.
     824             :                 // Skipping other files.
     825       58221 :                 if (aPair.Second.compareTo(sCustomType) == 0 ||
     826       28416 :                         aPair.Second.compareTo(sCustomTypeStrict) == 0)
     827        1389 :                     bFound = true;
     828       28416 :                 else if(aPair.First.compareTo(sTarget) == 0 && bFound)
     829             :                 {
     830             :                     // Adding value to extern variable customTarget. It will be used in ooxmlstreamimpl
     831             :                     // to ensure ActiveX.xml target is visited in lcl_getTarget.
     832        1389 :                     customTarget = aPair.Second;
     833             :                 }
     834       29805 :             }
     835        9583 :             if(bFound)
     836             :             {
     837        1389 :                 uno::Reference<xml::dom::XDocument> activeXTemp = importSubStream(OOXMLStream::ACTIVEX);
     838             :                 // This will add all ActiveX[n].xml to grabbag list.
     839        1389 :                 if(activeXTemp.is())
     840             :                 {
     841        1389 :                     mxActiveXDomListTemp[counter] = activeXTemp;
     842        1389 :                     if(mxActiveXBin.is())
     843             :                     {
     844        1389 :                         mxActiveXBinListTemp[counter] = mxActiveXBin;
     845             :                     }
     846        1389 :                     counter++;
     847        1389 :                     resolveFastSubStream(rStream, OOXMLStream::ACTIVEX);
     848             :                 }
     849        1389 :                 bFound = false;
     850             :             }
     851        9583 :         }
     852        1745 :         mxActiveXDomListTemp.realloc(counter);
     853        1745 :         mxActiveXBinListTemp.realloc(counter);
     854        1745 :         mxActiveXDomList = mxActiveXDomListTemp;
     855        3490 :         mxActiveXBinList = mxActiveXBinListTemp;
     856        1745 :     }
     857        1745 : }
     858             : 
     859         904 : uno::Reference<xml::dom::XDocument> OOXMLDocumentImpl::getGlossaryDocDom( )
     860             : {
     861         904 :     return mxGlossaryDocDom;
     862             : }
     863             : 
     864         904 : uno::Sequence<uno::Sequence< uno::Any> > OOXMLDocumentImpl::getGlossaryDomList()
     865             : {
     866         904 :     return mxGlossaryDomList;
     867             : }
     868             : 
     869          22 : uno::Reference<io::XInputStream> OOXMLDocumentImpl::getInputStreamForId(const OUString & rId)
     870             : {
     871          22 :     OOXMLStream::Pointer_t pStream(OOXMLDocumentFactory::createStream(mpStream, rId));
     872             : 
     873          22 :     return pStream->getDocumentStream();
     874             : }
     875             : 
     876           0 : string OOXMLDocumentImpl::getType() const
     877             : {
     878           0 :     return "OOXMLDocumentImpl";
     879             : }
     880             : 
     881        1704 : void OOXMLDocumentImpl::setModel(uno::Reference<frame::XModel> xModel)
     882             : {
     883        1704 :     mxModel.set(xModel);
     884        1704 : }
     885             : 
     886        1088 : uno::Reference<frame::XModel> OOXMLDocumentImpl::getModel()
     887             : {
     888        1088 :     return mxModel;
     889             : }
     890             : 
     891        1704 : void OOXMLDocumentImpl::setDrawPage(uno::Reference<drawing::XDrawPage> xDrawPage)
     892             : {
     893        1704 :     mxDrawPage.set(xDrawPage);
     894        1704 : }
     895             : 
     896        1088 : uno::Reference<drawing::XDrawPage> OOXMLDocumentImpl::getDrawPage()
     897             : {
     898        1088 :     return mxDrawPage;
     899             : }
     900             : 
     901           0 : uno::Reference<io::XInputStream> OOXMLDocumentImpl::getInputStream()
     902             : {
     903           0 :     return mpStream->getDocumentStream();
     904             : }
     905             : 
     906        1088 : uno::Reference<io::XInputStream> OOXMLDocumentImpl::getStorageStream()
     907             : {
     908        1088 :     return mpStream->getStorageStream();
     909             : }
     910             : 
     911         431 : void OOXMLDocumentImpl::setShapeContext( uno::Reference<xml::sax::XFastShapeContextHandler> xContext )
     912             : {
     913         431 :     mxShapeContext = xContext;
     914         431 : }
     915             : 
     916        1088 : uno::Reference<xml::sax::XFastShapeContextHandler> OOXMLDocumentImpl::getShapeContext( )
     917             : {
     918        1088 :     return mxShapeContext;
     919             : }
     920             : 
     921           0 : void OOXMLDocumentImpl::setThemeDom( uno::Reference<xml::dom::XDocument> xThemeDom )
     922             : {
     923           0 :     mxThemeDom = xThemeDom;
     924           0 : }
     925             : 
     926         904 : uno::Reference<xml::dom::XDocument> OOXMLDocumentImpl::getThemeDom( )
     927             : {
     928         904 :     return mxThemeDom;
     929             : }
     930             : 
     931         904 : uno::Sequence<uno::Reference<xml::dom::XDocument> > OOXMLDocumentImpl::getCustomXmlDomList( )
     932             : {
     933         904 :     return mxCustomXmlDomList;
     934             : }
     935             : 
     936         904 : uno::Sequence<uno::Reference<xml::dom::XDocument> > OOXMLDocumentImpl::getCustomXmlDomPropsList( )
     937             : {
     938         904 :     return mxCustomXmlDomPropsList;
     939             : }
     940             : 
     941         904 : uno::Sequence<uno::Reference<xml::dom::XDocument> > OOXMLDocumentImpl::getActiveXDomList( )
     942             : {
     943         904 :     return mxActiveXDomList;
     944             : }
     945             : 
     946         904 : uno::Sequence<uno::Reference<io::XInputStream> > OOXMLDocumentImpl::getActiveXBinList( )
     947             : {
     948         904 :     return mxActiveXBinList;
     949             : }
     950             : 
     951         904 : uno::Sequence<beans::PropertyValue > OOXMLDocumentImpl::getEmbeddingsList( )
     952             : {
     953         904 :     return mxEmbeddingsList;
     954             : }
     955             : 
     956             : OOXMLDocument *
     957         904 : OOXMLDocumentFactory::createDocument
     958             : (OOXMLStream::Pointer_t pStream, const uno::Reference<task::XStatusIndicator>& xStatusIndicator)
     959             : {
     960         904 :     return new OOXMLDocumentImpl(pStream, xStatusIndicator);
     961             : }
     962             : 
     963          42 : }}
     964             : 
     965             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10