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
e490f09b
Kaydet (Commit)
e490f09b
authored
Şub 18, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: Ia6ab58e93218d91a364a7e6fbe616af8383bd3cf
üst
cabf650a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
41 deletions
+41
-41
scmod.hxx
sc/inc/scmod.hxx
+15
-15
scmod.cxx
sc/source/ui/app/scmod.cxx
+26
-26
No files found.
sc/inc/scmod.hxx
Dosyayı görüntüle @
e490f09b
...
...
@@ -183,8 +183,8 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO
static
void
GetSpellSettings
(
sal_uInt16
&
rDefLang
,
sal_uInt16
&
rCjkLang
,
sal_uInt16
&
rCtlLang
,
bool
&
rAutoSpell
);
static
void
SetAutoSpellProperty
(
sal_B
ool
bSet
);
static
sal_B
ool
HasThesaurusLanguage
(
sal_uInt16
nLang
);
static
void
SetAutoSpellProperty
(
b
ool
bSet
);
static
b
ool
HasThesaurusLanguage
(
sal_uInt16
nLang
);
sal_uInt16
GetOptDigitLanguage
();
// from CTL options
...
...
@@ -198,15 +198,15 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO
void
ModifyOptions
(
const
SfxItemSet
&
rOptSet
);
// InputHandler:
sal_B
ool
IsEditMode
();
// not for SC_INPUT_TYPE
sal_B
ool
IsInputMode
();
// also for SC_INPUT_TYPE
b
ool
IsEditMode
();
// not for SC_INPUT_TYPE
b
ool
IsInputMode
();
// also for SC_INPUT_TYPE
void
SetInputMode
(
ScInputMode
eMode
);
sal_Bool
InputKeyEvent
(
const
KeyEvent
&
rKEvt
,
sal_B
ool
bStartEdit
=
false
);
bool
InputKeyEvent
(
const
KeyEvent
&
rKEvt
,
b
ool
bStartEdit
=
false
);
SC_DLLPUBLIC
void
InputEnterHandler
(
sal_uInt8
nBlockMode
=
0
);
void
InputCancelHandler
();
void
InputSelection
(
EditView
*
pView
);
void
InputChanged
(
EditView
*
pView
);
ScInputHandler
*
GetInputHdl
(
ScTabViewShell
*
pViewSh
=
NULL
,
sal_Bool
bUseRef
=
sal_T
rue
);
ScInputHandler
*
GetInputHdl
(
ScTabViewShell
*
pViewSh
=
NULL
,
bool
bUseRef
=
t
rue
);
void
SetRefInputHdl
(
ScInputHandler
*
pNew
);
ScInputHandler
*
GetRefInputHdl
();
...
...
@@ -220,18 +220,18 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO
void
InputTurnOffWinEngine
();
OUString
InputGetFormulaStr
();
void
ActivateInputWindow
(
const
OUString
*
pStr
=
NULL
,
sal_B
ool
bMatrix
=
false
);
b
ool
bMatrix
=
false
);
void
InitFormEditData
();
void
ClearFormEditData
();
ScFormEditData
*
GetFormEditData
()
{
return
pFormEditData
;
}
// input of reference:
SC_DLLPUBLIC
void
SetRefDialog
(
sal_uInt16
nId
,
sal_B
ool
bVis
,
SfxViewFrame
*
pViewFrm
=
NULL
);
sal_B
ool
IsModalMode
(
SfxObjectShell
*
pDocSh
=
NULL
);
sal_B
ool
IsFormulaMode
();
sal_B
ool
IsRefDialogOpen
();
sal_B
ool
IsTableLocked
();
SC_DLLPUBLIC
void
SetRefDialog
(
sal_uInt16
nId
,
b
ool
bVis
,
SfxViewFrame
*
pViewFrm
=
NULL
);
b
ool
IsModalMode
(
SfxObjectShell
*
pDocSh
=
NULL
);
b
ool
IsFormulaMode
();
b
ool
IsRefDialogOpen
();
b
ool
IsTableLocked
();
void
SetReference
(
const
ScRange
&
rRef
,
ScDocument
*
pDoc
,
const
ScMarkData
*
pMarkData
=
NULL
);
void
AddRefEntry
();
...
...
@@ -248,9 +248,9 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO
void
SetInSharedDocSaving
(
bool
bNew
)
{
mbIsInSharedDocSaving
=
bNew
;
}
bool
IsInSharedDocSaving
()
const
{
return
mbIsInSharedDocSaving
;
}
SC_DLLPUBLIC
sal_B
ool
RegisterRefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWnd
);
SC_DLLPUBLIC
sal_B
ool
UnregisterRefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWnd
);
SC_DLLPUBLIC
sal_B
ool
IsAliveRefDlg
(
sal_uInt16
nSlotId
,
Window
*
pWnd
);
SC_DLLPUBLIC
b
ool
RegisterRefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWnd
);
SC_DLLPUBLIC
b
ool
UnregisterRefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWnd
);
SC_DLLPUBLIC
b
ool
IsAliveRefDlg
(
sal_uInt16
nSlotId
,
Window
*
pWnd
);
SC_DLLPUBLIC
Window
*
Find1RefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWndAncestor
);
ScAnyRefModalDlg
*
GetCurrentAnyRefDlg
();
...
...
sc/source/ui/app/scmod.cxx
Dosyayı görüntüle @
e490f09b
...
...
@@ -1422,7 +1422,7 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
//
//------------------------------------------------------------------
ScInputHandler
*
ScModule
::
GetInputHdl
(
ScTabViewShell
*
pViewSh
,
sal_B
ool
bUseRef
)
ScInputHandler
*
ScModule
::
GetInputHdl
(
ScTabViewShell
*
pViewSh
,
b
ool
bUseRef
)
{
if
(
pRefInputHandler
&&
bUseRef
)
return
pRefInputHandler
;
...
...
@@ -1461,19 +1461,19 @@ void ScModule::SetInputMode( ScInputMode eMode )
pHdl
->
SetMode
(
eMode
);
}
sal_B
ool
ScModule
::
IsEditMode
()
b
ool
ScModule
::
IsEditMode
()
{
ScInputHandler
*
pHdl
=
GetInputHdl
();
return
pHdl
&&
pHdl
->
IsEditMode
();
}
sal_B
ool
ScModule
::
IsInputMode
()
b
ool
ScModule
::
IsInputMode
()
{
ScInputHandler
*
pHdl
=
GetInputHdl
();
return
pHdl
&&
pHdl
->
IsInputMode
();
}
sal_Bool
ScModule
::
InputKeyEvent
(
const
KeyEvent
&
rKEvt
,
sal_B
ool
bStartEdit
)
bool
ScModule
::
InputKeyEvent
(
const
KeyEvent
&
rKEvt
,
b
ool
bStartEdit
)
{
ScInputHandler
*
pHdl
=
GetInputHdl
();
return
(
pHdl
?
pHdl
->
KeyInput
(
rKEvt
,
bStartEdit
)
:
false
);
...
...
@@ -1567,7 +1567,7 @@ OUString ScModule::InputGetFormulaStr()
return
aStr
;
}
void
ScModule
::
ActivateInputWindow
(
const
OUString
*
pStrFormula
,
sal_B
ool
bMatrix
)
void
ScModule
::
ActivateInputWindow
(
const
OUString
*
pStrFormula
,
b
ool
bMatrix
)
{
ScInputHandler
*
pHdl
=
GetInputHdl
();
if
(
pHdl
)
...
...
@@ -1607,7 +1607,7 @@ void ScModule::ActivateInputWindow( const OUString* pStrFormula, sal_Bool bMatri
//
//------------------------------------------------------------------
void
ScModule
::
SetRefDialog
(
sal_uInt16
nId
,
sal_B
ool
bVis
,
SfxViewFrame
*
pViewFrm
)
void
ScModule
::
SetRefDialog
(
sal_uInt16
nId
,
b
ool
bVis
,
SfxViewFrame
*
pViewFrm
)
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
...
...
@@ -1671,12 +1671,12 @@ static SfxChildWindow* lcl_GetChildWinFromAnyView( sal_uInt16 nId )
return
NULL
;
// none found
}
sal_B
ool
ScModule
::
IsModalMode
(
SfxObjectShell
*
pDocSh
)
b
ool
ScModule
::
IsModalMode
(
SfxObjectShell
*
pDocSh
)
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
sal_B
ool
bIsModal
=
false
;
b
ool
bIsModal
=
false
;
if
(
nCurRefDlgId
)
{
...
...
@@ -1697,7 +1697,7 @@ sal_Bool ScModule::IsModalMode(SfxObjectShell* pDocSh)
// in 592 and above, the dialog isn't visible in other views
// if the dialog is open but can't be accessed, disable input
bIsModal
=
sal_T
rue
;
bIsModal
=
t
rue
;
}
// pChildWnd kann 0 sein, wenn der Dialog nach dem Umschalten
...
...
@@ -1713,12 +1713,12 @@ sal_Bool ScModule::IsModalMode(SfxObjectShell* pDocSh)
return
bIsModal
;
}
sal_B
ool
ScModule
::
IsTableLocked
()
b
ool
ScModule
::
IsTableLocked
()
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
sal_B
ool
bLocked
=
false
;
b
ool
bLocked
=
false
;
// bisher nur bei ScAnyRefDlg
...
...
@@ -1731,18 +1731,18 @@ sal_Bool ScModule::IsTableLocked()
else
if
(
pModalDlg
)
bLocked
=
pModalDlg
->
IsTableLocked
();
else
bLocked
=
sal_T
rue
;
// for other views, see IsModalMode
bLocked
=
t
rue
;
// for other views, see IsModalMode
}
return
bLocked
;
}
sal_B
ool
ScModule
::
IsRefDialogOpen
()
b
ool
ScModule
::
IsRefDialogOpen
()
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
sal_B
ool
bIsOpen
=
false
;
b
ool
bIsOpen
=
false
;
if
(
nCurRefDlgId
)
{
...
...
@@ -1753,18 +1753,18 @@ sal_Bool ScModule::IsRefDialogOpen()
else
if
(
pModalDlg
)
bIsOpen
=
pModalDlg
->
IsVisible
();
else
bIsOpen
=
sal_T
rue
;
// for other views, see IsModalMode
bIsOpen
=
t
rue
;
// for other views, see IsModalMode
}
return
bIsOpen
;
}
sal_B
ool
ScModule
::
IsFormulaMode
()
b
ool
ScModule
::
IsFormulaMode
()
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
sal_B
ool
bIsFormula
=
false
;
b
ool
bIsFormula
=
false
;
if
(
nCurRefDlgId
)
{
...
...
@@ -1790,7 +1790,7 @@ sal_Bool ScModule::IsFormulaMode()
}
if
(
bIsInEditCommand
)
bIsFormula
=
sal_T
rue
;
bIsFormula
=
t
rue
;
return
bIsFormula
;
}
...
...
@@ -2277,20 +2277,20 @@ IMPL_LINK( ScModule, CalcFieldValueHdl, EditFieldInfo*, pInfo )
return
0
;
}
sal_B
ool
ScModule
::
RegisterRefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWnd
)
b
ool
ScModule
::
RegisterRefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWnd
)
{
std
::
list
<
Window
*>
&
rlRefWindow
=
m_mapRefWindow
[
nSlotId
];
if
(
std
::
find
(
rlRefWindow
.
begin
(),
rlRefWindow
.
end
(),
pWnd
)
==
rlRefWindow
.
end
()
)
{
rlRefWindow
.
push_back
(
pWnd
);
return
sal_T
rue
;
return
t
rue
;
}
return
false
;
}
sal_B
ool
ScModule
::
UnregisterRefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWnd
)
b
ool
ScModule
::
UnregisterRefWindow
(
sal_uInt16
nSlotId
,
Window
*
pWnd
)
{
std
::
map
<
sal_uInt16
,
std
::
list
<
Window
*>
>::
iterator
iSlot
=
m_mapRefWindow
.
find
(
nSlotId
);
...
...
@@ -2309,10 +2309,10 @@ sal_Bool ScModule::UnregisterRefWindow( sal_uInt16 nSlotId, Window *pWnd )
if
(
rlRefWindow
.
empty
()
)
m_mapRefWindow
.
erase
(
nSlotId
);
return
sal_T
rue
;
return
t
rue
;
}
sal_B
ool
ScModule
::
IsAliveRefDlg
(
sal_uInt16
nSlotId
,
Window
*
pWnd
)
b
ool
ScModule
::
IsAliveRefDlg
(
sal_uInt16
nSlotId
,
Window
*
pWnd
)
{
std
::
map
<
sal_uInt16
,
std
::
list
<
Window
*>
>::
iterator
iSlot
=
m_mapRefWindow
.
find
(
nSlotId
);
...
...
@@ -2417,7 +2417,7 @@ void ScModule::GetSpellSettings( sal_uInt16& rDefLang, sal_uInt16& rCjkLang, sal
rAutoSpell
=
aOptions
.
bIsSpellAuto
;
}
void
ScModule
::
SetAutoSpellProperty
(
sal_B
ool
bSet
)
void
ScModule
::
SetAutoSpellProperty
(
b
ool
bSet
)
{
// use SvtLinguConfig instead of service LinguProperties to avoid
// loading the linguistic component
...
...
@@ -2428,12 +2428,12 @@ void ScModule::SetAutoSpellProperty( sal_Bool bSet )
aConfig
.
SetProperty
(
OUString
(
LINGUPROP_AUTOSPELL
),
aAny
);
}
sal_B
ool
ScModule
::
HasThesaurusLanguage
(
sal_uInt16
nLang
)
b
ool
ScModule
::
HasThesaurusLanguage
(
sal_uInt16
nLang
)
{
if
(
nLang
==
LANGUAGE_NONE
)
return
false
;
sal_B
ool
bHasLang
=
false
;
b
ool
bHasLang
=
false
;
try
{
uno
::
Reference
<
linguistic2
::
XThesaurus
>
xThes
(
LinguMgr
::
GetThesaurus
());
...
...
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