LibreOffice Module svx (master) 1
Classes | Functions
modctrl.cxx File Reference
#include <vcl/status.hxx>
#include <vcl/image.hxx>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <vcl/event.hxx>
#include <svl/eitem.hxx>
#include <tools/debug.hxx>
#include <svx/strings.hrc>
#include <svx/modctrl.hxx>
#include <svx/dialmgr.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include "modctrl_internal.hxx"
#include <bitmaps.hlst>
Include dependency graph for modctrl.cxx:

Go to the source code of this file.

Classes

struct  SvxModifyControl::ImplData
 

Functions

 SFX_IMPL_STATUSBAR_CONTROL (SvxModifyControl, SfxBoolItem)
 
 IMPL_LINK (SvxModifyControl, OnTimer, Timer *, pTimer, void)
 
Point centerImage (const tools::Rectangle &rBoundingRect, const Image &rImg)
 Given a bounding rectangle and an image, determine the top-left position of the image so that the image would look centered both horizontally and vertically. More...
 

Function Documentation

◆ centerImage()

Point centerImage ( const tools::Rectangle rBoundingRect,
const Image rImg 
)

Given a bounding rectangle and an image, determine the top-left position of the image so that the image would look centered both horizontally and vertically.

Parameters
rBoundingRectbounding rectangle
rImgimage
Returns
Point top-left corner of the centered image position

Definition at line 127 of file modctrl.cxx.

References Size::getHeight(), tools::Rectangle::GetSize(), Image::GetSizePixel(), Size::getWidth(), and tools::Rectangle::TopLeft().

Referenced by SvxZoomPageStatusBarControl::Paint(), and SvxModifyControl::Paint().

◆ IMPL_LINK()

IMPL_LINK ( SvxModifyControl  ,
OnTimer  ,
Timer ,
pTimer  ,
void   
)

Definition at line 100 of file modctrl.cxx.

◆ SFX_IMPL_STATUSBAR_CONTROL()

SFX_IMPL_STATUSBAR_CONTROL ( SvxModifyControl  ,
SfxBoolItem   
)