summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-14 11:18:53 +0200
committerNoel Grandin <noel@peralex.com>2014-03-18 11:26:05 +0200
commite67d675d1e6410a95c3ea0765c12d96c3a1db512 (patch)
tree538f4802bf0fbb97e49b241e53ea77f437f16ce1 /include
parent4f9ce93ecb965652b79ffa569700e91e47912ba2 (diff)
sfx2: sal_Bool->bool
Change-Id: I01a33e255b0dd2a0045f6eed52e6b31305750599
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/linkmgr.hxx12
-rw-r--r--include/sfx2/lnkbase.hxx34
2 files changed, 23 insertions, 23 deletions
diff --git a/include/sfx2/linkmgr.hxx b/include/sfx2/linkmgr.hxx
index f62b07319b31..3865594c49a2 100644
--- a/include/sfx2/linkmgr.hxx
+++ b/include/sfx2/linkmgr.hxx
@@ -61,7 +61,7 @@ class SFX2_DLLPUBLIC LinkManager
SfxObjectShell *pPersist; // LinkMgr must be release before SfxObjectShell
protected:
- sal_Bool InsertLink( SvBaseLink* pLink, sal_uInt16 nObjType, sal_uInt16 nUpdateType,
+ bool InsertLink( SvBaseLink* pLink, sal_uInt16 nObjType, sal_uInt16 nUpdateType,
const OUString* pName = 0 );
public:
@@ -90,16 +90,16 @@ public:
void Remove( SvBaseLink *pLink );
void Remove( size_t nPos, size_t nCnt = 1 );
- sal_Bool Insert( SvBaseLink* pLink );
+ bool Insert( SvBaseLink* pLink );
// the links connect to a SvLinkSource and adds to the list
- sal_Bool InsertDDELink( SvBaseLink*,
+ bool InsertDDELink( SvBaseLink*,
const OUString& rServer,
const OUString& rTopic,
const OUString& rItem );
// if everything is already set at the link!
- sal_Bool InsertDDELink( SvBaseLink* );
+ bool InsertDDELink( SvBaseLink* );
// Connect the links to a pseudo-object and add to the list
bool InsertFileLink( sfx2::SvBaseLink&,
@@ -141,7 +141,7 @@ public:
// Call with list of links to server
const SvLinkSources& GetServers() const { return aServerTbl; }
// Link register/delete
- sal_Bool InsertServer( SvLinkSource* rObj );
+ bool InsertServer( SvLinkSource* rObj );
void RemoveServer( SvLinkSource* rObj );
// A transfer is aborted, so cancel all download media
@@ -157,7 +157,7 @@ public:
// if the mimetype says graphic/bitmap/gdimetafile then get the
// graphic from the Any. Return says no errors
- static sal_Bool GetGraphicFromAny( const OUString& rMimeType,
+ static bool GetGraphicFromAny( const OUString& rMimeType,
const ::com::sun::star::uno::Any & rValue,
Graphic& rGrf );
diff --git a/include/sfx2/lnkbase.hxx b/include/sfx2/lnkbase.hxx
index 6fe28bf97ea3..c83adaa1419e 100644
--- a/include/sfx2/lnkbase.hxx
+++ b/include/sfx2/lnkbase.hxx
@@ -73,11 +73,11 @@ private:
SvLinkSourceRef xObj;
OUString aLinkName;
BaseLink_Impl* pImpl;
- sal_uInt16 nObjType;
- sal_Bool bVisible : 1;
- sal_Bool bSynchron : 1;
- sal_Bool bUseCache : 1; // for Graphics Links!
- sal_Bool bWasLastEditOK : 1;
+ sal_uInt16 nObjType;
+ bool bVisible : 1;
+ bool bSynchron : 1;
+ bool bUseCache : 1; // for Graphics Links!
+ bool bWasLastEditOK : 1;
DECL_LINK( EndEditHdl, OUString* );
@@ -91,7 +91,7 @@ protected:
ImplBaseLinkData* pImplData;
- sal_Bool m_bIsReadOnly;
+ bool m_bIsReadOnly;
com::sun::star::uno::Reference<com::sun::star::io::XInputStream>
m_xInputStreamToLoadFrom;
@@ -99,7 +99,7 @@ protected:
SvBaseLink( sal_uInt16 nLinkType, sal_uIntPtr nContentType = FORMAT_STRING );
virtual ~SvBaseLink();
- void _GetRealObject( sal_Bool bConnect = sal_True );
+ void _GetRealObject( bool bConnect = true );
SvLinkSource* GetRealObject()
{
@@ -134,37 +134,37 @@ public:
void SetUpdateMode( sal_uInt16 );
sal_uInt16 GetUpdateMode() const;
sal_uIntPtr GetContentType() const;
- sal_Bool SetContentType( sal_uIntPtr nType );
+ bool SetContentType( sal_uIntPtr nType );
LinkManager* GetLinkManager();
const LinkManager* GetLinkManager() const;
void SetLinkManager( LinkManager* _pMgr );
- sal_Bool Update();
+ bool Update();
void Disconnect();
// Link impl: DECL_LINK( MyEndDialogHdl, SvBaseLink* ); <= param is this
virtual void Edit( Window*, const Link& rEndEditHdl );
// should the link appear in the dialog? (to the left in the link in the...)
- sal_Bool IsVisible() const { return bVisible; }
- void SetVisible( sal_Bool bFlag ) { bVisible = bFlag; }
+ bool IsVisible() const { return bVisible; }
+ void SetVisible( bool bFlag ) { bVisible = bFlag; }
// should the Link be loaded synchronous or asynchronous?
- sal_Bool IsSynchron() const { return bSynchron; }
- void SetSynchron( sal_Bool bFlag ) { bSynchron = bFlag; }
+ bool IsSynchron() const { return bSynchron; }
+ void SetSynchron( bool bFlag ) { bSynchron = bFlag; }
- sal_Bool IsUseCache() const { return bUseCache; }
- void SetUseCache( sal_Bool bFlag ) { bUseCache = bFlag; }
+ bool IsUseCache() const { return bUseCache; }
+ void SetUseCache( bool bFlag ) { bUseCache = bFlag; }
void setStreamToLoadFrom(
const com::sun::star::uno::Reference<com::sun::star::io::XInputStream>& xInputStream,
- sal_Bool bIsReadOnly )
+ bool bIsReadOnly )
{ m_xInputStreamToLoadFrom = xInputStream;
m_bIsReadOnly = bIsReadOnly; }
// #i88291#
void clearStreamToLoadFrom();
- inline sal_Bool WasLastEditOK() const { return bWasLastEditOK; }
+ inline bool WasLastEditOK() const { return bWasLastEditOK; }
FileDialogHelper & GetInsertFileDialog(const OUString& rFactory) const;
};