summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-18 13:05:25 +0200
committerNoel Grandin <noel@peralex.com>2014-02-19 13:04:57 +0200
commite490f09bb39b8dbeea63b0f8be053834a6e9efa6 (patch)
treeaf093e521740b50651e20804e1e8a8506b51c3c7 /sc
parentcabf650ad000d3f98ca1075a67838d2a0992ed02 (diff)
sal_Bool->bool
Change-Id: Ia6ab58e93218d91a364a7e6fbe616af8383bd3cf
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/scmod.hxx30
-rw-r--r--sc/source/ui/app/scmod.cxx52
2 files changed, 41 insertions, 41 deletions
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx
index cedc0ef30f77..12381f8c7361 100644
--- a/sc/inc/scmod.hxx
+++ b/sc/inc/scmod.hxx
@@ -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_Bool bSet );
- static sal_Bool HasThesaurusLanguage( sal_uInt16 nLang );
+ static void SetAutoSpellProperty( bool bSet );
+ static bool 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_Bool IsEditMode(); // not for SC_INPUT_TYPE
- sal_Bool IsInputMode(); // also for SC_INPUT_TYPE
+ bool IsEditMode(); // not for SC_INPUT_TYPE
+ bool IsInputMode(); // also for SC_INPUT_TYPE
void SetInputMode( ScInputMode eMode );
- sal_Bool InputKeyEvent( const KeyEvent& rKEvt, sal_Bool bStartEdit = false );
+ bool InputKeyEvent( const KeyEvent& rKEvt, bool 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_True );
+ ScInputHandler* GetInputHdl( ScTabViewShell* pViewSh = NULL, bool bUseRef = true );
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_Bool bMatrix = false );
+ bool bMatrix = false );
void InitFormEditData();
void ClearFormEditData();
ScFormEditData* GetFormEditData() { return pFormEditData; }
// input of reference:
- SC_DLLPUBLIC void SetRefDialog( sal_uInt16 nId, sal_Bool bVis, SfxViewFrame* pViewFrm = NULL );
- sal_Bool IsModalMode(SfxObjectShell* pDocSh = NULL);
- sal_Bool IsFormulaMode();
- sal_Bool IsRefDialogOpen();
- sal_Bool IsTableLocked();
+ SC_DLLPUBLIC void SetRefDialog( sal_uInt16 nId, bool bVis, SfxViewFrame* pViewFrm = NULL );
+ bool IsModalMode(SfxObjectShell* pDocSh = NULL);
+ bool IsFormulaMode();
+ bool IsRefDialogOpen();
+ bool 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_Bool RegisterRefWindow( sal_uInt16 nSlotId, Window *pWnd );
- SC_DLLPUBLIC sal_Bool UnregisterRefWindow( sal_uInt16 nSlotId, Window *pWnd );
- SC_DLLPUBLIC sal_Bool IsAliveRefDlg( sal_uInt16 nSlotId, Window *pWnd );
+ SC_DLLPUBLIC bool RegisterRefWindow( sal_uInt16 nSlotId, Window *pWnd );
+ SC_DLLPUBLIC bool UnregisterRefWindow( sal_uInt16 nSlotId, Window *pWnd );
+ SC_DLLPUBLIC bool IsAliveRefDlg( sal_uInt16 nSlotId, Window *pWnd );
SC_DLLPUBLIC Window * Find1RefWindow( sal_uInt16 nSlotId, Window *pWndAncestor );
ScAnyRefModalDlg* GetCurrentAnyRefDlg();
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 41e1c7b4549c..3ddc2a7f281b 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1422,7 +1422,7 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
//
//------------------------------------------------------------------
-ScInputHandler* ScModule::GetInputHdl( ScTabViewShell* pViewSh, sal_Bool bUseRef )
+ScInputHandler* ScModule::GetInputHdl( ScTabViewShell* pViewSh, bool bUseRef )
{
if ( pRefInputHandler && bUseRef )
return pRefInputHandler;
@@ -1461,19 +1461,19 @@ void ScModule::SetInputMode( ScInputMode eMode )
pHdl->SetMode( eMode );
}
-sal_Bool ScModule::IsEditMode()
+bool ScModule::IsEditMode()
{
ScInputHandler* pHdl = GetInputHdl();
return pHdl && pHdl->IsEditMode();
}
-sal_Bool ScModule::IsInputMode()
+bool ScModule::IsInputMode()
{
ScInputHandler* pHdl = GetInputHdl();
return pHdl && pHdl->IsInputMode();
}
-sal_Bool ScModule::InputKeyEvent( const KeyEvent& rKEvt, sal_Bool bStartEdit )
+bool ScModule::InputKeyEvent( const KeyEvent& rKEvt, bool 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_Bool bMatrix )
+void ScModule::ActivateInputWindow( const OUString* pStrFormula, bool 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_Bool bVis, SfxViewFrame* pViewFrm )
+void ScModule::SetRefDialog( sal_uInt16 nId, bool 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_Bool ScModule::IsModalMode(SfxObjectShell* pDocSh)
+bool ScModule::IsModalMode(SfxObjectShell* pDocSh)
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
- sal_Bool bIsModal = false;
+ bool 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_True;
+ bIsModal = true;
}
// pChildWnd kann 0 sein, wenn der Dialog nach dem Umschalten
@@ -1713,12 +1713,12 @@ sal_Bool ScModule::IsModalMode(SfxObjectShell* pDocSh)
return bIsModal;
}
-sal_Bool ScModule::IsTableLocked()
+bool ScModule::IsTableLocked()
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
- sal_Bool bLocked = false;
+ bool bLocked = false;
// bisher nur bei ScAnyRefDlg
@@ -1731,18 +1731,18 @@ sal_Bool ScModule::IsTableLocked()
else if( pModalDlg )
bLocked = pModalDlg->IsTableLocked();
else
- bLocked = sal_True; // for other views, see IsModalMode
+ bLocked = true; // for other views, see IsModalMode
}
return bLocked;
}
-sal_Bool ScModule::IsRefDialogOpen()
+bool ScModule::IsRefDialogOpen()
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
- sal_Bool bIsOpen = false;
+ bool bIsOpen = false;
if ( nCurRefDlgId )
{
@@ -1753,18 +1753,18 @@ sal_Bool ScModule::IsRefDialogOpen()
else if(pModalDlg)
bIsOpen = pModalDlg->IsVisible();
else
- bIsOpen = sal_True; // for other views, see IsModalMode
+ bIsOpen = true; // for other views, see IsModalMode
}
return bIsOpen;
}
-sal_Bool ScModule::IsFormulaMode()
+bool ScModule::IsFormulaMode()
{
//! move reference dialog handling to view
//! (only keep function autopilot here for references to other documents)
- sal_Bool bIsFormula = false;
+ bool bIsFormula = false;
if ( nCurRefDlgId )
{
@@ -1790,7 +1790,7 @@ sal_Bool ScModule::IsFormulaMode()
}
if (bIsInEditCommand)
- bIsFormula = sal_True;
+ bIsFormula = true;
return bIsFormula;
}
@@ -2277,20 +2277,20 @@ IMPL_LINK( ScModule, CalcFieldValueHdl, EditFieldInfo*, pInfo )
return 0;
}
-sal_Bool ScModule::RegisterRefWindow( sal_uInt16 nSlotId, Window *pWnd )
+bool 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_True;
+ return true;
}
return false;
}
-sal_Bool ScModule::UnregisterRefWindow( sal_uInt16 nSlotId, Window *pWnd )
+bool 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_True;
+ return true;
}
-sal_Bool ScModule::IsAliveRefDlg( sal_uInt16 nSlotId, Window *pWnd )
+bool 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_Bool bSet )
+void ScModule::SetAutoSpellProperty( bool 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_Bool ScModule::HasThesaurusLanguage( sal_uInt16 nLang )
+bool ScModule::HasThesaurusLanguage( sal_uInt16 nLang )
{
if ( nLang == LANGUAGE_NONE )
return false;
- sal_Bool bHasLang = false;
+ bool bHasLang = false;
try
{
uno::Reference< linguistic2::XThesaurus > xThes(LinguMgr::GetThesaurus());