25 #include <rtl/ustring.hxx>
29 #include <com/sun/star/uno/Reference.hxx>
57 bool mbUnlimitedSize : 1;
58 bool mbAntiAliase : 1;
59 bool mbSnapHorVerLines : 1;
64 bool bUnlimitedSize =
false,
65 bool bAntiAliase =
false,
66 bool bSnapHorVerLines =
false)
67 : maSizePixel(rSizePixel),
68 mbUnlimitedSize(bUnlimitedSize),
69 mbAntiAliase(bAntiAliase),
70 mbSnapHorVerLines(bSnapHorVerLines)
86 SAL_DLLPRIVATE
void ImplTestRefCount();
92 Graphic(std::shared_ptr<GfxLink>
const & rGfxLink, sal_Int32 nPageIndex = 0);
105 bool operator==( const
Graphic& rGraphic ) const;
106 bool operator!=( const
Graphic& rGraphic ) const;
113 void SetDefaultType();
114 bool IsSupportedGraphic() const;
116 bool IsTransparent() const;
117 bool IsAlpha() const;
118 bool IsAnimated() const;
121 bool isAvailable() const;
122 bool makeAvailable();
131 const
BitmapEx& GetBitmapExRef() const;
136 css::
uno::Reference<
css::graphic::XGraphic > GetXGraphic() const;
138 Size GetPrefSize() const;
139 void SetPrefSize( const
Size& rPrefSize );
141 MapMode GetPrefMapMode() const;
142 void SetPrefMapMode( const
MapMode& rPrefMapMode );
150 void Draw(
OutputDevice& rOutDev, const Point& rDestPt) const;
152 const
Size& rDestSize) const;
153 static
void DrawEx(
OutputDevice& rOutDev, const OUString& rText,
155 const Point& rDestPt, const
Size& rDestSize);
158 const Point& rDestPt,
159 const
Size& rDestSize,
165 void SetAnimationNotifyHdl( const
Link<
Animation*,
void>& rLink );
166 Link<Animation*,
void> GetAnimationNotifyHdl() const;
168 sal_uInt32 GetAnimationLoopCount() const;
172 OUString getOriginURL() const;
173 void setOriginURL(OUString const & rOriginURL);
175 OString getUniqueID() const;
179 void SetDummyContext(
bool value);
180 bool IsDummyContext() const;
182 void SetGfxLink(const
std::shared_ptr<
GfxLink>& rGfxLink);
183 const
std::shared_ptr<
GfxLink> & GetSharedGfxLink() const;
185 bool IsGfxLink() const;
190 sal_Int32 getPageNumber() const;
202 return static_cast<std::size_t
>(rGraphic.
GetChecksum());
BitmapEx GetBitmapEx(BitmapEx const &rBitmapEx, DrawModeFlags nDrawMode)
sal_uInt64 BitmapChecksum
std::shared_ptr< ImpGraphic > mxImpGraphic
BitmapChecksum GetChecksum() const
std::size_t operator()(Graphic const &rGraphic) const
bool getUnlimitedSize() const
const Size & getSizePixel() const
SAL_DLLPRIVATE ImpGraphic * ImplGetImpGraphic() const
bool getSnapHorVerLines() const
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
GraphicConversionParameters(const Size &rSizePixel=Size(), bool bUnlimitedSize=false, bool bAntiAliase=false, bool bSnapHorVerLines=false)
bool getAntiAliase() const