summaryrefslogtreecommitdiff
path: root/extensions/source/bibliography
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:16:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:40 +0200
commit2ee796ba49a13c38c1eb1e98c5e8b78d1ce18b64 (patch)
treedc1c62db36a2824a0e90cd77d4382edaab216ba2 /extensions/source/bibliography
parent4bff11d579dce8e2bb4f35f9218003bb28cf5a01 (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Ief96e7038461f514d8fe5bf16b7181b122715775
Diffstat (limited to 'extensions/source/bibliography')
-rw-r--r--extensions/source/bibliography/bibbeam.cxx4
-rw-r--r--extensions/source/bibliography/bibload.cxx2
-rw-r--r--extensions/source/bibliography/datman.cxx12
-rw-r--r--extensions/source/bibliography/framectr.cxx42
-rw-r--r--extensions/source/bibliography/general.cxx4
5 files changed, 32 insertions, 32 deletions
diff --git a/extensions/source/bibliography/bibbeam.cxx b/extensions/source/bibliography/bibbeam.cxx
index de5a3d513f06..db118bd44b79 100644
--- a/extensions/source/bibliography/bibbeam.cxx
+++ b/extensions/source/bibliography/bibbeam.cxx
@@ -154,8 +154,8 @@ namespace bib
m_xControlContainer->addControl("GridControl", m_xControl);
m_xGridWin.set(m_xControl, UNO_QUERY );
m_xDispatchProviderInterception.set(m_xControl, UNO_QUERY );
- m_xGridWin->setVisible( sal_True );
- m_xControl->setDesignMode( sal_True );
+ m_xGridWin->setVisible( true );
+ m_xControl->setDesignMode( true );
// initially switch on the design mode - switch it off _after_ loading the form
::Size aSize = GetOutputSizePixel();
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index d60e21bf2af2..e0d0ac5568b0 100644
--- a/extensions/source/bibliography/bibload.cxx
+++ b/extensions/source/bibliography/bibload.cxx
@@ -296,7 +296,7 @@ void BibliographyLoader::loadView(const Reference< XFrame > & rFrame, const OUSt
if (pParentComponent)
{
// not earlier because SetFocus() is triggered in setVisible()
- pParentComponent->setVisible(sal_True);
+ pParentComponent->setVisible(true);
}
m_xDatMan->load();
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index d0218c04a60e..418f6b2ffe9c 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -688,7 +688,7 @@ void BibDataManager::InsertFields(const Reference< XFormComponent > & _rxGrid)
const OUString sType("Type");
sal_Int32 nType = 0;
bool bIsFormatted = false;
- sal_Bool bFormattedIsNumeric = sal_True;
+ sal_Bool bFormattedIsNumeric = true;
xField->getPropertyValue(sType) >>= nType;
switch(nType)
{
@@ -708,7 +708,7 @@ void BibDataManager::InsertFields(const Reference< XFormComponent > & _rxGrid)
case DataType::LONGVARCHAR:
case DataType::CHAR:
case DataType::CLOB:
- bFormattedIsNumeric = sal_False;
+ bFormattedIsNumeric = false;
// _NO_ break !
default:
sCurrentModelType = "FormattedField";
@@ -884,7 +884,7 @@ void BibDataManager::setFilter(const OUString& rQuery)
OUString aQuery = m_xParser->getFilter();
Reference< XPropertySet > xFormProps( m_xForm, UNO_QUERY_THROW );
xFormProps->setPropertyValue( "Filter", makeAny( aQuery ) );
- xFormProps->setPropertyValue( "ApplyFilter", makeAny( sal_True ) );
+ xFormProps->setPropertyValue( "ApplyFilter", makeAny( true ) );
reload();
}
catch (const Exception&)
@@ -1022,8 +1022,8 @@ void BibDataManager::setActiveDataSource(const OUString& rURL)
}
FeatureStateEvent aEvent;
util::URL aURL;
- aEvent.IsEnabled = sal_True;
- aEvent.Requery = sal_False;
+ aEvent.IsEnabled = true;
+ aEvent.Requery = false;
aEvent.FeatureDescriptor = getActiveDataTable();
aEvent.State = makeAny( getDataSources() );
@@ -1369,7 +1369,7 @@ Reference< awt::XControlModel > BibDataManager::loadControlModel(
xPropSet->setPropertyValue("StringItemList", aAny);
- sal_Bool bTrue = sal_True;
+ sal_Bool bTrue = true;
aAny.setValue( &bTrue, cppu::UnoType<bool>::get() );
xPropSet->setPropertyValue( "Dropdown", aAny );
}
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index b1222be650df..ad713bd538cb 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -218,7 +218,7 @@ void BibFrameController_Impl::attachFrame( const uno::Reference< XFrame > & xArg
sal_Bool BibFrameController_Impl::attachModel( const uno::Reference< XModel > & /*xModel*/ ) throw (css::uno::RuntimeException, std::exception)
{
- return sal_False;
+ return false;
}
sal_Bool BibFrameController_Impl::suspend( sal_Bool bSuspend ) throw (css::uno::RuntimeException, std::exception)
@@ -227,7 +227,7 @@ sal_Bool BibFrameController_Impl::suspend( sal_Bool bSuspend ) throw (css::uno::
getFrame()->removeFrameActionListener( pImp );
else
getFrame()->addFrameActionListener( pImp );
- return sal_True;
+ return true;
}
uno::Any BibFrameController_Impl::getViewData() throw (css::uno::RuntimeException, std::exception)
@@ -452,8 +452,8 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
{
FeatureStateEvent aEvent;
aEvent.FeatureURL = pObj->aURL;
- aEvent.IsEnabled = sal_True;
- aEvent.Requery = sal_False;
+ aEvent.IsEnabled = true;
+ aEvent.Requery = false;
aEvent.Source = static_cast<XDispatch *>(this);
pObj->xListener->statusChanged( aEvent );
//break; because there are more than one
@@ -504,7 +504,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
FeatureStateEvent aEvent;
aEvent.FeatureURL = pObj->aURL;
aEvent.IsEnabled = !pDatMan->getParser()->getFilter().isEmpty();
- aEvent.Requery = sal_False;
+ aEvent.Requery = false;
aEvent.Source = static_cast<XDispatch *>(this);
pObj->xListener->statusChanged( aEvent );
}
@@ -648,22 +648,22 @@ void BibFrameController_Impl::addStatusListener(
// send first status synchronously
FeatureStateEvent aEvent;
aEvent.FeatureURL = aURL;
- aEvent.Requery = sal_False;
+ aEvent.Requery = false;
aEvent.Source = static_cast<XDispatch *>(this);
if ( aURL.Path == "StatusBarVisible" )
{
- aEvent.IsEnabled = sal_False;
+ aEvent.IsEnabled = false;
aEvent.State <<= false;
}
else if ( aURL.Path == "Bib/hierarchical" )
{
- aEvent.IsEnabled = sal_True;
+ aEvent.IsEnabled = true;
const char* pHier = bHierarchical? "" : "*" ;
aEvent.State <<= OUString::createFromAscii(pHier);
}
else if(aURL.Path == "Bib/MenuFilter")
{
- aEvent.IsEnabled = sal_True;
+ aEvent.IsEnabled = true;
aEvent.FeatureDescriptor=pDatMan->getQueryField();
uno::Sequence<OUString> aStringSeq=pDatMan->getQueryFields();
@@ -672,7 +672,7 @@ void BibFrameController_Impl::addStatusListener(
}
else if ( aURL.Path == "Bib/source")
{
- aEvent.IsEnabled = sal_True;
+ aEvent.IsEnabled = true;
aEvent.FeatureDescriptor=pDatMan->getActiveDataTable();
uno::Sequence<OUString> aStringSeq=pDatMan->getDataSources();
@@ -683,11 +683,11 @@ void BibFrameController_Impl::addStatusListener(
aURL.Path == "Bib/autoFilter" ||
aURL.Path == "Bib/standardFilter" )
{
- aEvent.IsEnabled = sal_True;
+ aEvent.IsEnabled = true;
}
else if(aURL.Path == "Bib/query")
{
- aEvent.IsEnabled = sal_True;
+ aEvent.IsEnabled = true;
aEvent.State <<= pConfig->getQueryText();
}
else if (aURL.Path == "Bib/removeFilter" )
@@ -711,7 +711,7 @@ void BibFrameController_Impl::addStatusListener(
}
else if(aURL.Path == "Paste" )
{
- aEvent.IsEnabled = sal_False;
+ aEvent.IsEnabled = false;
vcl::Window* pChild = lcl_GetFocusChild( VCLUnoHelper::GetWindow( xWindow ) );
if(pChild)
{
@@ -809,8 +809,8 @@ void BibFrameController_Impl::RemoveFilter()
{
FeatureStateEvent aEvent;
aEvent.FeatureURL = pObj->aURL;
- aEvent.IsEnabled = sal_False;
- aEvent.Requery = sal_False;
+ aEvent.IsEnabled = false;
+ aEvent.Requery = false;
aEvent.Source = static_cast<XDispatch *>(this);
pObj->xListener->statusChanged( aEvent );
bRemoveFilter=true;
@@ -819,8 +819,8 @@ void BibFrameController_Impl::RemoveFilter()
{
FeatureStateEvent aEvent;
aEvent.FeatureURL = pObj->aURL;
- aEvent.IsEnabled = sal_True;
- aEvent.Requery = sal_False;
+ aEvent.IsEnabled = true;
+ aEvent.Requery = false;
aEvent.Source = static_cast<XDispatch *>(this);
aEvent.State <<= aQuery;
pObj->xListener->statusChanged( aEvent );
@@ -869,8 +869,8 @@ void BibFrameController_Impl::ChangeDataSource(const uno::Sequence< beans::Prope
{
FeatureStateEvent aEvent;
aEvent.FeatureURL = pObj->aURL;
- aEvent.IsEnabled = sal_True;
- aEvent.Requery = sal_False;
+ aEvent.IsEnabled = true;
+ aEvent.Requery = false;
aEvent.Source = static_cast<XDispatch *>(this);
aEvent.FeatureDescriptor=pDatMan->getQueryField();
@@ -884,8 +884,8 @@ void BibFrameController_Impl::ChangeDataSource(const uno::Sequence< beans::Prope
{
FeatureStateEvent aEvent;
aEvent.FeatureURL = pObj->aURL;
- aEvent.IsEnabled = sal_True;
- aEvent.Requery = sal_False;
+ aEvent.IsEnabled = true;
+ aEvent.Requery = false;
aEvent.Source = static_cast<XDispatch *>(this);
BibConfig* pConfig = BibModul::GetConfig();
aEvent.State <<= pConfig->getQueryText();
diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx
index d8af447efee7..440d59e17eb2 100644
--- a/extensions/source/bibliography/general.cxx
+++ b/extensions/source/bibliography/general.cxx
@@ -499,8 +499,8 @@ uno::Reference< awt::XControlModel > BibGeneralPage::AddXControl(
break;
}
// initially switch on the design mode - switch it off _after_ loading the form
- xCtrWin->setVisible( sal_True );
- xControl->setDesignMode( sal_True );
+ xCtrWin->setVisible( true );
+ xControl->setDesignMode( true );
vcl::Window* pWindow = VCLUnoHelper::GetWindow(xControl->getPeer());
pWindow->set_grid_top_attach(rLabel.get_grid_top_attach());