diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-02 16:49:24 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-02 19:29:45 +0200 |
commit | eace5e0a1c4bab37699429447b1a17e3c9410503 (patch) | |
tree | 9bd81690b64e4218e565ec0a6a961c89041272e4 | |
parent | e9d8831d18d1120593137632a31b2dad9f8d20f7 (diff) |
remove last uses of XubString in sc
Change-Id: I44c42f0268b0d7c2e77ab7e807610d39b7b7ea56
-rw-r--r-- | include/formula/IControlReferenceHandler.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/dlg/Formula.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/inc/Formula.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/formdlg/formula.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/anyrefdg.hxx | 12 | ||||
-rw-r--r-- | sc/source/ui/inc/formula.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/anyrefdg.cxx | 30 |
7 files changed, 26 insertions, 26 deletions
diff --git a/include/formula/IControlReferenceHandler.hxx b/include/formula/IControlReferenceHandler.hxx index bee4bac3953e..cc22e45a6088 100644 --- a/include/formula/IControlReferenceHandler.hxx +++ b/include/formula/IControlReferenceHandler.hxx @@ -28,7 +28,7 @@ namespace formula class FORMULA_DLLPUBLIC SAL_NO_VTABLE IControlReferenceHandler { public: - virtual void ShowReference(const String& _sRef) = 0; + virtual void ShowReference(const OUString& _sRef) = 0; virtual void HideReference( sal_Bool bDoneRefMode = sal_True ) = 0; virtual void ReleaseFocus( RefEdit* pEdit, RefButton* pButton = NULL ) = 0; virtual void ToggleCollapsed( RefEdit* pEdit, RefButton* pButton = NULL ) = 0; diff --git a/reportdesign/source/ui/dlg/Formula.cxx b/reportdesign/source/ui/dlg/Formula.cxx index 84330da1ea85..6abf2f1ba6d2 100644 --- a/reportdesign/source/ui/dlg/Formula.cxx +++ b/reportdesign/source/ui/dlg/Formula.cxx @@ -173,7 +173,7 @@ IFunctionManager* FormulaDialog::getFunctionManager() return m_aFunctionManager.get(); } // ----------------------------------------------------------------------------- -void FormulaDialog::ShowReference(const String& /*_sRef*/) +void FormulaDialog::ShowReference(const OUString& /*_sRef*/) { } // ----------------------------------------------------------------------------- diff --git a/reportdesign/source/ui/inc/Formula.hxx b/reportdesign/source/ui/inc/Formula.hxx index fcfbc6c82e62..c551bbdf95e0 100644 --- a/reportdesign/source/ui/inc/Formula.hxx +++ b/reportdesign/source/ui/inc/Formula.hxx @@ -87,7 +87,7 @@ public: virtual ::std::auto_ptr<formula::FormulaTokenArray> convertToTokenArray(const ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken >& _aTokenList); // IControlReferenceHandler - virtual void ShowReference(const String& _sRef); + virtual void ShowReference(const OUString& _sRef); virtual void HideReference( sal_Bool bDoneRefMode = sal_True ); virtual void ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ); virtual void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ); diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx index 37ee0e2a0bd9..25ae7d03e6a1 100644 --- a/sc/source/ui/formdlg/formula.cxx +++ b/sc/source/ui/formdlg/formula.cxx @@ -497,7 +497,7 @@ void ScFormulaDlg::showReference(const String& _sFormula) { ShowReference(_sFormula); } -void ScFormulaDlg::ShowReference(const String& _sFormula) +void ScFormulaDlg::ShowReference(const OUString& _sFormula) { m_aHelper.ShowReference(_sFormula); } diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx index bba97a7bc02f..660de08d3765 100644 --- a/sc/source/ui/inc/anyrefdg.hxx +++ b/sc/source/ui/inc/anyrefdg.hxx @@ -75,12 +75,12 @@ public: ScFormulaReferenceHelper(IAnyRefDialog* _pDlg,SfxBindings* _pBindings); ~ScFormulaReferenceHelper(); - void ShowSimpleReference( const XubString& rStr ); - void ShowFormulaReference( const XubString& rStr ); + void ShowSimpleReference(const OUString& rStr); + void ShowFormulaReference(const OUString& rStr); bool ParseWithNames( ScRangeList& rRanges, const String& rStr, ScDocument* pDoc ); void Init(); - void ShowReference( const XubString& rStr ); + void ShowReference(const OUString& rStr); void ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ); void HideReference( bool bDoneRefMode = true ); void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ); @@ -136,8 +136,8 @@ protected: virtual void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ); virtual void RefInputDone( sal_Bool bForced = false ); - void ShowSimpleReference( const XubString& rStr ); - void ShowFormulaReference( const XubString& rStr ); + void ShowSimpleReference(const OUString& rStr); + void ShowFormulaReference(const OUString& rStr); bool ParseWithNames( ScRangeList& rRanges, const String& rStr, ScDocument* pDoc ); @@ -155,7 +155,7 @@ public: virtual sal_Bool IsTableLocked() const; virtual sal_Bool IsDocAllowed( SfxObjectShell* pDocSh ) const; - virtual void ShowReference( const XubString& rStr ); + virtual void ShowReference(const OUString& rStr); virtual void HideReference( sal_Bool bDoneRefMode = sal_True ); virtual void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ); diff --git a/sc/source/ui/inc/formula.hxx b/sc/source/ui/inc/formula.hxx index 2082bc99ec69..0a662e18da0d 100644 --- a/sc/source/ui/inc/formula.hxx +++ b/sc/source/ui/inc/formula.hxx @@ -86,7 +86,7 @@ public: virtual sal_Bool Close(); // sc::IAnyRefDialog - virtual void ShowReference(const String& _sRef); + virtual void ShowReference(const OUString& _sRef); virtual void HideReference( sal_Bool bDoneRefMode = sal_True ); virtual void SetReference( const ScRange& rRef, ScDocument* pD ); diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx index 69f6f535cd3c..1cd114ef4784 100644 --- a/sc/source/ui/miscdlgs/anyrefdg.cxx +++ b/sc/source/ui/miscdlgs/anyrefdg.cxx @@ -112,7 +112,7 @@ void ScFormulaReferenceHelper::enableInput( bool bEnable ) } } // ----------------------------------------------------------------------------- -void ScFormulaReferenceHelper::ShowSimpleReference( const XubString& rStr ) +void ScFormulaReferenceHelper::ShowSimpleReference(const OUString& rStr) { if( bEnableColorRef ) { @@ -172,7 +172,7 @@ bool ScFormulaReferenceHelper::ParseWithNames( ScRangeList& rRanges, const Strin return !bError; } // ----------------------------------------------------------------------------- -void ScFormulaReferenceHelper::ShowFormulaReference( const XubString& rStr ) +void ScFormulaReferenceHelper::ShowFormulaReference(const OUString& rStr) { if( bEnableColorRef) { @@ -251,20 +251,20 @@ void ScFormulaReferenceHelper::HideReference( bool bDoneRefMode ) } } // ----------------------------------------------------------------------------- -void ScFormulaReferenceHelper::ShowReference( const XubString& rStr ) +void ScFormulaReferenceHelper::ShowReference(const OUString& rStr) { if( bEnableColorRef ) { - if( rStr.Search('(')!=STRING_NOTFOUND || - rStr.Search('+')!=STRING_NOTFOUND || - rStr.Search('*')!=STRING_NOTFOUND || - rStr.Search('-')!=STRING_NOTFOUND || - rStr.Search('/')!=STRING_NOTFOUND || - rStr.Search('&')!=STRING_NOTFOUND || - rStr.Search('<')!=STRING_NOTFOUND || - rStr.Search('>')!=STRING_NOTFOUND || - rStr.Search('=')!=STRING_NOTFOUND || - rStr.Search('^')!=STRING_NOTFOUND) + if( rStr.indexOf('(') != -1 || + rStr.indexOf('+') != -1 || + rStr.indexOf('*') != -1 || + rStr.indexOf('-') != -1 || + rStr.indexOf('/') != -1 || + rStr.indexOf('&') != -1 || + rStr.indexOf('<') != -1 || + rStr.indexOf('>') != -1 || + rStr.indexOf('=') != -1 || + rStr.indexOf('^') != -1 ) { ShowFormulaReference(rStr); } @@ -1014,9 +1014,9 @@ void ScRefHandler::HideReference( sal_Bool bDoneRefMode ) m_aHelper.HideReference( bDoneRefMode ); } // ----------------------------------------------------------------------------- -void ScRefHandler::ShowReference( const XubString& rStr ) +void ScRefHandler::ShowReference(const OUString& rStr) { - m_aHelper.ShowReference( rStr ); + m_aHelper.ShowReference(rStr); } // ----------------------------------------------------------------------------- void ScRefHandler::ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton ) |