diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 18 | ||||
-rw-r--r-- | sw/source/core/swg/SwXMLTextBlocks1.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/unocore/unorefmk.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 64 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.hxx | 36 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxsdrexport.cxx | 16 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxsdrexport.hxx | 9 | ||||
-rw-r--r-- | sw/source/ui/vba/vbawindow.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/config/StoredChapterNumbering.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/dbui/dbtree.cxx | 2 |
10 files changed, 80 insertions, 79 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index a7e5a63db87b..612b1be75fef 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -502,7 +502,7 @@ static sal_uInt8 lcl_TryMergeLines( * @param[in] rEnd ending point of merged primitive * @return merged primitive **/ -static css::uno::Reference<BorderLinePrimitive2D> +static rtl::Reference<BorderLinePrimitive2D> lcl_MergeBorderLines( BorderLinePrimitive2D const& rLine, BorderLinePrimitive2D const& rOther, basegfx::B2DPoint const& rStart, basegfx::B2DPoint const& rEnd) @@ -530,7 +530,7 @@ lcl_MergeBorderLines( * @return merged borderline including the two input primitive, if they can be merged * 0, otherwise **/ -static css::uno::Reference<BorderLinePrimitive2D> +static rtl::Reference<BorderLinePrimitive2D> lcl_TryMergeBorderLine(BorderLinePrimitive2D const& rThis, BorderLinePrimitive2D const& rOther, SwPaintProperties& properties) @@ -586,7 +586,7 @@ lcl_TryMergeBorderLine(BorderLinePrimitive2D const& rThis, rThis.getStart().getX(), rThis.getStart().getY()); basegfx::B2DPoint const end( rOther.getEnd().getX(), rOther.getEnd().getY()); - return lcl_MergeBorderLines(rThis, rOther, start, end); + return lcl_MergeBorderLines(rThis, rOther, start, end).get(); } // The merged primitive starts with rOther and ends with rThis else if(nRet == 2) @@ -595,7 +595,7 @@ lcl_TryMergeBorderLine(BorderLinePrimitive2D const& rThis, rOther.getStart().getX(), rOther.getStart().getY()); basegfx::B2DPoint const end( rThis.getEnd().getX(), rThis.getEnd().getY()); - return lcl_MergeBorderLines(rOther, rThis, start, end); + return lcl_MergeBorderLines(rOther, rThis, start, end).get(); } } return nullptr; @@ -607,11 +607,11 @@ void BorderLines::AddBorderLine( for (drawinglayer::primitive2d::Primitive2DContainer::reverse_iterator it = m_Lines.rbegin(); it != m_Lines.rend(); ++it) { - css::uno::Reference<BorderLinePrimitive2D> const xMerged( - lcl_TryMergeBorderLine(*static_cast<BorderLinePrimitive2D*>((*it).get()), *xLine.get(), properties)); + rtl::Reference<BorderLinePrimitive2D> const xMerged( + lcl_TryMergeBorderLine(*static_cast<BorderLinePrimitive2D*>((*it).get()), *xLine.get(), properties).get()); if (xMerged.is()) { - *it = xMerged; // replace existing line with merged + *it = xMerged.get(); // replace existing line with merged return; } } @@ -4918,7 +4918,7 @@ static void lcl_MakeBorderLine(SwRect const& rRect, Color const aLeftColor = rBorder.GetColorOut(isLeftOrTopBorder); Color const aRightColor = rBorder.GetColorIn(isLeftOrTopBorder); - css::uno::Reference<BorderLinePrimitive2D> const xLine = + rtl::Reference<BorderLinePrimitive2D> const xLine = new BorderLinePrimitive2D( aStart, aEnd, nLeftWidth, rBorder.GetDistance(), nRightWidth, nExtentLeftStart, nExtentLeftEnd, @@ -4926,7 +4926,7 @@ static void lcl_MakeBorderLine(SwRect const& rRect, aLeftColor.getBColor(), aRightColor.getBColor(), rBorder.GetColorGap().getBColor(), rBorder.HasGapColor(), rBorder.GetBorderLineStyle() ); - properties.pBLines->AddBorderLine(xLine, properties); + properties.pBLines->AddBorderLine(xLine.get(), properties); } /** diff --git a/sw/source/core/swg/SwXMLTextBlocks1.cxx b/sw/source/core/swg/SwXMLTextBlocks1.cxx index b2f50acf46fb..011274863b53 100644 --- a/sw/source/core/swg/SwXMLTextBlocks1.cxx +++ b/sw/source/core/swg/SwXMLTextBlocks1.cxx @@ -369,7 +369,7 @@ sal_uLong SwXMLTextBlocks::PutBlockText( const OUString& rShort, const OUString& uno::Reference<xml::sax::XDocumentHandler> xHandler(xWriter, uno::UNO_QUERY); - uno::Reference<SwXMLTextBlockExport> xExp( new SwXMLTextBlockExport( xContext, *this, GetXMLToken ( XML_UNFORMATTED_TEXT ), xHandler) ); + rtl::Reference<SwXMLTextBlockExport> xExp( new SwXMLTextBlockExport( xContext, *this, GetXMLToken ( XML_UNFORMATTED_TEXT ), xHandler) ); xExp->exportDoc( rText ); @@ -488,7 +488,7 @@ void SwXMLTextBlocks::WriteInfo() uno::Reference<xml::sax::XDocumentHandler> xHandler(xWriter, uno::UNO_QUERY); - uno::Reference<SwXMLBlockListExport> xExp(new SwXMLBlockListExport( xContext, *this, OUString(XMLN_BLOCKLIST), xHandler) ); + rtl::Reference<SwXMLBlockListExport> xExp(new SwXMLBlockListExport( xContext, *this, OUString(XMLN_BLOCKLIST), xHandler) ); xExp->exportDoc( XML_BLOCK_LIST ); diff --git a/sw/source/core/unocore/unorefmk.cxx b/sw/source/core/unocore/unorefmk.cxx index bcf505bac471..d03d6a35e411 100644 --- a/sw/source/core/unocore/unorefmk.cxx +++ b/sw/source/core/unocore/unorefmk.cxx @@ -646,7 +646,7 @@ public: bool m_bIsDisposed; bool m_bIsDescriptor; uno::Reference<text::XText> m_xParentText; - uno::Reference<SwXMetaText> m_xText; + rtl::Reference<SwXMetaText> m_xText; Impl( SwXMeta & rThis, SwDoc & rDoc, ::sw::Meta * const pMeta, diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 417fead07261..7e66549ff8dd 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -338,7 +338,7 @@ void DocxAttributeOutput::StartParagraph( ww8::WW8TableNodeInfo::Pointer_t pText m_bIsFirstParagraph = false; } -static void lcl_deleteAndResetTheLists( uno::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenChildren, uno::Reference<sax_fastparser::FastAttributeList>& pSdtPrDataBindingAttrs, OUString& rSdtPrAlias) +static void lcl_deleteAndResetTheLists( rtl::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenChildren, rtl::Reference<sax_fastparser::FastAttributeList>& pSdtPrDataBindingAttrs, OUString& rSdtPrAlias) { if( pSdtPrTokenChildren.is() ) pSdtPrTokenChildren.clear(); @@ -607,9 +607,9 @@ void DocxAttributeOutput::EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pT } void DocxAttributeOutput::WriteSdtBlock( sal_Int32& nSdtPrToken, - uno::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenChildren, - uno::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenAttributes, - uno::Reference<sax_fastparser::FastAttributeList>& pSdtPrDataBindingAttrs, + rtl::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenChildren, + rtl::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenAttributes, + rtl::Reference<sax_fastparser::FastAttributeList>& pSdtPrDataBindingAttrs, OUString& rSdtPrAlias, bool bPara ) { @@ -629,7 +629,7 @@ void DocxAttributeOutput::WriteSdtBlock( sal_Int32& nSdtPrToken, m_pSerializer->startElement( nSdtPrToken, FSEND ); else { - XFastAttributeListRef xAttrList(pSdtPrTokenAttributes); + XFastAttributeListRef xAttrList(pSdtPrTokenAttributes.get()); pSdtPrTokenAttributes.clear(); m_pSerializer->startElement(nSdtPrToken, xAttrList); } @@ -651,7 +651,7 @@ void DocxAttributeOutput::WriteSdtBlock( sal_Int32& nSdtPrToken, m_pSerializer->singleElement( nSdtPrToken, FSEND ); else { - XFastAttributeListRef xAttrList(pSdtPrTokenAttributes); + XFastAttributeListRef xAttrList(pSdtPrTokenAttributes.get()); pSdtPrTokenAttributes.clear(); m_pSerializer->singleElement(nSdtPrToken, xAttrList); } @@ -665,7 +665,7 @@ void DocxAttributeOutput::WriteSdtBlock( sal_Int32& nSdtPrToken, if( pSdtPrDataBindingAttrs.is() && !m_rExport.SdrExporter().IsParagraphHasDrawing()) { - XFastAttributeListRef xAttrList( pSdtPrDataBindingAttrs ); + XFastAttributeListRef xAttrList( pSdtPrDataBindingAttrs.get() ); pSdtPrDataBindingAttrs.clear(); m_pSerializer->singleElementNS( XML_w, XML_dataBinding, xAttrList ); } @@ -907,7 +907,7 @@ void DocxAttributeOutput::WriteCollectedParagraphProperties() { if ( m_rExport.SdrExporter().getFlyAttrList().is() ) { - XFastAttributeListRef xAttrList( m_rExport.SdrExporter().getFlyAttrList() ); + XFastAttributeListRef xAttrList( m_rExport.SdrExporter().getFlyAttrList().get() ); m_rExport.SdrExporter().getFlyAttrList().clear(); m_pSerializer->singleElementNS( XML_w, XML_framePr, xAttrList ); @@ -915,7 +915,7 @@ void DocxAttributeOutput::WriteCollectedParagraphProperties() if ( m_pParagraphSpacingAttrList.is() ) { - XFastAttributeListRef xAttrList( m_pParagraphSpacingAttrList ); + XFastAttributeListRef xAttrList( m_pParagraphSpacingAttrList.get() ); m_pParagraphSpacingAttrList.clear(); m_pSerializer->singleElementNS( XML_w, XML_spacing, xAttrList ); @@ -923,7 +923,7 @@ void DocxAttributeOutput::WriteCollectedParagraphProperties() if ( m_pBackgroundAttrList.is() ) { - XFastAttributeListRef xAttrList( m_pBackgroundAttrList ); + XFastAttributeListRef xAttrList( m_pBackgroundAttrList.get() ); m_pBackgroundAttrList.clear(); m_pSerializer->singleElementNS( XML_w, XML_shd, xAttrList ); @@ -992,11 +992,11 @@ void DocxAttributeOutput::EndParagraphProperties(const SfxItemSet& rParagraphMar // to the DOCX when the function 'WriteCollectedRunProperties' gets called. // So we need to store the current status of these lists, so that we can revert back to them when // we are done exporting the redline attributes. - uno::Reference<sax_fastparser::FastAttributeList> pFontsAttrList_Original(m_pFontsAttrList); + rtl::Reference<sax_fastparser::FastAttributeList> pFontsAttrList_Original(m_pFontsAttrList); m_pFontsAttrList.clear(); - uno::Reference<sax_fastparser::FastAttributeList> pEastAsianLayoutAttrList_Original(m_pEastAsianLayoutAttrList); + rtl::Reference<sax_fastparser::FastAttributeList> pEastAsianLayoutAttrList_Original(m_pEastAsianLayoutAttrList); m_pEastAsianLayoutAttrList.clear(); - uno::Reference<sax_fastparser::FastAttributeList> pCharLangAttrList_Original(m_pCharLangAttrList); + rtl::Reference<sax_fastparser::FastAttributeList> pCharLangAttrList_Original(m_pCharLangAttrList); m_pCharLangAttrList.clear(); lcl_writeParagraphMarkerProperties(*this, rParagraphMarkerProperties); @@ -1005,9 +1005,9 @@ void DocxAttributeOutput::EndParagraphProperties(const SfxItemSet& rParagraphMar WriteCollectedRunProperties(); // Revert back the original values that were stored in 'm_pFontsAttrList', 'm_pEastAsianLayoutAttrList', 'm_pCharLangAttrList' - m_pFontsAttrList = pFontsAttrList_Original; - m_pEastAsianLayoutAttrList = pEastAsianLayoutAttrList_Original; - m_pCharLangAttrList = pCharLangAttrList_Original; + m_pFontsAttrList = pFontsAttrList_Original.get(); + m_pEastAsianLayoutAttrList = pEastAsianLayoutAttrList_Original.get(); + m_pCharLangAttrList = pCharLangAttrList_Original.get(); if ( pRedlineParagraphMarkerDeleted ) { @@ -1209,7 +1209,7 @@ void DocxAttributeOutput::EndRun() // Start the hyperlink after the fields separators or we would generate invalid file if ( m_pHyperlinkAttrList.is() ) { - XFastAttributeListRef xAttrList ( m_pHyperlinkAttrList ); + XFastAttributeListRef xAttrList ( m_pHyperlinkAttrList.get() ); m_pHyperlinkAttrList.clear(); m_pSerializer->startElementNS( XML_w, XML_hyperlink, xAttrList ); @@ -1277,7 +1277,7 @@ void DocxAttributeOutput::EndRun() // (so on export sdt blocks are never nested ATM) if ( !m_bAnchorLinkedToNode && !m_bStartedCharSdt ) { - uno::Reference<sax_fastparser::FastAttributeList> pRunSdtPrTokenAttributes; + rtl::Reference<sax_fastparser::FastAttributeList> pRunSdtPrTokenAttributes; WriteSdtBlock( m_nRunSdtPrToken, m_pRunSdtPrTokenChildren, pRunSdtPrTokenAttributes, m_pRunSdtPrDataBindingAttrs, m_aRunSdtPrAlias, /*bPara=*/false ); } else @@ -1969,14 +1969,14 @@ void DocxAttributeOutput::WriteCollectedRunProperties() // Write all differed properties if ( m_pFontsAttrList.is() ) { - XFastAttributeListRef xAttrList( m_pFontsAttrList ); + XFastAttributeListRef xAttrList( m_pFontsAttrList.get() ); m_pFontsAttrList.clear(); m_pSerializer->singleElementNS( XML_w, XML_rFonts, xAttrList ); } if ( m_pColorAttrList.is() ) { - XFastAttributeListRef xAttrList( m_pColorAttrList ); + XFastAttributeListRef xAttrList( m_pColorAttrList.get() ); m_pColorAttrList.clear(); m_pSerializer->singleElementNS( XML_w, XML_color, xAttrList ); @@ -1984,14 +1984,14 @@ void DocxAttributeOutput::WriteCollectedRunProperties() if ( m_pEastAsianLayoutAttrList.is() ) { - XFastAttributeListRef xAttrList( m_pEastAsianLayoutAttrList ); + XFastAttributeListRef xAttrList( m_pEastAsianLayoutAttrList.get() ); m_pEastAsianLayoutAttrList.clear(); m_pSerializer->singleElementNS( XML_w, XML_eastAsianLayout, xAttrList ); } if ( m_pCharLangAttrList.is() ) { - XFastAttributeListRef xAttrList( m_pCharLangAttrList ); + XFastAttributeListRef xAttrList( m_pCharLangAttrList.get() ); m_pCharLangAttrList.clear(); m_pSerializer->singleElementNS( XML_w, XML_lang, xAttrList ); } @@ -2430,11 +2430,11 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedlineData) // to the DOCX when the function 'WriteCollectedRunProperties' gets called. // So we need to store the current status of these lists, so that we can revert back to them when // we are done exporting the redline attributes. - uno::Reference<sax_fastparser::FastAttributeList> pFontsAttrList_Original(m_pFontsAttrList); + rtl::Reference<sax_fastparser::FastAttributeList> pFontsAttrList_Original(m_pFontsAttrList); m_pFontsAttrList.clear(); - uno::Reference<sax_fastparser::FastAttributeList> pEastAsianLayoutAttrList_Original(m_pEastAsianLayoutAttrList); + rtl::Reference<sax_fastparser::FastAttributeList> pEastAsianLayoutAttrList_Original(m_pEastAsianLayoutAttrList); m_pEastAsianLayoutAttrList.clear(); - uno::Reference<sax_fastparser::FastAttributeList> pCharLangAttrList_Original(m_pCharLangAttrList); + rtl::Reference<sax_fastparser::FastAttributeList> pCharLangAttrList_Original(m_pCharLangAttrList); m_pCharLangAttrList.clear(); // Output the redline item set @@ -2486,9 +2486,9 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedlineData) // to the DOCX when the function 'WriteCollectedParagraphProperties' gets called. // So we need to store the current status of these lists, so that we can revert back to them when // we are done exporting the redline attributes. - uno::Reference<sax_fastparser::FastAttributeList> pFlyAttrList_Original(m_rExport.SdrExporter().getFlyAttrList()); + rtl::Reference<sax_fastparser::FastAttributeList> pFlyAttrList_Original(m_rExport.SdrExporter().getFlyAttrList()); m_rExport.SdrExporter().getFlyAttrList().clear(); - uno::Reference<sax_fastparser::FastAttributeList> pParagraphSpacingAttrList_Original(m_pParagraphSpacingAttrList); + rtl::Reference<sax_fastparser::FastAttributeList> pParagraphSpacingAttrList_Original(m_pParagraphSpacingAttrList); m_pParagraphSpacingAttrList.clear(); // Output the redline item set @@ -3506,7 +3506,7 @@ void DocxAttributeOutput::TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_ } else { - css::uno::Reference<sax_fastparser::FastAttributeList> pAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> pAttrList; for( aGrabBagElement = aGrabBag.begin(); aGrabBagElement != aGrabBag.end(); ++aGrabBagElement ) { @@ -3533,7 +3533,7 @@ void DocxAttributeOutput::TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_ else if( aGrabBagElement->first == "val") AddToAttrList( pAttrList, FSNS( XML_w, XML_val ), sValue.getStr() ); } - m_pSerializer->singleElementNS( XML_w, XML_shd, pAttrList ); + m_pSerializer->singleElementNS( XML_w, XML_shd, pAttrList.get() ); } } @@ -5495,7 +5495,7 @@ void DocxAttributeOutput::EndSection() // Write the section properties if ( m_pSectionSpacingAttrList.is() ) { - XFastAttributeListRef xAttrList( m_pSectionSpacingAttrList ); + XFastAttributeListRef xAttrList( m_pSectionSpacingAttrList.get() ); m_pSectionSpacingAttrList.clear(); m_pSerializer->singleElementNS( XML_w, XML_pgMar, xAttrList ); @@ -8550,12 +8550,12 @@ void DocxAttributeOutput::BulletDefinition(int nId, const Graphic& rGraphic, Siz m_pSerializer->endElementNS(XML_w, XML_numPicBullet); } -void DocxAttributeOutput::AddToAttrList( uno::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nAttrName, const sal_Char* sAttrValue ) +void DocxAttributeOutput::AddToAttrList( rtl::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nAttrName, const sal_Char* sAttrValue ) { AddToAttrList( pAttrList, 1, nAttrName, sAttrValue ); } -void DocxAttributeOutput::AddToAttrList( uno::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nAttrs, ... ) +void DocxAttributeOutput::AddToAttrList( rtl::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nAttrs, ... ) { if( !pAttrList.is() ) pAttrList = FastSerializerHelper::createAttrList(); diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx b/sw/source/filter/ww8/docxattributeoutput.hxx index 1190d3aa8a45..611ad01d5527 100644 --- a/sw/source/filter/ww8/docxattributeoutput.hxx +++ b/sw/source/filter/ww8/docxattributeoutput.hxx @@ -704,9 +704,9 @@ private: void WritePostponedCustomShape(); void WriteSdtBlock(sal_Int32& nSdtPrToken, - css::uno::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenChildren, - css::uno::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenAttributes, - css::uno::Reference<sax_fastparser::FastAttributeList>& pSdtPrDataBindingAttrs, + rtl::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenChildren, + rtl::Reference<sax_fastparser::FastAttributeList>& pSdtPrTokenAttributes, + rtl::Reference<sax_fastparser::FastAttributeList>& pSdtPrDataBindingAttrs, OUString& rSdtPrAlias, bool bPara); /// Closes a currently open SDT block. @@ -717,15 +717,15 @@ private: void CmdField_Impl( FieldInfos& rInfos ); void EndField_Impl( FieldInfos& rInfos ); - static void AddToAttrList( css::uno::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nAttrName, const sal_Char* sAttrValue ); - static void AddToAttrList( css::uno::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nArgs, ... ); + static void AddToAttrList( rtl::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nAttrName, const sal_Char* sAttrValue ); + static void AddToAttrList( rtl::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nArgs, ... ); - css::uno::Reference<sax_fastparser::FastAttributeList> m_pFontsAttrList; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pEastAsianLayoutAttrList; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pCharLangAttrList; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pSectionSpacingAttrList; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pParagraphSpacingAttrList; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pHyperlinkAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pFontsAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pEastAsianLayoutAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pCharLangAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pSectionSpacingAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pParagraphSpacingAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pHyperlinkAttrList; /// If the current SDT around runs should be ended before the current run. bool m_bEndCharSdt; /// If an SDT around runs is currently open. @@ -733,9 +733,9 @@ private: /// If an SDT around paragraphs is currently open. bool m_bStartedParaSdt; /// Attributes of the run color - css::uno::Reference<sax_fastparser::FastAttributeList> m_pColorAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pColorAttrList; /// Attributes of the paragraph background - css::uno::Reference<sax_fastparser::FastAttributeList> m_pBackgroundAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pBackgroundAttrList; OUString m_sOriginalBackgroundColor; OUString m_hyperLinkAnchor; bool m_endPageRef; @@ -917,15 +917,15 @@ private: /// members to control the existence of grabbagged SDT properties in the paragraph sal_Int32 m_nParagraphSdtPrToken; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pParagraphSdtPrTokenChildren; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pParagraphSdtPrTokenAttributes; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pParagraphSdtPrDataBindingAttrs; + rtl::Reference<sax_fastparser::FastAttributeList> m_pParagraphSdtPrTokenChildren; + rtl::Reference<sax_fastparser::FastAttributeList> m_pParagraphSdtPrTokenAttributes; + rtl::Reference<sax_fastparser::FastAttributeList> m_pParagraphSdtPrDataBindingAttrs; /// members to control the existence of grabbagged SDT properties in the text run sal_Int32 m_nRunSdtPrToken; /// State of the Fly at current position FlyProcessingState m_nStateOfFlyFrame; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pRunSdtPrTokenChildren; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pRunSdtPrDataBindingAttrs; + rtl::Reference<sax_fastparser::FastAttributeList> m_pRunSdtPrTokenChildren; + rtl::Reference<sax_fastparser::FastAttributeList> m_pRunSdtPrDataBindingAttrs; /// Value of the <w:alias> paragraph SDT element. OUString m_aParagraphSdtPrAlias; /// Same as m_aParagraphSdtPrAlias, but its content is available till the SDT is closed. diff --git a/sw/source/filter/ww8/docxsdrexport.cxx b/sw/source/filter/ww8/docxsdrexport.cxx index f6d3776856fb..33648ab76d66 100644 --- a/sw/source/filter/ww8/docxsdrexport.cxx +++ b/sw/source/filter/ww8/docxsdrexport.cxx @@ -131,18 +131,18 @@ struct DocxSdrExport::Impl const Size* m_pFlyFrameSize; bool m_bTextFrameSyntax; bool m_bDMLTextFrameSyntax; - uno::Reference<sax_fastparser::FastAttributeList> m_pFlyAttrList; - uno::Reference<sax_fastparser::FastAttributeList> m_pTextboxAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pFlyAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pTextboxAttrList; OStringBuffer m_aTextFrameStyle; bool m_bFrameBtLr; bool m_bDrawingOpen; bool m_bParagraphSdtOpen; bool m_bParagraphHasDrawing; ///Flag for checking drawing in a paragraph. bool m_bFlyFrameGraphic; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pFlyFillAttrList; + rtl::Reference<sax_fastparser::FastAttributeList> m_pFlyFillAttrList; sax_fastparser::FastAttributeList* m_pFlyWrapAttrList; sax_fastparser::FastAttributeList* m_pBodyPrAttrList; - css::uno::Reference<sax_fastparser::FastAttributeList> m_pDashLineStyleAttr; + rtl::Reference<sax_fastparser::FastAttributeList> m_pDashLineStyleAttr; bool m_bDMLAndVMLDrawingOpen; /// List of TextBoxes in this document: they are exported as part of their shape, never alone. std::set<const SwFrameFormat*> m_aTextBoxes; @@ -211,12 +211,12 @@ bool DocxSdrExport::getDMLTextFrameSyntax() return m_pImpl->m_bDMLTextFrameSyntax; } -uno::Reference<sax_fastparser::FastAttributeList>& DocxSdrExport::getFlyAttrList() +rtl::Reference<sax_fastparser::FastAttributeList>& DocxSdrExport::getFlyAttrList() { return m_pImpl->m_pFlyAttrList; } -uno::Reference<sax_fastparser::FastAttributeList>& DocxSdrExport::getTextboxAttrList() +rtl::Reference<sax_fastparser::FastAttributeList>& DocxSdrExport::getTextboxAttrList() { return m_pImpl->m_pTextboxAttrList; } @@ -256,7 +256,7 @@ void DocxSdrExport::setParagraphHasDrawing(bool bParagraphHasDrawing) m_pImpl->m_bParagraphHasDrawing = bParagraphHasDrawing; } -uno::Reference<sax_fastparser::FastAttributeList>& DocxSdrExport::getFlyFillAttrList() +rtl::Reference<sax_fastparser::FastAttributeList>& DocxSdrExport::getFlyFillAttrList() { return m_pImpl->m_pFlyFillAttrList; } @@ -271,7 +271,7 @@ sax_fastparser::FastAttributeList* DocxSdrExport::getBodyPrAttrList() return m_pImpl->m_pBodyPrAttrList; } -uno::Reference<sax_fastparser::FastAttributeList>& DocxSdrExport::getDashLineStyle() +rtl::Reference<sax_fastparser::FastAttributeList>& DocxSdrExport::getDashLineStyle() { return m_pImpl->m_pDashLineStyleAttr; } diff --git a/sw/source/filter/ww8/docxsdrexport.hxx b/sw/source/filter/ww8/docxsdrexport.hxx index c3538aa60874..d32e361b04d3 100644 --- a/sw/source/filter/ww8/docxsdrexport.hxx +++ b/sw/source/filter/ww8/docxsdrexport.hxx @@ -15,6 +15,7 @@ #include <com/sun/star/xml/dom/XDocument.hpp> #include <rtl/strbuf.hxx> +#include <rtl/ref.hxx> #include <sax/fshelper.hxx> #include <tools/solar.h> @@ -63,9 +64,9 @@ public: const Size* getFlyFrameSize(); bool getTextFrameSyntax(); bool getDMLTextFrameSyntax(); - css::uno::Reference<sax_fastparser::FastAttributeList>& getFlyAttrList(); + rtl::Reference<sax_fastparser::FastAttributeList>& getFlyAttrList(); /// Attributes of the next v:textbox element. - css::uno::Reference<sax_fastparser::FastAttributeList>& getTextboxAttrList(); + rtl::Reference<sax_fastparser::FastAttributeList>& getTextboxAttrList(); OStringBuffer& getTextFrameStyle(); /// Same, as DocxAttributeOutput::m_bBtLr, but for textframe rotation. bool getFrameBtLr(); @@ -77,12 +78,12 @@ public: bool IsDMLAndVMLDrawingOpen(); bool IsParagraphHasDrawing(); void setParagraphHasDrawing(bool bParagraphHasDrawing); - css::uno::Reference<sax_fastparser::FastAttributeList>& getFlyFillAttrList(); + rtl::Reference<sax_fastparser::FastAttributeList>& getFlyFillAttrList(); sax_fastparser::FastAttributeList* getFlyWrapAttrList(); void setFlyWrapAttrList(sax_fastparser::FastAttributeList* pAttrList); /// Attributes of <wps:bodyPr>, used during DML export of text frames. sax_fastparser::FastAttributeList* getBodyPrAttrList(); - css::uno::Reference<sax_fastparser::FastAttributeList>& getDashLineStyle(); + rtl::Reference<sax_fastparser::FastAttributeList>& getDashLineStyle(); void startDMLAnchorInline(const SwFrameFormat* pFrameFormat, const Size& rSize); void endDMLAnchorInline(const SwFrameFormat* pFrameFormat); diff --git a/sw/source/ui/vba/vbawindow.cxx b/sw/source/ui/vba/vbawindow.cxx index 8f2f3ab72680..fb78e725f3c5 100644 --- a/sw/source/ui/vba/vbawindow.cxx +++ b/sw/source/ui/vba/vbawindow.cxx @@ -44,7 +44,7 @@ SwVbaWindow::SwVbaWindow( void SwVbaWindow::Activate() throw (css::uno::RuntimeException, std::exception) { - uno::Reference<SwVbaDocument> document( new SwVbaDocument(uno::Reference< XHelperInterface >( Application(), uno::UNO_QUERY_THROW ), mxContext, m_xModel) ); + rtl::Reference<SwVbaDocument> document( new SwVbaDocument(uno::Reference< XHelperInterface >( Application(), uno::UNO_QUERY_THROW ), mxContext, m_xModel) ); document->Activate(); } @@ -53,7 +53,7 @@ void SwVbaWindow::Close( const uno::Any& SaveChanges, const uno::Any& RouteDocument ) throw (uno::RuntimeException, std::exception) { // FIXME: it is incorrect when there are more than 1 windows - uno::Reference<SwVbaDocument> document( new SwVbaDocument(uno::Reference< XHelperInterface >( Application(), uno::UNO_QUERY_THROW ), mxContext, m_xModel) ); + rtl::Reference<SwVbaDocument> document( new SwVbaDocument(uno::Reference< XHelperInterface >( Application(), uno::UNO_QUERY_THROW ), mxContext, m_xModel) ); uno::Any FileName; document->Close(SaveChanges, FileName, RouteDocument ); } @@ -69,7 +69,7 @@ void SAL_CALL SwVbaWindow::setView( const uno::Any& _view ) throw (uno::RuntimeE sal_Int32 nType = 0; if( _view >>= nType ) { - uno::Reference<SwVbaView> view( new SwVbaView(this, mxContext, m_xModel) ); + rtl::Reference<SwVbaView> view( new SwVbaView(this, mxContext, m_xModel) ); view->setType( nType ); } } diff --git a/sw/source/uibase/config/StoredChapterNumbering.cxx b/sw/source/uibase/config/StoredChapterNumbering.cxx index 75b49a22a085..2c04440e50ed 100644 --- a/sw/source/uibase/config/StoredChapterNumbering.cxx +++ b/sw/source/uibase/config/StoredChapterNumbering.cxx @@ -426,7 +426,7 @@ void ExportStoredChapterNumberingRules(SwChapterNumRules & rRules, uno::Reference<xml::sax::XDocumentHandler> const xHandler( xWriter, uno::UNO_QUERY); - uno::Reference<StoredChapterNumberingExport> exp(new StoredChapterNumberingExport(xContext, rFileName, xWriter)); + rtl::Reference<StoredChapterNumberingExport> exp(new StoredChapterNumberingExport(xContext, rFileName, xWriter)); // if style name contains a space then name != display-name // ... and the import needs to map from name to display-name then! diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx index 3086204a7a37..feffb624c8c6 100644 --- a/sw/source/uibase/dbui/dbtree.cxx +++ b/sw/source/uibase/dbui/dbtree.cxx @@ -465,7 +465,7 @@ void SwDBTreeList::StartDrag( sal_Int8 /*nAction*/, const Point& /*rPosPixel*/ ) if( !sColumnName.isEmpty() ) { // drag database field - uno::Reference< svx::OColumnTransferable > xColTransfer( new svx::OColumnTransferable( + rtl::Reference< svx::OColumnTransferable > xColTransfer( new svx::OColumnTransferable( sDBName, OUString(), sTableName, |