summaryrefslogtreecommitdiff
path: root/sc/inc/reffind.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-02-05 22:18:56 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-02-05 22:21:36 -0500
commitabf91e0f25941757b392136b6af260883fa3e46e (patch)
treee9d40a1f3e29df8b5bff8a04a8ae20618cfd928a /sc/inc/reffind.hxx
parent947041e1ab4de4723c537eebd37421d929836700 (diff)
UniString to OUString in ScRefFinder, and a bunch more cleanups.
Some extra code to ensure that OUString's copy method gets correct sub-string lengths. Unlike UniString, OUString's version is more strict. Change-Id: I7daabf2ad587ff44fd6d8c66a02dbecfe519295b
Diffstat (limited to 'sc/inc/reffind.hxx')
-rw-r--r--sc/inc/reffind.hxx33
1 files changed, 15 insertions, 18 deletions
diff --git a/sc/inc/reffind.hxx b/sc/inc/reffind.hxx
index d800b5c21684..1a5b228d11c0 100644
--- a/sc/inc/reffind.hxx
+++ b/sc/inc/reffind.hxx
@@ -25,31 +25,28 @@
class ScDocument;
-// -----------------------------------------------------------------------
-
class ScRefFinder
{
-private:
- String aFormula;
- formula::FormulaGrammar::AddressConvention eConv;
- ScDocument* pDoc;
- ScAddress maPos;
- xub_StrLen nFound;
- xub_StrLen nSelStart;
- xub_StrLen nSelEnd;
+ OUString maFormula;
+ formula::FormulaGrammar::AddressConvention meConv;
+ ScDocument* mpDoc;
+ ScAddress maPos;
+ sal_Int32 mnFound;
+ sal_Int32 mnSelStart;
+ sal_Int32 mnSelEnd;
public:
- ScRefFinder( const String& rFormula, const ScAddress& rPos,
- ScDocument* pDocument = NULL,
- formula::FormulaGrammar::AddressConvention eConvP = formula::FormulaGrammar::CONV_OOO );
+ ScRefFinder(
+ const OUString& rFormula, const ScAddress& rPos, ScDocument* pDoc = NULL,
+ formula::FormulaGrammar::AddressConvention eConvP = formula::FormulaGrammar::CONV_OOO );
~ScRefFinder();
- const String& GetText() const { return aFormula; }
- xub_StrLen GetFound() const { return nFound; }
- xub_StrLen GetSelStart() const { return nSelStart; }
- xub_StrLen GetSelEnd() const { return nSelEnd; }
+ const OUString& GetText() const { return maFormula; }
+ sal_Int32 GetFound() const { return mnFound; }
+ sal_Int32 GetSelStart() const { return mnSelStart; }
+ sal_Int32 GetSelEnd() const { return mnSelEnd; }
- void ToggleRel( xub_StrLen nStartPos, xub_StrLen nEndPos );
+ void ToggleRel( sal_Int32 nStartPos, sal_Int32 nEndPos );
};