[Libreoffice-commits] core.git: 3 commits - sw/inc sw/source

Caolán McNamara caolanm at redhat.com
Thu Jan 22 09:05:12 PST 2015


 sw/inc/IDocumentContentOperations.hxx          |    1 
 sw/inc/IDocumentMarkAccess.hxx                 |    4 +-
 sw/source/core/access/accnotexthyperlink.hxx   |    2 -
 sw/source/core/access/accpara.cxx              |    2 -
 sw/source/core/crsr/annotationmark.cxx         |    7 +---
 sw/source/core/doc/docbm.cxx                   |    4 +-
 sw/source/core/fields/expfld.cxx               |    2 -
 sw/source/core/frmedt/fefly1.cxx               |    3 +
 sw/source/core/frmedt/feshview.cxx             |   14 ++++++--
 sw/source/core/inc/MarkManager.hxx             |    4 +-
 sw/source/core/inc/annotationmark.hxx          |    2 -
 sw/source/core/inc/wrong.hxx                   |    4 +-
 sw/source/core/text/wrong.cxx                  |    4 +-
 sw/source/core/unocore/unotextmarkup.cxx       |    2 -
 sw/source/filter/ww8/docxattributeoutput.cxx   |   40 ++++++++++++-------------
 sw/source/filter/ww8/ww8par5.cxx               |    7 +---
 sw/source/uibase/misc/glosdoc.cxx              |   10 +++---
 sw/source/uibase/sidebar/PageMarginControl.cxx |   20 ++++++------
 sw/source/uibase/sidebar/SwPanelFactory.cxx    |    4 +-
 sw/source/uibase/uiview/view2.cxx              |    2 -
 sw/source/uibase/utlui/navipi.cxx              |    2 -
 sw/source/uibase/wrtsh/wrtsh2.cxx              |    2 -
 22 files changed, 74 insertions(+), 68 deletions(-)

New commits:
commit 15faeb4f9f111f7ea8d04fd64b3d065971cd4570
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jan 22 17:03:22 2015 +0000

    Resolves: fdo#87760 if we can't anchor at hidden text then...
    
    anchor to the page instead
    
    Change-Id: Ib7931fdd1c70e809ec442aeac125879980e20ec9

diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index 6923a71..b75bdae 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1585,12 +1585,20 @@ bool SwFEShell::ImpEndCreate()
         GetLayout()->GetCrsrOfst( &aPos, aPoint, &aState );
 
         // do not set in ReadnOnly-content
-        if( aPos.nNode.GetNode().IsProtect() )
+        if (aPos.nNode.GetNode().IsProtect())
+        {
             // then only page bound. Or should we
             // search the next not-readonly position?
             bAtPage = true;
+        }
 
