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
32efd885
Kaydet (Commit)
32efd885
authored
Nis 22, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
formula: sal_Bool->bool
Change-Id: I3280b4d4b02e6a6fa22bc250e56a3c6ae77fc675
üst
206e224f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
88 additions
and
88 deletions
+88
-88
ControlHelper.hxx
formula/source/ui/dlg/ControlHelper.hxx
+1
-1
FormulaHelper.cxx
formula/source/ui/dlg/FormulaHelper.cxx
+16
-16
formula.cxx
formula/source/ui/dlg/formula.cxx
+46
-46
funcutl.cxx
formula/source/ui/dlg/funcutl.cxx
+10
-10
parawin.cxx
formula/source/ui/dlg/parawin.cxx
+1
-1
parawin.hxx
formula/source/ui/dlg/parawin.hxx
+3
-3
structpg.cxx
formula/source/ui/dlg/structpg.cxx
+8
-8
structpg.hxx
formula/source/ui/dlg/structpg.hxx
+3
-3
No files found.
formula/source/ui/dlg/ControlHelper.hxx
Dosyayı görüntüle @
32efd885
...
@@ -50,7 +50,7 @@ private:
...
@@ -50,7 +50,7 @@ private:
MultiLineEdit
*
pMEdit
;
MultiLineEdit
*
pMEdit
;
Link
aSelChangedLink
;
Link
aSelChangedLink
;
Selection
aOldSel
;
Selection
aOldSel
;
sal_B
ool
bMouseFlag
;
b
ool
bMouseFlag
;
DECL_LINK
(
ChangedHdl
,
void
*
);
DECL_LINK
(
ChangedHdl
,
void
*
);
protected
:
protected
:
...
...
formula/source/ui/dlg/FormulaHelper.cxx
Dosyayı görüntüle @
32efd885
...
@@ -130,7 +130,7 @@ void FormulaHelper::FillArgStrings( const OUString& rFormula,
...
@@ -130,7 +130,7 @@ void FormulaHelper::FillArgStrings( const OUString& rFormula,
sal_Int32
nStart
=
0
;
sal_Int32
nStart
=
0
;
sal_Int32
nEnd
=
0
;
sal_Int32
nEnd
=
0
;
sal_uInt16
i
;
sal_uInt16
i
;
sal_Bool
bLast
=
sal_F
alse
;
bool
bLast
=
f
alse
;
for
(
i
=
0
;
i
<
nArgs
&&
!
bLast
;
i
++
)
for
(
i
=
0
;
i
<
nArgs
&&
!
bLast
;
i
++
)
{
{
...
@@ -143,7 +143,7 @@ void FormulaHelper::FillArgStrings( const OUString& rFormula,
...
@@ -143,7 +143,7 @@ void FormulaHelper::FillArgStrings( const OUString& rFormula,
if
(
nEnd
!=
nStart
)
if
(
nEnd
!=
nStart
)
_rArgs
.
push_back
(
rFormula
.
copy
(
nStart
,
nEnd
-
1
-
nStart
));
_rArgs
.
push_back
(
rFormula
.
copy
(
nStart
,
nEnd
-
1
-
nStart
));
else
else
_rArgs
.
push_back
(
OUString
()),
bLast
=
sal_T
rue
;
_rArgs
.
push_back
(
OUString
()),
bLast
=
t
rue
;
}
}
else
else
{
{
...
@@ -175,10 +175,10 @@ void FormulaHelper::GetArgStrings( ::std::vector< OUString >& _rArgs,
...
@@ -175,10 +175,10 @@ void FormulaHelper::GetArgStrings( ::std::vector< OUString >& _rArgs,
inline
sal_B
ool
IsFormulaText
(
const
CharClass
*
_pCharClass
,
const
OUString
&
rStr
,
sal_Int32
nPos
)
inline
b
ool
IsFormulaText
(
const
CharClass
*
_pCharClass
,
const
OUString
&
rStr
,
sal_Int32
nPos
)
{
{
if
(
_pCharClass
->
isLetterNumeric
(
rStr
,
nPos
)
)
if
(
_pCharClass
->
isLetterNumeric
(
rStr
,
nPos
)
)
return
sal_T
rue
;
return
t
rue
;
else
else
{
// In internationalized versions function names may contain a dot
{
// In internationalized versions function names may contain a dot
// and in every version also an underscore... ;-)
// and in every version also an underscore... ;-)
...
@@ -201,11 +201,11 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
...
@@ -201,11 +201,11 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
sal_Int32
nFStart
=
FUNC_NOTFOUND
;
sal_Int32
nFStart
=
FUNC_NOTFOUND
;
sal_Int32
nParPos
=
nStart
;
sal_Int32
nParPos
=
nStart
;
sal_B
ool
bRepeat
,
bFound
;
b
ool
bRepeat
,
bFound
;
do
do
{
{
bFound
=
sal_F
alse
;
bFound
=
f
alse
;
bRepeat
=
sal_F
alse
;
bRepeat
=
f
alse
;
if
(
bBack
)
if
(
bBack
)
{
{
...
@@ -219,7 +219,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
...
@@ -219,7 +219,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
if
(
nParPos
>
0
)
if
(
nParPos
>
0
)
nParPos
--
;
nParPos
--
;
}
}
else
if
(
(
bFound
=
(
rFormula
[
nParPos
]
==
'('
)
)
==
sal_F
alse
)
else
if
(
(
bFound
=
(
rFormula
[
nParPos
]
==
'('
)
)
==
f
alse
)
nParPos
--
;
nParPos
--
;
}
}
}
}
...
@@ -234,7 +234,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
...
@@ -234,7 +234,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
nParPos
++
;
nParPos
++
;
nParPos
++
;
nParPos
++
;
}
}
else
if
(
(
bFound
=
(
rFormula
[
nParPos
]
==
'('
)
)
==
sal_F
alse
)
else
if
(
(
bFound
=
(
rFormula
[
nParPos
]
==
'('
)
)
==
f
alse
)
nParPos
++
;
nParPos
++
;
}
}
}
}
...
@@ -259,13 +259,13 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
...
@@ -259,13 +259,13 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
}
}
else
// Brackets without function -> keep searching
else
// Brackets without function -> keep searching
{
{
bRepeat
=
sal_T
rue
;
bRepeat
=
t
rue
;
if
(
!
bBack
)
if
(
!
bBack
)
nParPos
++
;
nParPos
++
;
else
if
(
nParPos
>
0
)
else
if
(
nParPos
>
0
)
nParPos
--
;
nParPos
--
;
else
else
bRepeat
=
sal_F
alse
;
bRepeat
=
f
alse
;
}
}
}
}
else
// No brackets found
else
// No brackets found
...
@@ -291,7 +291,7 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
...
@@ -291,7 +291,7 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
short
nParCount
=
0
;
short
nParCount
=
0
;
bool
bInArray
=
false
;
bool
bInArray
=
false
;
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
while
(
!
bFound
&&
(
nStart
<
nStrLen
)
)
while
(
!
bFound
&&
(
nStart
<
nStrLen
)
)
{
{
...
@@ -309,10 +309,10 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
...
@@ -309,10 +309,10 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
{
{
nParCount
--
;
nParCount
--
;
if
(
nParCount
==
0
)
if
(
nParCount
==
0
)
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
else
if
(
nParCount
<
0
)
else
if
(
nParCount
<
0
)
{
{
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
nStart
--
;
// read one too far
nStart
--
;
// read one too far
}
}
}
}
...
@@ -328,7 +328,7 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
...
@@ -328,7 +328,7 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
{
{
if
(
!
bInArray
&&
nParCount
==
0
)
if
(
!
bInArray
&&
nParCount
==
0
)
{
{
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
nStart
--
;
// read one too far
nStart
--
;
// read one too far
}
}
}
}
...
@@ -349,7 +349,7 @@ sal_Int32 FormulaHelper::GetArgStart( const OUString& rStr, sal_Int32 nStart, sa
...
@@ -349,7 +349,7 @@ sal_Int32 FormulaHelper::GetArgStart( const OUString& rStr, sal_Int32 nStart, sa
short
nParCount
=
0
;
short
nParCount
=
0
;
bool
bInArray
=
false
;
bool
bInArray
=
false
;
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
while
(
!
bFound
&&
(
nStart
<
nStrLen
)
)
while
(
!
bFound
&&
(
nStart
<
nStrLen
)
)
{
{
...
...
formula/source/ui/dlg/formula.cxx
Dosyayı görüntüle @
32efd885
...
@@ -76,8 +76,8 @@ namespace formula
...
@@ -76,8 +76,8 @@ namespace formula
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
);
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
);
void
RefInputDoneAfter
(
bool
bForced
);
void
RefInputDoneAfter
(
bool
bForced
);
sal_B
ool
CalcValue
(
const
OUString
&
rStrExp
,
OUString
&
rStrResult
);
b
ool
CalcValue
(
const
OUString
&
rStrExp
,
OUString
&
rStrResult
);
sal_B
ool
CalcStruct
(
const
OUString
&
rStrExp
);
b
ool
CalcStruct
(
const
OUString
&
rStrExp
);
void
UpdateValues
();
void
UpdateValues
();
void
DeleteArgs
();
void
DeleteArgs
();
sal_Int32
GetFunctionPos
(
sal_Int32
nPos
);
sal_Int32
GetFunctionPos
(
sal_Int32
nPos
);
...
@@ -87,8 +87,8 @@ namespace formula
...
@@ -87,8 +87,8 @@ namespace formula
void
fillTree
(
IStructHelper
*
_pTree
);
void
fillTree
(
IStructHelper
*
_pTree
);
void
UpdateTokenArray
(
const
OUString
&
rStrExp
);
void
UpdateTokenArray
(
const
OUString
&
rStrExp
);
OUString
RepairFormula
(
const
OUString
&
aFormula
);
OUString
RepairFormula
(
const
OUString
&
aFormula
);
void
FillDialog
(
sal_Bool
nFlag
=
sal_T
rue
);
void
FillDialog
(
bool
nFlag
=
t
rue
);
void
EditNextFunc
(
sal_B
ool
bForward
,
sal_Int32
nFStart
=
NOT_FOUND
);
void
EditNextFunc
(
b
ool
bForward
,
sal_Int32
nFStart
=
NOT_FOUND
);
void
EditThisFunc
(
sal_Int32
nFStart
);
void
EditThisFunc
(
sal_Int32
nFStart
);
void
StoreFormEditData
(
FormEditData
*
pEditData
);
void
StoreFormEditData
(
FormEditData
*
pEditData
);
...
@@ -100,7 +100,7 @@ namespace formula
...
@@ -100,7 +100,7 @@ namespace formula
void
UpdateSelection
();
void
UpdateSelection
();
void
DoEnter
(
bool
bOk
);
void
DoEnter
(
bool
bOk
);
void
FillListboxes
();
void
FillListboxes
();
void
FillControls
(
sal_Bool
&
rbNext
,
sal_B
ool
&
rbPrev
);
void
FillControls
(
bool
&
rbNext
,
b
ool
&
rbPrev
);
FormulaDlgMode
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
bool
bMatrix
,
bool
_bSelect
,
bool
_bUpdate
);
FormulaDlgMode
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
bool
bMatrix
,
bool
_bSelect
,
bool
_bUpdate
);
void
SetMeText
(
const
OUString
&
_sText
);
void
SetMeText
(
const
OUString
&
_sText
);
...
@@ -180,9 +180,9 @@ namespace formula
...
@@ -180,9 +180,9 @@ namespace formula
FuncPage
*
pFuncPage
;
FuncPage
*
pFuncPage
;
StructPage
*
pStructPage
;
StructPage
*
pStructPage
;
OUString
aOldFormula
;
OUString
aOldFormula
;
sal_B
ool
bStructUpdate
;
b
ool
bStructUpdate
;
MultiLineEdit
*
pMEdit
;
MultiLineEdit
*
pMEdit
;
sal_B
ool
bUserMatrixFlag
;
b
ool
bUserMatrixFlag
;
Timer
aTimer
;
Timer
aTimer
;
const
OUString
aTitle1
;
const
OUString
aTitle1
;
...
@@ -196,12 +196,12 @@ namespace formula
...
@@ -196,12 +196,12 @@ namespace formula
OString
aOldHelp
;
OString
aOldHelp
;
OString
aOldUnique
;
OString
aOldUnique
;
OString
aActivWinId
;
OString
aActivWinId
;
sal_B
ool
bIsShutDown
;
b
ool
bIsShutDown
;
Font
aFntBold
;
Font
aFntBold
;
Font
aFntLight
;
Font
aFntLight
;
sal_uInt16
nEdFocus
;
sal_uInt16
nEdFocus
;
sal_B
ool
bEditFlag
;
b
ool
bEditFlag
;
const
IFunctionDescription
*
pFuncDesc
;
const
IFunctionDescription
*
pFuncDesc
;
sal_Int32
nArgs
;
sal_Int32
nArgs
;
::
std
::
vector
<
OUString
>
m_aArguments
;
::
std
::
vector
<
OUString
>
m_aArguments
;
...
@@ -257,13 +257,13 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
...
@@ -257,13 +257,13 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
pTheRefEdit
(
NULL
),
pTheRefEdit
(
NULL
),
pTheRefButton
(
NULL
),
pTheRefButton
(
NULL
),
pMEdit
(
NULL
),
pMEdit
(
NULL
),
bUserMatrixFlag
(
sal_F
alse
),
bUserMatrixFlag
(
f
alse
),
aTitle1
(
ModuleRes
(
STR_TITLE1
)
),
// local resource
aTitle1
(
ModuleRes
(
STR_TITLE1
)
),
// local resource
aTitle2
(
ModuleRes
(
STR_TITLE2
)
),
// local resource
aTitle2
(
ModuleRes
(
STR_TITLE2
)
),
// local resource
aTxtEnd
(
ModuleRes
(
STR_END
)
),
// local resource
aTxtEnd
(
ModuleRes
(
STR_END
)
),
// local resource
aTxtOk
(
aBtnEnd
.
GetText
()
),
aTxtOk
(
aBtnEnd
.
GetText
()
),
m_aFormulaHelper
(
_pFunctionMgr
),
m_aFormulaHelper
(
_pFunctionMgr
),
bIsShutDown
(
sal_F
alse
),
bIsShutDown
(
f
alse
),
nEdFocus
(
0
),
nEdFocus
(
0
),
pFuncDesc
(
NULL
),
pFuncDesc
(
NULL
),
nArgs
(
0
)
nArgs
(
0
)
...
@@ -283,8 +283,8 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
...
@@ -283,8 +283,8 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
m_aEditHelpId
=
pMEdit
->
GetHelpId
();
m_aEditHelpId
=
pMEdit
->
GetHelpId
();
pMEdit
->
SetUniqueId
(
m_aEditHelpId
);
pMEdit
->
SetUniqueId
(
m_aEditHelpId
);
bEditFlag
=
sal_F
alse
;
bEditFlag
=
f
alse
;
bStructUpdate
=
sal_T
rue
;
bStructUpdate
=
t
rue
;
Point
aPos
=
aGEdit
.
GetPosPixel
();
Point
aPos
=
aGEdit
.
GetPosPixel
();
pParaWin
->
SetPosPixel
(
aPos
);
pParaWin
->
SetPosPixel
(
aPos
);
pParaWin
->
SetArgModifiedHdl
(
LINK
(
this
,
FormulaDlg_Impl
,
ModifyHdl
)
);
pParaWin
->
SetArgModifiedHdl
(
LINK
(
this
,
FormulaDlg_Impl
,
ModifyHdl
)
);
...
@@ -343,7 +343,7 @@ FormulaDlg_Impl::~FormulaDlg_Impl()
...
@@ -343,7 +343,7 @@ FormulaDlg_Impl::~FormulaDlg_Impl()
aTimer
.
SetTimeoutHdl
(
Link
());
aTimer
.
SetTimeoutHdl
(
Link
());
aTimer
.
Stop
();
aTimer
.
Stop
();
}
// if(aTimer.IsActive())
}
// if(aTimer.IsActive())
bIsShutDown
=
sal_T
rue
;
// Set it in order to PreNotify not to save GetFocus.
bIsShutDown
=
t
rue
;
// Set it in order to PreNotify not to save GetFocus.
aTabCtrl
.
RemovePage
(
TP_FUNCTION
);
aTabCtrl
.
RemovePage
(
TP_FUNCTION
);
aTabCtrl
.
RemovePage
(
TP_STRUCT
);
aTabCtrl
.
RemovePage
(
TP_STRUCT
);
...
@@ -456,7 +456,7 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
...
@@ -456,7 +456,7 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
const
sal_Unicode
sep
=
m_pHelper
->
getFunctionManager
()
->
getSingleToken
(
IFunctionManager
::
eSep
);
const
sal_Unicode
sep
=
m_pHelper
->
getFunctionManager
()
->
getSingleToken
(
IFunctionManager
::
eSep
);
sal_Int32
nFuncPos
=
SAL_MAX_INT32
;
sal_Int32
nFuncPos
=
SAL_MAX_INT32
;
sal_Bool
bFlag
=
sal_F
alse
;
bool
bFlag
=
f
alse
;
OUString
aFormString
=
m_aFormulaHelper
.
GetCharClass
()
->
uppercase
(
pMEdit
->
GetText
());
OUString
aFormString
=
m_aFormulaHelper
.
GetCharClass
()
->
uppercase
(
pMEdit
->
GetText
());
const
uno
::
Reference
<
sheet
::
XFormulaParser
>
xParser
(
m_pHelper
->
getFormulaParser
());
const
uno
::
Reference
<
sheet
::
XFormulaParser
>
xParser
(
m_pHelper
->
getFormulaParser
());
...
@@ -514,12 +514,12 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
...
@@ -514,12 +514,12 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
if
(
eOp
==
m_aSeparatorsOpCodes
[
TOKEN_OPEN
].
OpCode
)
if
(
eOp
==
m_aSeparatorsOpCodes
[
TOKEN_OPEN
].
OpCode
)
{
{
nBracketCount
++
;
nBracketCount
++
;
bFlag
=
sal_T
rue
;
bFlag
=
t
rue
;
}
}
else
if
(
eOp
==
m_aSeparatorsOpCodes
[
TOKEN_CLOSE
].
OpCode
)
else
if
(
eOp
==
m_aSeparatorsOpCodes
[
TOKEN_CLOSE
].
OpCode
)
{
{
nBracketCount
--
;
nBracketCount
--
;
bFlag
=
sal_F
alse
;
bFlag
=
f
alse
;
nFuncPos
=
nPrevFuncPos
;
nFuncPos
=
nPrevFuncPos
;
}
}
bool
bIsFunction
=
::
std
::
find_if
(
m_aFunctionOpCodes
.
getConstArray
(),
m_pFunctionOpCodesEnd
,
::
std
::
bind2nd
(
OpCodeCompare
(),
boost
::
cref
(
eOp
)))
!=
m_pFunctionOpCodesEnd
;
bool
bIsFunction
=
::
std
::
find_if
(
m_aFunctionOpCodes
.
getConstArray
(),
m_pFunctionOpCodesEnd
,
::
std
::
bind2nd
(
OpCodeCompare
(),
boost
::
cref
(
eOp
)))
!=
m_pFunctionOpCodesEnd
;
...
@@ -558,9 +558,9 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
...
@@ -558,9 +558,9 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
return
nFuncPos
;
return
nFuncPos
;
}
}
sal_B
ool
FormulaDlg_Impl
::
CalcValue
(
const
OUString
&
rStrExp
,
OUString
&
rStrResult
)
b
ool
FormulaDlg_Impl
::
CalcValue
(
const
OUString
&
rStrExp
,
OUString
&
rStrResult
)
{
{
sal_Bool
bResult
=
sal_T
rue
;
bool
bResult
=
t
rue
;
if
(
!
rStrExp
.
isEmpty
()
)
if
(
!
rStrExp
.
isEmpty
()
)
{
{
...
@@ -571,7 +571,7 @@ sal_Bool FormulaDlg_Impl::CalcValue( const OUString& rStrExp, OUString& rStrResu
...
@@ -571,7 +571,7 @@ sal_Bool FormulaDlg_Impl::CalcValue( const OUString& rStrExp, OUString& rStrResu
bResult
=
m_pHelper
->
calculateValue
(
rStrExp
,
rStrResult
);
bResult
=
m_pHelper
->
calculateValue
(
rStrExp
,
rStrResult
);
}
}
else
else
bResult
=
sal_F
alse
;
bResult
=
f
alse
;
}
}
return
bResult
;
return
bResult
;
...
@@ -595,9 +595,9 @@ void FormulaDlg_Impl::UpdateValues()
...
@@ -595,9 +595,9 @@ void FormulaDlg_Impl::UpdateValues()
CalcStruct
(
pMEdit
->
GetText
());
CalcStruct
(
pMEdit
->
GetText
());
}
}
sal_B
ool
FormulaDlg_Impl
::
CalcStruct
(
const
OUString
&
rStrExp
)
b
ool
FormulaDlg_Impl
::
CalcStruct
(
const
OUString
&
rStrExp
)
{
{
sal_Bool
bResult
=
sal_T
rue
;
bool
bResult
=
t
rue
;
sal_Int32
nLength
=
rStrExp
.
getLength
();
sal_Int32
nLength
=
rStrExp
.
getLength
();
if
(
!
rStrExp
.
isEmpty
()
&&
aOldFormula
!=
rStrExp
&&
bStructUpdate
)
if
(
!
rStrExp
.
isEmpty
()
&&
aOldFormula
!=
rStrExp
&&
bStructUpdate
)
...
@@ -628,7 +628,7 @@ sal_Bool FormulaDlg_Impl::CalcStruct( const OUString& rStrExp)
...
@@ -628,7 +628,7 @@ sal_Bool FormulaDlg_Impl::CalcStruct( const OUString& rStrExp)
UpdateTokenArray
(
rStrExp
);
UpdateTokenArray
(
rStrExp
);
}
}
else
else
bResult
=
sal_F
alse
;
bResult
=
f
alse
;
}
}
return
bResult
;
return
bResult
;
}
}
...
@@ -744,9 +744,9 @@ void FormulaDlg_Impl::UpdateTokenArray( const OUString& rStrExp)
...
@@ -744,9 +744,9 @@ void FormulaDlg_Impl::UpdateTokenArray( const OUString& rStrExp)
aCompiler
.
CompileTokenArray
();
aCompiler
.
CompileTokenArray
();
}
}
void
FormulaDlg_Impl
::
FillDialog
(
sal_B
ool
nFlag
)
void
FormulaDlg_Impl
::
FillDialog
(
b
ool
nFlag
)
{
{
sal_Bool
bNext
=
sal_True
,
bPrev
=
sal_T
rue
;
bool
bNext
=
true
,
bPrev
=
t
rue
;
if
(
nFlag
)
if
(
nFlag
)
FillControls
(
bNext
,
bPrev
);
FillControls
(
bNext
,
bPrev
);
FillListboxes
();
FillListboxes
();
...
@@ -800,7 +800,7 @@ void FormulaDlg_Impl::FillListboxes()
...
@@ -800,7 +800,7 @@ void FormulaDlg_Impl::FillListboxes()
m_pParent
->
SetUniqueId
(
aOldUnique
);
m_pParent
->
SetUniqueId
(
aOldUnique
);
}
}
void
FormulaDlg_Impl
::
FillControls
(
sal_Bool
&
rbNext
,
sal_B
ool
&
rbPrev
)
void
FormulaDlg_Impl
::
FillControls
(
bool
&
rbNext
,
b
ool
&
rbPrev
)
{
{
// Switch between the "Pages"
// Switch between the "Pages"
FormEditData
*
pData
=
m_pHelper
->
getFormEditData
();
FormEditData
*
pData
=
m_pHelper
->
getFormEditData
();
...
@@ -816,7 +816,7 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
...
@@ -816,7 +816,7 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
DeleteArgs
();
DeleteArgs
();
const
IFunctionDescription
*
pOldFuncDesc
=
pFuncDesc
;
const
IFunctionDescription
*
pOldFuncDesc
=
pFuncDesc
;
sal_Bool
bTestFlag
=
sal_F
alse
;
bool
bTestFlag
=
f
alse
;
if
(
m_aFormulaHelper
.
GetNextFunc
(
aFormula
,
false
,
if
(
m_aFormulaHelper
.
GetNextFunc
(
aFormula
,
false
,
nNextFStart
,
&
nNextFEnd
,
&
pFuncDesc
,
&
m_aArguments
)
)
nNextFStart
,
&
nNextFEnd
,
&
pFuncDesc
,
&
m_aArguments
)
)
...
@@ -863,7 +863,7 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
...
@@ -863,7 +863,7 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
sal_uInt16
nActiv
=
0
;
sal_uInt16
nActiv
=
0
;
sal_Int32
nArgPos
=
m_aFormulaHelper
.
GetArgStart
(
aFormula
,
nFStart
,
0
);
sal_Int32
nArgPos
=
m_aFormulaHelper
.
GetArgStart
(
aFormula
,
nFStart
,
0
);
sal_Int32
nEditPos
=
pMEdit
->
GetSelection
().
Min
();
sal_Int32
nEditPos
=
pMEdit
->
GetSelection
().
Min
();
sal_Bool
bFlag
=
sal_F
alse
;
bool
bFlag
=
f
alse
;
for
(
sal_uInt16
i
=
0
;
i
<
nArgs
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
nArgs
;
i
++
)
{
{
...
@@ -872,7 +872,7 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
...
@@ -872,7 +872,7 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
if
(
nArgPos
<=
nEditPos
&&
nEditPos
<
nArgPos
+
nLength
)
if
(
nArgPos
<=
nEditPos
&&
nEditPos
<
nArgPos
+
nLength
)
{
{
nActiv
=
i
;
nActiv
=
i
;
bFlag
=
sal_T
rue
;
bFlag
=
t
rue
;
}
}
nArgPos
=
nArgPos
+
nLength
;
nArgPos
=
nArgPos
+
nLength
;
}
}
...
@@ -983,7 +983,7 @@ IMPL_LINK( FormulaDlg_Impl, BtnHdl, PushButton*, pBtn )
...
@@ -983,7 +983,7 @@ IMPL_LINK( FormulaDlg_Impl, BtnHdl, PushButton*, pBtn )
const
IFunctionDescription
*
pDesc
=
pFuncPage
->
GetFuncDesc
(
pFuncPage
->
GetFunction
()
);
const
IFunctionDescription
*
pDesc
=
pFuncPage
->
GetFuncDesc
(
pFuncPage
->
GetFunction
()
);
if
(
pDesc
==
pFuncDesc
||
!
pFuncPage
->
IsVisible
())
if
(
pDesc
==
pFuncDesc
||
!
pFuncPage
->
IsVisible
())
EditNextFunc
(
sal_T
rue
);
EditNextFunc
(
t
rue
);
else
else
{
{
DblClkHdl
(
pFuncPage
);
//new
DblClkHdl
(
pFuncPage
);
//new
...
@@ -992,9 +992,9 @@ IMPL_LINK( FormulaDlg_Impl, BtnHdl, PushButton*, pBtn )
...
@@ -992,9 +992,9 @@ IMPL_LINK( FormulaDlg_Impl, BtnHdl, PushButton*, pBtn )
}
}
else
if
(
pBtn
==
&
aBtnBackward
)
else
if
(
pBtn
==
&
aBtnBackward
)
{
{
bEditFlag
=
sal_F
alse
;
bEditFlag
=
f
alse
;
aBtnForward
.
Enable
(
true
);
aBtnForward
.
Enable
(
true
);
EditNextFunc
(
sal_F
alse
);
EditNextFunc
(
f
alse
);
aMEFormula
.
Invalidate
();
aMEFormula
.
Invalidate
();
aMEFormula
.
Update
();
aMEFormula
.
Update
();
}
}
...
@@ -1094,7 +1094,7 @@ void FormulaDlg_Impl::EditThisFunc(sal_Int32 nFStart)
...
@@ -1094,7 +1094,7 @@ void FormulaDlg_Impl::EditThisFunc(sal_Int32 nFStart)
sal_Int32
nNextFStart
=
nFStart
;
sal_Int32
nNextFStart
=
nFStart
;
sal_Int32
nNextFEnd
=
0
;
sal_Int32
nNextFEnd
=
0
;
sal_B
ool
bFound
;
b
ool
bFound
;
bFound
=
m_aFormulaHelper
.
GetNextFunc
(
aFormula
,
false
,
nNextFStart
,
&
nNextFEnd
);
bFound
=
m_aFormulaHelper
.
GetNextFunc
(
aFormula
,
false
,
nNextFStart
,
&
nNextFEnd
);
if
(
bFound
)
if
(
bFound
)
...
@@ -1109,7 +1109,7 @@ void FormulaDlg_Impl::EditThisFunc(sal_Int32 nFStart)
...
@@ -1109,7 +1109,7 @@ void FormulaDlg_Impl::EditThisFunc(sal_Int32 nFStart)
}
}
}
}
void
FormulaDlg_Impl
::
EditNextFunc
(
sal_B
ool
bForward
,
sal_Int32
nFStart
)
void
FormulaDlg_Impl
::
EditNextFunc
(
b
ool
bForward
,
sal_Int32
nFStart
)
{
{
FormEditData
*
pData
=
m_pHelper
->
getFormEditData
();
FormEditData
*
pData
=
m_pHelper
->
getFormEditData
();
if
(
!
pData
)
if
(
!
pData
)
...
@@ -1129,7 +1129,7 @@ void FormulaDlg_Impl::EditNextFunc( sal_Bool bForward, sal_Int32 nFStart )
...
@@ -1129,7 +1129,7 @@ void FormulaDlg_Impl::EditNextFunc( sal_Bool bForward, sal_Int32 nFStart )
sal_Int32
nNextFStart
=
0
;
sal_Int32
nNextFStart
=
0
;
sal_Int32
nNextFEnd
=
0
;
sal_Int32
nNextFEnd
=
0
;
sal_B
ool
bFound
;
b
ool
bFound
;
if
(
bForward
)
if
(
bForward
)
{
{
nNextFStart
=
m_aFormulaHelper
.
GetArgStart
(
aFormula
,
nFStart
,
0
);
nNextFStart
=
m_aFormulaHelper
.
GetArgStart
(
aFormula
,
nFStart
,
0
);
...
@@ -1205,7 +1205,7 @@ IMPL_LINK( FormulaDlg_Impl, FxHdl, ParaWin*, pPtr )
...
@@ -1205,7 +1205,7 @@ IMPL_LINK( FormulaDlg_Impl, FxHdl, ParaWin*, pPtr )
pData
->
SetUndoStr
(
aUndoStr
);
pData
->
SetUndoStr
(
aUndoStr
);
ClearAllParas
();
ClearAllParas
();
FillDialog
(
sal_F
alse
);
FillDialog
(
f
alse
);
pFuncPage
->
SetFocus
();
//There Parawin is not visible anymore
pFuncPage
->
SetFocus
();
//There Parawin is not visible anymore
}
}
return
0
;
return
0
;
...
@@ -1230,7 +1230,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaHdl)
...
@@ -1230,7 +1230,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaHdl)
FormEditData
*
pData
=
m_pHelper
->
getFormEditData
();
FormEditData
*
pData
=
m_pHelper
->
getFormEditData
();
if
(
!
pData
)
return
0
;
if
(
!
pData
)
return
0
;
bEditFlag
=
sal_T
rue
;
bEditFlag
=
t
rue
;
OUString
aInputFormula
=
m_pHelper
->
getCurrentFormula
();
OUString
aInputFormula
=
m_pHelper
->
getCurrentFormula
();
OUString
aString
=
pMEdit
->
GetText
();
OUString
aString
=
pMEdit
->
GetText
();
...
@@ -1277,7 +1277,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaHdl)
...
@@ -1277,7 +1277,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaHdl)
if
(
nPos
<
aSel
.
Min
()
-
1
)
if
(
nPos
<
aSel
.
Min
()
-
1
)
{
{
sal_Int32
nPos1
=
aString
.
indexOf
(
'('
,
nPos
);
sal_Int32
nPos1
=
aString
.
indexOf
(
'('
,
nPos
);
EditNextFunc
(
sal_F
alse
,
nPos1
);
EditNextFunc
(
f
alse
,
nPos1
);
}
}
else
else
{
{
...
@@ -1285,7 +1285,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaHdl)
...
@@ -1285,7 +1285,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaHdl)
}
}
m_pHelper
->
setSelection
(
aSel
.
Min
(),
aSel
.
Max
());
m_pHelper
->
setSelection
(
aSel
.
Min
(),
aSel
.
Max
());
bEditFlag
=
sal_F
alse
;
bEditFlag
=
f
alse
;
return
0
;
return
0
;
}
}
...
@@ -1295,7 +1295,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaCursorHdl)
...
@@ -1295,7 +1295,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaCursorHdl)
if
(
!
pData
)
return
0
;
if
(
!
pData
)
return
0
;
sal_Int32
nFStart
=
pData
->
GetFStart
();
sal_Int32
nFStart
=
pData
->
GetFStart
();
bEditFlag
=
sal_T
rue
;
bEditFlag
=
t
rue
;
OUString
aString
=
pMEdit
->
GetText
();
OUString
aString
=
pMEdit
->
GetText
();
...
@@ -1353,7 +1353,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaCursorHdl)
...
@@ -1353,7 +1353,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FormulaCursorHdl)
}
}
m_pHelper
->
setSelection
(
aSel
.
Min
(),
aSel
.
Max
());
m_pHelper
->
setSelection
(
aSel
.
Min
(),
aSel
.
Max
());
bEditFlag
=
sal_F
alse
;
bEditFlag
=
f
alse
;
return
0
;
return
0
;
}
}
...
@@ -1517,15 +1517,15 @@ bool FormulaDlg_Impl::CheckMatrix(OUString& aFormula)
...
@@ -1517,15 +1517,15 @@ bool FormulaDlg_Impl::CheckMatrix(OUString& aFormula)
}
}
IMPL_LINK_NOARG
(
FormulaDlg_Impl
,
StructSelHdl
)
IMPL_LINK_NOARG
(
FormulaDlg_Impl
,
StructSelHdl
)
{
{
bStructUpdate
=
sal_F
alse
;
bStructUpdate
=
f
alse
;
if
(
pStructPage
->
IsVisible
())
aBtnForward
.
Enable
(
false
);
//@New
if
(
pStructPage
->
IsVisible
())
aBtnForward
.
Enable
(
false
);
//@New
bStructUpdate
=
sal_T
rue
;
bStructUpdate
=
t
rue
;
return
0
;
return
0
;
}
}
IMPL_LINK_NOARG
(
FormulaDlg_Impl
,
MatrixHdl
)
IMPL_LINK_NOARG
(
FormulaDlg_Impl
,
MatrixHdl
)
{
{
bUserMatrixFlag
=
sal_T
rue
;
bUserMatrixFlag
=
t
rue
;
return
0
;
return
0
;
}
}
...
@@ -1580,11 +1580,11 @@ void FormulaDlg_Impl::UpdateParaWin(const Selection& _rSelection, const OUString
...
@@ -1580,11 +1580,11 @@ void FormulaDlg_Impl::UpdateParaWin(const Selection& _rSelection, const OUString
if
(
pEd
!=
NULL
)
if
(
pEd
!=
NULL
)
pEd
->
SetSelection
(
theSel
);
pEd
->
SetSelection
(
theSel
);
pParaWin
->
SetRefMode
(
sal_F
alse
);
pParaWin
->
SetRefMode
(
f
alse
);
}
}
bool
FormulaDlg_Impl
::
UpdateParaWin
(
Selection
&
_rSelection
)
bool
FormulaDlg_Impl
::
UpdateParaWin
(
Selection
&
_rSelection
)
{
{
pParaWin
->
SetRefMode
(
sal_T
rue
);
pParaWin
->
SetRefMode
(
t
rue
);
OUString
aStrEd
;
OUString
aStrEd
;
Edit
*
pEd
=
GetCurrRefEdit
();
Edit
*
pEd
=
GetCurrRefEdit
();
...
...
formula/source/ui/dlg/funcutl.cxx
Dosyayı görüntüle @
32efd885
...
@@ -102,8 +102,8 @@ void ArgEdit::Init( ArgEdit* pPrevEdit, ArgEdit* pNextEdit,
...
@@ -102,8 +102,8 @@ void ArgEdit::Init( ArgEdit* pPrevEdit, ArgEdit* pNextEdit,
void
ArgEdit
::
KeyInput
(
const
KeyEvent
&
rKEvt
)
void
ArgEdit
::
KeyInput
(
const
KeyEvent
&
rKEvt
)
{
{
KeyCode
aCode
=
rKEvt
.
GetKeyCode
();
KeyCode
aCode
=
rKEvt
.
GetKeyCode
();
sal_B
ool
bUp
=
(
aCode
.
GetCode
()
==
KEY_UP
);
b
ool
bUp
=
(
aCode
.
GetCode
()
==
KEY_UP
);
sal_B
ool
bDown
=
(
aCode
.
GetCode
()
==
KEY_DOWN
);
b
ool
bDown
=
(
aCode
.
GetCode
()
==
KEY_DOWN
);
if
(
pSlider
if
(
pSlider
&&
(
!
aCode
.
IsShift
()
&&
!
aCode
.
IsMod1
()
&&
!
aCode
.
IsMod2
()
)
&&
(
!
aCode
.
IsShift
()
&&
!
aCode
.
IsMod1
()
&&
!
aCode
.
IsMod2
()
)
...
@@ -113,8 +113,8 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
...
@@ -113,8 +113,8 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
{
{
ArgEdit
*
pEd
=
NULL
;
ArgEdit
*
pEd
=
NULL
;
long
nThumb
=
pSlider
->
GetThumbPos
();
long
nThumb
=
pSlider
->
GetThumbPos
();
sal_Bool
bDoScroll
=
sal_F
alse
;
bool
bDoScroll
=
f
alse
;
sal_Bool
bChangeFocus
=
sal_F
alse
;
bool
bChangeFocus
=
f
alse
;
if
(
bDown
)
if
(
bDown
)
{
{
...
@@ -128,13 +128,13 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
...
@@ -128,13 +128,13 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
else
else
{
{
pEd
=
pEdNext
;
pEd
=
pEdNext
;
bChangeFocus
=
sal_T
rue
;
bChangeFocus
=
t
rue
;
}
}
}
}
else
if
(
pEdNext
)
else
if
(
pEdNext
)
{
{
pEd
=
pEdNext
;
pEd
=
pEdNext
;
bChangeFocus
=
sal_T
rue
;
bChangeFocus
=
t
rue
;
}
}
}
}
else
// if ( bUp )
else
// if ( bUp )
...
@@ -149,13 +149,13 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
...
@@ -149,13 +149,13 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
else
else
{
{
pEd
=
pEdPrev
;
pEd
=
pEdPrev
;
bChangeFocus
=
sal_T
rue
;
bChangeFocus
=
t
rue
;
}
}
}
}
else
if
(
pEdPrev
)
else
if
(
pEdPrev
)
{
{
pEd
=
pEdPrev
;
pEd
=
pEdPrev
;
bChangeFocus
=
sal_T
rue
;
bChangeFocus
=
t
rue
;
}
}
}
}
...
@@ -376,7 +376,7 @@ IMPL_LINK( ArgInput, EdModifyHdl,ArgEdit*, pEd )
...
@@ -376,7 +376,7 @@ IMPL_LINK( ArgInput, EdModifyHdl,ArgEdit*, pEd )
// class EditBox
// class EditBox
EditBox
::
EditBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
EditBox
::
EditBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
Control
(
pParent
,
rResId
),
:
Control
(
pParent
,
rResId
),
bMouseFlag
(
sal_F
alse
)
bMouseFlag
(
f
alse
)
{
{
WinBits
nStyle
=
GetStyle
();
WinBits
nStyle
=
GetStyle
();
SetStyle
(
nStyle
|
WB_DIALOGCONTROL
);
SetStyle
(
nStyle
|
WB_DIALOGCONTROL
);
...
@@ -456,7 +456,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
...
@@ -456,7 +456,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
if
(
nSwitch
==
EVENT_MOUSEBUTTONDOWN
||
nSwitch
==
EVENT_MOUSEBUTTONUP
)
if
(
nSwitch
==
EVENT_MOUSEBUTTONDOWN
||
nSwitch
==
EVENT_MOUSEBUTTONUP
)
{
{
bMouseFlag
=
sal_T
rue
;
bMouseFlag
=
t
rue
;
Application
::
PostUserEvent
(
LINK
(
this
,
EditBox
,
ChangedHdl
)
);
Application
::
PostUserEvent
(
LINK
(
this
,
EditBox
,
ChangedHdl
)
);
}
}
}
}
...
...
formula/source/ui/dlg/parawin.cxx
Dosyayı görüntüle @
32efd885
...
@@ -67,7 +67,7 @@ ParaWin::ParaWin(Window* pParent,IControlReferenceHandler* _pDlg,Point aPos):
...
@@ -67,7 +67,7 @@ ParaWin::ParaWin(Window* pParent,IControlReferenceHandler* _pDlg,Point aPos):
aSlider
(
this
,
ModuleRes
(
WND_SLIDER
)
),
aSlider
(
this
,
ModuleRes
(
WND_SLIDER
)
),
m_sOptional
(
ModuleRes
(
STR_OPTIONAL
)
),
m_sOptional
(
ModuleRes
(
STR_OPTIONAL
)
),
m_sRequired
(
ModuleRes
(
STR_REQUIRED
)
),
m_sRequired
(
ModuleRes
(
STR_REQUIRED
)
),
bRefMode
(
sal_F
alse
)
bRefMode
(
f
alse
)
{
{
FreeResource
();
FreeResource
();
aDefaultString
=
aFtEditDesc
.
GetText
();
aDefaultString
=
aFtEditDesc
.
GetText
();
...
...
formula/source/ui/dlg/parawin.hxx
Dosyayı görüntüle @
32efd885
...
@@ -83,7 +83,7 @@ private:
...
@@ -83,7 +83,7 @@ private:
ScrollBar
aSlider
;
ScrollBar
aSlider
;
OUString
m_sOptional
;
OUString
m_sOptional
;
OUString
m_sRequired
;
OUString
m_sRequired
;
sal_B
ool
bRefMode
;
b
ool
bRefMode
;
sal_uInt16
nEdFocus
;
sal_uInt16
nEdFocus
;
sal_uInt16
nActiveLine
;
sal_uInt16
nActiveLine
;
...
@@ -132,8 +132,8 @@ public:
...
@@ -132,8 +132,8 @@ public:
void
UpdateParas
();
void
UpdateParas
();
void
ClearAll
();
void
ClearAll
();
sal_B
ool
IsRefMode
()
{
return
bRefMode
;}
b
ool
IsRefMode
()
{
return
bRefMode
;}
void
SetRefMode
(
sal_B
ool
bFlag
)
{
bRefMode
=
bFlag
;}
void
SetRefMode
(
b
ool
bFlag
)
{
bRefMode
=
bFlag
;}
sal_uInt16
GetActiveLine
();
sal_uInt16
GetActiveLine
();
void
SetActiveLine
(
sal_uInt16
no
);
void
SetActiveLine
(
sal_uInt16
no
);
...
...
formula/source/ui/dlg/structpg.cxx
Dosyayı görüntüle @
32efd885
...
@@ -35,7 +35,7 @@ namespace formula
...
@@ -35,7 +35,7 @@ namespace formula
StructListBox
::
StructListBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
StructListBox
::
StructListBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
SvTreeListBox
(
pParent
,
rResId
)
SvTreeListBox
(
pParent
,
rResId
)
{
{
bActiveFlag
=
sal_F
alse
;
bActiveFlag
=
f
alse
;
Font
aFont
(
GetFont
()
);
Font
aFont
(
GetFont
()
);
Size
aSize
=
aFont
.
GetSize
();
Size
aSize
=
aFont
.
GetSize
();
...
@@ -53,31 +53,31 @@ SvTreeListEntry* StructListBox::InsertStaticEntry(
...
@@ -53,31 +53,31 @@ SvTreeListEntry* StructListBox::InsertStaticEntry(
return
pEntry
;
return
pEntry
;
}
}
void
StructListBox
::
SetActiveFlag
(
sal_B
ool
bFlag
)
void
StructListBox
::
SetActiveFlag
(
b
ool
bFlag
)
{
{
bActiveFlag
=
bFlag
;
bActiveFlag
=
bFlag
;
}
}
sal_B
ool
StructListBox
::
GetActiveFlag
()
b
ool
StructListBox
::
GetActiveFlag
()
{
{
return
bActiveFlag
;
return
bActiveFlag
;
}
}
void
StructListBox
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
void
StructListBox
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
{
{
bActiveFlag
=
sal_T
rue
;
bActiveFlag
=
t
rue
;
SvTreeListBox
::
MouseButtonDown
(
rMEvt
);
SvTreeListBox
::
MouseButtonDown
(
rMEvt
);
}
}
void
StructListBox
::
GetFocus
()
void
StructListBox
::
GetFocus
()
{
{
bActiveFlag
=
sal_T
rue
;
bActiveFlag
=
t
rue
;
SvTreeListBox
::
GetFocus
();
SvTreeListBox
::
GetFocus
();
}
}
void
StructListBox
::
LoseFocus
()
void
StructListBox
::
LoseFocus
()
{
{
bActiveFlag
=
sal_F
alse
;
bActiveFlag
=
f
alse
;
SvTreeListBox
::
LoseFocus
();
SvTreeListBox
::
LoseFocus
();
}
}
...
@@ -105,14 +105,14 @@ StructPage::StructPage(Window* pParent):
...
@@ -105,14 +105,14 @@ StructPage::StructPage(Window* pParent):
void
StructPage
::
ClearStruct
()
void
StructPage
::
ClearStruct
()
{
{
aTlbStruct
.
SetActiveFlag
(
sal_F
alse
);
aTlbStruct
.
SetActiveFlag
(
f
alse
);
aTlbStruct
.
Clear
();
aTlbStruct
.
Clear
();
}
}
SvTreeListEntry
*
StructPage
::
InsertEntry
(
const
OUString
&
rText
,
SvTreeListEntry
*
pParent
,
SvTreeListEntry
*
StructPage
::
InsertEntry
(
const
OUString
&
rText
,
SvTreeListEntry
*
pParent
,
sal_uInt16
nFlag
,
sal_uLong
nPos
,
IFormulaToken
*
pIFormulaToken
)
sal_uInt16
nFlag
,
sal_uLong
nPos
,
IFormulaToken
*
pIFormulaToken
)
{
{
aTlbStruct
.
SetActiveFlag
(
sal_F
alse
);
aTlbStruct
.
SetActiveFlag
(
f
alse
);
SvTreeListEntry
*
pEntry
=
NULL
;
SvTreeListEntry
*
pEntry
=
NULL
;
switch
(
nFlag
)
switch
(
nFlag
)
...
...
formula/source/ui/dlg/structpg.hxx
Dosyayı görüntüle @
32efd885
...
@@ -41,7 +41,7 @@ class StructListBox : public SvTreeListBox
...
@@ -41,7 +41,7 @@ class StructListBox : public SvTreeListBox
{
{
private
:
private
:
sal_B
ool
bActiveFlag
;
b
ool
bActiveFlag
;
protected
:
protected
:
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
...
@@ -58,8 +58,8 @@ public:
...
@@ -58,8 +58,8 @@ public:
sal_uLong
nPos
=
TREELIST_APPEND
,
sal_uLong
nPos
=
TREELIST_APPEND
,
IFormulaToken
*
pToken
=
NULL
);
IFormulaToken
*
pToken
=
NULL
);
void
SetActiveFlag
(
sal_Bool
bFlag
=
sal_T
rue
);
void
SetActiveFlag
(
bool
bFlag
=
t
rue
);
sal_B
ool
GetActiveFlag
();
b
ool
GetActiveFlag
();
void
GetFocus
()
SAL_OVERRIDE
;
void
GetFocus
()
SAL_OVERRIDE
;
void
LoseFocus
()
SAL_OVERRIDE
;
void
LoseFocus
()
SAL_OVERRIDE
;
};
};
...
...
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