diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:00:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:24 +0100 |
commit | 373de64a3613fc494e9315c083f950b48b6b985e (patch) | |
tree | bd476b84f4efc91ad657e86fba107a19fcf5b736 /reportdesign | |
parent | b826f09e18e34d5a1d27ce0b15f43c7ed6b5aecc (diff) |
bool improvements
Change-Id: Ida0db3963ad472952f63b5e24901f16f6b0d5184
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/core/api/ReportDefinition.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/core/sdr/ReportDrawPage.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/filter/xml/xmlExport.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/filter/xml/xmlStyleImport.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/dlg/GroupsSorting.cxx | 4 | ||||
-rw-r--r-- | reportdesign/source/ui/dlg/Navigator.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/report/ReportSection.cxx | 6 | ||||
-rw-r--r-- | reportdesign/source/ui/report/ViewsWindow.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/report/propbrw.cxx | 2 |
9 files changed, 12 insertions, 12 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index eee33f6c504a..ae83b50b5551 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -714,7 +714,7 @@ void OReportDefinition::init() { try { - static bool s_bFirstTime = sal_True; + static bool s_bFirstTime = true; if ( s_bFirstTime ) { s_bFirstTime = false; diff --git a/reportdesign/source/core/sdr/ReportDrawPage.cxx b/reportdesign/source/core/sdr/ReportDrawPage.cxx index b2cbb2160bea..49315fda22c9 100644 --- a/reportdesign/source/core/sdr/ReportDrawPage.cxx +++ b/reportdesign/source/core/sdr/ReportDrawPage.cxx @@ -110,7 +110,7 @@ uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pOb /************************************************** * Das leere OLE-Objekt bekommt ein neues IPObj **************************************************/ - pObj->SetEmptyPresObj(sal_False); + pObj->SetEmptyPresObj(false); pOle2Obj->SetOutlinerParaObject(NULL); pOle2Obj->SetObjRef(xObj); pOle2Obj->SetPersistName(sName); diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 0de3eff22bdc..a17128569b41 100644 --- a/reportdesign/source/filter/xml/xmlExport.cxx +++ b/reportdesign/source/filter/xml/xmlExport.cxx @@ -491,7 +491,7 @@ void lcl_calculate(const ::std::vector<sal_Int32>& _aPosX,const ::std::vector<sa for (sal_Int32 i = 0; i < nCountX ; ++i) { _rColumns[j].second[i] = ORptExport::TCell(_aPosX[i+1] - _aPosX[i],nHeight,1,1); - _rColumns[j].second[i].bSet = sal_True; + _rColumns[j].second[i].bSet = true; } } } diff --git a/reportdesign/source/filter/xml/xmlStyleImport.cxx b/reportdesign/source/filter/xml/xmlStyleImport.cxx index d6a39b02a10c..a712ca4486e2 100644 --- a/reportdesign/source/filter/xml/xmlStyleImport.cxx +++ b/reportdesign/source/filter/xml/xmlStyleImport.cxx @@ -64,7 +64,7 @@ public: const SvXMLNamespaceMap& /*rNamespaceMap*/ ) const { // nothing to do here - return sal_True; + return true; } }; diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index 8ed49d826b79..aba1052c824c 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -947,7 +947,7 @@ OGroupsSortingDialog::OGroupsSortingDialog( Window* _pParent { pControlsLst[i]->SetGetFocusHdl(LINK(this, OGroupsSortingDialog, OnControlFocusGot)); pControlsLst[i]->SetLoseFocusHdl(LINK(this, OGroupsSortingDialog, OnControlFocusLost)); - pControlsLst[i]->Show(sal_True); + pControlsLst[i]->Show(true); } for (size_t i = 0; i < (sizeof (pControlsLst) / sizeof (pControlsLst[0])) - 1; ++i) @@ -962,7 +962,7 @@ OGroupsSortingDialog::OGroupsSortingDialog( Window* _pParent for (size_t i = 0; i < sizeof (pControlsLst) / sizeof (pControlsLst[0]); ++i) { - pControls[i]->Show(sal_True); + pControls[i]->Show(true); OUString sText = pControls[i]->GetText(); OUString sNewText = aMnemonicGenerator.CreateMnemonic(sText); if ( sText != sNewText ) diff --git a/reportdesign/source/ui/dlg/Navigator.cxx b/reportdesign/source/ui/dlg/Navigator.cxx index 0e9f3363445a..9e16f84ccd37 100644 --- a/reportdesign/source/ui/dlg/Navigator.cxx +++ b/reportdesign/source/ui/dlg/Navigator.cxx @@ -236,7 +236,7 @@ NavigatorTree::NavigatorTree( Window* pParent,OReportController& _rController ) ); SetDragDropMode(0xFFFF); - EnableInplaceEditing( sal_False ); + EnableInplaceEditing( false ); SetSelectionMode(MULTIPLE_SELECTION); Clear(); diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx index e544ef165b12..50ee7fa41745 100644 --- a/reportdesign/source/ui/report/ReportSection.cxx +++ b/reportdesign/source/ui/report/ReportSection.cxx @@ -207,7 +207,7 @@ void OReportSection::fill() m_pView->SetSnapGridWidth(aX, aY); m_pView->SetGridSnap( pDesignView->isGridSnap() ); - m_pView->SetGridFront( sal_False ); + m_pView->SetGridFront( false ); m_pView->SetDragStripes( sal_True ); m_pView->SetPageVisible(); sal_Int32 nColor = m_xSection->getBackColor(); @@ -224,7 +224,7 @@ void OReportSection::fill() // LLA: TODO // m_pPage->SetUppBorder(-10000); - m_pView->SetDesignMode( sal_True ); + m_pView->SetDesignMode( true ); m_pView->StartListening( *m_pModel ); m_pPage->SetSize( Size( getStyleProperty<awt::Size>(xReportDefinition,PROPERTY_PAPERSIZE).Width,5*m_xSection->getHeight()) ); @@ -448,7 +448,7 @@ void lcl_insertMenuItemImages( else { const OUString sCommand = rContextMenu.GetItemCommand(nId); - rContextMenu.SetItemImage(nId,framework::GetImageFromURL(_rFrame,sCommand,sal_False)); + rContextMenu.SetItemImage(nId,framework::GetImageFromURL(_rFrame,sCommand,false)); if ( nId == SID_PAGEHEADERFOOTER ) { OUString sText = ModuleRes((_xReportDefinition.is() && _xReportDefinition->getPageHeaderOn()) ? RID_STR_PAGEHEADERFOOTER_DELETE : RID_STR_PAGEHEADERFOOTER_INSERT); diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx index 096983b194cf..fd9fa72a7072 100644 --- a/reportdesign/source/ui/report/ViewsWindow.cxx +++ b/reportdesign/source/ui/report/ViewsWindow.cxx @@ -1591,7 +1591,7 @@ void OViewsWindow::handleKey(const KeyCode& _rCode) // switch snapping off if ( !bWasNoSnap ) - ((SdrDragStat&)rDragStat).SetNoSnap( sal_True ); + ((SdrDragStat&)rDragStat).SetNoSnap( true ); if ( bWasSnapEnabled ) rView.SetSnapEnabled( sal_False ); diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx index d4b1b715e9db..2a9689529aa1 100644 --- a/reportdesign/source/ui/report/propbrw.cxx +++ b/reportdesign/source/ui/report/propbrw.cxx @@ -140,7 +140,7 @@ PropBrw::PropBrw(const Reference< XComponentContext >& _xORB, Window* pParent, O if ( !m_xBrowserController.is() ) { const OUString sServiceName( "com.sun.star.inspection.ObjectInspector" ); - ShowServiceNotAvailableError(pParent, sServiceName, sal_True); + ShowServiceNotAvailableError(pParent, sServiceName, true); } else { |