-        pAnch = aPos.nNode.GetNode().GetCntntNode()->getLayoutFrm( GetLayout(), &aPoint, 0, false );
+        SwCntntNode* pCNode = aPos.nNode.GetNode().GetCntntNode();
+        pAnch = pCNode ? pCNode->getLayoutFrm( GetLayout(), &aPoint, 0, false ) : NULL;
+        if (!pAnch)
+        {
+            // Hidden content. Anchor to the page instead
+            bAtPage = true;
+        }
 
         if( !bAtPage )
         {
@@ -1636,7 +1644,7 @@ bool SwFEShell::ImpEndCreate()
 
         if( bAtPage )
         {
-            pPage = pAnch->FindPageFrm();
+            pPage = pAnch ? pAnch->FindPageFrm() : GetLayout()->GetPageAtPos(aPoint);
 
             aAnch.SetType( FLY_AT_PAGE );
             aAnch.SetPageNum( pPage->GetPhyPageNum() );
commit ef3b6fa0cf3e4f2c7b29e9373a8afc8c2c7c7ca0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jan 22 16:35:03 2015 +0000

    Related: fdo#87760 don't crash on searching for a place to put the anchor
    
    1 press return in an empty writer doc a few times
    2 insert a stock 2x2 table
    4 enter A1 and change format->character to hidden
    A1
    3 draw a rectangle above A1 so it'll get anchored to paragraph above table
    5 draw rectangle anchor into A1
    
    Change-Id: I2b0631908843150fae48f7e387a98e91cf90423d

diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index 4426640..bdae991 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -430,7 +430,8 @@ Point SwFEShell::FindAnchorPos( const Point& rAbsPos, bool bMoveIt )
         if ( nAnchorId != FLY_AT_CHAR
              || !PosInsideInputFld( aPos ) )
         {
-            pTxtFrm = aPos.nNode.GetNode().GetCntntNode()->getLayoutFrm( GetLayout(), 0, &aPos, false );
+            SwCntntNode* pCNode = aPos.nNode.GetNode().GetCntntNode();
+            pTxtFrm = pCNode ? pCNode->getLayoutFrm(GetLayout(), 0, &aPos, false) : NULL;
         }
     }
     const SwFrm *pNewAnch = NULL;
commit 6d32df43353a083a1cd9cc90022b64205a5adaa7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jan 22 16:07:54 2015 +0000

    ::rtl::OUString->OUString
    
    Change-Id: I68654a5fa4cbb7403c00b103e2be5929ccb516a2

diff --git a/sw/inc/IDocumentContentOperations.hxx b/sw/inc/IDocumentContentOperations.hxx
index dbdcd72..2f956c6 100644
--- a/sw/inc/IDocumentContentOperations.hxx
+++ b/sw/inc/IDocumentContentOperations.hxx
@@ -22,7 +22,6 @@
 
 #include <sal/types.h>
 #include <rtl/ustring.hxx>
-using rtl::OUString;
 
 class SwPaM;
 struct SwPosition;
diff --git a/sw/inc/IDocumentMarkAccess.hxx b/sw/inc/IDocumentMarkAccess.hxx
index e7500fe..07af670 100644
--- a/sw/inc/IDocumentMarkAccess.hxx
+++ b/sw/inc/IDocumentMarkAccess.hxx
@@ -88,7 +88,7 @@ class IDocumentMarkAccess
 
         virtual sw::mark::IMark* makeAnnotationMark(
             const SwPaM& rPaM,
-            const ::rtl::OUString& rName ) = 0;
+            const OUString& rName ) = 0;
 
         /** Returns a mark in the document for a paragraph.
             If there is none, a mark will be created.
@@ -255,7 +255,7 @@ class IDocumentMarkAccess
         virtual const_iterator_t getAnnotationMarksBegin() const = 0;
         virtual const_iterator_t getAnnotationMarksEnd() const = 0;
         virtual sal_Int32 getAnnotationMarksCount() const = 0;
-        virtual const_iterator_t findAnnotationMark( const ::rtl::OUString& rName ) const = 0;
+        virtual const_iterator_t findAnnotationMark( const OUString& rName ) const = 0;
         virtual sw::mark::IMark* getAnnotationMarkFor(const SwPosition& rPosition) const = 0;
 
         /** Returns the MarkType used to create the mark
diff --git a/sw/source/core/access/accnotexthyperlink.hxx b/sw/source/core/access/accnotexthyperlink.hxx
index fe7df6d..4ebeebf 100644
--- a/sw/source/core/access/accnotexthyperlink.hxx
+++ b/sw/source/core/access/accnotexthyperlink.hxx
@@ -51,7 +51,7 @@ public:
     virtual sal_Bool SAL_CALL doAccessibleAction( sal_Int32 nIndex )
         throw (::com::sun::star::lang::IndexOutOfBoundsException,
                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
-    virtual ::rtl::OUString SAL_CALL getAccessibleActionDescription(
+    virtual OUString SAL_CALL getAccessibleActionDescription(
                 sal_Int32 nIndex )
         throw (::com::sun::star::lang::IndexOutOfBoundsException,
                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index e01e23d..e2b2829 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -1468,7 +1468,7 @@ OUString SwAccessibleParagraph::GetFieldTypeNameAtIndex(sal_Int32 nIndex)
         {
             strTypeName = SwFieldType::GetTypeStr(pField->GetTypeId());
             const sal_uInt16 nWhich = pField->GetTyp()->Which();
-            rtl::OUString sEntry;
+            OUString sEntry;
             sal_Int32 subType = 0;
             switch (nWhich)
             {
diff --git a/sw/source/core/crsr/annotationmark.cxx b/sw/source/core/crsr/annotationmark.cxx
index cccc3c4..f6b81a6 100644
--- a/sw/source/core/crsr/annotationmark.cxx
+++ b/sw/source/core/crsr/annotationmark.cxx
@@ -36,7 +36,7 @@ namespace sw { namespace mark
 {
     AnnotationMark::AnnotationMark(
         const SwPaM& rPaM,
-        const ::rtl::OUString& rName )
+        const OUString& rName )
         : MarkBase( rPaM, rName )
     {
         if ( rName.getLength() == 0 )
@@ -67,7 +67,7 @@ namespace sw { namespace mark
                 // - the annotation field has an empty annotation name or
                 // - the annotation mark's name differs (on mark creation a name clash had been detected)
                 if ( pPostItField->GetName().isEmpty()
-                    || rtl::OUString( pPostItField->GetName() ) != GetName() )
+                    || OUString( pPostItField->GetName() ) != GetName() )
                 {
                     const_cast<SwPostItField*>(pPostItField)->SetName( GetName() );
                 }
@@ -99,8 +99,7 @@ namespace sw { namespace mark
             if ( pFmtFld->IsFldInDoc() )
             {
                 const SwPostItField* pPostItField = dynamic_cast< const SwPostItField* >(pFmtFld->GetField());
-                if ( pPostItField != NULL
-                     && rtl::OUString( pPostItField->GetName() ) == GetName() )
+                if (pPostItField != NULL && pPostItField->GetName() == GetName())
                 {
                     pAnnotationFmtFld = pFmtFld;
                     break;
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 510c5ac..bc55a9b 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -510,7 +510,7 @@ namespace sw { namespace mark
 
     sw::mark::IMark* MarkManager::makeAnnotationMark(
         const SwPaM& rPaM,
-        const ::rtl::OUString& rName )
+        const OUString& rName )
     {
         return makeMark( rPaM, rName, IDocumentMarkAccess::ANNOTATIONMARK );
     }
@@ -1064,7 +1064,7 @@ namespace sw { namespace mark
         return m_vAnnotationMarks.size();
     }
 
-    IDocumentMarkAccess::const_iterator_t MarkManager::findAnnotationMark( const ::rtl::OUString& rName ) const
+    IDocumentMarkAccess::const_iterator_t MarkManager::findAnnotationMark( const OUString& rName ) const
     {
         return lcl_FindMarkByName( rName, m_vAnnotationMarks.begin(), m_vAnnotationMarks.end() );
     }
diff --git a/sw/source/core/fields/expfld.cxx b/sw/source/core/fields/expfld.cxx
index a200cb7..a67a951 100644
--- a/sw/source/core/fields/expfld.cxx
+++ b/sw/source/core/fields/expfld.cxx
@@ -1094,7 +1094,7 @@ bool SwSetExpField::QueryValue( uno::Any& rAny, sal_uInt16 nWhichId ) const
         rAny <<= GetInputFlag();
         break;
     case FIELD_PROP_PAR4:
-        rAny <<= rtl::OUString(GetExpStr());
+        rAny <<= OUString(GetExpStr());
         break;
     default:
         return SwField::QueryValue(rAny, nWhichId);
diff --git a/sw/source/core/inc/MarkManager.hxx b/sw/source/core/inc/MarkManager.hxx
index 4e820b5..bd25253 100644
--- a/sw/source/core/inc/MarkManager.hxx
+++ b/sw/source/core/inc/MarkManager.hxx
@@ -48,7 +48,7 @@ namespace sw {
 
             virtual sw::mark::IMark* makeAnnotationMark(
                 const SwPaM& rPaM,
-                const ::rtl::OUString& rName ) SAL_OVERRIDE;
+                const OUString& rName ) SAL_OVERRIDE;
 
             virtual void repositionMark(::sw::mark::IMark* io_pMark, const SwPaM& rPaM) SAL_OVERRIDE;
             virtual bool renameMark(::sw::mark::IMark* io_pMark, const OUString& rNewName) SAL_OVERRIDE;
@@ -90,7 +90,7 @@ namespace sw {
             virtual const_iterator_t getAnnotationMarksBegin() const SAL_OVERRIDE;
             virtual const_iterator_t getAnnotationMarksEnd() const SAL_OVERRIDE;
             virtual sal_Int32 getAnnotationMarksCount() const SAL_OVERRIDE;
-            virtual const_iterator_t findAnnotationMark( const ::rtl::OUString& rName ) const SAL_OVERRIDE;
+            virtual const_iterator_t findAnnotationMark( const OUString& rName ) const SAL_OVERRIDE;
             virtual sw::mark::IMark* getAnnotationMarkFor(const SwPosition& rPos) const SAL_OVERRIDE;
 
             virtual void assureSortedMarkContainers() const SAL_OVERRIDE;
diff --git a/sw/source/core/inc/annotationmark.hxx b/sw/source/core/inc/annotationmark.hxx
index 72feeda..948ced6 100644
--- a/sw/source/core/inc/annotationmark.hxx
+++ b/sw/source/core/inc/annotationmark.hxx
@@ -32,7 +32,7 @@ namespace sw { namespace mark
     public:
         AnnotationMark(
             const SwPaM& rPaM,
-            const ::rtl::OUString& rName );
+            const OUString& rName );
 
         virtual ~AnnotationMark();
 
diff --git a/sw/source/core/inc/wrong.hxx b/sw/source/core/inc/wrong.hxx
index f15e1a8..8d48da9 100644
--- a/sw/source/core/inc/wrong.hxx
+++ b/sw/source/core/inc/wrong.hxx
@@ -83,7 +83,7 @@ private:
         {
             if (xPropertyBag.is())
             {
-                const ::rtl::OUString colorKey("LineColor");
+                const OUString colorKey("LineColor");
                 com::sun::star::uno::Any aLineColor = xPropertyBag->getValue(colorKey).get< com::sun::star::uno::Any>();
                 com::sun::star::util::Color lineColor = 0;
 
@@ -109,7 +109,7 @@ private:
         {
             if (xPropertyBag.is())
             {
-                const ::rtl::OUString typeKey("LineType");
+                const OUString typeKey("LineType");
                 com::sun::star::uno::Any aLineType = xPropertyBag->getValue(typeKey).get< com::sun::star::uno::Any>();
                 ::sal_Int16 lineType = 0;
 
diff --git a/sw/source/core/text/wrong.cxx b/sw/source/core/text/wrong.cxx
index 031a5e5..0ea4c52 100644
--- a/sw/source/core/text/wrong.cxx
+++ b/sw/source/core/text/wrong.cxx
@@ -22,7 +22,7 @@
 #include "SwGrammarMarkUp.hxx"
 #include <osl/diagnose.h>
 
-SwWrongArea::SwWrongArea( const rtl::OUString& rType, WrongListType listType,
+SwWrongArea::SwWrongArea( const OUString& rType, WrongListType listType,
         com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > xPropertyBag,
         sal_Int32 nPos,
         sal_Int32 nLen)
@@ -32,7 +32,7 @@ SwWrongArea::SwWrongArea( const rtl::OUString& rType, WrongListType listType,
     mLineType = getWrongAreaLineType(listType, xPropertyBag);
 }
 
-SwWrongArea::SwWrongArea( const rtl::OUString& rType,
+SwWrongArea::SwWrongArea( const OUString& rType,
         com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > xPropertyBag,
         sal_Int32 nPos,
         sal_Int32 nLen,
diff --git a/sw/source/core/unocore/unotextmarkup.cxx b/sw/source/core/unocore/unotextmarkup.cxx
index bc1cceb..e8fddbd 100644
--- a/sw/source/core/unocore/unotextmarkup.cxx
+++ b/sw/source/core/unocore/unotextmarkup.cxx
@@ -60,7 +60,7 @@ uno::Reference< container::XStringKeyMap > SAL_CALL SwXTextMarkup::getMarkupInfo
     return xProp;
 }
 
-void SAL_CALL SwXTextMarkup::commitTextRangeMarkup(::sal_Int32 nType, const ::rtl::OUString & aIdentifier, const uno::Reference< text::XTextRange> & xRange,
+void SAL_CALL SwXTextMarkup::commitTextRangeMarkup(::sal_Int32 nType, const OUString & aIdentifier, const uno::Reference< text::XTextRange> & xRange,
                                                    const uno::Reference< container::XStringKeyMap > & xMarkupInfoContainer) throw (uno::RuntimeException, std::exception)
 {
     SolarMutexGuard aGuard;
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index a1c9832..faaa740 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -634,7 +634,7 @@ void DocxAttributeOutput::WriteSdtBlock( sal_Int32& nSdtPrToken,
                 for( sal_Int32 i=0; i < aChildren.getLength(); ++i )
                     m_pSerializer->singleElement( aChildren[i].Token,
                                                   FSNS(XML_w, XML_val),
-                                                  rtl::OUStringToOString( aChildren[i].Value, RTL_TEXTENCODING_UTF8 ).getStr(),
+                                                  OUStringToOString( aChildren[i].Value, RTL_TEXTENCODING_UTF8 ).getStr(),
                                                   FSEND );
             }
 
@@ -4479,11 +4479,11 @@ void DocxAttributeOutput::WritePostponedFormControl(const SdrObject* pObject)
 
                 m_pSerializer->singleElementNS(XML_w, XML_dateFormat,
                                                FSNS(XML_w, XML_val),
-                                               rtl::OUStringToOString( sDateFormat, RTL_TEXTENCODING_UTF8 ).getStr(),
+                                               OUStringToOString( sDateFormat, RTL_TEXTENCODING_UTF8 ).getStr(),
                                                FSEND);
                 m_pSerializer->singleElementNS(XML_w, XML_lid,
                                                FSNS(XML_w, XML_val),
-                                               rtl::OUStringToOString( sLocale, RTL_TEXTENCODING_UTF8 ).getStr(),
+                                               OUStringToOString( sLocale, RTL_TEXTENCODING_UTF8 ).getStr(),
                                                FSEND);
                 m_pSerializer->singleElementNS(XML_w, XML_storeMappedDataAs,
                                                FSNS(XML_w, XML_val), "dateTime",
@@ -4529,9 +4529,9 @@ void DocxAttributeOutput::WritePostponedFormControl(const SdrObject* pObject)
                 {
                     m_pSerializer->singleElementNS(XML_w, XML_listItem,
                                                    FSNS(XML_w, XML_displayText),
-                                                   rtl::OUStringToOString( aItems[i], RTL_TEXTENCODING_UTF8 ).getStr(),
+                                                   OUStringToOString( aItems[i], RTL_TEXTENCODING_UTF8 ).getStr(),
                                                    FSNS(XML_w, XML_value),
-                                                   rtl::OUStringToOString( aItems[i], RTL_TEXTENCODING_UTF8 ).getStr(),
+                                                   OUStringToOString( aItems[i], RTL_TEXTENCODING_UTF8 ).getStr(),
                                                    FSEND);
                 }
 
@@ -7546,7 +7546,7 @@ void DocxAttributeOutput::FormatBackground( const SvxBrushItem& rBrush )
     else if ( !m_rExport.bOutPageDescs )
     {
         // compare fill color with the original fill color
-        OString sOriginalFill = rtl::OUStringToOString(
+        OString sOriginalFill = OUStringToOString(
                 m_sOriginalBackgroundColor, RTL_TEXTENCODING_UTF8 );
 
         if( !m_pBackgroundAttrList )
@@ -7996,11 +7996,11 @@ void DocxAttributeOutput::ParaGrabBag(const SfxGrabBagItem& rItem)
                         if (aGrabBag[j].Name == "ooxml:CT_SdtDocPart_docPartGallery")
                             AddToAttrList( m_pParagraphSdtPrTokenChildren,
                                            FSNS( XML_w, XML_docPartGallery ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_SdtDocPart_docPartCategory")
                             AddToAttrList( m_pParagraphSdtPrTokenChildren,
                                            FSNS( XML_w, XML_docPartCategory ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_SdtDocPart_docPartUnique")
                             AddToAttrList( m_pParagraphSdtPrTokenChildren, FSNS( XML_w, XML_docPartUnique ), "" );
                     }
@@ -8025,15 +8025,15 @@ void DocxAttributeOutput::ParaGrabBag(const SfxGrabBagItem& rItem)
                         if (aGrabBag[j].Name == "ooxml:CT_DataBinding_prefixMappings")
                             AddToAttrList( m_pParagraphSdtPrDataBindingAttrs,
                                            FSNS( XML_w, XML_prefixMappings ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_DataBinding_xpath")
                             AddToAttrList( m_pParagraphSdtPrDataBindingAttrs,
                                            FSNS( XML_w, XML_xpath ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_DataBinding_storeItemID")
                             AddToAttrList( m_pParagraphSdtPrDataBindingAttrs,
                                            FSNS( XML_w, XML_storeItemID ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                     }
                 }
                 else if (aPropertyValue.Name == "ooxml:CT_SdtPr_alias" && m_aParagraphSdtPrAlias.isEmpty())
@@ -8053,15 +8053,15 @@ void DocxAttributeOutput::ParaGrabBag(const SfxGrabBagItem& rItem)
                         if (aGrabBag[j].Name == "ooxml:CT_SdtCheckbox_checked")
                             AddToAttrList( m_pParagraphSdtPrTokenChildren,
                                            FSNS( XML_w14, XML_checked ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_SdtCheckbox_checkedState")
                             AddToAttrList( m_pParagraphSdtPrTokenChildren,
                                            FSNS( XML_w14, XML_checkedState ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_SdtCheckbox_uncheckedState")
                             AddToAttrList( m_pParagraphSdtPrTokenChildren,
                                            FSNS( XML_w14, XML_uncheckedState ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                     }
                 }
                 else if (aPropertyValue.Name == "ooxml:CT_SdtPr_id")
@@ -8239,15 +8239,15 @@ void DocxAttributeOutput::CharGrabBag( const SfxGrabBagItem& rItem )
                         if (aGrabBag[j].Name == "ooxml:CT_SdtCheckbox_checked")
                             AddToAttrList( m_pRunSdtPrTokenChildren,
                                            FSNS( XML_w14, XML_checked ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_SdtCheckbox_checkedState")
                             AddToAttrList( m_pRunSdtPrTokenChildren,
                                            FSNS( XML_w14, XML_checkedState ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_SdtCheckbox_uncheckedState")
                             AddToAttrList( m_pRunSdtPrTokenChildren,
                                            FSNS( XML_w14, XML_uncheckedState ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                     }
                 }
                 else if (aPropertyValue.Name == "ooxml:CT_SdtPr_dataBinding" && m_pRunSdtPrDataBindingAttrs == NULL)
@@ -8260,15 +8260,15 @@ void DocxAttributeOutput::CharGrabBag( const SfxGrabBagItem& rItem )
                         if (aGrabBag[j].Name == "ooxml:CT_DataBinding_prefixMappings")
                             AddToAttrList( m_pRunSdtPrDataBindingAttrs,
                                            FSNS( XML_w, XML_prefixMappings ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_DataBinding_xpath")
                             AddToAttrList( m_pRunSdtPrDataBindingAttrs,
                                            FSNS( XML_w, XML_xpath ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                         else if (aGrabBag[j].Name == "ooxml:CT_DataBinding_storeItemID")
                             AddToAttrList( m_pRunSdtPrDataBindingAttrs,
                                            FSNS( XML_w, XML_storeItemID ),
-                                           rtl::OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
+                                           OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr() );
                     }
                 }
                 else if (aPropertyValue.Name == "ooxml:CT_SdtPr_alias" && m_aRunSdtPrAlias.isEmpty())
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index 97b0ed5..0517499 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -95,17 +95,16 @@ using namespace sw::mark;
 using namespace std; // #i24377#
 using namespace nsSwDocInfoSubType;
 
-//              Bookmarks
-
+// Bookmarks
 namespace
 {
     // #120879# - helper method to identify a bookmark name to match the internal TOC bookmark naming convention
-    bool IsTOCBookmarkName( const ::rtl::OUString& rName )
+    bool IsTOCBookmarkName(const OUString& rName)
     {
         return rName.startsWith("_Toc") || rName.startsWith(IDocumentMarkAccess::GetCrossRefHeadingBookmarkNamePrefix());
     }
 
-    ::rtl::OUString EnsureTOCBookmarkName( const ::rtl::OUString& rName )
+    OUString EnsureTOCBookmarkName(const OUString& rName)
     {
         OUString sTmp = rName;
         if ( IsTOCBookmarkName ( rName ) )
diff --git a/sw/source/uibase/misc/glosdoc.cxx b/sw/source/uibase/misc/glosdoc.cxx
index 8acbe1e..eb37562 100644
--- a/sw/source/uibase/misc/glosdoc.cxx
+++ b/sw/source/uibase/misc/glosdoc.cxx
@@ -342,11 +342,11 @@ SwGlossaries::SwGlossaries()
 }
 
 // set new path and recreate internal array
-rtl::OUString lcl_makePath(const std::vector<rtl::OUString>& rPaths)
+OUString lcl_makePath(const std::vector<OUString>& rPaths)
 {
-    std::vector<rtl::OUString>::const_iterator aIt(rPaths.begin());
-    const std::vector<rtl::OUString>::const_iterator aEnd(rPaths.end());
-    rtl::OUStringBuffer aPath(*aIt);
+    std::vector<OUString>::const_iterator aIt(rPaths.begin());
+    const std::vector<OUString>::const_iterator aEnd(rPaths.end());
+    OUStringBuffer aPath(*aIt);
     for (++aIt; aIt != aEnd; ++aIt)
     {
         aPath.append(SVT_SEARCHPATH_DELIMITER);
@@ -368,7 +368,7 @@ void SwGlossaries::UpdateGlosPath(bool bFull)
         m_PathArr.clear();
 
         std::vector<OUString> aDirArr;
-        std::vector<rtl::OUString> aInvalidPaths;
+        std::vector<OUString> aInvalidPaths;
         if (!m_aPath.isEmpty())
         {
             sal_Int32 nIndex = 0;
diff --git a/sw/source/uibase/sidebar/PageMarginControl.cxx b/sw/source/uibase/sidebar/PageMarginControl.cxx
index da77563..6e80bb0 100644
--- a/sw/source/uibase/sidebar/PageMarginControl.cxx
+++ b/sw/source/uibase/sidebar/PageMarginControl.cxx
@@ -418,7 +418,7 @@ bool PageMarginControl::GetUserCustomValues()
     if ( aWinOpt.Exists() )
     {
         ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq = aWinOpt.GetUserData();
-        ::rtl::OUString aTmp;
+        OUString aTmp;
         if ( aSeq.getLength())
             aSeq[0].Value >>= aTmp;
         OUString aWinData( aTmp );
@@ -430,7 +430,7 @@ bool PageMarginControl::GetUserCustomValues()
     if ( aWinOpt2.Exists() )
     {
         ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq = aWinOpt2.GetUserData();
-        ::rtl::OUString aTmp;
+        OUString aTmp;
         if ( aSeq.getLength())
             aSeq[0].Value >>= aTmp;
         OUString aWinData( aTmp );
@@ -442,7 +442,7 @@ bool PageMarginControl::GetUserCustomValues()
     if ( aWinOpt3.Exists() )
     {
         ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq = aWinOpt3.GetUserData();
-        ::rtl::OUString aTmp;
+        OUString aTmp;
         if ( aSeq.getLength())
             aSeq[0].Value >>= aTmp;
         OUString aWinData( aTmp );
@@ -454,7 +454,7 @@ bool PageMarginControl::GetUserCustomValues()
     if ( aWinOpt4.Exists() )
     {
         ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq = aWinOpt4.GetUserData();
-        ::rtl::OUString aTmp;
+        OUString aTmp;
         if ( aSeq.getLength())
             aSeq[0].Value >>= aTmp;
         OUString aWinData( aTmp );
@@ -466,7 +466,7 @@ bool PageMarginControl::GetUserCustomValues()
     if ( aWinOpt5.Exists() )
     {
         ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq = aWinOpt5.GetUserData();
-        ::rtl::OUString aTmp;
+        OUString aTmp;
         if ( aSeq.getLength())
             aSeq[0].Value >>= aTmp;
         OUString aWinData( aTmp );
@@ -488,27 +488,27 @@ void PageMarginControl::StoreUserCustomValues()
     SvtViewOptions aWinOpt( E_WINDOW, SWPAGE_LEFT_GVALUE );
 
     aSeq[0].Name = "mnPageLeftMargin";
-    aSeq[0].Value <<= ::rtl::OUString::number( mnPageLeftMargin );
+    aSeq[0].Value <<= OUString::number( mnPageLeftMargin );
     aWinOpt.SetUserData( aSeq );
 
     SvtViewOptions aWinOpt2( E_WINDOW, SWPAGE_RIGHT_GVALUE );
     aSeq[0].Name = "mnPageRightMargin";
-    aSeq[0].Value <<= ::rtl::OUString::number( mnPageRightMargin );
+    aSeq[0].Value <<= OUString::number( mnPageRightMargin );
     aWinOpt2.SetUserData( aSeq );
 
     SvtViewOptions aWinOpt3( E_WINDOW, SWPAGE_TOP_GVALUE );
     aSeq[0].Name = "mnPageTopMargin";
-    aSeq[0].Value <<= ::rtl::OUString::number( mnPageTopMargin );
+    aSeq[0].Value <<= OUString::number( mnPageTopMargin );
     aWinOpt3.SetUserData( aSeq );
 
     SvtViewOptions aWinOpt4( E_WINDOW, SWPAGE_DOWN_GVALUE );
     aSeq[0].Name = "mnPageBottomMargin";
-    aSeq[0].Value <<= ::rtl::OUString::number( mnPageBottomMargin );
+    aSeq[0].Value <<= OUString::number( mnPageBottomMargin );
     aWinOpt4.SetUserData( aSeq );
 
     SvtViewOptions aWinOpt5( E_WINDOW, SWPAGE_MIRROR_GVALUE );
     aSeq[0].Name = "mbMirrored";
-    aSeq[0].Value <<= ::rtl::OUString::number( (mbMirrored ? 1 : 0) );
+    aSeq[0].Value <<= OUString::number( (mbMirrored ? 1 : 0) );
     aWinOpt5.SetUserData( aSeq );
 }
 
diff --git a/sw/source/uibase/sidebar/SwPanelFactory.cxx b/sw/source/uibase/sidebar/SwPanelFactory.cxx
index 20e2296..4fc7d8d 100644
--- a/sw/source/uibase/sidebar/SwPanelFactory.cxx
+++ b/sw/source/uibase/sidebar/SwPanelFactory.cxx
@@ -56,7 +56,7 @@ public:
 
     // XUIElementFactory
     css::uno::Reference<css::ui::XUIElement> SAL_CALL createUIElement(
-        const ::rtl::OUString& rsResourceURL,
+        const OUString& rsResourceURL,
         const css::uno::Sequence<css::beans::PropertyValue>& rArguments)
         throw(
             css::container::NoSuchElementException,
@@ -74,7 +74,7 @@ SwPanelFactory::~SwPanelFactory (void)
 }
 
 Reference<ui::XUIElement> SAL_CALL SwPanelFactory::createUIElement (
-    const ::rtl::OUString& rsResourceURL,
+    const OUString& rsResourceURL,
     const css::uno::Sequence<css::beans::PropertyValue>& rArguments)
     throw(
         container::NoSuchElementException,
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index 6451d6b..f74f217 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -1912,7 +1912,7 @@ bool SwView::JumpToSwMark( const OUString& rMark )
 
         if( !sCmp.isEmpty() )
         {
-            rtl::OUString sName( sMark.copy( 0, nPos ) );
+            OUString sName( sMark.copy( 0, nPos ) );
             sCmp = sCmp.toAsciiLowerCase();
             FlyCntType eFlyType = FLYCNTTYPE_ALL;
 
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index be7b4c2..5b17227 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -506,7 +506,7 @@ void SwNavigationPI::MakeMark()
     IDocumentMarkAccess* const pMarkAccess = rSh.getIDocumentMarkAccess();
 
     // collect and sort navigator reminder names
-    ::std::vector< ::rtl::OUString > vNavMarkNames;
+    ::std::vector< OUString > vNavMarkNames;
     for(IDocumentMarkAccess::const_iterator_t ppMark = pMarkAccess->getAllMarksBegin();
         ppMark != pMarkAccess->getAllMarksEnd();
         ++ppMark)
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx
index 1f78a7b..44b9183 100644
--- a/sw/source/uibase/wrtsh/wrtsh2.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh2.cxx
@@ -120,7 +120,7 @@ void SwWrtShell::Insert(SwField &rFld)
         if ( GetDoc() != NULL )
         {
             IDocumentMarkAccess* pMarksAccess = GetDoc()->getIDocumentMarkAccess();
-            pMarksAccess->makeAnnotationMark( *pAnnotationTextRange, ::rtl::OUString() );
+            pMarksAccess->makeAnnotationMark( *pAnnotationTextRange, OUString() );
         }
         pAnnotationTextRange.reset();
     }


More information about the Libreoffice-commits mailing list