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
e5b721a1
Kaydet (Commit)
e5b721a1
authored
Kas 10, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:nullptr (automatic rewrite)
Change-Id: Ib336ce9bc95f5c84dd6412ff3c098e68c5b0f4ff
üst
11d36524
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
136 additions
and
136 deletions
+136
-136
FormulaCompiler.cxx
formula/source/core/api/FormulaCompiler.cxx
+18
-18
services.cxx
formula/source/core/api/services.cxx
+2
-2
token.cxx
formula/source/core/api/token.cxx
+40
-40
vectortoken.cxx
formula/source/core/api/vectortoken.cxx
+6
-6
core_resource.cxx
formula/source/core/resource/core_resource.cxx
+2
-2
FormulaHelper.cxx
formula/source/ui/dlg/FormulaHelper.cxx
+3
-3
formula.cxx
formula/source/ui/dlg/formula.cxx
+20
-20
funcpage.cxx
formula/source/ui/dlg/funcpage.cxx
+1
-1
funcutl.cxx
formula/source/ui/dlg/funcutl.cxx
+14
-14
parawin.cxx
formula/source/ui/dlg/parawin.cxx
+4
-4
structpg.cxx
formula/source/ui/dlg/structpg.cxx
+8
-8
structpg.hxx
formula/source/ui/dlg/structpg.hxx
+3
-3
ModuleHelper.cxx
formula/source/ui/resource/ModuleHelper.cxx
+3
-3
IControlReferenceHandler.hxx
include/formula/IControlReferenceHandler.hxx
+2
-2
formula.hxx
include/formula/formula.hxx
+6
-6
formulahelper.hxx
include/formula/formulahelper.hxx
+4
-4
No files found.
formula/source/core/api/FormulaCompiler.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -162,7 +162,7 @@ OpCodeList::OpCodeList( sal_uInt16 nRID, FormulaCompiler::NonConstOpCodeMapPtr x
...
@@ -162,7 +162,7 @@ OpCodeList::OpCodeList( sal_uInt16 nRID, FormulaCompiler::NonConstOpCodeMapPtr x
,
meSepType
(
eSepType
)
,
meSepType
(
eSepType
)
{
{
SvtSysLocale
aSysLocale
;
SvtSysLocale
aSysLocale
;
const
CharClass
*
pCharClass
=
(
xMap
->
isEnglish
()
?
NULL
:
aSysLocale
.
GetCharClassPtr
());
const
CharClass
*
pCharClass
=
(
xMap
->
isEnglish
()
?
nullptr
:
aSysLocale
.
GetCharClassPtr
());
if
(
meSepType
==
FormulaCompiler
::
RESOURCE_BASE
)
if
(
meSepType
==
FormulaCompiler
::
RESOURCE_BASE
)
{
{
for
(
sal_uInt16
i
=
0
;
i
<=
SC_OPCODE_LAST_OPCODE_ID
;
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<=
SC_OPCODE_LAST_OPCODE_ID
;
++
i
)
...
@@ -249,14 +249,14 @@ void OpCodeList::putDefaultOpCode( FormulaCompiler::NonConstOpCodeMapPtr xMap, s
...
@@ -249,14 +249,14 @@ void OpCodeList::putDefaultOpCode( FormulaCompiler::NonConstOpCodeMapPtr xMap, s
const
sal_Unicode
*
lcl_UnicodeStrChr
(
const
sal_Unicode
*
pStr
,
sal_Unicode
c
)
const
sal_Unicode
*
lcl_UnicodeStrChr
(
const
sal_Unicode
*
pStr
,
sal_Unicode
c
)
{
{
if
(
!
pStr
)
if
(
!
pStr
)
return
NULL
;
return
nullptr
;
while
(
*
pStr
)
while
(
*
pStr
)
{
{
if
(
*
pStr
==
c
)
if
(
*
pStr
==
c
)
return
pStr
;
return
pStr
;
pStr
++
;
pStr
++
;
}
}
return
NULL
;
return
nullptr
;
}
}
struct
OpCodeMapData
struct
OpCodeMapData
...
@@ -533,8 +533,8 @@ void FormulaCompiler::OpCodeMap::putOpCode( const OUString & rStr, const OpCode
...
@@ -533,8 +533,8 @@ void FormulaCompiler::OpCodeMap::putOpCode( const OUString & rStr, const OpCode
FormulaCompiler
::
FormulaCompiler
(
FormulaTokenArray
&
rArr
)
FormulaCompiler
::
FormulaCompiler
(
FormulaTokenArray
&
rArr
)
:
:
pArr
(
&
rArr
),
pArr
(
&
rArr
),
pCode
(
NULL
),
pCode
(
nullptr
),
pStack
(
NULL
),
pStack
(
nullptr
),
eLastOp
(
ocPush
),
eLastOp
(
ocPush
),
nRecursion
(
0
),
nRecursion
(
0
),
nNumFmt
(
css
::
util
::
NumberFormat
::
UNDEFINED
),
nNumFmt
(
css
::
util
::
NumberFormat
::
UNDEFINED
),
...
@@ -550,9 +550,9 @@ FormulaCompiler::FormulaCompiler( FormulaTokenArray& rArr )
...
@@ -550,9 +550,9 @@ FormulaCompiler::FormulaCompiler( FormulaTokenArray& rArr )
FormulaCompiler
::
FormulaCompiler
()
FormulaCompiler
::
FormulaCompiler
()
:
:
pArr
(
NULL
),
pArr
(
nullptr
),
pCode
(
NULL
),
pCode
(
nullptr
),
pStack
(
NULL
),
pStack
(
nullptr
),
eLastOp
(
ocPush
),
eLastOp
(
ocPush
),
nRecursion
(
0
),
nRecursion
(
0
),
nNumFmt
(
css
::
util
::
NumberFormat
::
UNDEFINED
),
nNumFmt
(
css
::
util
::
NumberFormat
::
UNDEFINED
),
...
@@ -628,7 +628,7 @@ FormulaCompiler::OpCodeMapPtr FormulaCompiler::CreateOpCodeMap(
...
@@ -628,7 +628,7 @@ FormulaCompiler::OpCodeMapPtr FormulaCompiler::CreateOpCodeMap(
FormulaGrammar
::
mergeToGrammar
(
FormulaGrammar
::
setEnglishBit
(
FormulaGrammar
::
mergeToGrammar
(
FormulaGrammar
::
setEnglishBit
(
FormulaGrammar
::
GRAM_EXTERNAL
,
bEnglish
),
FormulaGrammar
::
CONV_UNSPECIFIED
)));
FormulaGrammar
::
GRAM_EXTERNAL
,
bEnglish
),
FormulaGrammar
::
CONV_UNSPECIFIED
)));
SvtSysLocale
aSysLocale
;
SvtSysLocale
aSysLocale
;
const
CharClass
*
pCharClass
=
(
xMap
->
isEnglish
()
?
NULL
:
aSysLocale
.
GetCharClassPtr
());
const
CharClass
*
pCharClass
=
(
xMap
->
isEnglish
()
?
nullptr
:
aSysLocale
.
GetCharClassPtr
());
FormulaOpCodeMapEntry
const
*
pArr2
=
rMapping
.
getConstArray
();
FormulaOpCodeMapEntry
const
*
pArr2
=
rMapping
.
getConstArray
();
FormulaOpCodeMapEntry
const
*
const
pStop
=
pArr2
+
rMapping
.
getLength
();
FormulaOpCodeMapEntry
const
*
const
pStop
=
pArr2
+
rMapping
.
getLength
();
for
(
;
pArr2
<
pStop
;
++
pArr2
)
for
(
;
pArr2
<
pStop
;
++
pArr2
)
...
@@ -728,9 +728,9 @@ void FormulaCompiler::InitSymbolsEnglishXL() const
...
@@ -728,9 +728,9 @@ void FormulaCompiler::InitSymbolsEnglishXL() const
// TODO: For now, just replace the separators to the Excel English
// TODO: For now, just replace the separators to the Excel English
// variants. Later, if we want to properly map Excel functions with Calc
// variants. Later, if we want to properly map Excel functions with Calc
// functions, we'll need to do a little more work here.
// functions, we'll need to do a little more work here.
mxSymbolsEnglishXL
->
putOpCode
(
OUString
(
','
),
ocSep
,
NULL
);
mxSymbolsEnglishXL
->
putOpCode
(
OUString
(
','
),
ocSep
,
nullptr
);
mxSymbolsEnglishXL
->
putOpCode
(
OUString
(
','
),
ocArrayColSep
,
NULL
);
mxSymbolsEnglishXL
->
putOpCode
(
OUString
(
','
),
ocArrayColSep
,
nullptr
);
mxSymbolsEnglishXL
->
putOpCode
(
OUString
(
';'
),
ocArrayRowSep
,
NULL
);
mxSymbolsEnglishXL
->
putOpCode
(
OUString
(
';'
),
ocArrayRowSep
,
nullptr
);
}
}
void
FormulaCompiler
::
InitSymbolsOOXML
()
const
void
FormulaCompiler
::
InitSymbolsOOXML
()
const
...
@@ -1671,7 +1671,7 @@ bool FormulaCompiler::MergeRangeReference( FormulaToken * * const pCode1, Formul
...
@@ -1671,7 +1671,7 @@ bool FormulaCompiler::MergeRangeReference( FormulaToken * * const pCode1, Formul
FormulaToken
*
p1
,
*
p2
;
FormulaToken
*
p1
,
*
p2
;
if
(
pc
<
2
||
!
pCode1
||
!
pCode2
||
if
(
pc
<
2
||
!
pCode1
||
!
pCode2
||
(
pCode2
-
pCode1
!=
1
)
||
(
pCode
-
pCode2
!=
1
)
||
(
pCode2
-
pCode1
!=
1
)
||
(
pCode
-
pCode2
!=
1
)
||
((
p1
=
*
pCode1
)
==
0
)
||
((
p2
=
*
pCode2
)
==
0
)
)
((
p1
=
*
pCode1
)
==
nullptr
)
||
((
p2
=
*
pCode2
)
==
nullptr
)
)
return
false
;
return
false
;
FormulaTokenRef
p
=
ExtendRangeReference
(
*
p1
,
*
p2
,
true
);
FormulaTokenRef
p
=
ExtendRangeReference
(
*
p1
,
*
p2
,
true
);
...
@@ -1699,7 +1699,7 @@ bool FormulaCompiler::CompileTokenArray()
...
@@ -1699,7 +1699,7 @@ bool FormulaCompiler::CompileTokenArray()
aCorrectedSymbol
.
clear
();
aCorrectedSymbol
.
clear
();
}
}
pArr
->
DelRPN
();
pArr
->
DelRPN
();
pStack
=
NULL
;
pStack
=
nullptr
;
FormulaToken
*
pData
[
FORMULA_MAXTOKENS
];
FormulaToken
*
pData
[
FORMULA_MAXTOKENS
];
pCode
=
pData
;
pCode
=
pData
;
bool
bWasForced
=
pArr
->
IsRecalcModeForced
();
bool
bWasForced
=
pArr
->
IsRecalcModeForced
();
...
@@ -2025,7 +2025,7 @@ void FormulaCompiler::AppendBoolean( OUStringBuffer& rBuffer, bool bVal ) const
...
@@ -2025,7 +2025,7 @@ void FormulaCompiler::AppendBoolean( OUStringBuffer& rBuffer, bool bVal ) const
void
FormulaCompiler
::
AppendString
(
OUStringBuffer
&
rBuffer
,
const
OUString
&
rStr
)
void
FormulaCompiler
::
AppendString
(
OUStringBuffer
&
rBuffer
,
const
OUString
&
rStr
)
{
{
rBuffer
.
append
(
'"'
);
rBuffer
.
append
(
'"'
);
if
(
lcl_UnicodeStrChr
(
rStr
.
getStr
(),
'"'
)
==
NULL
)
if
(
lcl_UnicodeStrChr
(
rStr
.
getStr
(),
'"'
)
==
nullptr
)
rBuffer
.
append
(
rStr
);
rBuffer
.
append
(
rStr
);
else
else
{
{
...
@@ -2049,9 +2049,9 @@ void FormulaCompiler::UpdateSeparatorsNative(
...
@@ -2049,9 +2049,9 @@ void FormulaCompiler::UpdateSeparatorsNative(
{
{
NonConstOpCodeMapPtr
xSymbolsNative
;
NonConstOpCodeMapPtr
xSymbolsNative
;
lcl_fillNativeSymbols
(
xSymbolsNative
);
lcl_fillNativeSymbols
(
xSymbolsNative
);
xSymbolsNative
->
putOpCode
(
rSep
,
ocSep
,
NULL
);
xSymbolsNative
->
putOpCode
(
rSep
,
ocSep
,
nullptr
);
xSymbolsNative
->
putOpCode
(
rArrayColSep
,
ocArrayColSep
,
NULL
);
xSymbolsNative
->
putOpCode
(
rArrayColSep
,
ocArrayColSep
,
nullptr
);
xSymbolsNative
->
putOpCode
(
rArrayRowSep
,
ocArrayRowSep
,
NULL
);
xSymbolsNative
->
putOpCode
(
rArrayRowSep
,
ocArrayRowSep
,
nullptr
);
}
}
void
FormulaCompiler
::
ResetNativeSymbols
()
void
FormulaCompiler
::
ResetNativeSymbols
()
...
...
formula/source/core/api/services.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -36,8 +36,8 @@ namespace
...
@@ -36,8 +36,8 @@ namespace
cppu
::
ImplementationEntry
entries
[]
=
{
cppu
::
ImplementationEntry
entries
[]
=
{
{
&
FormulaOpCodeMapperObj
::
create
,
&
FormulaOpCodeMapperObj
::
getImplementationName_Static
,
&
FormulaOpCodeMapperObj
::
getSupportedServiceNames_Static
,
{
&
FormulaOpCodeMapperObj
::
create
,
&
FormulaOpCodeMapperObj
::
getImplementationName_Static
,
&
FormulaOpCodeMapperObj
::
getSupportedServiceNames_Static
,
&
cppu
::
createSingleComponentFactory
,
0
,
0
},
&
cppu
::
createSingleComponentFactory
,
nullptr
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
}
{
nullptr
,
nullptr
,
nullptr
,
nullptr
,
nullptr
,
0
}
};
};
}
}
...
...
formula/source/core/api/token.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -229,7 +229,7 @@ void FormulaToken::SetGlobal( bool )
...
@@ -229,7 +229,7 @@ void FormulaToken::SetGlobal( bool )
short
*
FormulaToken
::
GetJump
()
const
short
*
FormulaToken
::
GetJump
()
const
{
{
SAL_WARN
(
"formula.core"
,
"FormulaToken::GetJump: virtual dummy called"
);
SAL_WARN
(
"formula.core"
,
"FormulaToken::GetJump: virtual dummy called"
);
return
NULL
;
return
nullptr
;
}
}
...
@@ -243,7 +243,7 @@ const OUString& FormulaToken::GetExternal() const
...
@@ -243,7 +243,7 @@ const OUString& FormulaToken::GetExternal() const
FormulaToken
*
FormulaToken
::
GetFAPOrigToken
()
const
FormulaToken
*
FormulaToken
::
GetFAPOrigToken
()
const
{
{
SAL_WARN
(
"formula.core"
,
"FormulaToken::GetFAPOrigToken: virtual dummy called"
);
SAL_WARN
(
"formula.core"
,
"FormulaToken::GetFAPOrigToken: virtual dummy called"
);
return
NULL
;
return
nullptr
;
}
}
sal_uInt16
FormulaToken
::
GetError
()
const
sal_uInt16
FormulaToken
::
GetError
()
const
...
@@ -296,30 +296,30 @@ ScSingleRefData* FormulaToken::GetSingleRef2()
...
@@ -296,30 +296,30 @@ ScSingleRefData* FormulaToken::GetSingleRef2()
const
ScMatrix
*
FormulaToken
::
GetMatrix
()
const
const
ScMatrix
*
FormulaToken
::
GetMatrix
()
const
{
{
OSL_FAIL
(
"FormulaToken::GetMatrix: virtual dummy called"
);
OSL_FAIL
(
"FormulaToken::GetMatrix: virtual dummy called"
);
return
NULL
;
return
nullptr
;
}
}
ScMatrix
*
FormulaToken
::
GetMatrix
()
ScMatrix
*
FormulaToken
::
GetMatrix
()
{
{
OSL_FAIL
(
"FormulaToken::GetMatrix: virtual dummy called"
);
OSL_FAIL
(
"FormulaToken::GetMatrix: virtual dummy called"
);
return
NULL
;
return
nullptr
;
}
}
ScJumpMatrix
*
FormulaToken
::
GetJumpMatrix
()
const
ScJumpMatrix
*
FormulaToken
::
GetJumpMatrix
()
const
{
{
OSL_FAIL
(
"FormulaToken::GetJumpMatrix: virtual dummy called"
);
OSL_FAIL
(
"FormulaToken::GetJumpMatrix: virtual dummy called"
);
return
NULL
;
return
nullptr
;
}
}
const
std
::
vector
<
ScComplexRefData
>*
FormulaToken
::
GetRefList
()
const
const
std
::
vector
<
ScComplexRefData
>*
FormulaToken
::
GetRefList
()
const
{
{
OSL_FAIL
(
"FormulaToken::GetRefList: virtual dummy called"
);
OSL_FAIL
(
"FormulaToken::GetRefList: virtual dummy called"
);
return
NULL
;
return
nullptr
;
}
}
std
::
vector
<
ScComplexRefData
>*
FormulaToken
::
GetRefList
()
std
::
vector
<
ScComplexRefData
>*
FormulaToken
::
GetRefList
()
{
{
OSL_FAIL
(
"FormulaToken::GetRefList: virtual dummy called"
);
OSL_FAIL
(
"FormulaToken::GetRefList: virtual dummy called"
);
return
NULL
;
return
nullptr
;
}
}
bool
FormulaToken
::
TextEqual
(
const
FormulaToken
&
rToken
)
const
bool
FormulaToken
::
TextEqual
(
const
FormulaToken
&
rToken
)
const
...
@@ -454,7 +454,7 @@ FormulaToken* FormulaTokenArray::GetNextReference()
...
@@ -454,7 +454,7 @@ FormulaToken* FormulaTokenArray::GetNextReference()
}
}
}
}
}
}
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
GetNextColRowName
()
FormulaToken
*
FormulaTokenArray
::
GetNextColRowName
()
...
@@ -465,7 +465,7 @@ FormulaToken* FormulaTokenArray::GetNextColRowName()
...
@@ -465,7 +465,7 @@ FormulaToken* FormulaTokenArray::GetNextColRowName()
if
(
t
->
GetOpCode
()
==
ocColRowName
)
if
(
t
->
GetOpCode
()
==
ocColRowName
)
return
t
;
return
t
;
}
}
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
GetNextReferenceRPN
()
FormulaToken
*
FormulaTokenArray
::
GetNextReferenceRPN
()
...
@@ -486,7 +486,7 @@ FormulaToken* FormulaTokenArray::GetNextReferenceRPN()
...
@@ -486,7 +486,7 @@ FormulaToken* FormulaTokenArray::GetNextReferenceRPN()
}
}
}
}
}
}
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
GetNextReferenceOrName
()
FormulaToken
*
FormulaTokenArray
::
GetNextReferenceOrName
()
...
@@ -512,7 +512,7 @@ FormulaToken* FormulaTokenArray::GetNextReferenceOrName()
...
@@ -512,7 +512,7 @@ FormulaToken* FormulaTokenArray::GetNextReferenceOrName()
}
}
}
}
}
}
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
GetNextName
()
FormulaToken
*
FormulaTokenArray
::
GetNextName
()
...
@@ -526,7 +526,7 @@ FormulaToken* FormulaTokenArray::GetNextName()
...
@@ -526,7 +526,7 @@ FormulaToken* FormulaTokenArray::GetNextName()
return
t
;
return
t
;
}
}
}
// if( pCode )
}
// if( pCode )
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
Next
()
FormulaToken
*
FormulaTokenArray
::
Next
()
...
@@ -534,7 +534,7 @@ FormulaToken* FormulaTokenArray::Next()
...
@@ -534,7 +534,7 @@ FormulaToken* FormulaTokenArray::Next()
if
(
pCode
&&
nIndex
<
nLen
)
if
(
pCode
&&
nIndex
<
nLen
)
return
pCode
[
nIndex
++
];
return
pCode
[
nIndex
++
];
else
else
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
NextNoSpaces
()
FormulaToken
*
FormulaTokenArray
::
NextNoSpaces
()
...
@@ -546,7 +546,7 @@ FormulaToken* FormulaTokenArray::NextNoSpaces()
...
@@ -546,7 +546,7 @@ FormulaToken* FormulaTokenArray::NextNoSpaces()
if
(
nIndex
<
nLen
)
if
(
nIndex
<
nLen
)
return
pCode
[
nIndex
++
];
return
pCode
[
nIndex
++
];
}
}
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
NextRPN
()
FormulaToken
*
FormulaTokenArray
::
NextRPN
()
...
@@ -554,7 +554,7 @@ FormulaToken* FormulaTokenArray::NextRPN()
...
@@ -554,7 +554,7 @@ FormulaToken* FormulaTokenArray::NextRPN()
if
(
pRPN
&&
nIndex
<
nRPN
)
if
(
pRPN
&&
nIndex
<
nRPN
)
return
pRPN
[
nIndex
++
];
return
pRPN
[
nIndex
++
];
else
else
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
PrevRPN
()
FormulaToken
*
FormulaTokenArray
::
PrevRPN
()
...
@@ -562,7 +562,7 @@ FormulaToken* FormulaTokenArray::PrevRPN()
...
@@ -562,7 +562,7 @@ FormulaToken* FormulaTokenArray::PrevRPN()
if
(
pRPN
&&
nIndex
)
if
(
pRPN
&&
nIndex
)
return
pRPN
[
--
nIndex
];
return
pRPN
[
--
nIndex
];
else
else
return
NULL
;
return
nullptr
;
}
}
void
FormulaTokenArray
::
DelRPN
()
void
FormulaTokenArray
::
DelRPN
()
...
@@ -576,7 +576,7 @@ void FormulaTokenArray::DelRPN()
...
@@ -576,7 +576,7 @@ void FormulaTokenArray::DelRPN()
}
}
delete
[]
pRPN
;
delete
[]
pRPN
;
}
}
pRPN
=
NULL
;
pRPN
=
nullptr
;
nRPN
=
nIndex
=
0
;
nRPN
=
nIndex
=
0
;
}
}
...
@@ -584,7 +584,7 @@ FormulaToken* FormulaTokenArray::PeekPrev( sal_uInt16 & nIdx )
...
@@ -584,7 +584,7 @@ FormulaToken* FormulaTokenArray::PeekPrev( sal_uInt16 & nIdx )
{
{
if
(
0
<
nIdx
&&
nIdx
<=
nLen
)
if
(
0
<
nIdx
&&
nIdx
<=
nLen
)
return
pCode
[
--
nIdx
];
return
pCode
[
--
nIdx
];
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
PeekNext
()
FormulaToken
*
FormulaTokenArray
::
PeekNext
()
...
@@ -592,7 +592,7 @@ FormulaToken* FormulaTokenArray::PeekNext()
...
@@ -592,7 +592,7 @@ FormulaToken* FormulaTokenArray::PeekNext()
if
(
pCode
&&
nIndex
<
nLen
)
if
(
pCode
&&
nIndex
<
nLen
)
return
pCode
[
nIndex
];
return
pCode
[
nIndex
];
else
else
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
PeekNextNoSpaces
()
FormulaToken
*
FormulaTokenArray
::
PeekNextNoSpaces
()
...
@@ -605,10 +605,10 @@ FormulaToken* FormulaTokenArray::PeekNextNoSpaces()
...
@@ -605,10 +605,10 @@ FormulaToken* FormulaTokenArray::PeekNextNoSpaces()
if
(
j
<
nLen
)
if
(
j
<
nLen
)
return
pCode
[
j
];
return
pCode
[
j
];
else
else
return
NULL
;
return
nullptr
;
}
}
else
else
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
PeekPrevNoSpaces
()
FormulaToken
*
FormulaTokenArray
::
PeekPrevNoSpaces
()
...
@@ -621,10 +621,10 @@ FormulaToken* FormulaTokenArray::PeekPrevNoSpaces()
...
@@ -621,10 +621,10 @@ FormulaToken* FormulaTokenArray::PeekPrevNoSpaces()
if
(
j
>
0
||
pCode
[
j
]
->
GetOpCode
()
!=
ocSpaces
)
if
(
j
>
0
||
pCode
[
j
]
->
GetOpCode
()
!=
ocSpaces
)
return
pCode
[
j
];
return
pCode
[
j
];
else
else
return
NULL
;
return
nullptr
;
}
}
else
else
return
NULL
;
return
nullptr
;
}
}
bool
FormulaTokenArray
::
HasReferences
()
const
bool
FormulaTokenArray
::
HasReferences
()
const
...
@@ -699,8 +699,8 @@ bool FormulaTokenArray::HasOpCodes(const unordered_opcode_set& rOpCodes) const
...
@@ -699,8 +699,8 @@ bool FormulaTokenArray::HasOpCodes(const unordered_opcode_set& rOpCodes) const
}
}
FormulaTokenArray
::
FormulaTokenArray
()
:
FormulaTokenArray
::
FormulaTokenArray
()
:
pCode
(
NULL
),
pCode
(
nullptr
),
pRPN
(
NULL
),
pRPN
(
nullptr
),
nLen
(
0
),
nLen
(
0
),
nRPN
(
0
),
nRPN
(
0
),
nIndex
(
0
),
nIndex
(
0
),
...
@@ -730,8 +730,8 @@ void FormulaTokenArray::Assign( const FormulaTokenArray& r )
...
@@ -730,8 +730,8 @@ void FormulaTokenArray::Assign( const FormulaTokenArray& r )
nMode
=
r
.
nMode
;
nMode
=
r
.
nMode
;
bHyperLink
=
r
.
bHyperLink
;
bHyperLink
=
r
.
bHyperLink
;
mbFromRangeName
=
r
.
mbFromRangeName
;
mbFromRangeName
=
r
.
mbFromRangeName
;
pCode
=
NULL
;
pCode
=
nullptr
;
pRPN
=
NULL
;
pRPN
=
nullptr
;
FormulaToken
**
pp
;
FormulaToken
**
pp
;
if
(
nLen
)
if
(
nLen
)
{
{
...
@@ -753,7 +753,7 @@ void FormulaTokenArray::Assign( const FormulaTokenArray& r )
...
@@ -753,7 +753,7 @@ void FormulaTokenArray::Assign( const FormulaTokenArray& r )
void
FormulaTokenArray
::
Assign
(
sal_uInt16
nCode
,
FormulaToken
**
pTokens
)
void
FormulaTokenArray
::
Assign
(
sal_uInt16
nCode
,
FormulaToken
**
pTokens
)
{
{
assert
(
nLen
==
0
);
assert
(
nLen
==
0
);
assert
(
pCode
==
NULL
);
assert
(
pCode
==
nullptr
);
nLen
=
nCode
;
nLen
=
nCode
;
pCode
=
new
FormulaToken
*
[
nLen
];
pCode
=
new
FormulaToken
*
[
nLen
];
...
@@ -837,7 +837,7 @@ void FormulaTokenArray::Clear()
...
@@ -837,7 +837,7 @@ void FormulaTokenArray::Clear()
}
}
delete
[]
pCode
;
delete
[]
pCode
;
}
}
pCode
=
NULL
;
pRPN
=
NULL
;
pCode
=
nullptr
;
pRPN
=
nullptr
;
nError
=
nLen
=
nIndex
=
nRPN
=
0
;
nError
=
nLen
=
nIndex
=
nRPN
=
0
;
bHyperLink
=
false
;
bHyperLink
=
false
;
mbFromRangeName
=
false
;
mbFromRangeName
=
false
;
...
@@ -856,7 +856,7 @@ FormulaToken* FormulaTokenArray::AddToken( const FormulaToken& r )
...
@@ -856,7 +856,7 @@ FormulaToken* FormulaTokenArray::AddToken( const FormulaToken& r )
FormulaToken
*
FormulaTokenArray
::
MergeArray
(
)
FormulaToken
*
FormulaTokenArray
::
MergeArray
(
)
{
{
return
NULL
;
return
nullptr
;
}
}
FormulaToken
*
FormulaTokenArray
::
ReplaceToken
(
sal_uInt16
nOffset
,
FormulaToken
*
t
,
FormulaToken
*
FormulaTokenArray
::
ReplaceToken
(
sal_uInt16
nOffset
,
FormulaToken
*
t
,
...
@@ -891,7 +891,7 @@ FormulaToken* FormulaTokenArray::ReplaceToken( sal_uInt16 nOffset, FormulaToken*
...
@@ -891,7 +891,7 @@ FormulaToken* FormulaTokenArray::ReplaceToken( sal_uInt16 nOffset, FormulaToken*
else
else
{
{
t
->
Delete
();
t
->
Delete
();
return
NULL
;
return
nullptr
;
}
}
}
}
...
@@ -917,7 +917,7 @@ FormulaToken* FormulaTokenArray::Add( FormulaToken* t )
...
@@ -917,7 +917,7 @@ FormulaToken* FormulaTokenArray::Add( FormulaToken* t )
pCode
[
nLen
++
]
=
t
;
pCode
[
nLen
++
]
=
t
;
t
->
IncRef
();
t
->
IncRef
();
}
}
return
NULL
;
return
nullptr
;
}
}
}
}
...
@@ -1102,7 +1102,7 @@ class FormulaMissingContext
...
@@ -1102,7 +1102,7 @@ class FormulaMissingContext
const
FormulaToken
*
mpFunc
;
const
FormulaToken
*
mpFunc
;
int
mnCurArg
;
int
mnCurArg
;
void
Clear
()
{
mpFunc
=
NULL
;
mnCurArg
=
0
;
}
void
Clear
()
{
mpFunc
=
nullptr
;
mnCurArg
=
0
;
}
inline
bool
AddDefaultArg
(
FormulaTokenArray
*
pNewArr
,
int
nArg
,
double
f
)
const
;
inline
bool
AddDefaultArg
(
FormulaTokenArray
*
pNewArr
,
int
nArg
,
double
f
)
const
;
bool
AddMissingExternal
(
FormulaTokenArray
*
pNewArr
)
const
;
bool
AddMissingExternal
(
FormulaTokenArray
*
pNewArr
)
const
;
bool
AddMissing
(
FormulaTokenArray
*
pNewArr
,
const
MissingConvention
&
rConv
)
const
;
bool
AddMissing
(
FormulaTokenArray
*
pNewArr
,
const
MissingConvention
&
rConv
)
const
;
...
@@ -1489,7 +1489,7 @@ bool FormulaTokenArray::MayReferenceFollow()
...
@@ -1489,7 +1489,7 @@ bool FormulaTokenArray::MayReferenceFollow()
}
}
FormulaToken
*
FormulaTokenArray
::
AddOpCode
(
OpCode
eOp
)
FormulaToken
*
FormulaTokenArray
::
AddOpCode
(
OpCode
eOp
)
{
{
FormulaToken
*
pRet
=
NULL
;
FormulaToken
*
pRet
=
nullptr
;
switch
(
eOp
)
switch
(
eOp
)
{
{
case
ocOpen
:
case
ocOpen
:
...
@@ -1573,12 +1573,12 @@ const FormulaToken* FormulaTokenIterator::Next()
...
@@ -1573,12 +1573,12 @@ const FormulaToken* FormulaTokenIterator::Next()
const
FormulaToken
*
FormulaTokenIterator
::
PeekNextOperator
()
const
FormulaToken
*
FormulaTokenIterator
::
PeekNextOperator
()
{
{
const
FormulaToken
*
t
=
NULL
;
const
FormulaToken
*
t
=
nullptr
;
short
nIdx
=
maStack
.
back
().
nPC
;
short
nIdx
=
maStack
.
back
().
nPC
;
while
(
!
t
&&
((
t
=
GetNonEndOfPathToken
(
++
nIdx
))
!=
NULL
))
while
(
!
t
&&
((
t
=
GetNonEndOfPathToken
(
++
nIdx
))
!=
nullptr
))
{
{
if
(
t
->
GetOpCode
()
==
ocPush
)
if
(
t
->
GetOpCode
()
==
ocPush
)
t
=
NULL
;
// ignore operands
t
=
nullptr
;
// ignore operands
}
}
if
(
!
t
&&
maStack
.
size
()
>
1
)
if
(
!
t
&&
maStack
.
size
()
>
1
)
{
{
...
@@ -1611,14 +1611,14 @@ const FormulaToken* FormulaTokenIterator::GetNonEndOfPathToken( short nIdx ) con
...
@@ -1611,14 +1611,14 @@ const FormulaToken* FormulaTokenIterator::GetNonEndOfPathToken( short nIdx ) con
{
{
const
FormulaToken
*
t
=
cur
.
pArr
->
pRPN
[
nIdx
];
const
FormulaToken
*
t
=
cur
.
pArr
->
pRPN
[
nIdx
];
// such an OpCode ends an IF() or CHOOSE() path
// such an OpCode ends an IF() or CHOOSE() path
return
(
t
->
GetOpCode
()
==
ocSep
||
t
->
GetOpCode
()
==
ocClose
)
?
NULL
:
t
;
return
(
t
->
GetOpCode
()
==
ocSep
||
t
->
GetOpCode
()
==
ocClose
)
?
nullptr
:
t
;
}
}
return
NULL
;
return
nullptr
;
}
}
bool
FormulaTokenIterator
::
IsEndOfPath
()
const
bool
FormulaTokenIterator
::
IsEndOfPath
()
const
{
{
return
GetNonEndOfPathToken
(
maStack
.
back
().
nPC
+
1
)
==
NULL
;
return
GetNonEndOfPathToken
(
maStack
.
back
().
nPC
+
1
)
==
nullptr
;
}
}
...
...
formula/source/core/api/vectortoken.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -12,22 +12,22 @@
...
@@ -12,22 +12,22 @@
namespace
formula
{
namespace
formula
{
VectorRefArray
::
VectorRefArray
()
:
VectorRefArray
::
VectorRefArray
()
:
mpNumericArray
(
NULL
),
mpNumericArray
(
nullptr
),
mpStringArray
(
NULL
),
mpStringArray
(
nullptr
),
mbValid
(
true
)
{}
mbValid
(
true
)
{}
VectorRefArray
::
VectorRefArray
(
InitInvalid
)
:
VectorRefArray
::
VectorRefArray
(
InitInvalid
)
:
mpNumericArray
(
NULL
),
mpNumericArray
(
nullptr
),
mpStringArray
(
NULL
),
mpStringArray
(
nullptr
),
mbValid
(
false
)
{}
mbValid
(
false
)
{}
VectorRefArray
::
VectorRefArray
(
const
double
*
pArray
)
:
VectorRefArray
::
VectorRefArray
(
const
double
*
pArray
)
:
mpNumericArray
(
pArray
),
mpNumericArray
(
pArray
),
mpStringArray
(
NULL
),
mpStringArray
(
nullptr
),
mbValid
(
true
)
{}
mbValid
(
true
)
{}
VectorRefArray
::
VectorRefArray
(
rtl_uString
**
pArray
)
:
VectorRefArray
::
VectorRefArray
(
rtl_uString
**
pArray
)
:
mpNumericArray
(
NULL
),
mpNumericArray
(
nullptr
),
mpStringArray
(
pArray
),
mpStringArray
(
pArray
),
mbValid
(
true
)
{}
mbValid
(
true
)
{}
...
...
formula/source/core/resource/core_resource.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -40,7 +40,7 @@ namespace formula
...
@@ -40,7 +40,7 @@ namespace formula
struct
theResourceManagerMutex
:
public
rtl
::
Static
<
osl
::
Mutex
,
theResourceManagerMutex
>
{};
struct
theResourceManagerMutex
:
public
rtl
::
Static
<
osl
::
Mutex
,
theResourceManagerMutex
>
{};
}
}
sal_Int32
ResourceManager
::
s_nClients
=
0
;
sal_Int32
ResourceManager
::
s_nClients
=
0
;
ResMgr
*
ResourceManager
::
m_pImpl
=
NULL
;
ResMgr
*
ResourceManager
::
m_pImpl
=
nullptr
;
void
ResourceManager
::
ensureImplExists
()
void
ResourceManager
::
ensureImplExists
()
...
@@ -65,7 +65,7 @@ namespace formula
...
@@ -65,7 +65,7 @@ namespace formula
if
(
!--
s_nClients
&&
m_pImpl
)
if
(
!--
s_nClients
&&
m_pImpl
)
{
{
delete
m_pImpl
;
delete
m_pImpl
;
m_pImpl
=
NULL
;
m_pImpl
=
nullptr
;
}
}
}
}
ResMgr
*
ResourceManager
::
getResManager
()
ResMgr
*
ResourceManager
::
getResManager
()
...
...
formula/source/ui/dlg/FormulaHelper.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -36,7 +36,7 @@ namespace formula
...
@@ -36,7 +36,7 @@ namespace formula
virtual
~
OEmptyFunctionDescription
(){}
virtual
~
OEmptyFunctionDescription
(){}
virtual
OUString
getFunctionName
()
const
override
{
return
OUString
();
}
virtual
OUString
getFunctionName
()
const
override
{
return
OUString
();
}
virtual
const
IFunctionCategory
*
getCategory
()
const
override
{
return
NULL
;
}
virtual
const
IFunctionCategory
*
getCategory
()
const
override
{
return
nullptr
;
}
virtual
OUString
getDescription
()
const
override
{
return
OUString
();
}
virtual
OUString
getDescription
()
const
override
{
return
OUString
();
}
virtual
sal_Int32
getSuppressedArgumentCount
()
const
override
{
return
0
;
}
virtual
sal_Int32
getSuppressedArgumentCount
()
const
override
{
return
0
;
}
virtual
OUString
getFormula
(
const
::
std
::
vector
<
OUString
>&
)
const
override
{
return
OUString
();
}
virtual
OUString
getFormula
(
const
::
std
::
vector
<
OUString
>&
)
const
override
{
return
OUString
();
}
...
@@ -78,7 +78,7 @@ bool FormulaHelper::GetNextFunc( const OUString& rFormula,
...
@@ -78,7 +78,7 @@ bool FormulaHelper::GetNextFunc( const OUString& rFormula,
sal_Int32
nOldStart
=
rFStart
;
sal_Int32
nOldStart
=
rFStart
;
OUString
aFname
;
OUString
aFname
;
rFStart
=
GetFunctionStart
(
rFormula
,
rFStart
,
bBack
,
ppFDesc
?
&
aFname
:
NULL
);
rFStart
=
GetFunctionStart
(
rFormula
,
rFStart
,
bBack
,
ppFDesc
?
&
aFname
:
nullptr
);
bool
bFound
=
(
rFStart
!=
FUNC_NOTFOUND
);
bool
bFound
=
(
rFStart
!=
FUNC_NOTFOUND
);
if
(
bFound
)
if
(
bFound
)
...
@@ -88,7 +88,7 @@ bool FormulaHelper::GetNextFunc( const OUString& rFormula,
...
@@ -88,7 +88,7 @@ bool FormulaHelper::GetNextFunc( const OUString& rFormula,
if
(
ppFDesc
)
if
(
ppFDesc
)
{
{
*
ppFDesc
=
NULL
;
*
ppFDesc
=
nullptr
;
const
OUString
sTemp
(
aFname
);
const
OUString
sTemp
(
aFname
);
const
sal_uInt32
nCategoryCount
=
m_pFunctionManager
->
getCount
();
const
sal_uInt32
nCategoryCount
=
m_pFunctionManager
->
getCount
();
for
(
sal_uInt32
j
=
0
;
j
<
nCategoryCount
&&
!*
ppFDesc
;
++
j
)
for
(
sal_uInt32
j
=
0
;
j
<
nCategoryCount
&&
!*
ppFDesc
;
++
j
)
...
...
formula/source/ui/dlg/formula.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -227,16 +227,16 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
...
@@ -227,16 +227,16 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
,
const
IFunctionManager
*
_pFunctionMgr
,
const
IFunctionManager
*
_pFunctionMgr
,
IControlReferenceHandler
*
_pDlg
)
,
IControlReferenceHandler
*
_pDlg
)
:
:
m_pSpecialOpCodesEnd
(
NULL
),
m_pSpecialOpCodesEnd
(
nullptr
),
m_pFunctionOpCodesEnd
(
NULL
),
m_pFunctionOpCodesEnd
(
nullptr
),
m_pUnaryOpCodesEnd
(
NULL
),
m_pUnaryOpCodesEnd
(
nullptr
),
m_pBinaryOpCodesEnd
(
NULL
),
m_pBinaryOpCodesEnd
(
nullptr
),
m_pHelper
(
_pHelper
),
m_pHelper
(
_pHelper
),
m_pParent
(
pParent
),
m_pParent
(
pParent
),
m_pDlg
(
_pDlg
),
m_pDlg
(
_pDlg
),
pTheRefEdit
(
NULL
),
pTheRefEdit
(
nullptr
),
pTheRefButton
(
NULL
),
pTheRefButton
(
nullptr
),
pMEdit
(
NULL
),
pMEdit
(
nullptr
),
bUserMatrixFlag
(
false
),
bUserMatrixFlag
(
false
),
aTitle1
(
ModuleRes
(
STR_TITLE1
)
),
aTitle1
(
ModuleRes
(
STR_TITLE1
)
),
aTitle2
(
ModuleRes
(
STR_TITLE2
)
),
aTitle2
(
ModuleRes
(
STR_TITLE2
)
),
...
@@ -245,7 +245,7 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
...
@@ -245,7 +245,7 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
bIsShutDown
(
false
),
bIsShutDown
(
false
),
bMakingTree
(
false
),
bMakingTree
(
false
),
nEdFocus
(
0
),
nEdFocus
(
0
),
pFuncDesc
(
NULL
),
pFuncDesc
(
nullptr
),
nArgs
(
0
)
nArgs
(
0
)
{
{
pParent
->
get
(
m_pParaWinBox
,
"BOX"
);
pParent
->
get
(
m_pParaWinBox
,
"BOX"
);
...
@@ -394,13 +394,13 @@ void FormulaDlg_Impl::PreNotify( NotifyEvent& rNEvt )
...
@@ -394,13 +394,13 @@ void FormulaDlg_Impl::PreNotify( NotifyEvent& rNEvt )
if
(
nSwitch
==
MouseNotifyEvent
::
GETFOCUS
&&
!
bIsShutDown
)
if
(
nSwitch
==
MouseNotifyEvent
::
GETFOCUS
&&
!
bIsShutDown
)
{
{
vcl
::
Window
*
pWin
=
rNEvt
.
GetWindow
();
vcl
::
Window
*
pWin
=
rNEvt
.
GetWindow
();
if
(
pWin
!=
NULL
)
if
(
pWin
!=
nullptr
)
{
{
aActivWinId
=
pWin
->
GetUniqueId
();
aActivWinId
=
pWin
->
GetUniqueId
();
if
(
aActivWinId
.
isEmpty
())
if
(
aActivWinId
.
isEmpty
())
{
{
vcl
::
Window
*
pParent
=
pWin
->
GetParent
();
vcl
::
Window
*
pParent
=
pWin
->
GetParent
();
while
(
pParent
!=
NULL
)
while
(
pParent
!=
nullptr
)
{
{
aActivWinId
=
pParent
->
GetUniqueId
();
aActivWinId
=
pParent
->
GetUniqueId
();
...
@@ -646,7 +646,7 @@ bool FormulaDlg_Impl::CalcStruct( const OUString& rStrExp)
...
@@ -646,7 +646,7 @@ bool FormulaDlg_Impl::CalcStruct( const OUString& rStrExp)
void
FormulaDlg_Impl
::
MakeTree
(
StructPage
*
_pTree
,
SvTreeListEntry
*
pParent
,
FormulaToken
*
_pToken
,
long
Count
)
void
FormulaDlg_Impl
::
MakeTree
(
StructPage
*
_pTree
,
SvTreeListEntry
*
pParent
,
FormulaToken
*
_pToken
,
long
Count
)
{
{
if
(
_pToken
!=
NULL
&&
Count
>
0
)
if
(
_pToken
!=
nullptr
&&
Count
>
0
)
{
{
long
nParas
=
_pToken
->
GetParamCount
();
long
nParas
=
_pToken
->
GetParamCount
();
OpCode
eOp
=
_pToken
->
GetOpCode
();
OpCode
eOp
=
_pToken
->
GetOpCode
();
...
@@ -762,9 +762,9 @@ void FormulaDlg_Impl::fillTree(StructPage* _pTree)
...
@@ -762,9 +762,9 @@ void FormulaDlg_Impl::fillTree(StructPage* _pTree)
GetFormulaOpCodeMapper
();
GetFormulaOpCodeMapper
();
FormulaToken
*
pToken
=
m_pTokenArray
->
LastRPN
();
FormulaToken
*
pToken
=
m_pTokenArray
->
LastRPN
();
if
(
pToken
!=
NULL
)
if
(
pToken
!=
nullptr
)
{
{
MakeTree
(
_pTree
,
NULL
,
pToken
,
1
);
MakeTree
(
_pTree
,
nullptr
,
pToken
,
1
);
bMakingTree
=
false
;
bMakingTree
=
false
;
}
}
}
}
...
@@ -958,7 +958,7 @@ void FormulaDlg_Impl::FillControls(bool &rbNext, bool &rbPrev)
...
@@ -958,7 +958,7 @@ void FormulaDlg_Impl::FillControls(bool &rbNext, bool &rbPrev)
void
FormulaDlg_Impl
::
ClearAllParas
()
void
FormulaDlg_Impl
::
ClearAllParas
()
{
{
DeleteArgs
();
DeleteArgs
();
pFuncDesc
=
NULL
;
pFuncDesc
=
nullptr
;
pParaWin
->
ClearAll
();
pParaWin
->
ClearAll
();
m_pWndResult
->
SetText
(
OUString
());
m_pWndResult
->
SetText
(
OUString
());
m_pFtFuncName
->
SetText
(
OUString
());
m_pFtFuncName
->
SetText
(
OUString
());
...
@@ -1452,10 +1452,10 @@ void FormulaDlg_Impl::UpdateSelection()
...
@@ -1452,10 +1452,10 @@ void FormulaDlg_Impl::UpdateSelection()
m_pEdRef
->
SetUniqueId
(
pTheRefEdit
->
GetUniqueId
()
);
m_pEdRef
->
SetUniqueId
(
pTheRefEdit
->
GetUniqueId
()
);
}
}
m_pRefBtn
->
Show
(
pButton
!=
NULL
);
m_pRefBtn
->
Show
(
pButton
!=
nullptr
);
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
aPair
;
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
aPair
;
aPair
.
first
=
pButton
?
m_pRefBtn
.
get
()
:
NULL
;
aPair
.
first
=
pButton
?
m_pRefBtn
.
get
()
:
nullptr
;
aPair
.
second
=
m_pEdRef
;
aPair
.
second
=
m_pEdRef
;
return
aPair
;
return
aPair
;
}
}
...
@@ -1495,7 +1495,7 @@ void FormulaDlg_Impl::RefInputDoneAfter( bool bForced )
...
@@ -1495,7 +1495,7 @@ void FormulaDlg_Impl::RefInputDoneAfter( bool bForced )
sal_uInt16
nPrivActiv
=
pParaWin
->
GetActiveLine
();
sal_uInt16
nPrivActiv
=
pParaWin
->
GetActiveLine
();
pParaWin
->
SetArgument
(
nPrivActiv
,
m_pEdRef
->
GetText
()
);
pParaWin
->
SetArgument
(
nPrivActiv
,
m_pEdRef
->
GetText
()
);
ModifyHdl
(
*
pParaWin
);
ModifyHdl
(
*
pParaWin
);
pTheRefEdit
=
NULL
;
pTheRefEdit
=
nullptr
;
}
}
m_pParent
->
SetText
(
aTitle1
);
m_pParent
->
SetText
(
aTitle1
);
}
}
...
@@ -1622,7 +1622,7 @@ void FormulaDlg_Impl::UpdateParaWin(const Selection& _rSelection, const OUString
...
@@ -1622,7 +1622,7 @@ void FormulaDlg_Impl::UpdateParaWin(const Selection& _rSelection, const OUString
pParaWin
->
UpdateParas
();
pParaWin
->
UpdateParas
();
Edit
*
pEd
=
GetCurrRefEdit
();
Edit
*
pEd
=
GetCurrRefEdit
();
if
(
pEd
!=
NULL
)
if
(
pEd
!=
nullptr
)
pEd
->
SetSelection
(
theSel
);
pEd
->
SetSelection
(
theSel
);
pParaWin
->
SetRefMode
(
false
);
pParaWin
->
SetRefMode
(
false
);
...
@@ -1633,7 +1633,7 @@ bool FormulaDlg_Impl::UpdateParaWin(Selection& _rSelection)
...
@@ -1633,7 +1633,7 @@ bool FormulaDlg_Impl::UpdateParaWin(Selection& _rSelection)
OUString
aStrEd
;
OUString
aStrEd
;
Edit
*
pEd
=
GetCurrRefEdit
();
Edit
*
pEd
=
GetCurrRefEdit
();
if
(
pEd
!=
NULL
&&
pTheRefEdit
==
nullptr
)
if
(
pEd
!=
nullptr
&&
pTheRefEdit
==
nullptr
)
{
{
_rSelection
=
pEd
->
GetSelection
();
_rSelection
=
pEd
->
GetSelection
();
_rSelection
.
Justify
();
_rSelection
.
Justify
();
...
@@ -1921,7 +1921,7 @@ void FormEditData::SaveValues()
...
@@ -1921,7 +1921,7 @@ void FormEditData::SaveValues()
void
FormEditData
::
Reset
()
void
FormEditData
::
Reset
()
{
{
pParent
=
NULL
;
pParent
=
nullptr
;
nMode
=
0
;
nMode
=
0
;
nFStart
=
0
;
nFStart
=
0
;
nCatSel
=
1
;
//! oder 0 (zuletzt benutzte)
nCatSel
=
1
;
//! oder 0 (zuletzt benutzte)
...
...
formula/source/ui/dlg/funcpage.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -124,7 +124,7 @@ void FuncPage::UpdateFunctionList()
...
@@ -124,7 +124,7 @@ void FuncPage::UpdateFunctionList()
if
(
nSelPos
>
0
)
if
(
nSelPos
>
0
)
{
{
if
(
pCategory
==
NULL
)
if
(
pCategory
==
nullptr
)
{
{
const
sal_uInt32
nCount
=
m_pFunctionManager
->
getCount
();
const
sal_uInt32
nCount
=
m_pFunctionManager
->
getCount
();
for
(
sal_uInt32
i
=
0
;
i
<
nCount
;
++
i
)
for
(
sal_uInt32
i
=
0
;
i
<
nCount
;
++
i
)
...
...
formula/source/ui/dlg/funcutl.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -35,10 +35,10 @@ namespace formula
...
@@ -35,10 +35,10 @@ namespace formula
// class ArgEdit
// class ArgEdit
ArgEdit
::
ArgEdit
(
vcl
::
Window
*
pParent
,
WinBits
nBits
)
ArgEdit
::
ArgEdit
(
vcl
::
Window
*
pParent
,
WinBits
nBits
)
:
RefEdit
(
pParent
,
NULL
,
nBits
),
:
RefEdit
(
pParent
,
nullptr
,
nBits
),
pEdPrev
(
NULL
),
pEdPrev
(
nullptr
),
pEdNext
(
NULL
),
pEdNext
(
nullptr
),
pSlider
(
NULL
),
pSlider
(
nullptr
),
nArgs
(
0
)
nArgs
(
0
)
{
{
}
}
...
@@ -80,7 +80,7 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
...
@@ -80,7 +80,7 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
{
{
if
(
nArgs
>
1
)
if
(
nArgs
>
1
)
{
{
ArgEdit
*
pEd
=
NULL
;
ArgEdit
*
pEd
=
nullptr
;
long
nThumb
=
pSlider
->
GetThumbPos
();
long
nThumb
=
pSlider
->
GetThumbPos
();
bool
bDoScroll
=
false
;
bool
bDoScroll
=
false
;
bool
bChangeFocus
=
false
;
bool
bChangeFocus
=
false
;
...
@@ -146,10 +146,10 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
...
@@ -146,10 +146,10 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
// class ArgInput
// class ArgInput
ArgInput
::
ArgInput
()
ArgInput
::
ArgInput
()
{
{
pFtArg
=
NULL
;
pFtArg
=
nullptr
;
pBtnFx
=
NULL
;
pBtnFx
=
nullptr
;
pEdArg
=
NULL
;
pEdArg
=
nullptr
;
pRefBtn
=
NULL
;
pRefBtn
=
nullptr
;
}
}
void
ArgInput
::
InitArgInput
(
FixedText
*
pftArg
,
PushButton
*
pbtnFx
,
void
ArgInput
::
InitArgInput
(
FixedText
*
pftArg
,
PushButton
*
pbtnFx
,
...
@@ -383,7 +383,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
...
@@ -383,7 +383,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
else
else
{
{
bResult
=
Control
::
PreNotify
(
rNEvt
);
bResult
=
Control
::
PreNotify
(
rNEvt
);
Application
::
PostUserEvent
(
LINK
(
this
,
EditBox
,
ChangedHdl
),
NULL
,
true
);
Application
::
PostUserEvent
(
LINK
(
this
,
EditBox
,
ChangedHdl
),
nullptr
,
true
);
}
}
}
}
...
@@ -394,7 +394,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
...
@@ -394,7 +394,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
if
(
nSwitch
==
MouseNotifyEvent
::
MOUSEBUTTONDOWN
||
nSwitch
==
MouseNotifyEvent
::
MOUSEBUTTONUP
)
if
(
nSwitch
==
MouseNotifyEvent
::
MOUSEBUTTONDOWN
||
nSwitch
==
MouseNotifyEvent
::
MOUSEBUTTONUP
)
{
{
bMouseFlag
=
true
;
bMouseFlag
=
true
;
Application
::
PostUserEvent
(
LINK
(
this
,
EditBox
,
ChangedHdl
),
NULL
,
true
);
Application
::
PostUserEvent
(
LINK
(
this
,
EditBox
,
ChangedHdl
),
nullptr
,
true
);
}
}
}
}
return
bResult
;
return
bResult
;
...
@@ -429,7 +429,7 @@ void EditBox::UpdateOldSel()
...
@@ -429,7 +429,7 @@ void EditBox::UpdateOldSel()
RefEdit
::
RefEdit
(
vcl
::
Window
*
_pParent
,
vcl
::
Window
*
pShrinkModeLabel
,
WinBits
nStyle
)
RefEdit
::
RefEdit
(
vcl
::
Window
*
_pParent
,
vcl
::
Window
*
pShrinkModeLabel
,
WinBits
nStyle
)
:
Edit
(
_pParent
,
nStyle
)
:
Edit
(
_pParent
,
nStyle
)
,
pAnyRefDlg
(
NULL
)
,
pAnyRefDlg
(
nullptr
)
,
pLabelWidget
(
pShrinkModeLabel
)
,
pLabelWidget
(
pShrinkModeLabel
)
{
{
aIdle
.
SetIdleHdl
(
LINK
(
this
,
RefEdit
,
UpdateHdl
)
);
aIdle
.
SetIdleHdl
(
LINK
(
this
,
RefEdit
,
UpdateHdl
)
);
...
@@ -563,8 +563,8 @@ RefButton::RefButton( vcl::Window* _pParent, WinBits nStyle ) :
...
@@ -563,8 +563,8 @@ RefButton::RefButton( vcl::Window* _pParent, WinBits nStyle ) :
aImgRefDone
(
ModuleRes
(
RID_BMP_REFBTN2
)
),
aImgRefDone
(
ModuleRes
(
RID_BMP_REFBTN2
)
),
aShrinkQuickHelp
(
ModuleRes
(
RID_STR_SHRINK
).
toString
()
),
aShrinkQuickHelp
(
ModuleRes
(
RID_STR_SHRINK
).
toString
()
),
aExpandQuickHelp
(
ModuleRes
(
RID_STR_EXPAND
).
toString
()
),
aExpandQuickHelp
(
ModuleRes
(
RID_STR_EXPAND
).
toString
()
),
pAnyRefDlg
(
NULL
),
pAnyRefDlg
(
nullptr
),
pRefEdit
(
NULL
)
pRefEdit
(
nullptr
)
{
{
SetStartImage
();
SetStartImage
();
}
}
...
...
formula/source/ui/dlg/parawin.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -37,7 +37,7 @@ namespace formula
...
@@ -37,7 +37,7 @@ namespace formula
ParaWin
::
ParaWin
(
vcl
::
Window
*
pParent
,
IControlReferenceHandler
*
_pDlg
)
:
ParaWin
::
ParaWin
(
vcl
::
Window
*
pParent
,
IControlReferenceHandler
*
_pDlg
)
:
TabPage
(
pParent
,
"ParameterPage"
,
"formula/ui/parameter.ui"
),
TabPage
(
pParent
,
"ParameterPage"
,
"formula/ui/parameter.ui"
),
pFuncDesc
(
NULL
),
pFuncDesc
(
nullptr
),
pMyParent
(
_pDlg
),
pMyParent
(
_pDlg
),
m_sOptional
(
ModuleRes
(
STR_OPTIONAL
)
),
m_sOptional
(
ModuleRes
(
STR_OPTIONAL
)
),
m_sRequired
(
ModuleRes
(
STR_REQUIRED
)
),
m_sRequired
(
ModuleRes
(
STR_REQUIRED
)
),
...
@@ -287,7 +287,7 @@ RefEdit* ParaWin::GetActiveEdit()
...
@@ -287,7 +287,7 @@ RefEdit* ParaWin::GetActiveEdit()
}
}
else
else
{
{
return
NULL
;
return
nullptr
;
}
}
}
}
...
@@ -340,7 +340,7 @@ void ParaWin::SetFunctionDesc(const IFunctionDescription* pFDesc)
...
@@ -340,7 +340,7 @@ void ParaWin::SetFunctionDesc(const IFunctionDescription* pFDesc)
SetArgumentText
(
OUString
()
);
SetArgumentText
(
OUString
()
);
SetEditDesc
(
OUString
()
);
SetEditDesc
(
OUString
()
);
nArgs
=
0
;
nArgs
=
0
;
if
(
pFuncDesc
!=
NULL
)
if
(
pFuncDesc
!=
nullptr
)
{
{
if
(
!
pFuncDesc
->
getDescription
().
isEmpty
()
)
if
(
!
pFuncDesc
->
getDescription
().
isEmpty
()
)
{
{
...
@@ -444,7 +444,7 @@ void ParaWin::InitArgInput( sal_uInt16 nPos, FixedText& rFtArg, PushButton& rBtn
...
@@ -444,7 +444,7 @@ void ParaWin::InitArgInput( sal_uInt16 nPos, FixedText& rFtArg, PushButton& rBtn
void
ParaWin
::
ClearAll
()
void
ParaWin
::
ClearAll
()
{
{
SetFunctionDesc
(
NULL
);
SetFunctionDesc
(
nullptr
);
SetArgumentOffset
(
0
);
SetArgumentOffset
(
0
);
}
}
...
...
formula/source/ui/dlg/structpg.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -84,7 +84,7 @@ StructPage::StructPage(vcl::Window* pParent):
...
@@ -84,7 +84,7 @@ StructPage::StructPage(vcl::Window* pParent):
TabPage
(
pParent
,
"StructPage"
,
"formula/ui/structpage.ui"
),
TabPage
(
pParent
,
"StructPage"
,
"formula/ui/structpage.ui"
),
maImgEnd
(
ModuleRes
(
BMP_STR_END
)
),
maImgEnd
(
ModuleRes
(
BMP_STR_END
)
),
maImgError
(
ModuleRes
(
BMP_STR_ERROR
)
),
maImgError
(
ModuleRes
(
BMP_STR_ERROR
)
),
pSelectedToken
(
NULL
)
pSelectedToken
(
nullptr
)
{
{
get
(
m_pTlbStruct
,
"struct"
);
get
(
m_pTlbStruct
,
"struct"
);
Size
aSize
(
LogicToPixel
(
Size
(
86
,
162
),
MAP_APPFONT
));
Size
aSize
(
LogicToPixel
(
Size
(
86
,
162
),
MAP_APPFONT
));
...
@@ -123,7 +123,7 @@ SvTreeListEntry* StructPage::InsertEntry( const OUString& rText, SvTreeListEntry
...
@@ -123,7 +123,7 @@ SvTreeListEntry* StructPage::InsertEntry( const OUString& rText, SvTreeListEntry
{
{
m_pTlbStruct
->
SetActiveFlag
(
false
);
m_pTlbStruct
->
SetActiveFlag
(
false
);
SvTreeListEntry
*
pEntry
=
NULL
;
SvTreeListEntry
*
pEntry
=
nullptr
;
switch
(
nFlag
)
switch
(
nFlag
)
{
{
case
STRUCT_FOLDER
:
case
STRUCT_FOLDER
:
...
@@ -145,17 +145,17 @@ SvTreeListEntry* StructPage::InsertEntry( const OUString& rText, SvTreeListEntry
...
@@ -145,17 +145,17 @@ SvTreeListEntry* StructPage::InsertEntry( const OUString& rText, SvTreeListEntry
OUString
StructPage
::
GetEntryText
(
SvTreeListEntry
*
pEntry
)
const
OUString
StructPage
::
GetEntryText
(
SvTreeListEntry
*
pEntry
)
const
{
{
OUString
aString
;
OUString
aString
;
if
(
pEntry
!=
NULL
)
if
(
pEntry
!=
nullptr
)
aString
=
m_pTlbStruct
->
GetEntryText
(
pEntry
);
aString
=
m_pTlbStruct
->
GetEntryText
(
pEntry
);
return
aString
;
return
aString
;
}
}
IFormulaToken
*
StructPage
::
GetFunctionEntry
(
SvTreeListEntry
*
pEntry
)
IFormulaToken
*
StructPage
::
GetFunctionEntry
(
SvTreeListEntry
*
pEntry
)
{
{
if
(
pEntry
!=
NULL
)
if
(
pEntry
!=
nullptr
)
{
{
IFormulaToken
*
pToken
=
static_cast
<
IFormulaToken
*>
(
pEntry
->
GetUserData
());
IFormulaToken
*
pToken
=
static_cast
<
IFormulaToken
*>
(
pEntry
->
GetUserData
());
if
(
pToken
!=
NULL
)
if
(
pToken
!=
nullptr
)
{
{
if
(
!
(
pToken
->
isFunction
()
||
pToken
->
getArgumentCount
()
>
1
)
)
if
(
!
(
pToken
->
isFunction
()
||
pToken
->
getArgumentCount
()
>
1
)
)
{
{
...
@@ -167,7 +167,7 @@ IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry)
...
@@ -167,7 +167,7 @@ IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry)
}
}
}
}
}
}
return
NULL
;
return
nullptr
;
}
}
IMPL_LINK_TYPED
(
StructPage
,
SelectHdl
,
SvTreeListBox
*
,
pTlb
,
void
)
IMPL_LINK_TYPED
(
StructPage
,
SelectHdl
,
SvTreeListBox
*
,
pTlb
,
void
)
...
@@ -177,10 +177,10 @@ IMPL_LINK_TYPED( StructPage, SelectHdl, SvTreeListBox*, pTlb, void )
...
@@ -177,10 +177,10 @@ IMPL_LINK_TYPED( StructPage, SelectHdl, SvTreeListBox*, pTlb, void )
if
(
pTlb
==
m_pTlbStruct
)
if
(
pTlb
==
m_pTlbStruct
)
{
{
SvTreeListEntry
*
pCurEntry
=
m_pTlbStruct
->
GetCurEntry
();
SvTreeListEntry
*
pCurEntry
=
m_pTlbStruct
->
GetCurEntry
();
if
(
pCurEntry
!=
NULL
)
if
(
pCurEntry
!=
nullptr
)
{
{
pSelectedToken
=
static_cast
<
IFormulaToken
*>
(
pCurEntry
->
GetUserData
());
pSelectedToken
=
static_cast
<
IFormulaToken
*>
(
pCurEntry
->
GetUserData
());
if
(
pSelectedToken
!=
NULL
)
if
(
pSelectedToken
!=
nullptr
)
{
{
if
(
!
(
pSelectedToken
->
isFunction
()
||
pSelectedToken
->
getArgumentCount
()
>
1
)
)
if
(
!
(
pSelectedToken
->
isFunction
()
||
pSelectedToken
->
getArgumentCount
()
>
1
)
)
{
{
...
...
formula/source/ui/dlg/structpg.hxx
Dosyayı görüntüle @
e5b721a1
...
@@ -54,9 +54,9 @@ public:
...
@@ -54,9 +54,9 @@ public:
SvTreeListEntry
*
InsertStaticEntry
(
SvTreeListEntry
*
InsertStaticEntry
(
const
OUString
&
rText
,
const
OUString
&
rText
,
const
Image
&
rEntryImg
,
const
Image
&
rEntryImg
,
SvTreeListEntry
*
pParent
=
NULL
,
SvTreeListEntry
*
pParent
=
nullptr
,
sal_uLong
nPos
=
TREELIST_APPEND
,
sal_uLong
nPos
=
TREELIST_APPEND
,
IFormulaToken
*
pToken
=
NULL
);
IFormulaToken
*
pToken
=
nullptr
);
void
SetActiveFlag
(
bool
bFlag
=
true
);
void
SetActiveFlag
(
bool
bFlag
=
true
);
bool
GetActiveFlag
()
{
return
bActiveFlag
;}
bool
GetActiveFlag
()
{
return
bActiveFlag
;}
...
@@ -94,7 +94,7 @@ public:
...
@@ -94,7 +94,7 @@ public:
void
ClearStruct
();
void
ClearStruct
();
SvTreeListEntry
*
InsertEntry
(
const
OUString
&
rText
,
SvTreeListEntry
*
pParent
,
SvTreeListEntry
*
InsertEntry
(
const
OUString
&
rText
,
SvTreeListEntry
*
pParent
,
sal_uInt16
nFlag
,
sal_uLong
nPos
=
0
,
IFormulaToken
*
pScToken
=
NULL
);
sal_uInt16
nFlag
,
sal_uLong
nPos
=
0
,
IFormulaToken
*
pScToken
=
nullptr
);
OUString
GetEntryText
(
SvTreeListEntry
*
pEntry
)
const
;
OUString
GetEntryText
(
SvTreeListEntry
*
pEntry
)
const
;
...
...
formula/source/ui/resource/ModuleHelper.cxx
Dosyayı görüntüle @
e5b721a1
...
@@ -55,7 +55,7 @@ public:
...
@@ -55,7 +55,7 @@ public:
};
};
OModuleImpl
::
OModuleImpl
()
OModuleImpl
::
OModuleImpl
()
:
m_pResources
(
NULL
)
:
m_pResources
(
nullptr
)
{
{
}
}
...
@@ -87,7 +87,7 @@ namespace
...
@@ -87,7 +87,7 @@ namespace
struct
theOModuleMutex
:
public
rtl
::
Static
<
osl
::
Mutex
,
theOModuleMutex
>
{};
struct
theOModuleMutex
:
public
rtl
::
Static
<
osl
::
Mutex
,
theOModuleMutex
>
{};
}
}
sal_Int32
OModule
::
s_nClients
=
0
;
sal_Int32
OModule
::
s_nClients
=
0
;
OModuleImpl
*
OModule
::
s_pImpl
=
NULL
;
OModuleImpl
*
OModule
::
s_pImpl
=
nullptr
;
ResMgr
*
OModule
::
getResManager
()
ResMgr
*
OModule
::
getResManager
()
{
{
...
@@ -109,7 +109,7 @@ void OModule::revokeClient()
...
@@ -109,7 +109,7 @@ void OModule::revokeClient()
if
(
!--
s_nClients
&&
s_pImpl
)
if
(
!--
s_nClients
&&
s_pImpl
)
{
{
delete
s_pImpl
;
delete
s_pImpl
;
s_pImpl
=
NULL
;
s_pImpl
=
nullptr
;
}
}
}
}
...
...
include/formula/IControlReferenceHandler.hxx
Dosyayı görüntüle @
e5b721a1
...
@@ -31,8 +31,8 @@ namespace formula
...
@@ -31,8 +31,8 @@ namespace formula
public
:
public
:
virtual
void
ShowReference
(
const
OUString
&
_sRef
)
=
0
;
virtual
void
ShowReference
(
const
OUString
&
_sRef
)
=
0
;
virtual
void
HideReference
(
bool
bDoneRefMode
=
true
)
=
0
;
virtual
void
HideReference
(
bool
bDoneRefMode
=
true
)
=
0
;
virtual
void
ReleaseFocus
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
)
=
0
;
virtual
void
ReleaseFocus
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
nullptr
)
=
0
;
virtual
void
ToggleCollapsed
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
)
=
0
;
virtual
void
ToggleCollapsed
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
nullptr
)
=
0
;
protected
:
protected
:
~
IControlReferenceHandler
()
{}
~
IControlReferenceHandler
()
{}
...
...
include/formula/formula.hxx
Dosyayı görüntüle @
e5b721a1
...
@@ -55,7 +55,7 @@ public:
...
@@ -55,7 +55,7 @@ public:
,
bool
_bSupportResult
,
bool
_bSupportResult
,
bool
_bSupportMatrix
,
bool
_bSupportMatrix
,
IFunctionManager
*
_pFunctionMgr
,
IFunctionManager
*
_pFunctionMgr
,
IControlReferenceHandler
*
_pDlg
=
NULL
);
,
IControlReferenceHandler
*
_pDlg
=
nullptr
);
virtual
~
FormulaModalDialog
();
virtual
~
FormulaModalDialog
();
virtual
void
dispose
()
override
;
virtual
void
dispose
()
override
;
...
@@ -65,8 +65,8 @@ private:
...
@@ -65,8 +65,8 @@ private:
protected
:
protected
:
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
)
override
;
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
)
override
;
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
nullptr
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
nullptr
);
void
RefInputDoneAfter
(
bool
bForced
=
false
);
void
RefInputDoneAfter
(
bool
bForced
=
false
);
void
SetFocusWin
(
vcl
::
Window
*
pWin
,
const
OString
&
nUniqueId
);
void
SetFocusWin
(
vcl
::
Window
*
pWin
,
const
OString
&
nUniqueId
);
...
@@ -95,7 +95,7 @@ public:
...
@@ -95,7 +95,7 @@ public:
,
bool
_bSupportResult
,
bool
_bSupportResult
,
bool
_bSupportMatrix
,
bool
_bSupportMatrix
,
IFunctionManager
*
_pFunctionMgr
,
IFunctionManager
*
_pFunctionMgr
,
IControlReferenceHandler
*
_pDlg
=
NULL
);
,
IControlReferenceHandler
*
_pDlg
=
nullptr
);
virtual
~
FormulaDlg
();
virtual
~
FormulaDlg
();
virtual
void
dispose
()
override
;
virtual
void
dispose
()
override
;
private
:
private
:
...
@@ -108,8 +108,8 @@ protected:
...
@@ -108,8 +108,8 @@ protected:
protected
:
protected
:
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
)
override
;
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
)
override
;
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
nullptr
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
nullptr
);
void
RefInputDoneAfter
(
bool
bForced
=
false
);
void
RefInputDoneAfter
(
bool
bForced
=
false
);
void
SetFocusWin
(
vcl
::
Window
*
pWin
,
const
OString
&
nUniqueId
);
void
SetFocusWin
(
vcl
::
Window
*
pWin
,
const
OString
&
nUniqueId
);
...
...
include/formula/formulahelper.hxx
Dosyayı görüntüle @
e5b721a1
...
@@ -49,12 +49,12 @@ namespace formula
...
@@ -49,12 +49,12 @@ namespace formula
bool
GetNextFunc
(
const
OUString
&
rFormula
,
bool
GetNextFunc
(
const
OUString
&
rFormula
,
bool
bBack
,
bool
bBack
,
sal_Int32
&
rFStart
,
// Ein- und Ausgabe
sal_Int32
&
rFStart
,
// Ein- und Ausgabe
sal_Int32
*
pFEnd
=
NULL
,
sal_Int32
*
pFEnd
=
nullptr
,
const
IFunctionDescription
**
ppFDesc
=
NULL
,
const
IFunctionDescription
**
ppFDesc
=
nullptr
,
::
std
::
vector
<
OUString
>*
pArgs
=
NULL
)
const
;
::
std
::
vector
<
OUString
>*
pArgs
=
nullptr
)
const
;
sal_Int32
GetFunctionStart
(
const
OUString
&
rFormula
,
sal_Int32
nStart
,
sal_Int32
GetFunctionStart
(
const
OUString
&
rFormula
,
sal_Int32
nStart
,
bool
bBack
,
OUString
*
pFuncName
=
NULL
)
const
;
bool
bBack
,
OUString
*
pFuncName
=
nullptr
)
const
;
sal_Int32
GetFunctionEnd
(
const
OUString
&
rFormula
,
sal_Int32
nStart
)
const
;
sal_Int32
GetFunctionEnd
(
const
OUString
&
rFormula
,
sal_Int32
nStart
)
const
;
...
...
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