diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-21 12:53:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-21 12:53:51 +0100 |
commit | e8f8f24c8415898c787bbfb629247ed62e73a2b9 (patch) | |
tree | dae18a3acbf29c192118e7c003f80df8da8e21ae /dbaccess/source | |
parent | 1c8402465cfd4df862409dc310f5f099d044c4d8 (diff) |
vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
Diffstat (limited to 'dbaccess/source')
36 files changed, 72 insertions, 72 deletions
diff --git a/dbaccess/source/ext/macromigration/macromigrationdialog.cxx b/dbaccess/source/ext/macromigration/macromigrationdialog.cxx index e14f0baf7204..cfe103dfa73b 100644 --- a/dbaccess/source/ext/macromigration/macromigrationdialog.cxx +++ b/dbaccess/source/ext/macromigration/macromigrationdialog.cxx @@ -183,10 +183,10 @@ namespace dbmm return nResult; } - sal_Bool MacroMigrationDialog::Close() + bool MacroMigrationDialog::Close() { if ( m_pData->bMigrationIsRunning ) - return sal_False; + return false; return MacroMigrationDialog_Base::Close(); } diff --git a/dbaccess/source/ext/macromigration/macromigrationdialog.hxx b/dbaccess/source/ext/macromigration/macromigrationdialog.hxx index c5c112249982..43e6e12012ae 100644 --- a/dbaccess/source/ext/macromigration/macromigrationdialog.hxx +++ b/dbaccess/source/ext/macromigration/macromigrationdialog.hxx @@ -56,7 +56,7 @@ namespace dbmm virtual sal_Bool onFinish(); // Dialog overridables - virtual sal_Bool Close(); + virtual bool Close(); virtual short Execute(); private: diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index 001c174fcc5f..2e58d1ba6955 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -1178,7 +1178,7 @@ IMPL_LINK(OAppDetailPageHelper, OnDropdownClickHdl, ToolBox*, /*pToolBox*/) m_aTBPreview.EndSelection(); // tell the toolbox that the item is pressed down - m_aTBPreview.SetItemDown( SID_DB_APP_DISABLE_PREVIEW, sal_True ); + m_aTBPreview.SetItemDown( SID_DB_APP_DISABLE_PREVIEW, true ); // simulate a mouse move (so the "down" state is really painted) Point aPoint = m_aTBPreview.GetItemRect( SID_DB_APP_DISABLE_PREVIEW ).TopLeft(); @@ -1210,7 +1210,7 @@ IMPL_LINK(OAppDetailPageHelper, OnDropdownClickHdl, ToolBox*, /*pToolBox*/) // "cleanup" the toolbox state MouseEvent aLeave( aPoint, 0, MOUSE_LEAVEWINDOW | MOUSE_SYNTHETIC ); m_aTBPreview.MouseMove( aLeave ); - m_aTBPreview.SetItemDown( SID_DB_APP_DISABLE_PREVIEW, sal_False); + m_aTBPreview.SetItemDown( SID_DB_APP_DISABLE_PREVIEW, false); if ( nSelectedAction ) { m_aTBPreview.SetItemText(SID_DB_APP_DISABLE_PREVIEW, aMenu->GetItemText(nSelectedAction)); diff --git a/dbaccess/source/ui/app/AppDetailView.cxx b/dbaccess/source/ui/app/AppDetailView.cxx index 130a39c04721..f886d8d1207c 100644 --- a/dbaccess/source/ui/app/AppDetailView.cxx +++ b/dbaccess/source/ui/app/AppDetailView.cxx @@ -107,7 +107,7 @@ void OCreationList::PreparePaint( SvTreeListEntry* _pEntry ) { // draw a selection background bool bIsMouseDownEntry = ( _pEntry == m_pMouseDownEntry ); - DrawSelectionBackground( GetBoundingRect( _pEntry ), bIsMouseDownEntry ? 1 : 2, sal_False, sal_True, sal_False ); + DrawSelectionBackground( GetBoundingRect( _pEntry ), bIsMouseDownEntry ? 1 : 2, false, true, false ); if ( bIsMouseDownEntry ) { diff --git a/dbaccess/source/ui/browser/brwview.cxx b/dbaccess/source/ui/browser/brwview.cxx index edecf45dfa24..b0dc4f88cc6d 100644 --- a/dbaccess/source/ui/browser/brwview.cxx +++ b/dbaccess/source/ui/browser/brwview.cxx @@ -311,8 +311,8 @@ bool UnoDataBrowserView::PreNotify( NotifyEvent& rNEvt ) { const KeyEvent* pKeyEvt = rNEvt.GetKeyEvent(); const KeyCode& rKeyCode = pKeyEvt->GetKeyCode(); - if ( ( rKeyCode == KeyCode( KEY_E, sal_True, sal_True, sal_False, sal_False ) ) - || ( rKeyCode == KeyCode( KEY_TAB, sal_True, sal_False, sal_False, sal_False ) ) + if ( ( rKeyCode == KeyCode( KEY_E, true, true, false, false ) ) + || ( rKeyCode == KeyCode( KEY_TAB, true, false, false, false ) ) ) { if ( m_pTreeView && m_pVclControl && m_pTreeView->HasChildPathFocus() ) diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index b4d0e769eba1..7a5aa0baca72 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -635,16 +635,16 @@ void SbaGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rM if (bDBIsReadOnly) { - rMenu.EnableItem(SID_FM_HIDECOL, sal_False); + rMenu.EnableItem(SID_FM_HIDECOL, false); PopupMenu* pShowColsMenu = rMenu.GetPopupMenu(SID_FM_SHOWCOLS); if (pShowColsMenu) { // at most 16 items which mean "show column <name>" for (sal_uInt16 i=1; i<16; ++i) - pShowColsMenu->EnableItem(i, sal_False); + pShowColsMenu->EnableItem(i, false); // "show cols/more..." and "show cols/all" - pShowColsMenu->EnableItem(SID_FM_SHOWCOLS_MORE, sal_False); - pShowColsMenu->EnableItem(SID_FM_SHOWALLCOLS, sal_False); + pShowColsMenu->EnableItem(SID_FM_SHOWCOLS_MORE, false); + pShowColsMenu->EnableItem(SID_FM_SHOWALLCOLS, false); } } diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 44d08805bbbe..8dd70fb3c1db 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -585,7 +585,7 @@ void SbaTableQueryBrowser::initializePreviewMode() { if ( getBrowserView() && getBrowserView()->getVclControl() ) { - getBrowserView()->getVclControl()->AlwaysEnableInput( sal_False ); + getBrowserView()->getVclControl()->AlwaysEnableInput( false ); getBrowserView()->getVclControl()->EnableInput( false ); getBrowserView()->getVclControl()->ForceHideScrollbars( sal_True ); } @@ -1355,7 +1355,7 @@ void SbaTableQueryBrowser::implCheckExternalSlot( sal_uInt16 _nId ) // check if we have to hide this item from the toolbox if ( pToolbox ) { - sal_Bool bHaveDispatcher = m_aExternalFeatures[ _nId ].xDispatcher.is(); + bool bHaveDispatcher = m_aExternalFeatures[ _nId ].xDispatcher.is(); if ( bHaveDispatcher != pToolbox->IsItemVisible( _nId ) ) bHaveDispatcher ? pToolbox->ShowItem( _nId ) : pToolbox->HideItem( _nId ); } diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index a7c63001815d..06e2b2ddb772 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -1005,7 +1005,7 @@ OPropNumericEditCtrl* OFieldDescControl::CreateNumericControl(sal_uInt16 _nHelpS pControl->SetDecimalDigits(0); pControl->SetMin(0); pControl->SetMax(0x7FFFFFFF); // Should be changed outside, if needed - pControl->SetStrictFormat(sal_True); + pControl->SetStrictFormat(true); InitializeControl(pControl,_sHelpId,false); diff --git a/dbaccess/source/ui/control/TableGrantCtrl.cxx b/dbaccess/source/ui/control/TableGrantCtrl.cxx index baa120e64c1d..ef3d35738b64 100644 --- a/dbaccess/source/ui/control/TableGrantCtrl.cxx +++ b/dbaccess/source/ui/control/TableGrantCtrl.cxx @@ -123,7 +123,7 @@ void OTableGrantControl::Init() if(!m_pCheckCell) { m_pCheckCell = new CheckBoxControl( &GetDataWindow() ); - m_pCheckCell->GetBox().EnableTriState(sal_False); + m_pCheckCell->GetBox().EnableTriState(false); m_pEdit = new Edit( &GetDataWindow() ); m_pEdit->SetReadOnly(); diff --git a/dbaccess/source/ui/control/opendoccontrols.cxx b/dbaccess/source/ui/control/opendoccontrols.cxx index ed1e47beddb3..6ec27a9266a0 100644 --- a/dbaccess/source/ui/control/opendoccontrols.cxx +++ b/dbaccess/source/ui/control/opendoccontrols.cxx @@ -178,8 +178,8 @@ namespace dbaui // Place icon left of text and both centered in the button. SetModeImage( GetCommandIcon( ".uno:Open", m_sModule ) ); - EnableImageDisplay( sal_True ); - EnableTextDisplay( sal_True ); + EnableImageDisplay( true ); + EnableTextDisplay( true ); SetImageAlign( IMAGEALIGN_LEFT ); SetStyle( GetStyle() | WB_CENTER ); } diff --git a/dbaccess/source/ui/control/sqledit.cxx b/dbaccess/source/ui/control/sqledit.cxx index 8f3938532b88..b1f377e04e4e 100644 --- a/dbaccess/source/ui/control/sqledit.cxx +++ b/dbaccess/source/ui/control/sqledit.cxx @@ -100,7 +100,7 @@ OSqlEdit::OSqlEdit( OQueryTextView* pParent, WinBits nWinStyle ) : m_ColorConfig.AddListener(this); //#i97044# - EnableFocusSelectionHide( sal_False ); + EnableFocusSelectionHide( false ); } OSqlEdit::~OSqlEdit() diff --git a/dbaccess/source/ui/control/toolboxcontroller.cxx b/dbaccess/source/ui/control/toolboxcontroller.cxx index 9caceece2845..bb8683a84d70 100644 --- a/dbaccess/source/ui/control/toolboxcontroller.cxx +++ b/dbaccess/source/ui/control/toolboxcontroller.cxx @@ -240,7 +240,7 @@ namespace dbaui Point aPoint = pToolBox->GetItemRect( m_nToolBoxId ).TopLeft(); MouseEvent aLeave( aPoint, 0, MOUSE_LEAVEWINDOW | MOUSE_SYNTHETIC ); pToolBox->MouseMove( aLeave ); - pToolBox->SetItemDown( m_nToolBoxId, sal_False); + pToolBox->SetItemDown( m_nToolBoxId, false); if ( nSelected ) { diff --git a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx index fa4782c6382c..24bec7cb8f6a 100644 --- a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx +++ b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx @@ -767,7 +767,7 @@ using namespace ::com::sun::star; m_pCBOpenAfterwards->SetClickHdl(LINK(this, OFinalDBPageSetup, OnOpenSelected)); m_pCBStartTableWizard->SetClickHdl(getControlModifiedLink()); - m_pRBRegisterDataSource->SetState(sal_True); + m_pRBRegisterDataSource->SetState(true); } OFinalDBPageSetup::~OFinalDBPageSetup() diff --git a/dbaccess/source/ui/dlg/RelationDlg.cxx b/dbaccess/source/ui/dlg/RelationDlg.cxx index 17be35bb6738..e92081eb4f13 100644 --- a/dbaccess/source/ui/dlg/RelationDlg.cxx +++ b/dbaccess/source/ui/dlg/RelationDlg.cxx @@ -105,18 +105,18 @@ void ORelationDialog::Init(const TTableConnectionData::value_type& _pConnectionD { case KeyRule::NO_ACTION: case KeyRule::RESTRICT: - aRB_NoCascUpd.Check( sal_True ); + aRB_NoCascUpd.Check( true ); break; case KeyRule::CASCADE: - aRB_CascUpd.Check( sal_True ); + aRB_CascUpd.Check( true ); break; case KeyRule::SET_NULL: - aRB_CascUpdNull.Check( sal_True ); + aRB_CascUpdNull.Check( true ); break; case KeyRule::SET_DEFAULT: - aRB_CascUpdDefault.Check( sal_True ); + aRB_CascUpdDefault.Check( true ); break; } @@ -125,18 +125,18 @@ void ORelationDialog::Init(const TTableConnectionData::value_type& _pConnectionD { case KeyRule::NO_ACTION: case KeyRule::RESTRICT: - aRB_NoCascDel.Check( sal_True ); + aRB_NoCascDel.Check( true ); break; case KeyRule::CASCADE: - aRB_CascDel.Check( sal_True ); + aRB_CascDel.Check( true ); break; case KeyRule::SET_NULL: - aRB_CascDelNull.Check( sal_True ); + aRB_CascDelNull.Check( true ); break; case KeyRule::SET_DEFAULT: - aRB_CascDelDefault.Check( sal_True ); + aRB_CascDelDefault.Check( true ); break; } } diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx index 3bf9c3f589f1..1d014a78dfe3 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx @@ -110,7 +110,7 @@ namespace dbaui m_aRBAccessTextFiles.SetToggleHdl(LINK(this, OTextConnectionHelper, OnSetExtensionHdl)); m_aRBAccessCSVFiles.SetToggleHdl(LINK(this, OTextConnectionHelper, OnSetExtensionHdl)); m_aRBAccessOtherFiles.SetToggleHdl(LINK(this, OTextConnectionHelper, OnSetExtensionHdl)); - m_aRBAccessCSVFiles.Check(sal_True); + m_aRBAccessCSVFiles.Check(true); struct SectionDescriptor { @@ -422,12 +422,12 @@ namespace dbaui void OTextConnectionHelper::SetExtension(const OUString& _rVal) { if (_rVal == "txt") - m_aRBAccessTextFiles.Check(sal_True); + m_aRBAccessTextFiles.Check(true); else if (_rVal == "csv") - m_aRBAccessCSVFiles.Check(sal_True); + m_aRBAccessCSVFiles.Check(true); else { - m_aRBAccessOtherFiles.Check(sal_True); + m_aRBAccessOtherFiles.Check(true); m_aFTExtensionExample.SetText(_rVal); } } diff --git a/dbaccess/source/ui/dlg/adtabdlg.cxx b/dbaccess/source/ui/dlg/adtabdlg.cxx index aabdbd9ecefc..e524794a0a23 100644 --- a/dbaccess/source/ui/dlg/adtabdlg.cxx +++ b/dbaccess/source/ui/dlg/adtabdlg.cxx @@ -371,15 +371,15 @@ void OAddTableDlg::impl_switchTo( ObjectList _eList ) switch ( _eList ) { case Tables: - m_pTableList->Show( true ); m_pCaseTables->Check( sal_True ); - m_pQueryList->Show( false ); m_pCaseQueries->Check( sal_False ); + m_pTableList->Show( true ); m_pCaseTables->Check( true ); + m_pQueryList->Show( false ); m_pCaseQueries->Check( false ); m_xCurrentList.reset( new TableListFacade( *m_pTableList, m_rContext.getConnection() ) ); m_pTableList->GrabFocus(); break; case Queries: - m_pTableList->Show( false ); m_pCaseTables->Check( sal_False ); - m_pQueryList->Show( true ); m_pCaseQueries->Check( sal_True ); + m_pTableList->Show( false ); m_pCaseTables->Check( false ); + m_pQueryList->Show( true ); m_pCaseQueries->Check( true ); m_xCurrentList.reset( new QueryListFacade( *m_pQueryList, m_rContext.getConnection() ) ); m_pQueryList->GrabFocus(); break; @@ -433,7 +433,7 @@ IMPL_LINK( OAddTableDlg, TableListSelectHdl, void*, /*EMPTY_ARG*/ ) IMPL_LINK( OAddTableDlg, CloseClickHdl, Button*, /*pButton*/ ) { - return Close(); + return int(Close()); } IMPL_LINK( OAddTableDlg, OnTypeSelected, void*, /*EMPTY_ARG*/ ) @@ -445,7 +445,7 @@ IMPL_LINK( OAddTableDlg, OnTypeSelected, void*, /*EMPTY_ARG*/ ) return 0; } -sal_Bool OAddTableDlg::Close() +bool OAddTableDlg::Close() { m_rContext.onWindowClosing( this ); return ModelessDialog::Close(); diff --git a/dbaccess/source/ui/dlg/advancedsettings.cxx b/dbaccess/source/ui/dlg/advancedsettings.cxx index 54d7c8227827..62780d7d536b 100644 --- a/dbaccess/source/ui/dlg/advancedsettings.cxx +++ b/dbaccess/source/ui/dlg/advancedsettings.cxx @@ -102,7 +102,7 @@ namespace dbaui // check whether this must be a tristate check box const SfxPoolItem& rItem = _rCoreAttrs.Get( nItemId ); if ( rItem.ISA( OptionalBoolItem ) ) - (*setting->ppControl)->EnableTriState( sal_True ); + (*setting->ppControl)->EnableTriState( true ); } } @@ -126,7 +126,7 @@ namespace dbaui get(m_pMaxRowScanLabel, "rowsft"); get(m_pMaxRowScan, "rows"); m_pMaxRowScan->SetModifyHdl(getControlModifiedLink()); - m_pMaxRowScan->SetUseThousandSep(sal_False); + m_pMaxRowScan->SetUseThousandSep(false); m_pMaxRowScanLabel->Show(); m_pMaxRowScan->Show(); } diff --git a/dbaccess/source/ui/dlg/dbadmin.cxx b/dbaccess/source/ui/dlg/dbadmin.cxx index 257d850535b8..cd42dca4aa2f 100644 --- a/dbaccess/source/ui/dlg/dbadmin.cxx +++ b/dbaccess/source/ui/dlg/dbadmin.cxx @@ -174,7 +174,7 @@ void ODbAdminDialog::impl_resetPages(const Reference< XPropertySet >& _rxDatasou // reset the pages // prevent flicker - SetUpdateMode(sal_False); + SetUpdateMode(false); // remove all items which relate to indirect properties from the input set // (without this, the following may happen: select an arbitrary data source where some indirect properties @@ -213,7 +213,7 @@ void ODbAdminDialog::impl_resetPages(const Reference< XPropertySet >& _rxDatasou // if this is NULL, the page has not been created yet, which means we're called before the // dialog was displayed (probably from inside the ctor) - SetUpdateMode(sal_True); + SetUpdateMode(true); } void ODbAdminDialog::setTitle(const OUString& _sTitle) diff --git a/dbaccess/source/ui/dlg/detailpages.cxx b/dbaccess/source/ui/dlg/detailpages.cxx index b8d1dae72c2c..69f9bb241f16 100644 --- a/dbaccess/source/ui/dlg/detailpages.cxx +++ b/dbaccess/source/ui/dlg/detailpages.cxx @@ -705,7 +705,7 @@ namespace dbaui m_aNFPortNumber.SetModifyHdl(getControlModifiedLink()); m_aNFRowCount.SetModifyHdl(getControlModifiedLink()); - m_aNFRowCount.SetUseThousandSep(sal_False); + m_aNFRowCount.SetUseThousandSep(false); m_iNormalPort = 389; m_iSSLPort = 636; m_aCBUseSSL.SetClickHdl(LINK(this, OLDAPDetailsPage,OnCheckBoxClick)); diff --git a/dbaccess/source/ui/dlg/dlgsize.cxx b/dbaccess/source/ui/dlg/dlgsize.cxx index 757176a4ffdd..404c46c57bb7 100644 --- a/dbaccess/source/ui/dlg/dlgsize.cxx +++ b/dbaccess/source/ui/dlg/dlgsize.cxx @@ -40,7 +40,7 @@ DlgSize::DlgSize( Window* pParent, sal_Int32 nVal, sal_Bool bRow, sal_Int32 _nAl m_nStandard = _nAlternativeStandard; m_pCB_STANDARD->SetClickHdl(LINK(this,DlgSize,CbClickHdl)); - m_pMF_VALUE->EnableEmptyFieldValue(sal_True); + m_pMF_VALUE->EnableEmptyFieldValue(true); sal_Bool bDefault = -1 == nVal; m_pCB_STANDARD->Check(bDefault); if (bDefault) diff --git a/dbaccess/source/ui/dlg/dsselect.cxx b/dbaccess/source/ui/dlg/dsselect.cxx index 45c56059fce7..6342466c4320 100644 --- a/dbaccess/source/ui/dlg/dsselect.cxx +++ b/dbaccess/source/ui/dlg/dsselect.cxx @@ -81,7 +81,7 @@ IMPL_LINK( ODatasourceSelectDialog, ListDblClickHdl, ListBox *, pListBox ) return 0; } -sal_Bool ODatasourceSelectDialog::Close() +bool ODatasourceSelectDialog::Close() { #ifdef HAVE_ODBC_ADMINISTRATION if ( m_pODBCManagement.get() && m_pODBCManagement->isRunning() ) diff --git a/dbaccess/source/ui/dlg/dsselect.hxx b/dbaccess/source/ui/dlg/dsselect.hxx index 6623766a6a09..4d8b1a33f416 100644 --- a/dbaccess/source/ui/dlg/dsselect.hxx +++ b/dbaccess/source/ui/dlg/dsselect.hxx @@ -58,7 +58,7 @@ public: OUString GetSelected() const { return m_pDatasource->GetSelectEntry();} void Select( const OUString& _rEntry ) { m_pDatasource->SelectEntry(_rEntry); } - virtual sal_Bool Close(); + virtual bool Close(); protected: DECL_LINK( ListDblClickHdl, ListBox * ); diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx index 3e089a7401af..b942f75c85d9 100644 --- a/dbaccess/source/ui/dlg/indexdialog.cxx +++ b/dbaccess/source/ui/dlg/indexdialog.cxx @@ -752,7 +752,7 @@ namespace dbaui } else { - m_aUnique.Check(sal_False); + m_aUnique.Check(false); m_pFields->initializeFrom(IndexFields()); m_aDescription.SetText(OUString()); } diff --git a/dbaccess/source/ui/dlg/queryorder.cxx b/dbaccess/source/ui/dlg/queryorder.cxx index 2fabcb4ca785..73dc464c9c0e 100644 --- a/dbaccess/source/ui/dlg/queryorder.cxx +++ b/dbaccess/source/ui/dlg/queryorder.cxx @@ -64,7 +64,7 @@ DlgOrderCrit::DlgOrderCrit(Window * pParent, AllSettings aSettings( GetSettings() ); StyleSettings aStyle( aSettings.GetStyleSettings() ); - aStyle.SetAutoMnemonic( sal_False ); + aStyle.SetAutoMnemonic( false ); aSettings.SetStyleSettings( aStyle ); SetSettings( aSettings ); diff --git a/dbaccess/source/ui/inc/adtabdlg.hxx b/dbaccess/source/ui/inc/adtabdlg.hxx index 947e582ef421..d38e0ca927fc 100644 --- a/dbaccess/source/ui/inc/adtabdlg.hxx +++ b/dbaccess/source/ui/inc/adtabdlg.hxx @@ -89,7 +89,7 @@ namespace dbaui IAddTableDialogContext& _rContext ); private: - virtual sal_Bool Close(); + virtual bool Close(); bool impl_isAddAllowed(); void impl_addTable(); diff --git a/dbaccess/source/ui/misc/WCPage.cxx b/dbaccess/source/ui/misc/WCPage.cxx index 608956e5176d..da553dbe4a63 100644 --- a/dbaccess/source/ui/misc/WCPage.cxx +++ b/dbaccess/source/ui/misc/WCPage.cxx @@ -76,7 +76,7 @@ OCopyTable::OCopyTable( Window * pParent ) if ( !m_pParent->supportsViews() ) m_aRB_View.Disable(); - m_aCB_UseHeaderLine.Check(sal_True); + m_aCB_UseHeaderLine.Check(true); m_bPKeyAllowed = m_pParent->supportsPrimaryKey(); m_aCB_PrimaryColumn.Enable(m_bPKeyAllowed); @@ -326,26 +326,26 @@ void OCopyTable::setCreateStyleAction() switch(m_pParent->getOperation()) { case CopyTableOperation::CopyDefinitionAndData: - m_aRB_DefData.Check(sal_True); + m_aRB_DefData.Check(true); RadioChangeHdl(&m_aRB_DefData); break; case CopyTableOperation::CopyDefinitionOnly: - m_aRB_Def.Check(sal_True); + m_aRB_Def.Check(true); RadioChangeHdl(&m_aRB_Def); break; case CopyTableOperation::AppendData: - m_aRB_AppendData.Check(sal_True); + m_aRB_AppendData.Check(true); SetAppendDataRadio(); break; case CopyTableOperation::CreateAsView: if ( m_aRB_View.IsEnabled() ) { - m_aRB_View.Check(sal_True); + m_aRB_View.Check(true); RadioChangeHdl(&m_aRB_View); } else { - m_aRB_DefData.Check(sal_True); + m_aRB_DefData.Check(true); RadioChangeHdl(&m_aRB_DefData); } } diff --git a/dbaccess/source/ui/misc/WColumnSelect.cxx b/dbaccess/source/ui/misc/WColumnSelect.cxx index 7b88e533f59c..99387266152c 100644 --- a/dbaccess/source/ui/misc/WColumnSelect.cxx +++ b/dbaccess/source/ui/misc/WColumnSelect.cxx @@ -67,8 +67,8 @@ OWizColumnSelect::OWizColumnSelect( Window* pParent) m_ibColumns_RH.SetClickHdl(LINK(this,OWizColumnSelect,ButtonClickHdl)); m_ibColumns_LH.SetClickHdl(LINK(this,OWizColumnSelect,ButtonClickHdl)); - m_lbOrgColumnNames.EnableMultiSelection(sal_True); - m_lbNewColumnNames.EnableMultiSelection(sal_True); + m_lbOrgColumnNames.EnableMultiSelection(true); + m_lbNewColumnNames.EnableMultiSelection(true); m_lbOrgColumnNames.SetDoubleClickHdl(LINK(this,OWizColumnSelect,ListDoubleClickHdl)); m_lbNewColumnNames.SetDoubleClickHdl(LINK(this,OWizColumnSelect,ListDoubleClickHdl)); diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx index 30953491fa81..d1130fabb9a4 100644 --- a/dbaccess/source/ui/misc/WTypeSelect.cxx +++ b/dbaccess/source/ui/misc/WTypeSelect.cxx @@ -235,7 +235,7 @@ OWizTypeSelect::OWizTypeSelect( Window* pParent, SvStream* _pStream ) m_etAuto.SetText(OUString("10")); m_etAuto.SetDecimalDigits(0); m_pbAuto.SetClickHdl(LINK(this,OWizTypeSelect,ButtonClickHdl)); - m_lbColumnNames.EnableMultiSelection(sal_True); + m_lbColumnNames.EnableMultiSelection(true); try { diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx index 75db5a29385c..203452c88915 100644 --- a/dbaccess/source/ui/querydesign/JoinTableView.cxx +++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx @@ -968,7 +968,7 @@ sal_Bool OJoinTableView::ExistsAConn(const OTableWindow* pFrom) const void OJoinTableView::ClearAll() { - SetUpdateMode(sal_False); + SetUpdateMode(false); HideTabWins(); @@ -1474,7 +1474,7 @@ void OJoinTableView::StateChanged( StateChangedType nType ) void OJoinTableView::HideTabWins() { - SetUpdateMode(sal_False); + SetUpdateMode(false); OTableWindowMap* pTabWins = GetTabWinMap(); if ( pTabWins ) @@ -1489,7 +1489,7 @@ void OJoinTableView::HideTabWins() m_pView->getController().setModified(sal_True); - SetUpdateMode(sal_True); + SetUpdateMode(true); } diff --git a/dbaccess/source/ui/querydesign/LimitBox.cxx b/dbaccess/source/ui/querydesign/LimitBox.cxx index 5f4510dbe5fd..194f029c2d32 100644 --- a/dbaccess/source/ui/querydesign/LimitBox.cxx +++ b/dbaccess/source/ui/querydesign/LimitBox.cxx @@ -35,7 +35,7 @@ namespace dbaui LimitBox::LimitBox( Window* pParent, WinBits nStyle ) : NumericBox( pParent, nStyle ) { - SetShowTrailingZeros( sal_False ); + SetShowTrailingZeros( false ); SetDecimalDigits( 0 ); SetMin( -1 ); SetMax( SAL_MAX_INT64 ); diff --git a/dbaccess/source/ui/querydesign/QueryTableView.cxx b/dbaccess/source/ui/querydesign/QueryTableView.cxx index f50aadb57207..1843379ff6c9 100644 --- a/dbaccess/source/ui/querydesign/QueryTableView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTableView.cxx @@ -318,7 +318,7 @@ void OQueryTableView::ClearAll() { OJoinTableView::ClearAll(); - SetUpdateMode(sal_True); + SetUpdateMode(true); m_pView->getController().setModified(sal_True); } diff --git a/dbaccess/source/ui/querydesign/QueryTextView.cxx b/dbaccess/source/ui/querydesign/QueryTextView.cxx index a63c6a4cb23d..4ebfebdd6d29 100644 --- a/dbaccess/source/ui/querydesign/QueryTextView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTextView.cxx @@ -42,7 +42,7 @@ OQueryTextView::OQueryTextView(OQueryContainerWindow* _pParent) :Window(_pParent) { m_pEdit = new OSqlEdit(this); - m_pEdit->SetRightToLeft(sal_False); + m_pEdit->SetRightToLeft(false); m_pEdit->ClearModifyFlag(); m_pEdit->SaveValue(); m_pEdit->SetPosPixel( Point( 0, 0 ) ); diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 54754ad0e28a..4ce398c5c864 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -131,7 +131,7 @@ OSelectionBrowseBox::OSelectionBrowseBox( Window* pParent ) m_pFunctionCell->SetHelpId(HID_QRYDGN_ROW_FUNCTION); // switch off triState of ::com::sun::star::form::CheckBox - m_pVisibleCell->GetBox().EnableTriState( sal_False ); + m_pVisibleCell->GetBox().EnableTriState( false ); Font aTitleFont = OutputDevice::GetDefaultFont( DEFAULTFONT_SANS_UNICODE,Window::GetSettings().GetLanguageTag().getLanguageType(),DEFAULTFONT_FLAGS_ONLYONE); aTitleFont.SetSize(Size(0, 6)); @@ -323,7 +323,7 @@ void OSelectionBrowseBox::Init() // set the header bar BrowserHeader* pNewHeaderBar = CreateHeaderBar(this); - pNewHeaderBar->SetMouseTransparent(sal_False); + pNewHeaderBar->SetMouseTransparent(false); SetHeaderBar(pNewHeaderBar); SetMode(m_nMode); diff --git a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx index ae990328e79b..207f2fe484e8 100644 --- a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx +++ b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx @@ -49,7 +49,7 @@ OTableWindowTitle::OTableWindowTitle( OTableWindow* pParent ) : SetTextColor(aSystemStyle.GetButtonTextColor()); Font aFont( GetFont() ); - aFont.SetTransparent( sal_True ); + aFont.SetTransparent( true ); SetFont( aFont ); } diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx index 0782c3a4938f..085450e73d90 100644 --- a/dbaccess/source/ui/querydesign/querydlg.cxx +++ b/dbaccess/source/ui/querydesign/querydlg.cxx @@ -214,7 +214,7 @@ IMPL_LINK( DlgQryJoin, LBChangeHdl, ListBox*, /*pListBox*/ ) m_pConnData->ResetConnLines(); m_pTableControl->lateInit(); - m_pJoinControl->m_aCBNatural.Check(sal_False); + m_pJoinControl->m_aCBNatural.Check(false); m_pTableControl->enableRelation(false); OUString sEmpty; m_pConnData->AppendConnLine(sEmpty,sEmpty); diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index d4cd2274a7c0..fe794e2d9ac4 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -1412,8 +1412,8 @@ void OTableEditorCtrl::Command(const CommandEvent& rEvt) SelectColumnId( nColId ); PopupMenu aContextMenu( ModuleRes( RID_QUERYCOLPOPUPMENU ) ); - aContextMenu.EnableItem( SID_DELETE, sal_False ); - aContextMenu.RemoveDisabledEntries(sal_True, sal_True); + aContextMenu.EnableItem( SID_DELETE, false ); + aContextMenu.RemoveDisabledEntries(true, true); switch ( aContextMenu.Execute( this, aMenuPos ) ) { case ID_BROWSER_COLWIDTH: @@ -1436,7 +1436,7 @@ void OTableEditorCtrl::Command(const CommandEvent& rEvt) aContextMenu.CheckItem( SID_TABLEDESIGN_TABED_PRIMARYKEY, IsRowSelected(GetCurRow()) && IsPrimaryKey() ); // remove all the disable entries - aContextMenu.RemoveDisabledEntries(sal_True, sal_True); + aContextMenu.RemoveDisabledEntries(true, true); if( SetDataPtr(m_nDataPos) ) pDescrWin->SaveData( pActRow->GetActFieldDescr() ); |