svx: prefix members of DialogGalleryPreview
See tdf#94879 for motivation. Change-Id: I2ddf9dfcd65ae44852fc17d97d634c5382d296b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181400 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
This commit is contained in:
@@ -69,8 +69,8 @@ public:
|
||||
class SVXCORE_DLLPUBLIC DialogGalleryPreview final : public weld::CustomWidgetController
|
||||
{
|
||||
private:
|
||||
GraphicObject aGraphicObj;
|
||||
tools::Rectangle aPreviewRect;
|
||||
GraphicObject maGraphicObj;
|
||||
tools::Rectangle maPreviewRect;
|
||||
|
||||
SVX_DLLPRIVATE bool ImplGetGraphicCenterRect( const Graphic& rGraphic, tools::Rectangle& rResultRect ) const;
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
DialogGalleryPreview();
|
||||
|
||||
virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
|
||||
void SetGraphic( const Graphic& rGraphic ) { aGraphicObj.SetGraphic( rGraphic ); }
|
||||
void SetGraphic( const Graphic& rGraphic ) { maGraphicObj.SetGraphic( rGraphic ); }
|
||||
bool SetGraphic( const INetURLObject& );
|
||||
};
|
||||
|
||||
|
||||
@@ -258,15 +258,15 @@ void DialogGalleryPreview::Paint(vcl::RenderContext& rRenderContext, const tools
|
||||
{
|
||||
rRenderContext.SetBackground(Wallpaper(GALLERY_BG_COLOR));
|
||||
|
||||
if (ImplGetGraphicCenterRect(aGraphicObj.GetGraphic(), aPreviewRect))
|
||||
if (ImplGetGraphicCenterRect(maGraphicObj.GetGraphic(), maPreviewRect))
|
||||
{
|
||||
const Point aPos( aPreviewRect.TopLeft() );
|
||||
const Size aSize( aPreviewRect.GetSize() );
|
||||
const Point aPos( maPreviewRect.TopLeft() );
|
||||
const Size aSize( maPreviewRect.GetSize() );
|
||||
|
||||
if( aGraphicObj.IsAnimated() )
|
||||
aGraphicObj.StartAnimation(rRenderContext, aPos, aSize);
|
||||
if( maGraphicObj.IsAnimated() )
|
||||
maGraphicObj.StartAnimation(rRenderContext, aPos, aSize);
|
||||
else
|
||||
aGraphicObj.Draw(rRenderContext, aPos, aSize);
|
||||
maGraphicObj.Draw(rRenderContext, aPos, aSize);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user