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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
42 deletions
+42
-42
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
+0
-0
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:
MultiLineEdit
*
pMEdit
;
Link
aSelChangedLink
;
Selection
aOldSel
;
sal_B
ool
bMouseFlag
;
b
ool
bMouseFlag
;
DECL_LINK
(
ChangedHdl
,
void
*
);
protected
:
...
...
formula/source/ui/dlg/FormulaHelper.cxx
Dosyayı görüntüle @
32efd885
...
...
@@ -130,7 +130,7 @@ void FormulaHelper::FillArgStrings( const OUString& rFormula,
sal_Int32
nStart
=
0
;
sal_Int32
nEnd
=
0
;
sal_uInt16
i
;
sal_Bool
bLast
=
sal_F
alse
;
bool
bLast
=
f
alse
;
for
(
i
=
0
;
i
<
nArgs
&&
!
bLast
;
i
++
)
{
...
...
@@ -143,7 +143,7 @@ void FormulaHelper::FillArgStrings( const OUString& rFormula,
if
(
nEnd
!=
nStart
)
_rArgs
.
push_back
(
rFormula
.
copy
(
nStart
,
nEnd
-
1
-
nStart
));
else
_rArgs
.
push_back
(
OUString
()),
bLast
=
sal_T
rue
;
_rArgs
.
push_back
(
OUString
()),
bLast
=
t
rue
;
}
else
{
...
...
@@ -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
)
)
return
sal_T
rue
;
return
t
rue
;
else
{
// In internationalized versions function names may contain a dot
// and in every version also an underscore... ;-)
...
...
@@ -201,11 +201,11 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
sal_Int32
nFStart
=
FUNC_NOTFOUND
;
sal_Int32
nParPos
=
nStart
;
sal_B
ool
bRepeat
,
bFound
;
b
ool
bRepeat
,
bFound
;
do
{
bFound
=
sal_F
alse
;
bRepeat
=
sal_F
alse
;
bFound
=
f
alse
;
bRepeat
=
f
alse
;
if
(
bBack
)
{
...
...
@@ -219,7 +219,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
if
(
nParPos
>
0
)
nParPos
--
;
}
else
if
(
(
bFound
=
(
rFormula
[
nParPos
]
==
'('
)
)
==
sal_F
alse
)
else
if
(
(
bFound
=
(
rFormula
[
nParPos
]
==
'('
)
)
==
f
alse
)
nParPos
--
;
}
}
...
...
@@ -234,7 +234,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
nParPos
++
;
nParPos
++
;
}
else
if
(
(
bFound
=
(
rFormula
[
nParPos
]
==
'('
)
)
==
sal_F
alse
)
else
if
(
(
bFound
=
(
rFormula
[
nParPos
]
==
'('
)
)
==
f
alse
)
nParPos
++
;
}
}
...
...
@@ -259,13 +259,13 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
}
else
// Brackets without function -> keep searching
{
bRepeat
=
sal_T
rue
;
bRepeat
=
t
rue
;
if
(
!
bBack
)
nParPos
++
;
else
if
(
nParPos
>
0
)
nParPos
--
;
else
bRepeat
=
sal_F
alse
;
bRepeat
=
f
alse
;
}
}
else
// No brackets found
...
...
@@ -291,7 +291,7 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
short
nParCount
=
0
;
bool
bInArray
=
false
;
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
while
(
!
bFound
&&
(
nStart
<
nStrLen
)
)
{
...
...
@@ -309,10 +309,10 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
{
nParCount
--
;
if
(
nParCount
==
0
)
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
else
if
(
nParCount
<
0
)
{
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
nStart
--
;
// read one too far
}
}
...
...
@@ -328,7 +328,7 @@ sal_Int32 FormulaHelper::GetFunctionEnd( const OUString& rStr, sal_Int32 nStart
{
if
(
!
bInArray
&&
nParCount
==
0
)
{
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
nStart
--
;
// read one too far
}
}
...
...
@@ -349,7 +349,7 @@ sal_Int32 FormulaHelper::GetArgStart( const OUString& rStr, sal_Int32 nStart, sa
short
nParCount
=
0
;
bool
bInArray
=
false
;
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
while
(
!
bFound
&&
(
nStart
<
nStrLen
)
)
{
...
...
formula/source/ui/dlg/formula.cxx
Dosyayı görüntüle @
32efd885
This diff is collapsed.
Click to expand it.
formula/source/ui/dlg/funcutl.cxx
Dosyayı görüntüle @
32efd885
...
...
@@ -102,8 +102,8 @@ void ArgEdit::Init( ArgEdit* pPrevEdit, ArgEdit* pNextEdit,
void
ArgEdit
::
KeyInput
(
const
KeyEvent
&
rKEvt
)
{
KeyCode
aCode
=
rKEvt
.
GetKeyCode
();
sal_B
ool
bUp
=
(
aCode
.
GetCode
()
==
KEY_UP
);
sal_B
ool
bDown
=
(
aCode
.
GetCode
()
==
KEY_DOWN
);
b
ool
bUp
=
(
aCode
.
GetCode
()
==
KEY_UP
);
b
ool
bDown
=
(
aCode
.
GetCode
()
==
KEY_DOWN
);
if
(
pSlider
&&
(
!
aCode
.
IsShift
()
&&
!
aCode
.
IsMod1
()
&&
!
aCode
.
IsMod2
()
)
...
...
@@ -113,8 +113,8 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
{
ArgEdit
*
pEd
=
NULL
;
long
nThumb
=
pSlider
->
GetThumbPos
();
sal_Bool
bDoScroll
=
sal_F
alse
;
sal_Bool
bChangeFocus
=
sal_F
alse
;
bool
bDoScroll
=
f
alse
;
bool
bChangeFocus
=
f
alse
;
if
(
bDown
)
{
...
...
@@ -128,13 +128,13 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
else
{
pEd
=
pEdNext
;
bChangeFocus
=
sal_T
rue
;
bChangeFocus
=
t
rue
;
}
}
else
if
(
pEdNext
)
{
pEd
=
pEdNext
;
bChangeFocus
=
sal_T
rue
;
bChangeFocus
=
t
rue
;
}
}
else
// if ( bUp )
...
...
@@ -149,13 +149,13 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
else
{
pEd
=
pEdPrev
;
bChangeFocus
=
sal_T
rue
;
bChangeFocus
=
t
rue
;
}
}
else
if
(
pEdPrev
)
{
pEd
=
pEdPrev
;
bChangeFocus
=
sal_T
rue
;
bChangeFocus
=
t
rue
;
}
}
...
...
@@ -376,7 +376,7 @@ IMPL_LINK( ArgInput, EdModifyHdl,ArgEdit*, pEd )
// class EditBox
EditBox
::
EditBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
Control
(
pParent
,
rResId
),
bMouseFlag
(
sal_F
alse
)
bMouseFlag
(
f
alse
)
{
WinBits
nStyle
=
GetStyle
();
SetStyle
(
nStyle
|
WB_DIALOGCONTROL
);
...
...
@@ -456,7 +456,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt )
if
(
nSwitch
==
EVENT_MOUSEBUTTONDOWN
||
nSwitch
==
EVENT_MOUSEBUTTONUP
)
{
bMouseFlag
=
sal_T
rue
;
bMouseFlag
=
t
rue
;
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):
aSlider
(
this
,
ModuleRes
(
WND_SLIDER
)
),
m_sOptional
(
ModuleRes
(
STR_OPTIONAL
)
),
m_sRequired
(
ModuleRes
(
STR_REQUIRED
)
),
bRefMode
(
sal_F
alse
)
bRefMode
(
f
alse
)
{
FreeResource
();
aDefaultString
=
aFtEditDesc
.
GetText
();
...
...
formula/source/ui/dlg/parawin.hxx
Dosyayı görüntüle @
32efd885
...
...
@@ -83,7 +83,7 @@ private:
ScrollBar
aSlider
;
OUString
m_sOptional
;
OUString
m_sRequired
;
sal_B
ool
bRefMode
;
b
ool
bRefMode
;
sal_uInt16
nEdFocus
;
sal_uInt16
nActiveLine
;
...
...
@@ -132,8 +132,8 @@ public:
void
UpdateParas
();
void
ClearAll
();
sal_B
ool
IsRefMode
()
{
return
bRefMode
;}
void
SetRefMode
(
sal_B
ool
bFlag
)
{
bRefMode
=
bFlag
;}
b
ool
IsRefMode
()
{
return
bRefMode
;}
void
SetRefMode
(
b
ool
bFlag
)
{
bRefMode
=
bFlag
;}
sal_uInt16
GetActiveLine
();
void
SetActiveLine
(
sal_uInt16
no
);
...
...
formula/source/ui/dlg/structpg.cxx
Dosyayı görüntüle @
32efd885
...
...
@@ -35,7 +35,7 @@ namespace formula
StructListBox
::
StructListBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
SvTreeListBox
(
pParent
,
rResId
)
{
bActiveFlag
=
sal_F
alse
;
bActiveFlag
=
f
alse
;
Font
aFont
(
GetFont
()
);
Size
aSize
=
aFont
.
GetSize
();
...
...
@@ -53,31 +53,31 @@ SvTreeListEntry* StructListBox::InsertStaticEntry(
return
pEntry
;
}
void
StructListBox
::
SetActiveFlag
(
sal_B
ool
bFlag
)
void
StructListBox
::
SetActiveFlag
(
b
ool
bFlag
)
{
bActiveFlag
=
bFlag
;
}
sal_B
ool
StructListBox
::
GetActiveFlag
()
b
ool
StructListBox
::
GetActiveFlag
()
{
return
bActiveFlag
;
}
void
StructListBox
::
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
{
bActiveFlag
=
sal_T
rue
;
bActiveFlag
=
t
rue
;
SvTreeListBox
::
MouseButtonDown
(
rMEvt
);
}
void
StructListBox
::
GetFocus
()
{
bActiveFlag
=
sal_T
rue
;
bActiveFlag
=
t
rue
;
SvTreeListBox
::
GetFocus
();
}
void
StructListBox
::
LoseFocus
()
{
bActiveFlag
=
sal_F
alse
;
bActiveFlag
=
f
alse
;
SvTreeListBox
::
LoseFocus
();
}
...
...
@@ -105,14 +105,14 @@ StructPage::StructPage(Window* pParent):
void
StructPage
::
ClearStruct
()
{
aTlbStruct
.
SetActiveFlag
(
sal_F
alse
);
aTlbStruct
.
SetActiveFlag
(
f
alse
);
aTlbStruct
.
Clear
();
}
SvTreeListEntry
*
StructPage
::
InsertEntry
(
const
OUString
&
rText
,
SvTreeListEntry
*
pParent
,
sal_uInt16
nFlag
,
sal_uLong
nPos
,
IFormulaToken
*
pIFormulaToken
)
{
aTlbStruct
.
SetActiveFlag
(
sal_F
alse
);
aTlbStruct
.
SetActiveFlag
(
f
alse
);
SvTreeListEntry
*
pEntry
=
NULL
;
switch
(
nFlag
)
...
...
formula/source/ui/dlg/structpg.hxx
Dosyayı görüntüle @
32efd885
...
...
@@ -41,7 +41,7 @@ class StructListBox : public SvTreeListBox
{
private
:
sal_B
ool
bActiveFlag
;
b
ool
bActiveFlag
;
protected
:
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
...
...
@@ -58,8 +58,8 @@ public:
sal_uLong
nPos
=
TREELIST_APPEND
,
IFormulaToken
*
pToken
=
NULL
);
void
SetActiveFlag
(
sal_Bool
bFlag
=
sal_T
rue
);
sal_B
ool
GetActiveFlag
();
void
SetActiveFlag
(
bool
bFlag
=
t
rue
);
b
ool
GetActiveFlag
();
void
GetFocus
()
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