summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-08-02 10:21:00 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-08-02 10:25:28 +0900
commitd73ef723a280fc45f24b96e76c4edea112b29994 (patch)
tree379e1492e87fcadeb6988ebc2d8998145486976b /basctl
parent624bcdc302df8cdee7172bc455aa5c4aa9a6710a (diff)
sal_Bool -> bool
Change-Id: Id2addfc6e0c4e0b30281c9f3d22ec0624a61dab1
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside3.cxx6
-rw-r--r--basctl/source/basicide/basides1.cxx4
-rw-r--r--basctl/source/basicide/basides2.cxx4
-rw-r--r--basctl/source/basicide/basides3.cxx4
-rw-r--r--basctl/source/basicide/basidesh.cxx14
-rw-r--r--basctl/source/basicide/basobj2.cxx2
-rw-r--r--basctl/source/basicide/basobj3.cxx2
-rw-r--r--basctl/source/dlged/dlged.cxx6
-rw-r--r--basctl/source/inc/baside3.hxx2
-rw-r--r--basctl/source/inc/basidesh.hxx8
-rw-r--r--basctl/source/inc/dlged.hxx2
11 files changed, 27 insertions, 27 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index fd6e2f79b23f..6083fbd30cb6 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -74,7 +74,7 @@ DialogWindow::DialogWindow( Window* pParent, const ScriptDocument& rDocument, ::
:IDEBaseWindow( pParent, rDocument, aLibName, aName )
,pUndoMgr(NULL)
{
- InitSettings( sal_True, sal_True, sal_True );
+ InitSettings( true, true, true );
pEditor = new DlgEditor( rDocument.isDocument() ? rDocument.getDocument() : Reference< frame::XModel >() );
pEditor->SetWindow( this );
@@ -1382,14 +1382,14 @@ void DialogWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
if( (rDCEvt.GetType()==DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE) )
{
- InitSettings( sal_True, sal_True, sal_True );
+ InitSettings( true, true, true );
Invalidate();
}
else
IDEBaseWindow::DataChanged( rDCEvt );
}
-void DialogWindow::InitSettings(sal_Bool bFont,sal_Bool bForeground,sal_Bool bBackground)
+void DialogWindow::InitSettings(bool bFont, bool bForeground, bool bBackground)
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
if( bFont )
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx
index 86af2859d612..d62d81e86f45 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -633,7 +633,7 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
DBG_ASSERT( rReq.GetArgs(), "arguments expected" );
const SbxItem& rSbxItem = (const SbxItem&)rReq.GetArgs()->Get(SID_BASICIDE_ARG_SBX );
ScriptDocument aDocument( rSbxItem.GetDocument() );
- IDEBaseWindow* pWin = FindWindow( aDocument, rSbxItem.GetLibName(), rSbxItem.GetName(), rSbxItem.GetType(), sal_True );
+ IDEBaseWindow* pWin = FindWindow( aDocument, rSbxItem.GetLibName(), rSbxItem.GetName(), rSbxItem.GetType(), true );
if ( pWin )
RemoveWindow( pWin, true );
}
@@ -1268,7 +1268,7 @@ IDEBaseWindow* BasicIDEShell::FindApplicationWindow()
return FindWindow( ScriptDocument::getApplicationScriptDocument() );
}
-IDEBaseWindow* BasicIDEShell::FindWindow( const ScriptDocument& rDocument, const ::rtl::OUString& rLibName, const ::rtl::OUString& rName, BasicIDEType nType, sal_Bool bFindSuspended )
+IDEBaseWindow* BasicIDEShell::FindWindow( const ScriptDocument& rDocument, const ::rtl::OUString& rLibName, const ::rtl::OUString& rName, BasicIDEType nType, bool bFindSuspended )
{
for( IDEWindowTable::const_iterator it = aIDEWindowTable.begin(); it != aIDEWindowTable.end(); ++it )
{
diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx
index 13db522ddbfd..5ff0a814d281 100644
--- a/basctl/source/basicide/basides2.cxx
+++ b/basctl/source/basicide/basides2.cxx
@@ -174,7 +174,7 @@ void BasicIDEShell::CreateModulWindowLayout()
ModulWindow* BasicIDEShell::CreateBasWin( const ScriptDocument& rDocument, const ::rtl::OUString& rLibName, const ::rtl::OUString& rModName )
{
- bCreatingWindow = sal_True;
+ bCreatingWindow = true;
sal_uLong nKey = 0;
ModulWindow* pWin = 0;
@@ -243,7 +243,7 @@ ModulWindow* BasicIDEShell::CreateBasWin( const ScriptDocument& rDocument, const
if ( !pCurWin )
SetCurWindow( pWin, false, false );
- bCreatingWindow = sal_False;
+ bCreatingWindow = false;
return pWin;
}
diff --git a/basctl/source/basicide/basides3.cxx b/basctl/source/basicide/basides3.cxx
index b4a784900ebc..c0529f1bc412 100644
--- a/basctl/source/basicide/basides3.cxx
+++ b/basctl/source/basicide/basides3.cxx
@@ -43,7 +43,7 @@ using namespace ::com::sun::star::io;
DialogWindow* BasicIDEShell::CreateDlgWin( const ScriptDocument& rDocument, const ::rtl::OUString& rLibName, const ::rtl::OUString& rDlgName )
{
- bCreatingWindow = sal_True;
+ bCreatingWindow = true;
sal_uLong nKey = 0;
DialogWindow* pWin = 0;
@@ -111,7 +111,7 @@ DialogWindow* BasicIDEShell::CreateDlgWin( const ScriptDocument& rDocument, cons
SetCurWindow( pWin, false, false );
}
- bCreatingWindow = sal_False;
+ bCreatingWindow = false;
return pWin;
}
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index e2a09601b749..7a9929074152 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -117,7 +117,7 @@ public:
rtl::OUString sModuleName;
if( mpShell && ( Event.Accessor >>= sModuleName ) )
{
- IDEBaseWindow* pWin = mpShell->FindWindow( mpShell->m_aCurDocument, mpShell->m_aCurLibName, sModuleName, BASICIDE_TYPE_MODULE, sal_True );
+ IDEBaseWindow* pWin = mpShell->FindWindow( mpShell->m_aCurDocument, mpShell->m_aCurLibName, sModuleName, BASICIDE_TYPE_MODULE, true );
if( pWin )
mpShell->RemoveWindow( pWin, true, true );
}
@@ -191,11 +191,11 @@ void BasicIDEShell::Init()
pCurWin = 0;
m_aCurDocument = ScriptDocument::getApplicationScriptDocument();
pObjectCatalog = 0;
- bCreatingWindow = sal_False;
+ bCreatingWindow = false;
pTabBar = new BasicIDETabBar( &GetViewFrame()->GetWindow() );
pTabBar->SetSplitHdl( LINK( this, BasicIDEShell, TabBarSplitHdl ) );
- bTabBarSplitted = sal_False;
+ bTabBarSplitted = false;
nCurKey = 100;
InitScrollBars();
@@ -460,7 +460,7 @@ void BasicIDEShell::OuterResizePixel( const Point &rPos, const Size &rSize )
IMPL_LINK_INLINE_START( BasicIDEShell, TabBarSplitHdl, TabBar *, pTBar )
{
(void)pTBar;
- bTabBarSplitted = sal_True;
+ bTabBarSplitted = true;
ArrangeTabBar();
return 0;
@@ -481,9 +481,9 @@ IMPL_LINK( BasicIDEShell, TabBarHdl, TabBar *, pCurTabBar )
-sal_Bool BasicIDEShell::NextPage( sal_Bool bPrev )
+bool BasicIDEShell::NextPage( bool bPrev )
{
- sal_Bool bRet = sal_False;
+ bool bRet = false;
sal_uInt16 nPos = pTabBar->GetPagePos( pTabBar->GetCurPageId() );
if ( bPrev )
@@ -495,7 +495,7 @@ sal_Bool BasicIDEShell::NextPage( sal_Bool bPrev )
{
IDEBaseWindow* pWin = aIDEWindowTable[ pTabBar->GetPageId( nPos ) ];
SetCurWindow( pWin, true );
- bRet = sal_True;
+ bRet = true;
}
return bRet;
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 600f23ca8e29..e4323599ac25 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -187,7 +187,7 @@ bool RenameModule( Window* pErrorParent, const ScriptDocument& rDocument, const
BasicIDEShell* pIDEShell = BasicIDEGlobals::GetShell();
if ( pIDEShell )
{
- IDEBaseWindow* pWin = pIDEShell->FindWindow( rDocument, rLibName, rNewName, BASICIDE_TYPE_MODULE, sal_True );
+ IDEBaseWindow* pWin = pIDEShell->FindWindow( rDocument, rLibName, rNewName, BASICIDE_TYPE_MODULE, true );
if ( pWin )
{
// set new name in window
diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx
index 98f41e705c62..bc95693bb80b 100644
--- a/basctl/source/basicide/basobj3.cxx
+++ b/basctl/source/basicide/basobj3.cxx
@@ -190,7 +190,7 @@ bool RenameDialog( Window* pErrorParent, const ScriptDocument& rDocument, const
}
BasicIDEShell* pIDEShell = BasicIDEGlobals::GetShell();
- IDEBaseWindow* pWin = pIDEShell ? pIDEShell->FindWindow( rDocument, rLibName, rOldName, BASICIDE_TYPE_DIALOG, sal_False ) : NULL;
+ IDEBaseWindow* pWin = pIDEShell ? pIDEShell->FindWindow( rDocument, rLibName, rOldName, BASICIDE_TYPE_DIALOG, false ) : NULL;
Reference< XNameContainer > xExistingDialog;
if ( pWin )
xExistingDialog = ((DialogWindow*)pWin)->GetEditor()->GetDialog();
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index acbf95cbb810..056ffaa778e4 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -189,7 +189,7 @@ DlgEditor::DlgEditor( const ::com::sun::star::uno::Reference< ::com::sun::star::
,pFunc(NULL)
,eMode( DLGED_SELECT )
,eActObj( OBJ_DLG_PUSHBUTTON )
- ,bFirstDraw(sal_False)
+ ,bFirstDraw(false)
,aGridSize( 100, 100 ) // 100TH_MM
,bGridVisible(sal_False)
,bGridSnap(sal_True)
@@ -424,7 +424,7 @@ void DlgEditor::SetDialog( uno::Reference< container::XNameContainer > xUnoContr
}
}
- bFirstDraw = sal_True;
+ bFirstDraw = true;
pDlgEdModel->SetChanged( sal_False );
}
@@ -510,7 +510,7 @@ IMPL_LINK_NOARG(DlgEditor, PaintTimeout)
pWindow->IsVisible() &&
(pWindow->GetOutputSize() != aMacSize) )
{
- bFirstDraw = sal_False;
+ bFirstDraw = false;
// get property set
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet(pDlgEdForm->GetUnoControlModel(), ::com::sun::star::uno::UNO_QUERY);
diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx
index a2fbe694cb9a..17bd9ec7e7c7 100644
--- a/basctl/source/inc/baside3.hxx
+++ b/basctl/source/inc/baside3.hxx
@@ -61,7 +61,7 @@ protected:
virtual void DoInit();
virtual void DoScroll( ScrollBar* pCurScrollBar );
virtual void DataChanged( const DataChangedEvent& rDCEvt );
- void InitSettings(sal_Bool bFont,sal_Bool bForeground,sal_Bool bBackground);
+ void InitSettings(bool bFont, bool bForeground, bool bBackground);
public:
TYPEINFO();
diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx
index 6ec166657809..579365a27c3a 100644
--- a/basctl/source/inc/basidesh.hxx
+++ b/basctl/source/inc/basidesh.hxx
@@ -82,8 +82,8 @@ friend class LocalizationMgr;
ScrollBar aVScrollBar;
ScrollBarBox aScrollBarBox;
BasicIDETabBar* pTabBar;
- sal_Bool bTabBarSplitted;
- sal_Bool bCreatingWindow;
+ bool bTabBarSplitted;
+ bool bCreatingWindow;
ModulWindowLayout* pModulLayout;
sal_Bool m_bAppBasicModified;
::basctl::DocumentEventNotifier
@@ -203,10 +203,10 @@ public:
ModulWindowLayout* GetLayoutWindow() const { return pModulLayout; }
- IDEBaseWindow* FindWindow( const ScriptDocument& rDocument, const ::rtl::OUString& rLibName = ::rtl::OUString(), const ::rtl::OUString& rName = ::rtl::OUString(), BasicIDEType nType = BASICIDE_TYPE_UNKNOWN, sal_Bool bFindSuspended = sal_False );
+ IDEBaseWindow* FindWindow( const ScriptDocument& rDocument, const ::rtl::OUString& rLibName = ::rtl::OUString(), const ::rtl::OUString& rName = ::rtl::OUString(), BasicIDEType nType = BASICIDE_TYPE_UNKNOWN, bool bFindSuspended = false );
DialogWindow* FindDlgWin( const ScriptDocument& rDocument, const ::rtl::OUString& rLibName, const ::rtl::OUString& rDlgName, bool bCreateIfNotExist, bool bFindSuspended = false );
IDEBaseWindow* FindApplicationWindow();
- sal_Bool NextPage( sal_Bool bPrev = sal_False );
+ bool NextPage( bool bPrev = false );
sal_Bool IsAppBasicModified() const { return m_bAppBasicModified; }
void SetAppBasicModified( sal_Bool bModified = sal_True ) { m_bAppBasicModified = bModified; }
diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx
index 915039bfa699..3426e0caabdb 100644
--- a/basctl/source/inc/dlged.hxx
+++ b/basctl/source/inc/dlged.hxx
@@ -109,7 +109,7 @@ protected:
DlgEdFunc* pFunc;
DlgEdMode eMode;
sal_uInt16 eActObj;
- sal_Bool bFirstDraw;
+ bool bFirstDraw;
Size aGridSize;
sal_Bool bGridVisible;
sal_Bool bGridSnap;