Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8c787dec
Kaydet (Commit)
8c787dec
authored
Kas 29, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert ScInputHandler::InputGetSelection from xub_StrLen -> sal_Int32
Change-Id: If01d21824964a0fefecc34bcf8b0b3910d2b4d48
üst
35afee4d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
23 deletions
+20
-23
scmod.hxx
sc/inc/scmod.hxx
+2
-2
inputhdl.cxx
sc/source/ui/app/inputhdl.cxx
+2
-2
scmod.cxx
sc/source/ui/app/scmod.cxx
+2
-2
formula.cxx
sc/source/ui/formdlg/formula.cxx
+3
-6
inputhdl.hxx
sc/source/ui/inc/inputhdl.hxx
+11
-11
No files found.
sc/inc/scmod.hxx
Dosyayı görüntüle @
8c787dec
...
@@ -214,8 +214,8 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO
...
@@ -214,8 +214,8 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO
void
ViewShellGone
(
ScTabViewShell
*
pViewSh
);
void
ViewShellGone
(
ScTabViewShell
*
pViewSh
);
void
ViewShellChanged
();
void
ViewShellChanged
();
// communication with function-autopilot
// communication with function-autopilot
void
InputGetSelection
(
xub_StrLen
&
rStart
,
xub_StrLen
&
rEnd
);
void
InputGetSelection
(
sal_Int32
&
rStart
,
sal_Int32
&
rEnd
);
void
InputSetSelection
(
xub_StrLen
nStart
,
xub_StrLen
nEnd
);
void
InputSetSelection
(
sal_Int32
nStart
,
sal_Int32
nEnd
);
void
InputReplaceSelection
(
const
OUString
&
rStr
);
void
InputReplaceSelection
(
const
OUString
&
rStr
);
OUString
InputGetFormulaStr
();
OUString
InputGetFormulaStr
();
void
ActivateInputWindow
(
const
OUString
*
pStr
=
NULL
,
void
ActivateInputWindow
(
const
OUString
*
pStr
=
NULL
,
...
...
sc/source/ui/app/inputhdl.cxx
Dosyayı görüntüle @
8c787dec
...
@@ -3817,7 +3817,7 @@ bool ScInputHandler::GetTextAndFields( ScEditEngineDefaulter& rDestEngine )
...
@@ -3817,7 +3817,7 @@ bool ScInputHandler::GetTextAndFields( ScEditEngineDefaulter& rDestEngine )
// InputGetSelection, InputSetSelection, InputReplaceSelection, InputGetFormulaStr
// InputGetSelection, InputSetSelection, InputReplaceSelection, InputGetFormulaStr
//------------------------------------------------------------------------
//------------------------------------------------------------------------
void
ScInputHandler
::
InputGetSelection
(
xub_StrLen
&
rStart
,
xub_StrLen
&
rEnd
)
void
ScInputHandler
::
InputGetSelection
(
sal_Int32
&
rStart
,
sal_Int32
&
rEnd
)
{
{
rStart
=
nFormSelStart
;
rStart
=
nFormSelStart
;
rEnd
=
nFormSelEnd
;
rEnd
=
nFormSelEnd
;
...
@@ -3853,7 +3853,7 @@ EditView* ScInputHandler::GetFuncEditView()
...
@@ -3853,7 +3853,7 @@ EditView* ScInputHandler::GetFuncEditView()
//------------------------------------------------------------------------
//------------------------------------------------------------------------
void
ScInputHandler
::
InputSetSelection
(
xub_StrLen
nStart
,
xub_StrLen
nEnd
)
void
ScInputHandler
::
InputSetSelection
(
sal_Int32
nStart
,
sal_Int32
nEnd
)
{
{
if
(
nStart
<=
nEnd
)
if
(
nStart
<=
nEnd
)
{
{
...
...
sc/source/ui/app/scmod.cxx
Dosyayı görüntüle @
8c787dec
...
@@ -1522,14 +1522,14 @@ ScInputHandler* ScModule::GetRefInputHdl()
...
@@ -1522,14 +1522,14 @@ ScInputHandler* ScModule::GetRefInputHdl()
//------------------------------------------------------------------------
//------------------------------------------------------------------------
// Olk's Krempel:
// Olk's Krempel:
void
ScModule
::
InputGetSelection
(
xub_StrLen
&
rStart
,
xub_StrLen
&
rEnd
)
void
ScModule
::
InputGetSelection
(
sal_Int32
&
rStart
,
sal_Int32
&
rEnd
)
{
{
ScInputHandler
*
pHdl
=
GetInputHdl
();
ScInputHandler
*
pHdl
=
GetInputHdl
();
if
(
pHdl
)
if
(
pHdl
)
pHdl
->
InputGetSelection
(
rStart
,
rEnd
);
pHdl
->
InputGetSelection
(
rStart
,
rEnd
);
}
}
void
ScModule
::
InputSetSelection
(
xub_StrLen
nStart
,
xub_StrLen
nEnd
)
void
ScModule
::
InputSetSelection
(
sal_Int32
nStart
,
sal_Int32
nEnd
)
{
{
ScInputHandler
*
pHdl
=
GetInputHdl
();
ScInputHandler
*
pHdl
=
GetInputHdl
();
if
(
pHdl
)
if
(
pHdl
)
...
...
sc/source/ui/formdlg/formula.cxx
Dosyayı görüntüle @
8c787dec
...
@@ -156,7 +156,7 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
...
@@ -156,7 +156,7 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
{
{
pScMod
->
InputReplaceSelection
(
aFormula
);
pScMod
->
InputReplaceSelection
(
aFormula
);
pScMod
->
InputSetSelection
(
nFStart
,
nFEnd
);
pScMod
->
InputSetSelection
(
nFStart
,
nFEnd
);
xub_StrLen
PrivStart
,
PrivEnd
;
sal_Int32
PrivStart
,
PrivEnd
;
pScMod
->
InputGetSelection
(
PrivStart
,
PrivEnd
);
pScMod
->
InputGetSelection
(
PrivStart
,
PrivEnd
);
eMode
=
SetMeText
(
pScMod
->
InputGetFormulaStr
(),
PrivStart
,
PrivEnd
,
bMatrix
,
sal_True
,
sal_True
);
eMode
=
SetMeText
(
pScMod
->
InputGetFormulaStr
(),
PrivStart
,
PrivEnd
,
bMatrix
,
sal_True
,
sal_True
);
...
@@ -174,7 +174,7 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
...
@@ -174,7 +174,7 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
pScMod
->
InputReplaceSelection
(
aNewFormula
);
pScMod
->
InputReplaceSelection
(
aNewFormula
);
pScMod
->
InputSetSelection
(
1
,
aNewFormula
.
getLength
()
+
1
);
pScMod
->
InputSetSelection
(
1
,
aNewFormula
.
getLength
()
+
1
);
xub_StrLen
PrivStart
,
PrivEnd
;
sal_Int32
PrivStart
,
PrivEnd
;
pScMod
->
InputGetSelection
(
PrivStart
,
PrivEnd
);
pScMod
->
InputGetSelection
(
PrivStart
,
PrivEnd
);
SetMeText
(
pScMod
->
InputGetFormulaStr
(),
PrivStart
,
PrivEnd
,
bMatrix
,
false
,
false
);
SetMeText
(
pScMod
->
InputGetFormulaStr
(),
PrivStart
,
PrivEnd
,
bMatrix
,
false
,
false
);
...
@@ -635,10 +635,7 @@ void ScFormulaDlg::setSelection(sal_Int32 _nStart, sal_Int32 _nEnd)
...
@@ -635,10 +635,7 @@ void ScFormulaDlg::setSelection(sal_Int32 _nStart, sal_Int32 _nEnd)
void
ScFormulaDlg
::
getSelection
(
sal_Int32
&
_nStart
,
sal_Int32
&
_nEnd
)
const
void
ScFormulaDlg
::
getSelection
(
sal_Int32
&
_nStart
,
sal_Int32
&
_nEnd
)
const
{
{
ScModule
*
pScMod
=
SC_MOD
();
ScModule
*
pScMod
=
SC_MOD
();
sal_uInt16
nStart1
=
_nStart
,
nEnd1
=
_nEnd
;
pScMod
->
InputGetSelection
(
_nStart
,
_nEnd
);
pScMod
->
InputGetSelection
(
nStart1
,
nEnd1
);
_nStart
=
nStart1
;
_nEnd
=
nEnd1
;
}
}
OUString
ScFormulaDlg
::
getCurrentFormula
()
const
OUString
ScFormulaDlg
::
getCurrentFormula
()
const
{
{
...
...
sc/source/ui/inc/inputhdl.hxx
Dosyayı görüntüle @
8c787dec
...
@@ -69,19 +69,19 @@ private:
...
@@ -69,19 +69,19 @@ private:
ScTypedCaseStrSet
::
const_iterator
miAutoPosFormula
;
ScTypedCaseStrSet
::
const_iterator
miAutoPosFormula
;
Window
*
pTipVisibleParent
;
Window
*
pTipVisibleParent
;
sal_uLong
nTipVisible
;
sal_uLong
nTipVisible
;
Window
*
pTipVisibleSecParent
;
Window
*
pTipVisibleSecParent
;
sal_uLong
nTipVisibleSec
;
sal_uLong
nTipVisibleSec
;
OUString
aManualTip
;
OUString
aManualTip
;
OUString
aAutoSearch
;
OUString
aAutoSearch
;
OUString
aCurrentText
;
OUString
aCurrentText
;
OUString
aFormText
;
// for autopilot function
OUString
aFormText
;
// for autopilot function
xub_StrLen
nFormSelStart
;
// Selection for autopilot function
sal_Int32
nFormSelStart
;
// Selection for autopilot function
xub_StrLen
nFormSelEnd
;
sal_Int32
nFormSelEnd
;
sal_uInt16
nAutoPar
;
// autom.parentheses than can be overwritten
sal_uInt16
nAutoPar
;
// autom.parentheses than can be overwritten
ScAddress
aCursorPos
;
ScAddress
aCursorPos
;
ScInputMode
eMode
;
ScInputMode
eMode
;
...
@@ -230,8 +230,8 @@ public:
...
@@ -230,8 +230,8 @@ public:
void
UpdateRange
(
sal_uInt16
nIndex
,
const
ScRange
&
rNew
);
void
UpdateRange
(
sal_uInt16
nIndex
,
const
ScRange
&
rNew
);
// Communication with the autopilot function
// Communication with the autopilot function
void
InputGetSelection
(
xub_StrLen
&
rStart
,
xub_StrLen
&
rEnd
);
void
InputGetSelection
(
sal_Int32
&
rStart
,
sal_Int32
&
rEnd
);
void
InputSetSelection
(
xub_StrLen
nStart
,
xub_StrLen
nEnd
);
void
InputSetSelection
(
sal_Int32
nStart
,
sal_Int32
nEnd
);
void
InputReplaceSelection
(
const
OUString
&
rStr
);
void
InputReplaceSelection
(
const
OUString
&
rStr
);
bool
IsFormulaMode
()
const
{
return
bFormulaMode
;
}
bool
IsFormulaMode
()
const
{
return
bFormulaMode
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment