From 6319265b13321d6bfb527c7bd5b910d4dce4f203 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 17 Mar 2014 09:10:47 +0200 Subject: lotuswordpro: prefer passing OUString by reference Change-Id: Ic94616a7bc34ec5a85ea84178c7d798194201ebe --- lotuswordpro/source/filter/lwpbookmarkmgr.cxx | 6 ++-- lotuswordpro/source/filter/lwpbookmarkmgr.hxx | 6 ++-- lotuswordpro/source/filter/lwpfilter.cxx | 4 +-- lotuswordpro/source/filter/lwpfootnote.hxx | 2 +- lotuswordpro/source/filter/lwpfoundry.cxx | 4 +-- lotuswordpro/source/filter/lwpfoundry.hxx | 4 +-- lotuswordpro/source/filter/lwpfrib.cxx | 4 +-- lotuswordpro/source/filter/lwpfrib.hxx | 4 +-- lotuswordpro/source/filter/lwpfribmark.cxx | 2 +- lotuswordpro/source/filter/lwpfribmark.hxx | 2 +- lotuswordpro/source/filter/lwphyperlinkmgr.cxx | 2 +- lotuswordpro/source/filter/lwphyperlinkmgr.hxx | 2 +- lotuswordpro/source/filter/lwpmarker.cxx | 2 +- lotuswordpro/source/filter/lwpmarker.hxx | 8 ++--- lotuswordpro/source/filter/lwpnumericfmt.cxx | 2 +- lotuswordpro/source/filter/lwpnumericfmt.hxx | 6 ++-- lotuswordpro/source/filter/lwppara.hxx | 4 +-- lotuswordpro/source/filter/lwppara1.cxx | 4 +-- lotuswordpro/source/filter/lwpproplist.cxx | 6 ++-- lotuswordpro/source/filter/lwpproplist.hxx | 6 ++-- lotuswordpro/source/filter/lwpstory.hxx | 4 +-- lotuswordpro/source/filter/lwptblformula.cxx | 2 +- lotuswordpro/source/filter/lwptblformula.hxx | 2 +- lotuswordpro/source/filter/xfilter/ixfcontent.hxx | 2 +- .../source/filter/xfilter/xfannotation.hxx | 8 ++--- .../source/filter/xfilter/xfarrowstyle.hxx | 12 ++++---- lotuswordpro/source/filter/xfilter/xfbgimage.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xfbookmark.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xfcell.cxx | 2 +- lotuswordpro/source/filter/xfilter/xfcell.hxx | 6 ++-- lotuswordpro/source/filter/xfilter/xfcellstyle.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xfchange.hxx | 10 +++--- lotuswordpro/source/filter/xfilter/xfcontent.hxx | 2 +- lotuswordpro/source/filter/xfilter/xfcrossref.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xfdatestyle.hxx | 12 ++++---- lotuswordpro/source/filter/xfilter/xfdocfield.cxx | 2 +- lotuswordpro/source/filter/xfilter/xfdocfield.hxx | 2 +- lotuswordpro/source/filter/xfilter/xfdrawobj.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xfdrawpath.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx | 8 ++--- lotuswordpro/source/filter/xfilter/xffont.hxx | 12 ++++---- lotuswordpro/source/filter/xfilter/xffontdecl.cxx | 2 +- lotuswordpro/source/filter/xfilter/xffontdecl.hxx | 2 +- .../source/filter/xfilter/xffootnoteconfig.hxx | 36 +++++++++++----------- lotuswordpro/source/filter/xfilter/xfframe.hxx | 8 ++--- lotuswordpro/source/filter/xfilter/xfhyperlink.hxx | 16 +++++----- lotuswordpro/source/filter/xfilter/xfimage.cxx | 2 +- lotuswordpro/source/filter/xfilter/xfimage.hxx | 2 +- lotuswordpro/source/filter/xfilter/xfindex.cxx | 4 +-- lotuswordpro/source/filter/xfilter/xfindex.hxx | 28 ++++++++--------- lotuswordpro/source/filter/xfilter/xfinputlist.hxx | 4 +-- .../source/filter/xfilter/xflinenumberconfig.hxx | 12 ++++---- lotuswordpro/source/filter/xfilter/xfliststyle.cxx | 6 ++-- lotuswordpro/source/filter/xfilter/xfliststyle.hxx | 12 ++++---- .../source/filter/xfilter/xfmasterpage.cxx | 2 +- .../source/filter/xfilter/xfmasterpage.hxx | 2 +- .../source/filter/xfilter/xfnumberstyle.hxx | 16 +++++----- lotuswordpro/source/filter/xfilter/xfnumfmt.hxx | 6 ++-- .../source/filter/xfilter/xfofficemeta.cxx | 12 ++++---- .../source/filter/xfilter/xfofficemeta.hxx | 12 ++++---- .../source/filter/xfilter/xfpagenumber.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xfparastyle.hxx | 4 +-- .../source/filter/xfilter/xfplaceholder.hxx | 12 ++++---- lotuswordpro/source/filter/xfilter/xfruby.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xfstylecont.cxx | 2 +- lotuswordpro/source/filter/xfilter/xfstylecont.hxx | 2 +- .../source/filter/xfilter/xfstylemanager.cxx | 6 ++-- .../source/filter/xfilter/xfstylemanager.hxx | 6 ++-- lotuswordpro/source/filter/xfilter/xftable.cxx | 2 +- lotuswordpro/source/filter/xfilter/xftable.hxx | 18 +++++------ .../source/filter/xfilter/xftextcontent.cxx | 2 +- .../source/filter/xfilter/xftextcontent.hxx | 2 +- lotuswordpro/source/filter/xfilter/xftextspan.cxx | 6 ++-- lotuswordpro/source/filter/xfilter/xftextspan.hxx | 4 +-- lotuswordpro/source/filter/xfilter/xftimestyle.hxx | 8 ++--- 75 files changed, 228 insertions(+), 228 deletions(-) diff --git a/lotuswordpro/source/filter/lwpbookmarkmgr.cxx b/lotuswordpro/source/filter/lwpbookmarkmgr.cxx index e2c1f00d52bf..dbf5d2cdc9fc 100644 --- a/lotuswordpro/source/filter/lwpbookmarkmgr.cxx +++ b/lotuswordpro/source/filter/lwpbookmarkmgr.cxx @@ -55,7 +55,7 @@ ************************************************************************/ #include "lwpbookmarkmgr.hxx" -void LwpBookmarkMgr::AddXFBookmarkStart(OUString sName,XFBookmarkStart* pMark) +void LwpBookmarkMgr::AddXFBookmarkStart(const OUString& sName,XFBookmarkStart* pMark) { std::map::iterator iter; iter = m_MapStart.find(sName); @@ -73,7 +73,7 @@ void LwpBookmarkMgr::AddXFBookmarkStart(OUString sName,XFBookmarkStart* pMark) m_MapStart[sName] = pMark; } } -void LwpBookmarkMgr::AddXFBookmarkEnd(OUString sName,XFBookmarkEnd* pMark) +void LwpBookmarkMgr::AddXFBookmarkEnd(const OUString& sName,XFBookmarkEnd* pMark) { std::map::iterator iter; iter = m_MapEnd.find(sName); @@ -91,7 +91,7 @@ void LwpBookmarkMgr::AddXFBookmarkEnd(OUString sName,XFBookmarkEnd* pMark) m_MapEnd[sName] = pMark; } } -sal_Bool LwpBookmarkMgr::FindBookmark(OUString sName) +sal_Bool LwpBookmarkMgr::FindBookmark(const OUString& sName) { std::map::iterator iter; iter = m_MapStart.find(sName); diff --git a/lotuswordpro/source/filter/lwpbookmarkmgr.hxx b/lotuswordpro/source/filter/lwpbookmarkmgr.hxx index 86090b87963b..4b7e9a04125b 100644 --- a/lotuswordpro/source/filter/lwpbookmarkmgr.hxx +++ b/lotuswordpro/source/filter/lwpbookmarkmgr.hxx @@ -72,9 +72,9 @@ class LwpBookmarkMgr { public: - void AddXFBookmarkEnd(OUString sName,XFBookmarkEnd* pMark); - void AddXFBookmarkStart(OUString sName,XFBookmarkStart* pMark); - sal_Bool FindBookmark(OUString sName); + void AddXFBookmarkEnd(const OUString& sName,XFBookmarkEnd* pMark); + void AddXFBookmarkStart(const OUString& sName,XFBookmarkStart* pMark); + sal_Bool FindBookmark(const OUString& sName); ~LwpBookmarkMgr(); LwpBookmarkMgr(); private: diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx index 2b7880b019e5..90c2c23a3849 100644 --- a/lotuswordpro/source/filter/lwpfilter.cxx +++ b/lotuswordpro/source/filter/lwpfilter.cxx @@ -98,7 +98,7 @@ using namespace ::com::sun::star; using ::com::sun::star::uno::Sequence; sal_Bool IsWordproFile( uno::Reference& rInputStream); -sal_Bool IsWordproFile(OUString file); +sal_Bool IsWordproFile(const OUString& file); LWPFilterReader::LWPFilterReader() { @@ -442,7 +442,7 @@ sal_Bool IsWordProStr(const sal_Int8 *pBuf) return bRet; } -sal_Bool IsWordproFile(OUString file) +sal_Bool IsWordproFile(const OUString& file) { sal_Bool bRet = sal_False; SfxMedium aMedium( file, STREAM_STD_READ); diff --git a/lotuswordpro/source/filter/lwpfootnote.hxx b/lotuswordpro/source/filter/lwpfootnote.hxx index e7ece5f2b347..ef36ba29f5fc 100644 --- a/lotuswordpro/source/filter/lwpfootnote.hxx +++ b/lotuswordpro/source/filter/lwpfootnote.hxx @@ -286,7 +286,7 @@ public: sal_Bool GetContinuedOn(){ return ((m_nFlag & FO_CONTINUEON) != 0);} OUString GetContinuedOnMessage(); OUString GetContinuedFromMessage(); - void SetMasterPage(OUString strMasterPage){ m_strMasterPage = strMasterPage;} + void SetMasterPage(const OUString& strMasterPage){ m_strMasterPage = strMasterPage;} }; #endif diff --git a/lotuswordpro/source/filter/lwpfoundry.cxx b/lotuswordpro/source/filter/lwpfoundry.cxx index 8c62711a40c7..40dc99e2a9b3 100644 --- a/lotuswordpro/source/filter/lwpfoundry.cxx +++ b/lotuswordpro/source/filter/lwpfoundry.cxx @@ -287,7 +287,7 @@ LwpObjectID * LwpFoundry::GetDefaultTextStyle() * @descr: Get paragraph style object id according to its style name * */ -LwpObjectID * LwpFoundry::FindParaStyleByName(OUString name) +LwpObjectID * LwpFoundry::FindParaStyleByName(const OUString& name) { //Register all text styles: para styles, character styles LwpDLVListHeadHolder* pParaStyleHolder = static_cast(GetTextStyleHead()->obj()); @@ -310,7 +310,7 @@ LwpObjectID * LwpFoundry::FindParaStyleByName(OUString name) * @descr: Get style name registered according the original style name * */ -OUString LwpFoundry::FindActuralStyleName(OUString name) +OUString LwpFoundry::FindActuralStyleName(const OUString& name) { LwpObjectID* pID = FindParaStyleByName(name); if(pID) diff --git a/lotuswordpro/source/filter/lwpfoundry.hxx b/lotuswordpro/source/filter/lwpfoundry.hxx index 6ee2f63d2caa..4e4aeb3dae0d 100644 --- a/lotuswordpro/source/filter/lwpfoundry.hxx +++ b/lotuswordpro/source/filter/lwpfoundry.hxx @@ -283,8 +283,8 @@ public: LwpSection* EnumSections(LwpSection* pSection); LwpBulletStyleMgr* GetBulletStyleMgr(){return m_pBulletStyleMgr;} - LwpObjectID* FindParaStyleByName(OUString name); - OUString FindActuralStyleName(OUString name); + LwpObjectID* FindParaStyleByName(const OUString& name); + OUString FindActuralStyleName(const OUString& name); }; class LwpStyleManager diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx index d4bda5520845..f9ea79dd801c 100644 --- a/lotuswordpro/source/filter/lwpfrib.cxx +++ b/lotuswordpro/source/filter/lwpfrib.cxx @@ -383,7 +383,7 @@ sal_Bool LwpFrib::HasNextFrib() return sal_True; } -void LwpFrib::ConvertChars(XFContentContainer* pXFPara,OUString text) +void LwpFrib::ConvertChars(XFContentContainer* pXFPara,const OUString& text) { if (m_ModFlag) { @@ -399,7 +399,7 @@ void LwpFrib::ConvertChars(XFContentContainer* pXFPara,OUString text) } } -void LwpFrib::ConvertHyperLink(XFContentContainer* pXFPara,LwpHyperlinkMgr* pHyperlink,OUString text) +void LwpFrib::ConvertHyperLink(XFContentContainer* pXFPara,LwpHyperlinkMgr* pHyperlink,const OUString& text) { XFHyperlink* pHyper = new XFHyperlink; pHyper->SetHRef(pHyperlink->GetHyperlink()); diff --git a/lotuswordpro/source/filter/lwpfrib.hxx b/lotuswordpro/source/filter/lwpfrib.hxx index 6f9cd40a9c1d..30297f57ada9 100644 --- a/lotuswordpro/source/filter/lwpfrib.hxx +++ b/lotuswordpro/source/filter/lwpfrib.hxx @@ -118,8 +118,8 @@ public: ModifierInfo* GetModifiers(){return m_pModifiers;} virtual void RegisterStyle(LwpFoundry* pFoundry); sal_Bool HasNextFrib(); - void ConvertChars(XFContentContainer* pXFPara,OUString text); - void ConvertHyperLink(XFContentContainer* pXFPara,LwpHyperlinkMgr* pHyperlink,OUString text); + void ConvertChars(XFContentContainer* pXFPara,const OUString& text); + void ConvertHyperLink(XFContentContainer* pXFPara,LwpHyperlinkMgr* pHyperlink,const OUString& text); XFFont* GetFont(); sal_uInt8 GetRevisionType(){return m_nRevisionType;} diff --git a/lotuswordpro/source/filter/lwpfribmark.cxx b/lotuswordpro/source/filter/lwpfribmark.cxx index 4ad8977fc593..d767de2ceed6 100644 --- a/lotuswordpro/source/filter/lwpfribmark.cxx +++ b/lotuswordpro/source/filter/lwpfribmark.cxx @@ -411,7 +411,7 @@ void LwpFribField::RegisterTotalTimeStyle() m_TimeStyle = pXFStyleManager->AddStyle(pTimeStyle)->GetStyleName(); } -void LwpFribField::RegisterDateTimeStyle(OUString sFormula) +void LwpFribField::RegisterDateTimeStyle(const OUString& sFormula) { XFDateStyle* pDateStyle = NULL; XFTimeStyle* pTimeStyle = NULL; diff --git a/lotuswordpro/source/filter/lwpfribmark.hxx b/lotuswordpro/source/filter/lwpfribmark.hxx index 929b2cc0cf44..a32cf79aecf1 100644 --- a/lotuswordpro/source/filter/lwpfribmark.hxx +++ b/lotuswordpro/source/filter/lwpfribmark.hxx @@ -137,7 +137,7 @@ private: sal_uInt8 m_nDocPowerType; void RegisterTimeField(LwpFieldMark* pFieldMark); - void RegisterDateTimeStyle(OUString sFormula); + void RegisterDateTimeStyle(const OUString& sFormula); void RegisterTotalTimeStyle(); void CheckFieldType(LwpFieldMark* pFieldMark); void ConvertDocFieldStart(XFContentContainer* pXFPara,LwpFieldMark* pFieldMark); diff --git a/lotuswordpro/source/filter/lwphyperlinkmgr.cxx b/lotuswordpro/source/filter/lwphyperlinkmgr.cxx index 9f8904343019..5187b3f0c6f3 100644 --- a/lotuswordpro/source/filter/lwphyperlinkmgr.cxx +++ b/lotuswordpro/source/filter/lwphyperlinkmgr.cxx @@ -77,7 +77,7 @@ OUString LwpHyperlinkMgr::GetHyperlink() return m_Hyperlink; } -void LwpHyperlinkMgr::SetHyperlink(OUString hyperlink) +void LwpHyperlinkMgr::SetHyperlink(const OUString& hyperlink) { m_Hyperlink = hyperlink; } diff --git a/lotuswordpro/source/filter/lwphyperlinkmgr.hxx b/lotuswordpro/source/filter/lwphyperlinkmgr.hxx index 19fe7ec47c26..cc54ebb8c112 100644 --- a/lotuswordpro/source/filter/lwphyperlinkmgr.hxx +++ b/lotuswordpro/source/filter/lwphyperlinkmgr.hxx @@ -73,7 +73,7 @@ public: ~LwpHyperlinkMgr(); void SetHyperlinkFlag(sal_Bool bFlag){m_bIsHyperlink = bFlag;} sal_Bool GetHyperlinkFlag(){return m_bIsHyperlink;} - void SetHyperlink(OUString hyperlink); + void SetHyperlink(const OUString& hyperlink); OUString GetHyperlink(); private: OUString m_Hyperlink; diff --git a/lotuswordpro/source/filter/lwpmarker.cxx b/lotuswordpro/source/filter/lwpmarker.cxx index bde11c2aa6f9..5b8f5357693b 100644 --- a/lotuswordpro/source/filter/lwpmarker.cxx +++ b/lotuswordpro/source/filter/lwpmarker.cxx @@ -91,7 +91,7 @@ void LwpMarker::Read() m_pObjStrm->SkipExtra(); } -OUString LwpMarker::GetNamedProperty(OUString name) +OUString LwpMarker::GetNamedProperty(const OUString& name) { LwpPropList* pProp = GetPropList(); if (pProp) diff --git a/lotuswordpro/source/filter/lwpmarker.hxx b/lotuswordpro/source/filter/lwpmarker.hxx index 975d1a95324d..bbf97d7a3380 100644 --- a/lotuswordpro/source/filter/lwpmarker.hxx +++ b/lotuswordpro/source/filter/lwpmarker.hxx @@ -77,7 +77,7 @@ public: LwpMarker(LwpObjectHeader &objHdr, LwpSvStream *pStrm); ~LwpMarker(){} void Read(); - OUString GetNamedProperty(OUString name); + OUString GetNamedProperty(const OUString& name); protected: enum{ MARKER_START=1, @@ -262,11 +262,11 @@ public: ~LwpRubyMarker(){} void Read(); OUString GetRubyText(){return m_strRubyText;} - void SetRubyText(OUString sText){m_strRubyText = sText;} + void SetRubyText(const OUString& sText){m_strRubyText = sText;} OUString GetTextStyleName(){return m_TextStyle;} - void SetTextStyleName(OUString sName){m_TextStyle = sName;} + void SetTextStyleName(const OUString& sName){m_TextStyle = sName;} OUString GetRubyStyleName(){return m_RubyStyle;} - void SetRubyStyleName(OUString sName){m_RubyStyle = sName;} + void SetRubyStyleName(const OUString& sName){m_RubyStyle = sName;} private: LwpObjectID m_objLayout; OUString m_strRubyText; diff --git a/lotuswordpro/source/filter/lwpnumericfmt.cxx b/lotuswordpro/source/filter/lwpnumericfmt.cxx index 2c3993313929..1eacc7c31c99 100644 --- a/lotuswordpro/source/filter/lwpnumericfmt.cxx +++ b/lotuswordpro/source/filter/lwpnumericfmt.cxx @@ -461,7 +461,7 @@ XFStyle* LwpNumericFormat::Convert() * @param * @return fix wrong encoding of POUND symbol */ -OUString LwpNumericFormat::reencode(OUString sCode) +OUString LwpNumericFormat::reencode(const OUString& sCode) { const sal_Unicode * pString = sCode.getStr(); sal_uInt16 nLen = sCode.getLength(); diff --git a/lotuswordpro/source/filter/lwpnumericfmt.hxx b/lotuswordpro/source/filter/lwpnumericfmt.hxx index 134e39873ed9..28b86570f5ad 100644 --- a/lotuswordpro/source/filter/lwpnumericfmt.hxx +++ b/lotuswordpro/source/filter/lwpnumericfmt.hxx @@ -102,7 +102,7 @@ struct LwpCurrencyInfo OUString sSymbol; sal_Bool bPost; sal_Bool bShowSpace; - LwpCurrencyInfo(OUString sSym) + LwpCurrencyInfo(const OUString& sSym) { sSymbol = sSym; bPost = sal_False; @@ -113,7 +113,7 @@ struct LwpCurrencyInfo bPost = sal_False; bShowSpace = sal_False; } - LwpCurrencyInfo(OUString sSym,sal_Bool bPost_, sal_Bool bShowSpace_) + LwpCurrencyInfo(const OUString& sSym, sal_Bool bPost_, sal_Bool bShowSpace_) { sSymbol = sSym; bPost = bPost_; @@ -282,7 +282,7 @@ private: void GetCurrencyStr(LwpNumericFormatSubset aNumber, OUString& aPrefix, OUString& aSuffix, sal_Bool bNegtive=sal_False); void SetNumberType(XFNumberStyle* pStyle); - OUString reencode(OUString sCode); + OUString reencode(const OUString& sCode); }; inline sal_Bool diff --git a/lotuswordpro/source/filter/lwppara.hxx b/lotuswordpro/source/filter/lwppara.hxx index 1c4db95ced6d..515250ee3dc9 100644 --- a/lotuswordpro/source/filter/lwppara.hxx +++ b/lotuswordpro/source/filter/lwppara.hxx @@ -184,7 +184,7 @@ public: void SetBulletStyleName(const OUString& rNewName); void SetBulletFlag(sal_Bool bFlag); void SetIndent(LwpIndentOverride* pIndentOverride); - void SetFirstFrib(OUString Content,sal_uInt32 FontID); + void SetFirstFrib(const OUString& Content,sal_uInt32 FontID); OUString GetContentText(sal_Bool bAllText = sal_False); void SetParaDropcap(sal_Bool bFlag); @@ -206,7 +206,7 @@ public: sal_Bool IsInCell(); - void SetAllText(OUString sText); + void SetAllText(const OUString& sText); OUString GetStyleName(){return m_StyleName;} protected: diff --git a/lotuswordpro/source/filter/lwppara1.cxx b/lotuswordpro/source/filter/lwppara1.cxx index fbc67e2912f4..a8cb05e83bb1 100644 --- a/lotuswordpro/source/filter/lwppara1.cxx +++ b/lotuswordpro/source/filter/lwppara1.cxx @@ -134,7 +134,7 @@ OUString LwpPara::GetContentText(sal_Bool bAllText) /** * @short set text of paragraph */ -void LwpPara::SetAllText(OUString sText) +void LwpPara::SetAllText(const OUString& sText) { m_AllText+=sText; } @@ -142,7 +142,7 @@ void LwpPara::SetAllText(OUString sText) /** * @short set first frib content */ -void LwpPara::SetFirstFrib(OUString Content,sal_uInt32 FontID) +void LwpPara::SetFirstFrib(const OUString& Content,sal_uInt32 FontID) { m_FontID= FontID; m_Content=Content; diff --git a/lotuswordpro/source/filter/lwpproplist.cxx b/lotuswordpro/source/filter/lwpproplist.cxx index 01646b22e3c0..8bd20f55a815 100644 --- a/lotuswordpro/source/filter/lwpproplist.cxx +++ b/lotuswordpro/source/filter/lwpproplist.cxx @@ -82,12 +82,12 @@ void LwpPropListElement::Read() m_pObjStrm->SkipExtra(); } -sal_Bool LwpPropListElement::IsNamed(OUString name) +sal_Bool LwpPropListElement::IsNamed(const OUString& name) { return name.equals(m_Name.str()); } -OUString LwpPropList::GetNamedProperty(OUString name) +OUString LwpPropList::GetNamedProperty(const OUString& name) { LwpPropListElement* pProp = FindPropByName(name); if (pProp) @@ -97,7 +97,7 @@ OUString LwpPropList::GetNamedProperty(OUString name) return OUString(""); } -LwpPropListElement* LwpPropList::FindPropByName(OUString name) +LwpPropListElement* LwpPropList::FindPropByName(const OUString& name) { LwpPropListElement* pElement = GetFirst(); diff --git a/lotuswordpro/source/filter/lwpproplist.hxx b/lotuswordpro/source/filter/lwpproplist.hxx index 4e0deaf061e6..311fbf0e7719 100644 --- a/lotuswordpro/source/filter/lwpproplist.hxx +++ b/lotuswordpro/source/filter/lwpproplist.hxx @@ -75,7 +75,7 @@ public: LwpPropListElement(LwpObjectHeader &objHdr, LwpSvStream *pStrm); ~LwpPropListElement(){} void Read(); - sal_Bool IsNamed(OUString name); + sal_Bool IsNamed(const OUString& name); LwpPropListElement* GetNext(); LwpAtomHolder GetValue(){return m_Value;} LwpAtomHolder GetName(){return m_Name;} @@ -91,10 +91,10 @@ public: ~LwpPropList(){} void Read(LwpObjectStream* pObjStrm); LwpPropListElement* GetFirst(); - OUString GetNamedProperty(OUString name); + OUString GetNamedProperty(const OUString& name); OUString EnumNamedProperty(OUString& name,OUString& value); private: - LwpPropListElement* FindPropByName(OUString name); + LwpPropListElement* FindPropByName(const OUString& name); }; #endif diff --git a/lotuswordpro/source/filter/lwpstory.hxx b/lotuswordpro/source/filter/lwpstory.hxx index 8ef75e32604b..79ad90878d05 100644 --- a/lotuswordpro/source/filter/lwpstory.hxx +++ b/lotuswordpro/source/filter/lwpstory.hxx @@ -122,7 +122,7 @@ public: inline void SetPMModified(sal_Bool bPMModified); inline void SetDropcapFlag(sal_Bool bFlag); inline void SetTabLayout(LwpLayout* pLayout); - inline void SetSectionName(OUString StyleName); + inline void SetSectionName(const OUString& StyleName); void SetCurrentLayout(LwpPageLayout* pPageLayout); void AddPageLayout(LwpPageLayout* pObject); @@ -173,7 +173,7 @@ void LwpStory::SetTabLayout(LwpLayout* pLayout) { m_pTabLayout = pLayout; } -void LwpStory::SetSectionName(OUString StyleName) +void LwpStory::SetSectionName(const OUString& StyleName) { m_CurrSectionName = StyleName; } diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx index c82073207f64..84e69a3dcd0f 100644 --- a/lotuswordpro/source/filter/lwptblformula.cxx +++ b/lotuswordpro/source/filter/lwptblformula.cxx @@ -456,7 +456,7 @@ OUString LwpFormulaConst::ToString(LwpTableLayout* /*pCellsMap*/) * @param * @return */ -LwpFormulaText::LwpFormulaText( OUString aText) +LwpFormulaText::LwpFormulaText( const OUString& aText) { m_aText = aText; } diff --git a/lotuswordpro/source/filter/lwptblformula.hxx b/lotuswordpro/source/filter/lwptblformula.hxx index 43ed1ae4216a..ea8da42acad5 100644 --- a/lotuswordpro/source/filter/lwptblformula.hxx +++ b/lotuswordpro/source/filter/lwptblformula.hxx @@ -133,7 +133,7 @@ private: class LwpFormulaText:public LwpFormulaArg { public: - LwpFormulaText( OUString aText); + LwpFormulaText( const OUString& aText); virtual OUString ToString(LwpTableLayout* /*pCellsMap*/){return m_aText;} private: OUString m_aText; diff --git a/lotuswordpro/source/filter/xfilter/ixfcontent.hxx b/lotuswordpro/source/filter/xfilter/ixfcontent.hxx index 7da3155338d9..b18eeb257e90 100644 --- a/lotuswordpro/source/filter/xfilter/ixfcontent.hxx +++ b/lotuswordpro/source/filter/xfilter/ixfcontent.hxx @@ -79,7 +79,7 @@ public: * @descr Set style to apply. You can get the style name by use XFStyleManager::AddStyle(pStyle), * or just set a fixed style name. */ - virtual void SetStyleName(OUString style) = 0; + virtual void SetStyleName(const OUString& style) = 0; /** * @descr return the style name. diff --git a/lotuswordpro/source/filter/xfilter/xfannotation.hxx b/lotuswordpro/source/filter/xfilter/xfannotation.hxx index 47a1de82ff95..4136b7b55ff2 100644 --- a/lotuswordpro/source/filter/xfilter/xfannotation.hxx +++ b/lotuswordpro/source/filter/xfilter/xfannotation.hxx @@ -67,9 +67,9 @@ class XFAnnotation : public XFContentContainer { public: - void SetDate(OUString date); + void SetDate(const OUString& date); - void SetAuthor(OUString author); + void SetAuthor(const OUString& author); virtual void ToXml(IXFStream *pStrm); @@ -78,12 +78,12 @@ private: OUString m_strAuthor; }; -inline void XFAnnotation::SetDate(OUString date) +inline void XFAnnotation::SetDate(const OUString& date) { m_strDate = date; } -inline void XFAnnotation::SetAuthor(OUString author) +inline void XFAnnotation::SetAuthor(const OUString& author) { m_strAuthor = author; } diff --git a/lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx b/lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx index 961c1a49abc5..b25a152edd01 100644 --- a/lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfarrowstyle.hxx @@ -68,11 +68,11 @@ public: XFArrowStyle(); public: - void SetArrowName(OUString name); + void SetArrowName(const OUString& name); - void SetViewbox(OUString viewBox); + void SetViewbox(const OUString& viewBox); - void SetSVGPath(OUString path); + void SetSVGPath(const OUString& path); virtual enumXFStyle GetStyleFamily(); @@ -88,17 +88,17 @@ inline XFArrowStyle::XFArrowStyle() { } -inline void XFArrowStyle::SetArrowName(OUString name) +inline void XFArrowStyle::SetArrowName(const OUString& name) { m_strName = name; } -inline void XFArrowStyle::SetViewbox(OUString viewBox) +inline void XFArrowStyle::SetViewbox(const OUString& viewBox) { m_strViewBox = viewBox; } -inline void XFArrowStyle::SetSVGPath(OUString path) +inline void XFArrowStyle::SetSVGPath(const OUString& path) { m_strPath = path; } diff --git a/lotuswordpro/source/filter/xfilter/xfbgimage.hxx b/lotuswordpro/source/filter/xfilter/xfbgimage.hxx index 2d5dbea093d8..e81f0441f34e 100644 --- a/lotuswordpro/source/filter/xfilter/xfbgimage.hxx +++ b/lotuswordpro/source/filter/xfilter/xfbgimage.hxx @@ -75,7 +75,7 @@ public: /** * @descr Use file link as image source. */ - void SetFileLink(OUString fileName); + void SetFileLink(const OUString& fileName); /** * @descr Use base64 stream as image source. @@ -118,7 +118,7 @@ private: enumXFAlignType m_eVertAlign; }; -inline void XFBGImage::SetFileLink(OUString fileName) +inline void XFBGImage::SetFileLink(const OUString& fileName) { m_strFileName = fileName; m_bUserFileLink = sal_True; diff --git a/lotuswordpro/source/filter/xfilter/xfbookmark.hxx b/lotuswordpro/source/filter/xfilter/xfbookmark.hxx index e9c03cd2c87f..d50c3d961d3c 100644 --- a/lotuswordpro/source/filter/xfilter/xfbookmark.hxx +++ b/lotuswordpro/source/filter/xfilter/xfbookmark.hxx @@ -75,14 +75,14 @@ public: } OUString GetDivision(){return m_strDivision;} - void SetDivision(OUString sDivName){m_strDivision = sDivName;} + void SetDivision(const OUString& sDivName){m_strDivision = sDivName;} OUString GetName(){return m_strName;} public: /** * @descr Set bookmark name, which will be used in bookmark-ref or formula. */ - void SetName(OUString name) + void SetName(const OUString& name) { m_strName = name; } diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx index 99c195b92cd6..0d7d9a2d1e77 100644 --- a/lotuswordpro/source/filter/xfilter/xfcell.cxx +++ b/lotuswordpro/source/filter/xfilter/xfcell.cxx @@ -165,7 +165,7 @@ void XFCell::SetValue(double value) SetValue(OUString::number(value)); } -void XFCell::SetValue(OUString value) +void XFCell::SetValue(const OUString& value) { m_eValueType = enumXFValueTypeFloat; m_strValue = value; diff --git a/lotuswordpro/source/filter/xfilter/xfcell.hxx b/lotuswordpro/source/filter/xfilter/xfcell.hxx index 9ecddf5f6924..960fdb9377d1 100644 --- a/lotuswordpro/source/filter/xfilter/xfcell.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcell.hxx @@ -108,12 +108,12 @@ public: /** * @descr Set cell number value. */ - void SetValue(OUString value); + void SetValue(const OUString& value); /** * @descr Set cell formula. */ - void SetFormula(OUString formula); + void SetFormula(const OUString& formula); /** * @descr Set cell protected. @@ -183,7 +183,7 @@ inline void XFCell::SetRepeated(sal_Int32 repeated) m_nRepeated = repeated; } -inline void XFCell::SetFormula(OUString formula) +inline void XFCell::SetFormula(const OUString& formula) { m_strFormula = formula; } diff --git a/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx b/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx index a7bebbfbad8a..7459c24d434a 100644 --- a/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx @@ -86,7 +86,7 @@ public: /** * @descr Set cell data format style name. */ - void SetDataStyle(OUString style); + void SetDataStyle(const OUString& style); /** * @descr: Set the pading of the paragraph.This is the distance @@ -154,7 +154,7 @@ inline void XFCellStyle::SetAlignType(enumXFAlignType hori, enumXFAlignType vert m_eVertAlign = vert; } -inline void XFCellStyle::SetDataStyle(OUString style) +inline void XFCellStyle::SetDataStyle(const OUString& style) { m_strDataStyle = style; } diff --git a/lotuswordpro/source/filter/xfilter/xfchange.hxx b/lotuswordpro/source/filter/xfilter/xfchange.hxx index 4786399322cd..67fcdc7d5d0e 100644 --- a/lotuswordpro/source/filter/xfilter/xfchange.hxx +++ b/lotuswordpro/source/filter/xfilter/xfchange.hxx @@ -84,9 +84,9 @@ public: XFChangeRegion(){} ~XFChangeRegion(){} virtual void ToXml(IXFStream *pStrm); - void SetChangeID(OUString sID){m_sID=sID;} + void SetChangeID(const OUString& sID){m_sID=sID;} OUString GetChangeID(){return m_sID;} - void SetEditor(OUString sEditor){m_sEditor=sEditor;} + void SetEditor(const OUString& sEditor){m_sEditor=sEditor;} protected: OUString m_sID; OUString m_sEditor; @@ -114,7 +114,7 @@ public: XFChange(){} ~XFChange(){} void ToXml(IXFStream *pStrm); - void SetChangeID(OUString sID){m_sID=sID;} + void SetChangeID(const OUString& sID){m_sID=sID;} OUString GetChangeID(){return m_sID;} private: OUString m_sID; @@ -126,7 +126,7 @@ public: XFChangeStart(){} ~XFChangeStart(){} void ToXml(IXFStream *pStrm); - void SetChangeID(OUString sID){m_sID=sID;} + void SetChangeID(const OUString& sID){m_sID=sID;} OUString GetChangeID(){return m_sID;} private: OUString m_sID; @@ -138,7 +138,7 @@ public: XFChangeEnd(){} ~XFChangeEnd(){} void ToXml(IXFStream *pStrm); - void SetChangeID(OUString sID){m_sID=sID;} + void SetChangeID(const OUString& sID){m_sID=sID;} OUString GetChangeID(){return m_sID;} private: OUString m_sID; diff --git a/lotuswordpro/source/filter/xfilter/xfcontent.hxx b/lotuswordpro/source/filter/xfilter/xfcontent.hxx index fc7b9ba5b008..599fc988db63 100644 --- a/lotuswordpro/source/filter/xfilter/xfcontent.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcontent.hxx @@ -78,7 +78,7 @@ public: /** * @short: All content except XFTextContent can have a style. */ - virtual void SetStyleName(OUString style){m_strStyleName = style;} + virtual void SetStyleName(const OUString& style){m_strStyleName = style;} /** * @short: return the style name. diff --git a/lotuswordpro/source/filter/xfilter/xfcrossref.hxx b/lotuswordpro/source/filter/xfilter/xfcrossref.hxx index c1794f304c6b..607265a27901 100644 --- a/lotuswordpro/source/filter/xfilter/xfcrossref.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcrossref.hxx @@ -72,7 +72,7 @@ public: XFCrossRefStart(); ~XFCrossRefStart(); void SetRefType(sal_uInt8 nType); - void SetMarkName(OUString sName); + void SetMarkName(const OUString& sName); void ToXml(IXFStream *pStrm); private: enum{ @@ -90,7 +90,7 @@ inline void XFCrossRefStart::SetRefType(sal_uInt8 nType) m_nType = nType; } -inline void XFCrossRefStart::SetMarkName(OUString sName) +inline void XFCrossRefStart::SetMarkName(const OUString& sName) { m_strMarkName = sName; } diff --git a/lotuswordpro/source/filter/xfilter/xfdatestyle.hxx b/lotuswordpro/source/filter/xfilter/xfdatestyle.hxx index 026c129f5f48..0395679915f3 100644 --- a/lotuswordpro/source/filter/xfilter/xfdatestyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfdatestyle.hxx @@ -91,9 +91,9 @@ public: void SetFixed(sal_Bool fixed); - void SetLanguage(OUString lang); + void SetLanguage(const OUString& lang); - void SetCountry(OUString country); + void SetCountry(const OUString& country); void SetAutoOrder(sal_Bool bAutoOrder); @@ -119,7 +119,7 @@ public: void AddAmPm(sal_Bool bAmPm); - void AddText( OUString part ); + void AddText( const OUString& part ); virtual enumXFStyle GetStyleFamily(); @@ -143,12 +143,12 @@ inline void XFDateStyle::SetFixed(sal_Bool fixed) m_bFixed = fixed; } -inline void XFDateStyle::SetLanguage(OUString lang) +inline void XFDateStyle::SetLanguage(const OUString& lang) { m_strLanguage = lang; } -inline void XFDateStyle::SetCountry(OUString country) +inline void XFDateStyle::SetCountry(const OUString& country) { m_strCountry = country; } @@ -214,7 +214,7 @@ inline void XFDateStyle::AddQuarter(sal_Bool bLongFmt) m_aParts.AddStyle(part); } -inline void XFDateStyle::AddText( OUString text ) +inline void XFDateStyle::AddText( const OUString& text ) { XFDatePart *part = new XFDatePart(); part->SetPartType(enumXFDateText); diff --git a/lotuswordpro/source/filter/xfilter/xfdocfield.cxx b/lotuswordpro/source/filter/xfilter/xfdocfield.cxx index ff466589a79f..ac3e01211516 100644 --- a/lotuswordpro/source/filter/xfilter/xfdocfield.cxx +++ b/lotuswordpro/source/filter/xfilter/xfdocfield.cxx @@ -59,7 +59,7 @@ ************************************************************************/ #include "xfdocfield.hxx" -void XFFileName::SetType(OUString sType) +void XFFileName::SetType(const OUString& sType) { m_strType = sType; } diff --git a/lotuswordpro/source/filter/xfilter/xfdocfield.hxx b/lotuswordpro/source/filter/xfilter/xfdocfield.hxx index dfad88ecedac..b07f177bce0b 100644 --- a/lotuswordpro/source/filter/xfilter/xfdocfield.hxx +++ b/lotuswordpro/source/filter/xfilter/xfdocfield.hxx @@ -66,7 +66,7 @@ class XFFileName : public XFContent { public: - void SetType(OUString sType); + void SetType(const OUString& sType); virtual void ToXml(IXFStream *pStrm); private: OUString m_strType; diff --git a/lotuswordpro/source/filter/xfilter/xfdrawobj.hxx b/lotuswordpro/source/filter/xfilter/xfdrawobj.hxx index 37ed84150439..d079ffac8e73 100644 --- a/lotuswordpro/source/filter/xfilter/xfdrawobj.hxx +++ b/lotuswordpro/source/filter/xfilter/xfdrawobj.hxx @@ -86,7 +86,7 @@ public: /** * @descr Set style name for drawing text. */ - void SetTextStyleName(OUString style); + void SetTextStyleName(const OUString& style); /** * @descr Set drawing object rotate. @@ -125,7 +125,7 @@ protected: unsigned int m_nFlag; }; -inline void XFDrawObject::SetTextStyleName(OUString style) +inline void XFDrawObject::SetTextStyleName(const OUString& style) { m_strTextStyle = style; } diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx b/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx index d879ddfbaaab..d3607e20820b 100644 --- a/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx +++ b/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx @@ -76,7 +76,7 @@ public: /** * @descr Set svg path command,L for line,M for move,... */ - void SetCommand(OUString cmd); + void SetCommand(const OUString& cmd); /** * @descr Set svg path point. @@ -127,7 +127,7 @@ private: std::vector m_aPaths; }; -inline void XFSvgPathEntry::SetCommand(OUString cmd) +inline void XFSvgPathEntry::SetCommand(const OUString& cmd) { m_strCommand = cmd; } diff --git a/lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx b/lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx index a14a22f95b19..8e0870ab8a39 100644 --- a/lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx @@ -111,12 +111,12 @@ public: /** * @descr Set drawing object arrow start style,only lines can have arrows. */ - void SetArrowStart(OUString start, double size=0.3, sal_Bool center = sal_False); + void SetArrowStart(const OUString& start, double size=0.3, sal_Bool center = sal_False); /** * @descr Set drawing object arrow end style,only lines can have arrows. */ - void SetArrowEnd(OUString end, double size=0.3, sal_Bool center = sal_False); + void SetArrowEnd(const OUString& end, double size=0.3, sal_Bool center = sal_False); void SetFontWorkStyle(sal_Int8 nForm, enumXFFWStyle eStyle, enumXFFWAdjust eAdjust); @@ -144,7 +144,7 @@ inline void XFDrawStyle::SetWrapType(enumXFWrap wrap, sal_Int32 nParagraphs) m_nWrapLines = nParagraphs; } -inline void XFDrawStyle::SetArrowStart(OUString start, double size, sal_Bool center) +inline void XFDrawStyle::SetArrowStart(const OUString& start, double size, sal_Bool center) { assert(size>0); m_strArrowStart = start; @@ -152,7 +152,7 @@ inline void XFDrawStyle::SetArrowStart(OUString start, double size, sal_Bool cen m_bArrowStartCenter = center; } -inline void XFDrawStyle::SetArrowEnd(OUString end, double size, sal_Bool center) +inline void XFDrawStyle::SetArrowEnd(const OUString& end, double size, sal_Bool center) { assert(size>0); m_strArrowEnd = end; diff --git a/lotuswordpro/source/filter/xfilter/xffont.hxx b/lotuswordpro/source/filter/xfilter/xffont.hxx index 17eccc073f5c..504f952d897c 100644 --- a/lotuswordpro/source/filter/xfilter/xffont.hxx +++ b/lotuswordpro/source/filter/xfilter/xffont.hxx @@ -120,17 +120,17 @@ public: /** * @descr Set font name. */ - void SetFontName(OUString name); + void SetFontName(const OUString& name); /** * @descr Set font name for asia locale. */ - void SetFontNameAsia(OUString name); + void SetFontNameAsia(const OUString& name); /** * @descr Set font name for BIDI locale. */ - void SetFontNameComplex(OUString name); + void SetFontNameComplex(const OUString& name); /** * @descr Set font size. @@ -297,7 +297,7 @@ private: sal_Bool m_bTransparent; }; -inline void XFFont::SetFontName(OUString name) +inline void XFFont::SetFontName(const OUString& name) { m_strFontName = name; m_nFlag |= XFFONT_FLAG_NAME; @@ -306,13 +306,13 @@ inline void XFFont::SetFontName(OUString name) SetFontNameComplex(name); } -inline void XFFont::SetFontNameAsia(OUString name) +inline void XFFont::SetFontNameAsia(const OUString& name) { m_strFontNameAsia = name; m_nFlag |= XFFONT_FLAG_NAME_ASIA; } -inline void XFFont::SetFontNameComplex(OUString name) +inline void XFFont::SetFontNameComplex(const OUString& name) { m_strFontNameComplex = name; m_nFlag |= XFFONT_FLAG_NAME_COMPLEX; diff --git a/lotuswordpro/source/filter/xfilter/xffontdecl.cxx b/lotuswordpro/source/filter/xfilter/xffontdecl.cxx index 1e615f1b1b9e..c2c64cab501e 100644 --- a/lotuswordpro/source/filter/xfilter/xffontdecl.cxx +++ b/lotuswordpro/source/filter/xfilter/xffontdecl.cxx @@ -59,7 +59,7 @@ ************************************************************************/ #include "xffontdecl.hxx" -XFFontDecl::XFFontDecl(OUString name, OUString family, sal_Bool fixed) +XFFontDecl::XFFontDecl(const OUString& name, const OUString& family, sal_Bool fixed) { m_strFontName = name; m_strFontFamily = family; diff --git a/lotuswordpro/source/filter/xfilter/xffontdecl.hxx b/lotuswordpro/source/filter/xfilter/xffontdecl.hxx index 80ebbda9a5df..8b5aaa23a6e2 100644 --- a/lotuswordpro/source/filter/xfilter/xffontdecl.hxx +++ b/lotuswordpro/source/filter/xfilter/xffontdecl.hxx @@ -71,7 +71,7 @@ class XFFontDecl { public: - XFFontDecl(OUString name, OUString family, sal_Bool fixed = false); + XFFontDecl(const OUString& name, const OUString& family, sal_Bool fixed = false); public: /** diff --git a/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx b/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx index 8585c5eb0e1f..cd39314edcb0 100644 --- a/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx +++ b/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx @@ -68,15 +68,15 @@ public: XFFootnoteConfig(); public: - void SetBodyStyle(OUString style); + void SetBodyStyle(const OUString& style); - void SetCitationStyle(OUString style); + void SetCitationStyle(const OUString& style); - void SetDefaultStyle(OUString style); + void SetDefaultStyle(const OUString& style); - void SetMasterPage(OUString masterPage); + void SetMasterPage(const OUString& masterPage); - void SetNumberFormat(OUString numberFormat); + void SetNumberFormat(const OUString& numberFormat); void SetStartValue(sal_Int32 value=0); @@ -86,13 +86,13 @@ public: void SetInsertInPage(sal_Bool page=sal_True); - void SetNumPrefix(OUString numprefix); + void SetNumPrefix(const OUString& numprefix); - void SetNumSuffix(OUString numsuffix); + void SetNumSuffix(const OUString& numsuffix); - void SetMessageOn(OUString message); + void SetMessageOn(const OUString& message); - void SetMessageFrom(OUString message); + void SetMessageFrom(const OUString& message); virtual void ToXml(IXFStream *pStrm); @@ -125,27 +125,27 @@ inline XFFootnoteConfig::XFFootnoteConfig() m_bIsFootnote = sal_True; } -inline void XFFootnoteConfig::SetBodyStyle(OUString style) +inline void XFFootnoteConfig::SetBodyStyle(const OUString& style) { m_strBodyStyle = style; } -inline void XFFootnoteConfig::SetCitationStyle(OUString style) +inline void XFFootnoteConfig::SetCitationStyle(const OUString& style) { m_strCitationStyle = style; } -inline void XFFootnoteConfig::SetDefaultStyle(OUString style) +inline void XFFootnoteConfig::SetDefaultStyle(const OUString& style) { m_strDefaultStyle = style; } -inline void XFFootnoteConfig::SetMasterPage(OUString masterPage) +inline void XFFootnoteConfig::SetMasterPage(const OUString& masterPage) { m_strMasterPage = masterPage; } -inline void XFFootnoteConfig::SetNumberFormat(OUString numberFormat) +inline void XFFootnoteConfig::SetNumberFormat(const OUString& numberFormat) { m_strNumFmt = numberFormat; } @@ -172,22 +172,22 @@ inline void XFFootnoteConfig::SetInsertInPage(sal_Bool page) m_bInsertInPage = page; } -inline void XFFootnoteConfig::SetNumPrefix(OUString numprefix) +inline void XFFootnoteConfig::SetNumPrefix(const OUString& numprefix) { m_strNumPrefix = numprefix; } -inline void XFFootnoteConfig::SetNumSuffix(OUString numsuffix) +inline void XFFootnoteConfig::SetNumSuffix(const OUString& numsuffix) { m_strNumSuffix = numsuffix; } -inline void XFFootnoteConfig::SetMessageOn(OUString message) +inline void XFFootnoteConfig::SetMessageOn(const OUString& message) { m_strMessageOn = message; } -inline void XFFootnoteConfig::SetMessageFrom(OUString message) +inline void XFFootnoteConfig::SetMessageFrom(const OUString& message) { m_strMessageFrom = message; } diff --git a/lotuswordpro/source/filter/xfilter/xfframe.hxx b/lotuswordpro/source/filter/xfilter/xfframe.hxx index 9670a1b6bce5..9d31cb99a38a 100644 --- a/lotuswordpro/source/filter/xfilter/xfframe.hxx +++ b/lotuswordpro/source/filter/xfilter/xfframe.hxx @@ -105,7 +105,7 @@ public: /** * @descr Set frame name. */ - void SetName(OUString name); + void SetName(const OUString& name); /** * @descr Set z-index of the frame. @@ -154,7 +154,7 @@ public: /** * @descr: Link the text content of the two frame. */ - void SetNextLink(OUString next); + void SetNextLink(const OUString& next); /** * @descr Get the frame type. image, drawing or text-box. @@ -197,7 +197,7 @@ inline void XFFrame::SetAnchorType(enumXFAnchor anchor) m_eAnchor = anchor; } -inline void XFFrame::SetName(OUString name) +inline void XFFrame::SetName(const OUString& name) { m_strName = name; } @@ -250,7 +250,7 @@ inline void XFFrame::SetPosition(const XFRect& rect) m_aRect = rect; } -inline void XFFrame::SetNextLink(OUString next) +inline void XFFrame::SetNextLink(const OUString& next) { m_strNextLink = next; } diff --git a/lotuswordpro/source/filter/xfilter/xfhyperlink.hxx b/lotuswordpro/source/filter/xfilter/xfhyperlink.hxx index 7d8b2d726fbf..8daa73158c3f 100644 --- a/lotuswordpro/source/filter/xfilter/xfhyperlink.hxx +++ b/lotuswordpro/source/filter/xfilter/xfhyperlink.hxx @@ -66,13 +66,13 @@ public: XFHyperlink(); public: - void SetHRef(OUString href); + void SetHRef(const OUString& href); - void SetText(OUString text); + void SetText(const OUString& text); - void SetName(OUString name); + void SetName(const OUString& name); - void SetTargetFrame(OUString frame="_self"); + void SetTargetFrame(const OUString& frame="_self"); virtual void ToXml(IXFStream *pStrm); @@ -88,22 +88,22 @@ inline XFHyperlink::XFHyperlink() m_strFrame = "_self"; } -inline void XFHyperlink::SetHRef(OUString href) +inline void XFHyperlink::SetHRef(const OUString& href) { m_strHRef = href; } -inline void XFHyperlink::SetName(OUString name) +inline void XFHyperlink::SetName(const OUString& name) { m_strName = name; } -inline void XFHyperlink::SetTargetFrame(OUString frame) +inline void XFHyperlink::SetTargetFrame(const OUString& frame) { m_strFrame = frame; } -inline void XFHyperlink::SetText(OUString text) +inline void XFHyperlink::SetText(const OUString& text) { m_strText = text; } diff --git a/lotuswordpro/source/filter/xfilter/xfimage.cxx b/lotuswordpro/source/filter/xfilter/xfimage.cxx index 3c3fd5ebc185..d2300bee56d4 100644 --- a/lotuswordpro/source/filter/xfilter/xfimage.cxx +++ b/lotuswordpro/source/filter/xfilter/xfimage.cxx @@ -66,7 +66,7 @@ XFImage::XFImage() : m_bUseLink(sal_False) m_strName = XFGlobal::GenImageName(); } -void XFImage::SetFileURL(OUString url) +void XFImage::SetFileURL(const OUString& url) { m_strImageFile = url; m_bUseLink = sal_True; diff --git a/lotuswordpro/source/filter/xfilter/xfimage.hxx b/lotuswordpro/source/filter/xfilter/xfimage.hxx index 1fca8799c490..394b0ce0e159 100644 --- a/lotuswordpro/source/filter/xfilter/xfimage.hxx +++ b/lotuswordpro/source/filter/xfilter/xfimage.hxx @@ -76,7 +76,7 @@ public: /** * @descr Use file link source.a */ - void SetFileURL(OUString url); + void SetFileURL(const OUString& url); /** * @descr Use base64 stream. diff --git a/lotuswordpro/source/filter/xfilter/xfindex.cxx b/lotuswordpro/source/filter/xfilter/xfindex.cxx index d8cd1070701d..a4a369986bf0 100644 --- a/lotuswordpro/source/filter/xfilter/xfindex.cxx +++ b/lotuswordpro/source/filter/xfilter/xfindex.cxx @@ -92,7 +92,7 @@ XFIndex::~XFIndex() } } -void XFIndex::AddTemplate(OUString level, OUString style, XFIndexTemplate* templ) +void XFIndex::AddTemplate(const OUString& level, const OUString& style, XFIndexTemplate* templ) { templ->SetLevel( level ); if(m_eType != enumXFIndexTOC) // TOC's styles are applied to template entries separately @@ -112,7 +112,7 @@ void XFIndex::SetSeparator(sal_Bool sep) m_bSeparator = sep; } -void XFIndex::AddTocSource(sal_uInt16 nLevel, const OUString sStyleName) +void XFIndex::AddTocSource(sal_uInt16 nLevel, const OUString& sStyleName) { if (nLevel > MAX_TOC_LEVEL) { diff --git a/lotuswordpro/source/filter/xfilter/xfindex.hxx b/lotuswordpro/source/filter/xfilter/xfindex.hxx index 0ccd917abc61..25cc538df5d8 100644 --- a/lotuswordpro/source/filter/xfilter/xfindex.hxx +++ b/lotuswordpro/source/filter/xfilter/xfindex.hxx @@ -85,25 +85,25 @@ public: /** * @descr Set template level. */ - void SetLevel(OUString level); + void SetLevel(const OUString& level); /** * @descr Set style. */ - void SetStyleName(OUString style); + void SetStyleName(const OUString& style); /** * @descr Add a entry in the template. */ - void AddEntry(enumXFIndexTemplate entry, OUString styleName = ""); + void AddEntry(enumXFIndexTemplate entry, const OUString& styleName = ""); /** * @descr Add a tab entry in the template. */ - void AddTabEntry(enumXFTab type, double len, sal_Unicode leader = '*', sal_Unicode delimiter='.', OUString styleName = ""); + void AddTabEntry(enumXFTab type, double len, sal_Unicode leader = '*', sal_Unicode delimiter='.', const OUString& styleName = ""); /** * @descr Add a entry in the template. */ - void AddTextEntry(OUString sSpan, OUString styleName = ""); + void AddTextEntry(const OUString& sSpan, const OUString& styleName = ""); /** * @descr clear all index template parts. @@ -115,7 +115,7 @@ private: /** * @descr Helper function. */ - void SetTagName(OUString tag); + void SetTagName(const OUString& tag); friend class XFIndex; private: @@ -153,7 +153,7 @@ public: /** * @descr Add index templaet entry. */ - void AddTemplate(OUString level, OUString style, XFIndexTemplate* templ); + void AddTemplate(const OUString& level, const OUString& style, XFIndexTemplate* templ); /** * @descr Set if protected index to prevent handly-revise. @@ -167,7 +167,7 @@ public: virtual void ToXml(IXFStream *pStrm); - void AddTocSource(sal_uInt16 nLevel, const OUString sStyleName); + void AddTocSource(sal_uInt16 nLevel, const OUString& sStyleName); private: enumXFIndex m_eType; @@ -192,27 +192,27 @@ inline XFIndexTemplate::XFIndexTemplate() m_nLevel = OUString::number(0); } -inline void XFIndexTemplate::SetLevel(OUString level) +inline void XFIndexTemplate::SetLevel(const OUString& level) { m_nLevel = level; } -inline void XFIndexTemplate::SetStyleName(OUString style) +inline void XFIndexTemplate::SetStyleName(const OUString& style) { m_strStyle = style; } -inline void XFIndexTemplate::SetTagName(OUString tag) +inline void XFIndexTemplate::SetTagName(const OUString& tag) { m_strTagName = tag; } -inline void XFIndexTemplate::AddEntry(enumXFIndexTemplate entry, OUString styleName) +inline void XFIndexTemplate::AddEntry(enumXFIndexTemplate entry, const OUString& styleName) { std::pair pair(entry, styleName); m_aEntries.push_back(pair); } -inline void XFIndexTemplate::AddTabEntry(enumXFTab type, double len, sal_Unicode leader, sal_Unicode delimiter, OUString styleName) +inline void XFIndexTemplate::AddTabEntry(enumXFTab type, double len, sal_Unicode leader, sal_Unicode delimiter, const OUString& styleName) { m_eTabType = type; m_strTabLeader = OUString( leader ); @@ -222,7 +222,7 @@ inline void XFIndexTemplate::AddTabEntry(enumXFTab type, double len, sal_Unicode AddEntry(enumXFIndexTemplateTab, styleName); } -inline void XFIndexTemplate::AddTextEntry(OUString sText, OUString styleName) +inline void XFIndexTemplate::AddTextEntry(const OUString& sText, const OUString& styleName) { sal_uInt16 nLen = m_aEntries.size(); AddEntry(enumXFIndexTemplateSpan, styleName); diff --git a/lotuswordpro/source/filter/xfilter/xfinputlist.hxx b/lotuswordpro/source/filter/xfilter/xfinputlist.hxx index a49bbfa46e74..965226a52762 100644 --- a/lotuswordpro/source/filter/xfilter/xfinputlist.hxx +++ b/lotuswordpro/source/filter/xfilter/xfinputlist.hxx @@ -69,7 +69,7 @@ class XFInputList : public XFContent { public: - void SetName(OUString sName); + void SetName(const OUString& sName); void SetLabels(std::vector list); virtual void ToXml(IXFStream *pStrm); private: @@ -77,7 +77,7 @@ private: std::vector m_list; }; -inline void XFInputList::SetName(OUString sName) +inline void XFInputList::SetName(const OUString& sName) { m_strName = sName; } diff --git a/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx b/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx index 9cee394ecaf6..f637af14e74d 100644 --- a/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx +++ b/lotuswordpro/source/filter/xfilter/xflinenumberconfig.hxx @@ -74,11 +74,11 @@ public: void SetNumberIncrement(sal_Int32 increment); - void SetSeparator(sal_Int32 increment, OUString separator); + void SetSeparator(sal_Int32 increment, const OUString& separator); - void SetNumberFormat(OUString numfmt = "1"); + void SetNumberFormat(const OUString& numfmt = "1"); - void SetTextStyle(OUString style); + void SetTextStyle(const OUString& style); void SetRestartOnPage(sal_Bool restart = sal_True); @@ -127,18 +127,18 @@ inline void XFLineNumberConfig::SetNumberIncrement(sal_Int32 increment) m_nIncrement = increment; } -inline void XFLineNumberConfig::SetSeparator(sal_Int32 increment, OUString separator) +inline void XFLineNumberConfig::SetSeparator(sal_Int32 increment, const OUString& separator) { m_nSepIncrement = increment; m_strSeparator = separator; } -inline void XFLineNumberConfig::SetNumberFormat(OUString numfmt) +inline void XFLineNumberConfig::SetNumberFormat(const OUString& numfmt) { m_strNumFmt = numfmt; } -inline void XFLineNumberConfig::SetTextStyle(OUString style) +inline void XFLineNumberConfig::SetTextStyle(const OUString& style) { m_strTextStyle = style; } diff --git a/lotuswordpro/source/filter/xfilter/xfliststyle.cxx b/lotuswordpro/source/filter/xfilter/xfliststyle.cxx index 23f98fc4a3a2..7f7050aff846 100644 --- a/lotuswordpro/source/filter/xfilter/xfliststyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xfliststyle.cxx @@ -270,9 +270,9 @@ void XFListStyle::SetListPosition(sal_Int32 level, void XFListStyle::SetListBullet(sal_Int32 level, UChar32 bullet, - OUString fontname, - OUString prefix, - OUString suffix + const OUString& fontname, + const OUString& prefix, + const OUString& suffix ) { assert(level>=1&&level<=10); diff --git a/lotuswordpro/source/filter/xfilter/xfliststyle.hxx b/lotuswordpro/source/filter/xfilter/xfliststyle.hxx index bdca59b1772b..dd866c47a0ed 100644 --- a/lotuswordpro/source/filter/xfilter/xfliststyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfliststyle.hxx @@ -150,15 +150,15 @@ public: { m_chBullet = ch; } - void SetPrefix(OUString prefix) + void SetPrefix(const OUString& prefix) { m_aNumFmt.SetPrefix(prefix); } - void SetSuffix(OUString suffix) + void SetSuffix(const OUString& suffix) { m_aNumFmt.SetSuffix(suffix); } - void SetFontName(OUString name) + void SetFontName(const OUString& name) { m_strFontName = name; } @@ -204,9 +204,9 @@ public: void SetListBullet(sal_Int32 level, UChar32 bullet_char, - OUString fontname = "", - OUString prefix = "", - OUString suffix = "" + const OUString& fontname = "", + const OUString& prefix = "", + const OUString& suffix = "" ); void SetListNumber( sal_Int32 level, XFNumFmt& numFmt, sal_Int16 nStartValue = 1 ); diff --git a/lotuswordpro/source/filter/xfilter/xfmasterpage.cxx b/lotuswordpro/source/filter/xfilter/xfmasterpage.cxx index 785f3136c449..2efc78decb80 100644 --- a/lotuswordpro/source/filter/xfilter/xfmasterpage.cxx +++ b/lotuswordpro/source/filter/xfilter/xfmasterpage.cxx @@ -96,7 +96,7 @@ enumXFStyle XFMasterPage::GetStyleFamily() return enumXFStyleMasterPage; } -void XFMasterPage::SetPageMaster(OUString pm) +void XFMasterPage::SetPageMaster(const OUString& pm) { m_strPageMaster = pm; } diff --git a/lotuswordpro/source/filter/xfilter/xfmasterpage.hxx b/lotuswordpro/source/filter/xfilter/xfmasterpage.hxx index f61b67cf0a56..b6aacf42e3a3 100644 --- a/lotuswordpro/source/filter/xfilter/xfmasterpage.hxx +++ b/lotuswordpro/source/filter/xfilter/xfmasterpage.hxx @@ -73,7 +73,7 @@ public: virtual ~XFMasterPage(); public: - void SetPageMaster(OUString pm); + void SetPageMaster(const OUString& pm); void SetHeader(XFHeader *pHeader); diff --git a/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx b/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx index 749a42257243..df07de6f0247 100644 --- a/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx @@ -82,15 +82,15 @@ public: void SetColor(const XFColor& color); XFColor GetColor(){return m_aColor;} - void SetPrefix(OUString prefix); + void SetPrefix(const OUString& prefix); - void SetSurfix(OUString surfix); + void SetSurfix(const OUString& surfix); - void SetNegativeStyle(OUString prefix, OUString suffix, const XFColor& color=XFColor(255,0,0)); + void SetNegativeStyle(const OUString& prefix, const OUString& suffix, const XFColor& color=XFColor(255,0,0)); void SetNumberType(enumXFNumberType type); - void SetCurrencySymbol(sal_Bool post, OUString symbol, sal_Bool bShowSpace=sal_False); + void SetCurrencySymbol(sal_Bool post, const OUString& symbol, sal_Bool bShowSpace=sal_False); virtual enumXFStyle GetStyleFamily(); @@ -142,7 +142,7 @@ inline void XFNumberStyle::SetMinExponent(sal_Int32 exponent) m_nMinExponent = exponent; } -inline void XFNumberStyle::SetNegativeStyle(OUString prefix, OUString suffix, const XFColor& color) +inline void XFNumberStyle::SetNegativeStyle(const OUString& prefix, const OUString& suffix, const XFColor& color) { m_bRedIfNegative = sal_True; m_aNegativeColor = color; @@ -165,17 +165,17 @@ inline void XFNumberStyle::SetNumberType(enumXFNumberType type) m_eType = type; } -inline void XFNumberStyle::SetPrefix(OUString prefix) +inline void XFNumberStyle::SetPrefix(const OUString& prefix) { m_strPrefix = prefix; } -inline void XFNumberStyle::SetSurfix(OUString surfix) +inline void XFNumberStyle::SetSurfix(const OUString& surfix) { m_strSuffix = surfix; } -inline void XFNumberStyle::SetCurrencySymbol(sal_Bool post, OUString symbol, sal_Bool bShowSpace) +inline void XFNumberStyle::SetCurrencySymbol(sal_Bool post, const OUString& symbol, sal_Bool bShowSpace) { m_bCurrencySymbolPost = post; m_strCurrencySymbol = symbol; diff --git a/lotuswordpro/source/filter/xfilter/xfnumfmt.hxx b/lotuswordpro/source/filter/xfilter/xfnumfmt.hxx index 3122ae1607d5..de9584d89f3a 100644 --- a/lotuswordpro/source/filter/xfilter/xfnumfmt.hxx +++ b/lotuswordpro/source/filter/xfilter/xfnumfmt.hxx @@ -82,7 +82,7 @@ public: (2 item2 * @param: prefix *********************************************************************/ - void SetPrefix(OUString prefix) + void SetPrefix(const OUString& prefix) { m_strPrefix = prefix; } @@ -93,7 +93,7 @@ public: 2) item2 * @param: prefix *********************************************************************/ - void SetSuffix(OUString suffix) + void SetSuffix(const OUString& suffix) { m_strSuffix = suffix; } @@ -117,7 +117,7 @@ public: '','','','','', * @param: prefix *********************************************************************/ - void SetFormat(OUString format) + void SetFormat(const OUString& format) { m_strFormat = format; } diff --git a/lotuswordpro/source/filter/xfilter/xfofficemeta.cxx b/lotuswordpro/source/filter/xfilter/xfofficemeta.cxx index 54e80963403b..fbeb52e4c104 100644 --- a/lotuswordpro/source/filter/xfilter/xfofficemeta.cxx +++ b/lotuswordpro/source/filter/xfilter/xfofficemeta.cxx @@ -61,27 +61,27 @@ #include "ixfstream.hxx" #include "ixfattrlist.hxx" -void XFOfficeMeta::SetCreator(OUString creator) +void XFOfficeMeta::SetCreator(const OUString& creator) { m_strCreator = creator; } -void XFOfficeMeta::SetDescription(OUString dsr) +void XFOfficeMeta::SetDescription(const OUString& dsr) { m_strDsr = dsr; } -void XFOfficeMeta::SetKeywords(OUString keywords) +void XFOfficeMeta::SetKeywords(const OUString& keywords) { m_strKeywords = keywords; } -void XFOfficeMeta::SetCreationTime(OUString crtime) +void XFOfficeMeta::SetCreationTime(const OUString& crtime) { m_strCrtime = crtime; } -void XFOfficeMeta::SetLastTime(OUString lstime) +void XFOfficeMeta::SetLastTime(const OUString& lstime) { m_strLstime = lstime; } -void XFOfficeMeta::SetEditTime(OUString edtime) +void XFOfficeMeta::SetEditTime(const OUString& edtime) { m_strEdtime = edtime; } diff --git a/lotuswordpro/source/filter/xfilter/xfofficemeta.hxx b/lotuswordpro/source/filter/xfilter/xfofficemeta.hxx index 118fea5642eb..54535fdafb5b 100644 --- a/lotuswordpro/source/filter/xfilter/xfofficemeta.hxx +++ b/lotuswordpro/source/filter/xfilter/xfofficemeta.hxx @@ -69,12 +69,12 @@ public: XFOfficeMeta(){} virtual ~XFOfficeMeta(){} - void SetCreator(OUString creator); - void SetDescription(OUString dsr); - void SetKeywords(OUString keywords); - void SetCreationTime(OUString crtime); - void SetLastTime(OUString lstime); - void SetEditTime(OUString edtime); + void SetCreator(const OUString& creator); + void SetDescription(const OUString& dsr); + void SetKeywords(const OUString& keywords); + void SetCreationTime(const OUString& crtime); + void SetLastTime(const OUString& lstime); + void SetEditTime(const OUString& edtime); virtual void ToXml(IXFStream *pStream); private: diff --git a/lotuswordpro/source/filter/xfilter/xfpagenumber.hxx b/lotuswordpro/source/filter/xfilter/xfpagenumber.hxx index 8517f0c15f8a..f398edec422c 100644 --- a/lotuswordpro/source/filter/xfilter/xfpagenumber.hxx +++ b/lotuswordpro/source/filter/xfilter/xfpagenumber.hxx @@ -71,7 +71,7 @@ class XFPageNumber : public XFContent { public: - void SetNumFmt(OUString fmt); + void SetNumFmt(const OUString& fmt); virtual void ToXml(IXFStream *pStrm); @@ -79,7 +79,7 @@ private: XFNumFmt m_aNumFmt; }; -inline void XFPageNumber::SetNumFmt(OUString fmt) +inline void XFPageNumber::SetNumFmt(const OUString& fmt) { m_aNumFmt.SetFormat(fmt); } diff --git a/lotuswordpro/source/filter/xfilter/xfparastyle.hxx b/lotuswordpro/source/filter/xfilter/xfparastyle.hxx index 5cd91421c043..f24b7563cee9 100644 --- a/lotuswordpro/source/filter/xfilter/xfparastyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xfparastyle.hxx @@ -101,7 +101,7 @@ public: * @descr Set layout for the paragraph.When such property was setted, this paragraph will * start at an new page. */ - void SetMasterPage(OUString master); + void SetMasterPage(const OUString& master); OUString GetMasterPage(); @@ -267,7 +267,7 @@ protected: sal_Bool m_bNumberRight; }; -inline void XFParaStyle::SetMasterPage(OUString master) +inline void XFParaStyle::SetMasterPage(const OUString& master) { m_strMasterPage = master; } diff --git a/lotuswordpro/source/filter/xfilter/xfplaceholder.hxx b/lotuswordpro/source/filter/xfilter/xfplaceholder.hxx index 6d4e1dbb0ffb..ec761d406fa7 100644 --- a/lotuswordpro/source/filter/xfilter/xfplaceholder.hxx +++ b/lotuswordpro/source/filter/xfilter/xfplaceholder.hxx @@ -71,9 +71,9 @@ class XFHolderStart : public XFContent public: XFHolderStart(); ~XFHolderStart(); - void SetType(OUString sType); - void SetDesc(OUString sDesc); - void SetPrompt(OUString sText); + void SetType(const OUString& sType); + void SetDesc(const OUString& sDesc); + void SetPrompt(const OUString& sText); void ToXml(IXFStream *pStrm); private: OUString m_strType; @@ -89,17 +89,17 @@ XFHolderStart::~XFHolderStart() { } -inline void XFHolderStart::SetType(OUString sType) +inline void XFHolderStart::SetType(const OUString& sType) { m_strType = sType; } -inline void XFHolderStart::SetDesc(OUString sDesc) +inline void XFHolderStart::SetDesc(const OUString& sDesc) { m_strDesc = sDesc; } -inline void XFHolderStart::SetPrompt(OUString sText) +inline void XFHolderStart::SetPrompt(const OUString& sText) { m_strText = sText; } diff --git a/lotuswordpro/source/filter/xfilter/xfruby.hxx b/lotuswordpro/source/filter/xfilter/xfruby.hxx index 5521ba4de56e..0668631f76bb 100644 --- a/lotuswordpro/source/filter/xfilter/xfruby.hxx +++ b/lotuswordpro/source/filter/xfilter/xfruby.hxx @@ -71,7 +71,7 @@ public: class XFRubyEnd : public XFContent { public: - void SetText(OUString sText); + void SetText(const OUString& sText); virtual void ToXml(IXFStream *pStrm); private: OUString m_strText; @@ -88,7 +88,7 @@ void XFRubyStart::ToXml(IXFStream *pStrm) pStrm->StartElement( "text:ruby-base" ); } -void XFRubyEnd::SetText(OUString sText) +void XFRubyEnd::SetText(const OUString& sText) { m_strText = sText; } diff --git a/lotuswordpro/source/filter/xfilter/xfstylecont.cxx b/lotuswordpro/source/filter/xfilter/xfstylecont.cxx index 850dba98bf70..1266538ac12a 100644 --- a/lotuswordpro/source/filter/xfilter/xfstylecont.cxx +++ b/lotuswordpro/source/filter/xfilter/xfstylecont.cxx @@ -165,7 +165,7 @@ IXFStyle* XFStyleContainer::FindSameStyle(IXFStyle *pStyle) return NULL; } -IXFStyle* XFStyleContainer::FindStyle(OUString name) +IXFStyle* XFStyleContainer::FindStyle(const OUString& name) { std::vector::iterator it; for( it = m_aStyles.begin(); it != m_aStyles.end(); ++it ) diff --git a/lotuswordpro/source/filter/xfilter/xfstylecont.hxx b/lotuswordpro/source/filter/xfilter/xfstylecont.hxx index 89d58444838d..ba8b0931c24f 100644 --- a/lotuswordpro/source/filter/xfilter/xfstylecont.hxx +++ b/lotuswordpro/source/filter/xfilter/xfstylecont.hxx @@ -97,7 +97,7 @@ public: /** * @descr get style by name. */ - IXFStyle* FindStyle(OUString name); + IXFStyle* FindStyle(const OUString& name); /** * @descr clear container. diff --git a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx index 2d9d6c20c0cb..0e17576cc273 100644 --- a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx +++ b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx @@ -219,7 +219,7 @@ IXFStyle* XFStyleManager::AddStyle(IXFStyle *pStyle) return pStyleRet; } -IXFStyle* XFStyleManager::FindStyle(OUString name) +IXFStyle* XFStyleManager::FindStyle(const OUString& name) { IXFStyle *pStyle = (IXFStyle*)FindParaStyle(name); if( pStyle ) @@ -272,7 +272,7 @@ IXFStyle* XFStyleManager::FindStyle(OUString name) return NULL; } -XFParaStyle* XFStyleManager::FindParaStyle(OUString name) +XFParaStyle* XFStyleManager::FindParaStyle(const OUString& name) { IXFStyle *pStyle = s_aParaStyles.FindStyle(name); if( pStyle ) @@ -281,7 +281,7 @@ XFParaStyle* XFStyleManager::FindParaStyle(OUString name) return (XFParaStyle*)s_aStdParaStyles.FindStyle(name); } -XFTextStyle* XFStyleManager::FindTextStyle(OUString name) +XFTextStyle* XFStyleManager::FindTextStyle(const OUString& name) { IXFStyle *pStyle = s_aTextStyles.FindStyle(name); if( pStyle ) diff --git a/lotuswordpro/source/filter/xfilter/xfstylemanager.hxx b/lotuswordpro/source/filter/xfilter/xfstylemanager.hxx index 017735458419..db22ac10803e 100644 --- a/lotuswordpro/source/filter/xfilter/xfstylemanager.hxx +++ b/lotuswordpro/source/filter/xfilter/xfstylemanager.hxx @@ -97,11 +97,11 @@ public: IXFStyle* AddStyle(IXFStyle *pStyle); - IXFStyle* FindStyle(OUString name); + IXFStyle* FindStyle(const OUString& name); - XFParaStyle* FindParaStyle(OUString name); + XFParaStyle* FindParaStyle(const OUString& name); - XFTextStyle* FindTextStyle(OUString name); + XFTextStyle* FindTextStyle(const OUString& name); void SetLineNumberConfig(XFLineNumberConfig *pLNConfig); diff --git a/lotuswordpro/source/filter/xfilter/xftable.cxx b/lotuswordpro/source/filter/xfilter/xftable.cxx index f2da0c601ef6..38a7bd3f5144 100644 --- a/lotuswordpro/source/filter/xfilter/xftable.cxx +++ b/lotuswordpro/source/filter/xfilter/xftable.cxx @@ -123,7 +123,7 @@ XFTable::~XFTable() m_aColumns.clear(); } -void XFTable::SetColumnStyle(sal_Int32 col, OUString style) +void XFTable::SetColumnStyle(sal_Int32 col, const OUString& style) { m_aColumns[col] = style; } diff --git a/lotuswordpro/source/filter/xfilter/xftable.hxx b/lotuswordpro/source/filter/xfilter/xftable.hxx index 387eac7b4c2a..0554b049520e 100644 --- a/lotuswordpro/source/filter/xfilter/xftable.hxx +++ b/lotuswordpro/source/filter/xfilter/xftable.hxx @@ -79,19 +79,19 @@ public: virtual ~XFTable(); public: - void SetTableName(OUString name); + void SetTableName(const OUString& name); - void SetColumnStyle(sal_Int32 col, OUString style); + void SetColumnStyle(sal_Int32 col, const OUString& style); void AddRow(XFRow *pRow); void AddHeaderRow(XFRow *pRow); - void SetDefaultCellStyle(OUString style); + void SetDefaultCellStyle(const OUString& style); - void SetDefaultRowStyle(OUString style); + void SetDefaultRowStyle(const OUString& style); - void SetDefaultColStyle(OUString style); + void SetDefaultColStyle(const OUString& style); public: void SetOwnerCell(XFCell *pCell); @@ -129,7 +129,7 @@ private: OUString m_strDefColStyle; }; -inline void XFTable::SetTableName(OUString name) +inline void XFTable::SetTableName(const OUString& name) { m_strName = name; } @@ -145,17 +145,17 @@ inline sal_Bool XFTable::IsSubTable() return m_bSubTable; } -inline void XFTable::SetDefaultCellStyle(OUString style) +inline void XFTable::SetDefaultCellStyle(const OUString& style) { m_strDefCellStyle = style; } -inline void XFTable::SetDefaultRowStyle(OUString style) +inline void XFTable::SetDefaultRowStyle(const OUString& style) { m_strDefRowStyle = style; } -inline void XFTable::SetDefaultColStyle(OUString style) +inline void XFTable::SetDefaultColStyle(const OUString& style) { m_strDefColStyle = style; } diff --git a/lotuswordpro/source/filter/xfilter/xftextcontent.cxx b/lotuswordpro/source/filter/xfilter/xftextcontent.cxx index 7d47ea79b60d..391b65a67c89 100644 --- a/lotuswordpro/source/filter/xfilter/xftextcontent.cxx +++ b/lotuswordpro/source/filter/xfilter/xftextcontent.cxx @@ -60,7 +60,7 @@ #include "xftextcontent.hxx" #include "ixfstream.hxx" -XFTextContent::XFTextContent(OUString text):m_strText(text) +XFTextContent::XFTextContent(const OUString& text):m_strText(text) { } diff --git a/lotuswordpro/source/filter/xfilter/xftextcontent.hxx b/lotuswordpro/source/filter/xfilter/xftextcontent.hxx index 7f55f2149392..7b4da82416de 100644 --- a/lotuswordpro/source/filter/xfilter/xftextcontent.hxx +++ b/lotuswordpro/source/filter/xfilter/xftextcontent.hxx @@ -74,7 +74,7 @@ class XFTextContent : public XFContent public: XFTextContent(){} - XFTextContent(OUString text); + XFTextContent(const OUString& text); virtual ~XFTextContent(); diff --git a/lotuswordpro/source/filter/xfilter/xftextspan.cxx b/lotuswordpro/source/filter/xfilter/xftextspan.cxx index 6f667bc0e29c..55e37280cb34 100644 --- a/lotuswordpro/source/filter/xfilter/xftextspan.cxx +++ b/lotuswordpro/source/filter/xfilter/xftextspan.cxx @@ -67,8 +67,8 @@ XFTextSpan::XFTextSpan() } -XFTextSpan::XFTextSpan(OUString& text, - OUString& style +XFTextSpan::XFTextSpan(const OUString& text, + const OUString& style ) { Add(text); @@ -99,7 +99,7 @@ void XFTextSpan::Add(IXFContent *pContent) m_aContents.push_back(pContent); } -void XFTextSpan::Add(OUString& text) +void XFTextSpan::Add(const OUString& text) { IXFContent *pText = new XFTextContent(text); Add(pText); diff --git a/lotuswordpro/source/filter/xfilter/xftextspan.hxx b/lotuswordpro/source/filter/xfilter/xftextspan.hxx index 4b5b349d91b9..96dbde40760b 100644 --- a/lotuswordpro/source/filter/xfilter/xftextspan.hxx +++ b/lotuswordpro/source/filter/xfilter/xftextspan.hxx @@ -70,12 +70,12 @@ class XFTextSpan : public XFContent { public: XFTextSpan(); - XFTextSpan(OUString& text, OUString& style ); + XFTextSpan(const OUString& text, const OUString& style ); virtual ~XFTextSpan(); void Add(IXFContent *pContent); - void Add(OUString& text); + void Add(const OUString& text); virtual enumXFContent GetContentType(); virtual void ToXml(IXFStream *pStrm); diff --git a/lotuswordpro/source/filter/xfilter/xftimestyle.hxx b/lotuswordpro/source/filter/xfilter/xftimestyle.hxx index 88977fafe993..5a1a2d95190c 100644 --- a/lotuswordpro/source/filter/xfilter/xftimestyle.hxx +++ b/lotuswordpro/source/filter/xfilter/xftimestyle.hxx @@ -80,7 +80,7 @@ public: void SetLongFmt(sal_Bool bLongFmt); - void SetText(OUString& text); + void SetText(const OUString& text); protected: enumXFDatePart m_ePart; @@ -120,7 +120,7 @@ public: void SetAmPm(sal_Bool bAmPm); - void AddText( OUString part ); + void AddText( const OUString& part ); virtual enumXFStyle GetStyleFamily(); @@ -145,7 +145,7 @@ inline void XFDateTimePart::SetLongFmt(sal_Bool bLongFmt) m_bLongFmt = bLongFmt; } -inline void XFDateTimePart::SetText(OUString& text) +inline void XFDateTimePart::SetText(const OUString& text) { m_strText = text; } @@ -185,7 +185,7 @@ inline void XFTimeStyle::SetAmPm(sal_Bool bAmPm) m_bAmPm = bAmPm; } -inline void XFTimeStyle::AddText( OUString text ) +inline void XFTimeStyle::AddText( const OUString& text ) { XFTimePart part; part.SetPartType(enumXFDateText); -- cgit