summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-29 13:56:09 +0200
committerNoel Grandin <noel@peralex.com>2013-12-03 11:34:46 +0200
commit35afee4de18437e4491e04254f21b50372b08ac4 (patch)
tree96f8570cb2db7c9845585fd85625abe1a427536d /sc
parentaf63fbbfa59b7f9a22c55aade2c7e3d95952bbe2 (diff)
convert IFormulaEditorHelper::*Selection methods from xub_StrLen to sal_Int32
Change-Id: Ia7a6241c651106427e636bdc08085b97a2a41407
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/formdlg/formula.cxx9
-rw-r--r--sc/source/ui/inc/formula.hxx4
2 files changed, 8 insertions, 5 deletions
diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx
index 70571d23e22e..b2a22eefbf3d 100644
--- a/sc/source/ui/formdlg/formula.cxx
+++ b/sc/source/ui/formdlg/formula.cxx
@@ -627,15 +627,18 @@ void ScFormulaDlg::setCurrentFormula(const OUString& _sReplacement)
}
pScMod->InputReplaceSelection(_sReplacement);
}
-void ScFormulaDlg::setSelection(xub_StrLen _nStart,xub_StrLen _nEnd)
+void ScFormulaDlg::setSelection(sal_Int32 _nStart, sal_Int32 _nEnd)
{
ScModule* pScMod = SC_MOD();
pScMod->InputSetSelection( _nStart, _nEnd );
}
-void ScFormulaDlg::getSelection(xub_StrLen& _nStart,xub_StrLen& _nEnd) const
+void ScFormulaDlg::getSelection(sal_Int32& _nStart, sal_Int32& _nEnd) const
{
ScModule* pScMod = SC_MOD();
- pScMod->InputGetSelection( _nStart, _nEnd );
+ sal_uInt16 nStart1 = _nStart, nEnd1 = _nEnd;
+ pScMod->InputGetSelection( nStart1, nEnd1 );
+ _nStart = nStart1;
+ _nEnd = nEnd1;
}
OUString ScFormulaDlg::getCurrentFormula() const
{
diff --git a/sc/source/ui/inc/formula.hxx b/sc/source/ui/inc/formula.hxx
index bedc9596fc10..9209224287b2 100644
--- a/sc/source/ui/inc/formula.hxx
+++ b/sc/source/ui/inc/formula.hxx
@@ -73,8 +73,8 @@ public:
virtual void switchBack();
virtual formula::FormEditData* getFormEditData() const;
virtual void setCurrentFormula(const OUString& _sReplacement);
- virtual void setSelection(xub_StrLen _nStart,xub_StrLen _nEnd);
- virtual void getSelection(xub_StrLen& _nStart,xub_StrLen& _nEnd) const;
+ virtual void setSelection(sal_Int32 _nStart, sal_Int32 _nEnd);
+ virtual void getSelection(sal_Int32& _nStart, sal_Int32& _nEnd) const;
virtual OUString getCurrentFormula() const;
virtual formula::IFunctionManager* getFunctionManager();