Kaydet (Commit) 1b9b886a authored tarafından Kohei Yoshida's avatar Kohei Yoshida

sal_Bool to bool.

üst 7ce98f34
...@@ -71,7 +71,7 @@ public: ...@@ -71,7 +71,7 @@ public:
sal_Bool bMirrored; sal_Bool bMirrored;
SdrGrafObjGeoData() SdrGrafObjGeoData()
: bMirrored(sal_False) : bMirrored(false)
{ {
} }
}; };
...@@ -104,21 +104,21 @@ private: ...@@ -104,21 +104,21 @@ private:
String aFilterName; String aFilterName;
GraphicObject* pGraphic; // Zur Beschleunigung von Bitmapausgaben, besonders von gedrehten. GraphicObject* pGraphic; // Zur Beschleunigung von Bitmapausgaben, besonders von gedrehten.
SdrGraphicLink* pGraphicLink; // Und hier noch ein Pointer fuer gelinkte Grafiken SdrGraphicLink* pGraphicLink; // Und hier noch ein Pointer fuer gelinkte Grafiken
bool bMirrored; // True bedeutet, die Grafik ist horizontal, d.h. ueber die Y-Achse gespiegelt auszugeben. bool bMirrored:1; // True bedeutet, die Grafik ist horizontal, d.h. ueber die Y-Achse gespiegelt auszugeben.
// #111096# // #111096#
// Flag for allowing text animation. Default is sal_true. // Flag for allowing text animation. Default is sal_true.
unsigned mbGrafAnimationAllowed : 1; bool mbGrafAnimationAllowed:1;
// #i25616# // #i25616#
unsigned mbInsidePaint : 1; bool mbInsidePaint:1;
unsigned mbIsPreview : 1; bool mbIsPreview:1;
private: private:
void ImpLinkAnmeldung(); void ImpLinkAnmeldung();
void ImpLinkAbmeldung(); void ImpLinkAbmeldung();
sal_Bool ImpUpdateGraphicLink( sal_Bool bAsynchron = sal_True ) const; bool ImpUpdateGraphicLink( bool bAsynchron = true ) const;
void ImpSetLinkedGraphic( const Graphic& rGraphic ); void ImpSetLinkedGraphic( const Graphic& rGraphic );
DECL_LINK( ImpSwapHdl, GraphicObject* ); DECL_LINK( ImpSwapHdl, GraphicObject* );
...@@ -131,7 +131,7 @@ public: ...@@ -131,7 +131,7 @@ public:
virtual ~SdrGrafObj(); virtual ~SdrGrafObj();
void SetGraphicObject( const GraphicObject& rGrfObj ); void SetGraphicObject( const GraphicObject& rGrfObj );
const GraphicObject& GetGraphicObject( bool bForceSwapIn = false) const; const GraphicObject& GetGraphicObject(bool bForceSwapIn = false) const;
void NbcSetGraphic(const Graphic& rGrf); void NbcSetGraphic(const Graphic& rGrf);
void SetGraphic(const Graphic& rGrf); void SetGraphic(const Graphic& rGrf);
...@@ -143,11 +143,11 @@ public: ...@@ -143,11 +143,11 @@ public:
// #111096# // #111096#
// Keep ATM for SD. // Keep ATM for SD.
sal_Bool IsAnimated() const; bool IsAnimated() const;
sal_Bool IsEPS() const; bool IsEPS() const;
sal_Bool IsRenderGraphic() const; bool IsRenderGraphic() const;
sal_Bool HasRenderGraphic() const; bool HasRenderGraphic() const;
sal_Bool IsSwappedOut() const; bool IsSwappedOut() const;
const MapMode& GetGrafPrefMapMode() const; const MapMode& GetGrafPrefMapMode() const;
const Size& GetGrafPrefSize() const; const Size& GetGrafPrefSize() const;
...@@ -160,7 +160,7 @@ public: ...@@ -160,7 +160,7 @@ public:
void SetGraphicLink(const String& rFileName, const String& rFilterName); void SetGraphicLink(const String& rFileName, const String& rFilterName);
void ReleaseGraphicLink(); void ReleaseGraphicLink();
sal_Bool IsLinkedGraphic() const { return (sal_Bool)aFileName.Len(); } bool IsLinkedGraphic() const;
const String& GetFileName() const { return aFileName; } const String& GetFileName() const { return aFileName; }
const String& GetFilterName() const { return aFilterName; } const String& GetFilterName() const { return aFilterName; }
...@@ -203,12 +203,12 @@ public: ...@@ -203,12 +203,12 @@ public:
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
bool IsMirrored() { return bMirrored; } bool IsMirrored() const;
void SetMirrored( bool _bMirrored ) { bMirrored = _bMirrored; } void SetMirrored( bool _bMirrored );
// #111096# // #111096#
// Access to GrafAnimationAllowed flag // Access to GrafAnimationAllowed flag
void SetGrafAnimationAllowed(sal_Bool bNew); void SetGrafAnimationAllowed(bool bNew);
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > getInputStream(); ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > getInputStream();
......
...@@ -140,9 +140,9 @@ namespace sdr ...@@ -140,9 +140,9 @@ namespace sdr
else else
{ {
// SwapIn direct // SwapIn direct
rGrafObj.mbInsidePaint = sal_True; rGrafObj.mbInsidePaint = true;
rGrafObj.ForceSwapIn(); rGrafObj.ForceSwapIn();
rGrafObj.mbInsidePaint = sal_False; rGrafObj.mbInsidePaint = false;
} }
bRetval = true; bRetval = true;
...@@ -192,9 +192,9 @@ namespace sdr ...@@ -192,9 +192,9 @@ namespace sdr
else else
{ {
// SwapIn direct // SwapIn direct
rGrafObj.mbInsidePaint = sal_True; rGrafObj.mbInsidePaint = true;
rGrafObj.ForceSwapIn(); rGrafObj.ForceSwapIn();
rGrafObj.mbInsidePaint = sal_False; rGrafObj.mbInsidePaint = false;
} }
bRetval = true; bRetval = true;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment