LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
LokChartHelper Class Reference

A class for chart editing support via LibreOfficeKit. More...

#include <lokcomponenthelpers.hxx>

Collaboration diagram for LokChartHelper:
[legend]

Public Member Functions

 LokChartHelper (SfxViewShell *pViewShell, bool bNegativeX=false)
 
css::uno::Reference< css::frame::XController > & GetXController ()
 
css::uno::Reference< css::frame::XDispatch > & GetXDispatcher ()
 
vcl::WindowGetWindow ()
 
tools::Rectangle GetChartBoundingBox ()
 
void Invalidate ()
 
bool Hit (const Point &aPos)
 
void PaintTile (VirtualDevice &rRenderContext, const tools::Rectangle &rTileRect)
 
bool postMouseEvent (int nType, int nX, int nY, int nCount, int nButtons, int nModifier, double fScaleX=1.0, double fScaleY=1.0)
 
bool setTextSelection (int nType, int nX, int nY)
 
bool setGraphicSelection (int nType, int nX, int nY, double fScaleX=1.0, double fScaleY=1.0)
 

Static Public Member Functions

static bool HitAny (const Point &aPos, bool bNegativeX=false)
 
static void PaintAllChartsOnTile (VirtualDevice &rDevice, int nOutputWidth, int nOutputHeight, int nTilePosX, int nTilePosY, tools::Long nTileWidth, tools::Long nTileHeight, bool bNegativeX=false)
 

Private Attributes

SfxViewShellmpViewShell
 
css::uno::Reference< css::frame::XController > mxController
 
css::uno::Reference< css::frame::XDispatch > mxDispatcher
 
VclPtr< vcl::WindowmpWindow
 
bool mbNegativeX
 

Detailed Description

A class for chart editing support via LibreOfficeKit.

Definition at line 29 of file lokcomponenthelpers.hxx.

Constructor & Destructor Documentation

◆ LokChartHelper()

LokChartHelper::LokChartHelper ( SfxViewShell pViewShell,
bool  bNegativeX = false 
)
inline

Definition at line 39 of file lokcomponenthelpers.hxx.

References mpWindow.

Member Function Documentation

◆ GetChartBoundingBox()

tools::Rectangle LokChartHelper::GetChartBoundingBox ( )

◆ GetWindow()

vcl::Window * LokChartHelper::GetWindow ( )

◆ GetXController()

css::uno::Reference< css::frame::XController > & LokChartHelper::GetXController ( )

◆ GetXDispatcher()

css::uno::Reference< css::frame::XDispatch > & LokChartHelper::GetXDispatcher ( )

Definition at line 55 of file lokcharthelper.cxx.

References GetXController(), and mxDispatcher.

Referenced by setTextSelection().

◆ Hit()

bool LokChartHelper::Hit ( const Point aPos)

Definition at line 157 of file lokcharthelper.cxx.

References tools::Rectangle::Contains(), GetChartBoundingBox(), GetWindow(), and mpViewShell.

Referenced by HitAny().

◆ HitAny()

bool LokChartHelper::HitAny ( const Point aPos,
bool  bNegativeX = false 
)
static

◆ Invalidate()

void LokChartHelper::Invalidate ( )

Definition at line 150 of file lokcharthelper.cxx.

References mpWindow, mxController, and mxDispatcher.

◆ PaintAllChartsOnTile()

void LokChartHelper::PaintAllChartsOnTile ( VirtualDevice rDevice,
int  nOutputWidth,
int  nOutputHeight,
int  nTilePosX,
int  nTilePosY,
tools::Long  nTileWidth,
tools::Long  nTileHeight,
bool  bNegativeX = false 
)
static

◆ PaintTile()

void LokChartHelper::PaintTile ( VirtualDevice rRenderContext,
const tools::Rectangle rTileRect 
)

◆ postMouseEvent()

bool LokChartHelper::postMouseEvent ( int  nType,
int  nX,
int  nY,
int  nCount,
int  nButtons,
int  nModifier,
double  fScaleX = 1.0,
double  fScaleY = 1.0 
)

◆ setGraphicSelection()

bool LokChartHelper::setGraphicSelection ( int  nType,
int  nX,
int  nY,
double  fScaleX = 1.0,
double  fScaleY = 1.0 
)

◆ setTextSelection()

bool LokChartHelper::setTextSelection ( int  nType,
int  nX,
int  nY 
)

Member Data Documentation

◆ mbNegativeX

bool LokChartHelper::mbNegativeX
private

Definition at line 36 of file lokcomponenthelpers.hxx.

Referenced by GetChartBoundingBox().

◆ mpViewShell

SfxViewShell* LokChartHelper::mpViewShell
private

Definition at line 32 of file lokcomponenthelpers.hxx.

Referenced by GetChartBoundingBox(), GetXController(), Hit(), and PaintTile().

◆ mpWindow

VclPtr<vcl::Window> LokChartHelper::mpWindow
private

Definition at line 35 of file lokcomponenthelpers.hxx.

Referenced by GetWindow(), and Invalidate().

◆ mxController

css::uno::Reference<css::frame::XController> LokChartHelper::mxController
private

Definition at line 33 of file lokcomponenthelpers.hxx.

Referenced by GetXController(), and Invalidate().

◆ mxDispatcher

css::uno::Reference<css::frame::XDispatch> LokChartHelper::mxDispatcher
private

Definition at line 34 of file lokcomponenthelpers.hxx.

Referenced by GetXDispatcher(), and Invalidate().


The documentation for this class was generated from the following files: