summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-17 13:38:26 +0200
committerNoel Grandin <noel@peralex.com>2014-03-18 11:27:38 +0200
commitac01de882d368c4d8044361f874edd4b53e33f2b (patch)
tree50b56ce1efa549fec4b69d04ae9f1cd4ecb3ccfe /starmath
parent399724aba4b7297a262a775d000ddf4534e38b6c (diff)
sfx2: sal_Bool->bool
Change-Id: I87c5a180566e9da185c2992844e6522e82c17747
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/document.hxx16
-rw-r--r--starmath/source/cursor.cxx4
-rw-r--r--starmath/source/document.cxx16
3 files changed, 18 insertions, 18 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 22cda9ccd64e..dcfa197319b6 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -133,13 +133,13 @@ class SmDocShell : public SfxObjectShell, public SfxListener
virtual sal_Bool SetData( const OUString& rData );
virtual sal_uLong GetMiscStatus() const;
virtual void OnDocumentPrinterChanged( Printer * );
- virtual sal_Bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
- virtual sal_Bool Load( SfxMedium& rMedium );
+ virtual bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
+ virtual bool Load( SfxMedium& rMedium );
void ImplSave( SvStorageStreamRef xStrm );
- virtual sal_Bool Save();
- virtual sal_Bool SaveAs( SfxMedium& rMedium );
- virtual sal_Bool ConvertTo( SfxMedium &rMedium );
- virtual sal_Bool SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
+ virtual bool Save();
+ virtual bool SaveAs( SfxMedium& rMedium );
+ virtual bool ConvertTo( SfxMedium &rMedium );
+ virtual bool SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
Printer *GetPrt();
OutputDevice* GetRefDev();
@@ -147,7 +147,7 @@ class SmDocShell : public SfxObjectShell, public SfxListener
bool IsFormulaArranged() const { return bIsFormulaArranged; }
void SetFormulaArranged(bool bVal) { bIsFormulaArranged = bVal; }
- virtual sal_Bool ConvertFrom(SfxMedium &rMedium);
+ virtual bool ConvertFrom(SfxMedium &rMedium);
/** Called whenever the formula is changed
* Deletes the current cursor
@@ -215,7 +215,7 @@ public:
void GetState(SfxItemSet &);
virtual void SetVisArea (const Rectangle & rVisArea);
- virtual void SetModified(sal_Bool bModified);
+ virtual void SetModified(bool bModified);
/** Get a cursor for modifying this document
* @remarks Don't store this reference, a new cursor may be made...
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index 6704c2a8c91a..d05a1b85b022 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -1415,7 +1415,7 @@ void SmCursor::BeginEdit(){
bIsEnabledSetModifiedSmDocShell = pDocShell->IsEnableSetModified();
if( bIsEnabledSetModifiedSmDocShell )
- pDocShell->EnableSetModified( sal_False );
+ pDocShell->EnableSetModified( false );
}
void SmCursor::EndEdit(){
@@ -1429,7 +1429,7 @@ void SmCursor::EndEdit(){
if ( bIsEnabledSetModifiedSmDocShell )
pDocShell->EnableSetModified( bIsEnabledSetModifiedSmDocShell );
//I think this notifies people around us that we've modified this document...
- pDocShell->SetModified(sal_True);
+ pDocShell->SetModified(true);
//I think SmDocShell uses this value when it sends an update graphics event
//Anyway comments elsewhere suggests it need to be updated...
pDocShell->nModifyCount++;
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 4ba13b05cebb..00452a62e9e1 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -740,7 +740,7 @@ sal_Bool SmDocShell::SetData( const OUString& rData )
}
-sal_Bool SmDocShell::ConvertFrom(SfxMedium &rMedium)
+bool SmDocShell::ConvertFrom(SfxMedium &rMedium)
{
SAL_INFO( "starmath", "SmDocShell::ConvertFrom" );
@@ -791,7 +791,7 @@ sal_Bool SmDocShell::ConvertFrom(SfxMedium &rMedium)
}
-sal_Bool SmDocShell::InitNew( const uno::Reference < embed::XStorage >& xStorage )
+bool SmDocShell::InitNew( const uno::Reference < embed::XStorage >& xStorage )
{
SAL_INFO( "starmath", "SmDocShell::InitNew" );
@@ -805,7 +805,7 @@ sal_Bool SmDocShell::InitNew( const uno::Reference < embed::XStorage >& xStorage
}
-sal_Bool SmDocShell::Load( SfxMedium& rMedium )
+bool SmDocShell::Load( SfxMedium& rMedium )
{
SAL_INFO( "starmath", "SmDocShell::Load" );
@@ -846,7 +846,7 @@ sal_Bool SmDocShell::Load( SfxMedium& rMedium )
-sal_Bool SmDocShell::Save()
+bool SmDocShell::Save()
{
SAL_INFO( "starmath", "SmDocShell::Save" );
@@ -910,7 +910,7 @@ void SmDocShell::UpdateText()
}
-sal_Bool SmDocShell::SaveAs( SfxMedium& rMedium )
+bool SmDocShell::SaveAs( SfxMedium& rMedium )
{
SAL_INFO( "starmath", "SmDocShell::SaveAs" );
@@ -934,7 +934,7 @@ sal_Bool SmDocShell::SaveAs( SfxMedium& rMedium )
return bRet;
}
-sal_Bool SmDocShell::ConvertTo( SfxMedium &rMedium )
+bool SmDocShell::ConvertTo( SfxMedium &rMedium )
{
SAL_INFO( "starmath", "SmDocShell::ConvertTo" );
@@ -998,7 +998,7 @@ void SmDocShell::readFormulaOoxml( oox::formulaimport::XmlStream& stream )
SetText( aEquation.ConvertToStarMath());
}
-sal_Bool SmDocShell::SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage )
+bool SmDocShell::SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage )
{
SAL_INFO( "starmath", "SmDocShell::SaveCompleted" );
@@ -1419,7 +1419,7 @@ sal_uLong SmDocShell::GetMiscStatus() const
| SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE;
}
-void SmDocShell::SetModified(sal_Bool bModified)
+void SmDocShell::SetModified(bool bModified)
{
SAL_INFO( "starmath", "SmDocShell::SetModified" );