diff options
Diffstat (limited to 'writerfilter/source/ooxml')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLDocumentImpl.cxx | 22 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLDocumentImpl.hxx | 8 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 28 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastContextHandler.hxx | 14 |
4 files changed, 36 insertions, 36 deletions
diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx index 180a2b0ae662..78b39078951d 100644 --- a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx +++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx @@ -250,7 +250,7 @@ sal_Int32 OOXMLDocumentImpl::getXNoteId() const return mnXNoteId; } -void OOXMLDocumentImpl::setXNoteType(const Id & nId) +void OOXMLDocumentImpl::setXNoteType(Id nId) { mXNoteType = nId; } @@ -276,7 +276,7 @@ OOXMLDocumentImpl::getSubStream(const OUString & rId) } writerfilter::Reference<Stream>::Pointer_t -OOXMLDocumentImpl::getXNoteStream(OOXMLStream::StreamType_t nType, const Id & rType, +OOXMLDocumentImpl::getXNoteStream(OOXMLStream::StreamType_t nType, Id aType, const sal_Int32 nId) { OOXMLStream::Pointer_t pStream = @@ -284,7 +284,7 @@ OOXMLDocumentImpl::getXNoteStream(OOXMLStream::StreamType_t nType, const Id & rT // See above, no status indicator for the note stream, either. OOXMLDocumentImpl * pDocument = new OOXMLDocumentImpl(pStream, uno::Reference<task::XStatusIndicator>(), mbSkipImages, maMediaDescriptor); pDocument->setXNoteId(nId); - pDocument->setXNoteType(rType); + pDocument->setXNoteType(aType); pDocument->setModel(getModel()); pDocument->setDrawPage(getDrawPage()); @@ -292,18 +292,18 @@ OOXMLDocumentImpl::getXNoteStream(OOXMLStream::StreamType_t nType, const Id & rT } void OOXMLDocumentImpl::resolveFootnote(Stream & rStream, - const Id & rType, + Id aType, const sal_Int32 nNoteId) { writerfilter::Reference<Stream>::Pointer_t pStream = - getXNoteStream(OOXMLStream::FOOTNOTES, rType, nNoteId); + getXNoteStream(OOXMLStream::FOOTNOTES, aType, nNoteId); Id nId; - switch (rType) + switch (aType) { case NS_ooxml::LN_Value_doc_ST_FtnEdn_separator: case NS_ooxml::LN_Value_doc_ST_FtnEdn_continuationSeparator: - nId = rType; + nId = aType; break; default: nId = NS_ooxml::LN_footnote; @@ -314,18 +314,18 @@ void OOXMLDocumentImpl::resolveFootnote(Stream & rStream, } void OOXMLDocumentImpl::resolveEndnote(Stream & rStream, - const Id & rType, + Id aType, const sal_Int32 nNoteId) { writerfilter::Reference<Stream>::Pointer_t pStream = - getXNoteStream(OOXMLStream::ENDNOTES, rType, nNoteId); + getXNoteStream(OOXMLStream::ENDNOTES, aType, nNoteId); Id nId; - switch (rType) + switch (aType) { case NS_ooxml::LN_Value_doc_ST_FtnEdn_separator: case NS_ooxml::LN_Value_doc_ST_FtnEdn_continuationSeparator: - nId = rType; + nId = aType; break; default: nId = NS_ooxml::LN_endnote; diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx index e8da24dd2929..3c2970478d44 100644 --- a/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx +++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx @@ -84,7 +84,7 @@ protected: writerfilter::Reference<Stream>::Pointer_t getXNoteStream(OOXMLStream::StreamType_t nType, - const Id & rType, + Id aType, const sal_Int32 nNoteId); void setIsSubstream( bool bSubstream ) { mbIsSubstream = bSubstream; }; @@ -99,10 +99,10 @@ public: virtual void resolve(Stream & rStream) override; virtual void resolveFootnote(Stream & rStream, - const Id & rType, + Id aType, const sal_Int32 nNoteId) override; virtual void resolveEndnote(Stream & rStream, - const Id & rType, + Id aType, const sal_Int32 nNoteId) override; virtual void resolveHeader(Stream & rStream, const sal_Int32 type, @@ -126,7 +126,7 @@ public: virtual css::uno::Reference<css::io::XInputStream> getInputStreamForId(const OUString & rId) override; virtual void setXNoteId(const sal_Int32 nId) override; virtual sal_Int32 getXNoteId() const override; - virtual void setXNoteType(const Id & rId) override; + virtual void setXNoteType(Id aId) override; virtual const OUString & getTarget() const override; virtual css::uno::Reference<css::xml::sax::XFastShapeContextHandler> getShapeContext( ) override; virtual void setShapeContext( css::uno::Reference<css::xml::sax::XFastShapeContextHandler> xContext ) override; diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 7cc6e2c9f122..30eb8a8f9df2 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -475,7 +475,7 @@ void OOXMLFastContextHandler::setLastSectionGroup() } void OOXMLFastContextHandler::newProperty -(const Id & /*nId*/, const OOXMLValue::Pointer_t& /*pVal*/) +(Id /*nId*/, const OOXMLValue::Pointer_t& /*pVal*/) { } @@ -649,12 +649,12 @@ void OOXMLFastContextHandler::propagateCharacterProperties() mpParserState->setCharacterProperties(getPropertySet()); } -void OOXMLFastContextHandler::propagateCharacterPropertiesAsSet(const Id & rId) +void OOXMLFastContextHandler::propagateCharacterPropertiesAsSet(Id nId) { OOXMLValue::Pointer_t pValue(new OOXMLPropertySetValue(getPropertySet())); OOXMLPropertySet::Pointer_t pPropertySet(new OOXMLPropertySet); - OOXMLProperty::Pointer_t pProp(new OOXMLProperty(rId, pValue, OOXMLProperty::SPRM)); + OOXMLProperty::Pointer_t pProp(new OOXMLProperty(nId, pValue, OOXMLProperty::SPRM)); pPropertySet->add(pProp); mpParserState->setCharacterProperties(pPropertySet); @@ -698,12 +698,12 @@ void OOXMLFastContextHandler::clearTableProps() (new OOXMLPropertySet)); } -void OOXMLFastContextHandler::sendPropertiesWithId(const Id & rId) +void OOXMLFastContextHandler::sendPropertiesWithId(Id nId) { OOXMLValue::Pointer_t pValue(new OOXMLPropertySetValue(getPropertySet())); OOXMLPropertySet::Pointer_t pPropertySet(new OOXMLPropertySet); - OOXMLProperty::Pointer_t pProp(new OOXMLProperty(rId, pValue, OOXMLProperty::SPRM)); + OOXMLProperty::Pointer_t pProp(new OOXMLProperty(nId, pValue, OOXMLProperty::SPRM)); pPropertySet->add(pProp); mpStream->props(pPropertySet); @@ -877,12 +877,12 @@ OOXMLFastContextHandlerStream::~OOXMLFastContextHandlerStream() { } -void OOXMLFastContextHandlerStream::newProperty(const Id & rId, +void OOXMLFastContextHandlerStream::newProperty(Id nId, const OOXMLValue::Pointer_t& pVal) { - if (rId != 0x0) + if (nId != 0x0) { - OOXMLProperty::Pointer_t pProperty(new OOXMLProperty(rId, pVal, OOXMLProperty::ATTRIBUTE)); + OOXMLProperty::Pointer_t pProperty(new OOXMLProperty(nId, pVal, OOXMLProperty::ATTRIBUTE)); mpPropertySetAttrs->add(pProperty); } @@ -952,11 +952,11 @@ OOXMLValue::Pointer_t OOXMLFastContextHandlerProperties::getValue() const } void OOXMLFastContextHandlerProperties::newProperty -(const Id & rId, const OOXMLValue::Pointer_t& pVal) +(Id nId, const OOXMLValue::Pointer_t& pVal) { - if (rId != 0x0) + if (nId != 0x0) { - OOXMLProperty::Pointer_t pProperty(new OOXMLProperty(rId, pVal, OOXMLProperty::ATTRIBUTE)); + OOXMLProperty::Pointer_t pProperty(new OOXMLProperty(nId, pVal, OOXMLProperty::ATTRIBUTE)); mpPropertySet->add(pProperty); } @@ -1760,7 +1760,7 @@ OOXMLFastContextHandlerWrapper::getResource() const return UNKNOWN; } -void OOXMLFastContextHandlerWrapper::addNamespace(const Id & nId) +void OOXMLFastContextHandlerWrapper::addNamespace(Id nId) { mMyNamespaces.insert(nId); } @@ -1844,13 +1844,13 @@ OOXMLFastContextHandlerWrapper::getFastContextHandler() const } void OOXMLFastContextHandlerWrapper::newProperty -(const Id & rId, const OOXMLValue::Pointer_t& pVal) +(Id nId, const OOXMLValue::Pointer_t& pVal) { if (mxContext.is()) { OOXMLFastContextHandler * pHandler = getFastContextHandler(); if (pHandler != nullptr) - pHandler->newProperty(rId, pVal); + pHandler->newProperty(nId, pVal); } } diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx index d50d46e1e513..11f2ea921364 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx @@ -99,7 +99,7 @@ public: virtual void attributes(const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs) throw (css::uno::RuntimeException, css::xml::sax::SAXException); - virtual void newProperty(const Id & rId, const OOXMLValue::Pointer_t& pVal); + virtual void newProperty(Id aId, const OOXMLValue::Pointer_t& pVal); virtual void setPropertySet(const OOXMLPropertySet::Pointer_t& pPropertySet); virtual OOXMLPropertySet::Pointer_t getPropertySet() const; @@ -171,11 +171,11 @@ public: void startTxbxContent(); void endTxbxContent(); void propagateCharacterProperties(); - void propagateCharacterPropertiesAsSet(const Id & rId); + void propagateCharacterPropertiesAsSet(Id nId); void propagateTableProperties(); void propagateRowProperties(); void propagateCellProperties(); - void sendPropertiesWithId(const Id & rId); + void sendPropertiesWithId(Id nId); void sendPropertiesToParent(); void sendCellProperties(); void sendRowProperties(); @@ -247,7 +247,7 @@ public: const OOXMLPropertySet::Pointer_t& getPropertySetAttrs() const { return mpPropertySetAttrs;} - virtual void newProperty(const Id & rId, const OOXMLValue::Pointer_t& pVal) override; + virtual void newProperty(Id aId, const OOXMLValue::Pointer_t& pVal) override; void sendProperty(Id nId); virtual OOXMLPropertySet::Pointer_t getPropertySet() const override; @@ -266,7 +266,7 @@ public: virtual OOXMLValue::Pointer_t getValue() const override; virtual ResourceEnum_t getResource() const override { return PROPERTIES; } - virtual void newProperty(const Id & nId, const OOXMLValue::Pointer_t& pVal) override; + virtual void newProperty(Id nId, const OOXMLValue::Pointer_t& pVal) override; void handleXNotes(); void handleHdrFtr(); @@ -500,10 +500,10 @@ public: virtual ResourceEnum_t getResource() const override; - void addNamespace(const Id & nId); + void addNamespace(Id nId); void addToken( Token_t Element ); - virtual void newProperty(const Id & rId, const OOXMLValue::Pointer_t& pVal) override; + virtual void newProperty(Id nId, const OOXMLValue::Pointer_t& pVal) override; virtual void setPropertySet(const OOXMLPropertySet::Pointer_t& pPropertySet) override; virtual OOXMLPropertySet::Pointer_t getPropertySet() const override; |