LibreOffice Module sfx2 (master) 1
|
A class for math editing support via LibreOfficeKit. More...
#include <lokcomponenthelpers.hxx>
Public Member Functions | |
LokStarMathHelper (const SfxViewShell *pViewShell) | |
vcl::Window * | GetGraphicWindow () |
vcl::Window * | GetWidgetWindow () |
const SfxViewShell * | GetSmViewShell () |
tools::Rectangle | GetBoundingBox () const |
void | Dispatch (const OUString &cmd, const css::uno::Sequence< css::beans::PropertyValue > &rArguments) const |
bool | postMouseEvent (int nType, int nX, int nY, int nCount, int nButtons, int nModifier, double fPPTScaleX, double fPPTScaleY) |
Static Public Member Functions | |
static void | PaintAllInPlaceOnTile (VirtualDevice &rDevice, int nOutputWidth, int nOutputHeight, int nTilePosX, int nTilePosY, tools::Long nTileWidth, tools::Long nTileHeight) |
Private Member Functions | |
void | PaintTile (VirtualDevice &rDevice, const tools::Rectangle &rTileRect) |
Private Attributes | |
const SfxViewShell * | mpViewShell |
const SfxInPlaceClient * | mpIPClient = nullptr |
css::uno::Reference< css::frame::XFrame > | mxFrame |
VclPtr< vcl::Window > | mpGraphicWindow |
VclPtr< vcl::Window > | mpWidgetWindow |
A class for math editing support via LibreOfficeKit.
Definition at line 68 of file lokcomponenthelpers.hxx.
LokStarMathHelper::LokStarMathHelper | ( | const SfxViewShell * | pViewShell | ) |
Definition at line 30 of file lokstarmathhelper.cxx.
References SfxViewShell::GetIPClient(), mpIPClient, mpViewShell, mxFrame, xController, and xModel.
Referenced by PaintAllInPlaceOnTile().
void LokStarMathHelper::Dispatch | ( | const OUString & | cmd, |
const css::uno::Sequence< css::beans::PropertyValue > & | rArguments | ||
) | const |
Definition at line 58 of file lokstarmathhelper.cxx.
References comphelper::dispatchCommand(), and mxFrame.
tools::Rectangle LokStarMathHelper::GetBoundingBox | ( | ) | const |
Definition at line 140 of file lokstarmathhelper.cxx.
References o3tl::convert(), SfxInPlaceClient::GetObjArea(), o3tl::invalid, MapToO3tlLength(), mpIPClient, mpViewShell, and o3tl::twip.
Referenced by PaintTile(), and postMouseEvent().
vcl::Window * LokStarMathHelper::GetGraphicWindow | ( | ) |
Definition at line 107 of file lokstarmathhelper.cxx.
References VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), mpGraphicWindow, mxFrame, and VclPtr< class reference_type >::set().
Referenced by GetSmViewShell(), and GetWidgetWindow().
const SfxViewShell * LokStarMathHelper::GetSmViewShell | ( | ) |
Definition at line 129 of file lokstarmathhelper.cxx.
References SfxViewShell::GetFirst(), and GetGraphicWindow().
vcl::Window * LokStarMathHelper::GetWidgetWindow | ( | ) |
Definition at line 121 of file lokstarmathhelper.cxx.
References VclPtr< class reference_type >::get(), GetGraphicWindow(), mpWidgetWindow, and VclPtr< class reference_type >::set().
Referenced by PaintTile(), and postMouseEvent().
|
static |
Definition at line 209 of file lokstarmathhelper.cxx.
References conversionFract(), SfxViewShell::Current(), SfxViewShell::GetDocId(), SfxViewShell::GetFirst(), OutputDevice::GetMapMode(), SfxViewShell::GetNext(), SfxViewShell::getPart(), comphelper::LibreOfficeKit::isTiledAnnotations(), LokStarMathHelper(), vcl::MAPMODE, OutputDevice::Pop(), OutputDevice::Push(), o3tl::px, scale, OutputDevice::SetMapMode(), MapMode::SetMapUnit(), VirtualDevice::SetOutputSizePixel(), MapMode::SetScaleX(), MapMode::SetScaleY(), and o3tl::twip.
|
private |
Definition at line 190 of file lokstarmathhelper.cxx.
References GetBoundingBox(), tools::Rectangle::GetIntersection(), OutputDevice::GetMapMode(), GetWidgetWindow(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), vcl::Window::Paint(), OutputDevice::SetMapMode(), MapMode::SetOrigin(), and tools::Rectangle::Top().
bool LokStarMathHelper::postMouseEvent | ( | int | nType, |
int | nX, | ||
int | nY, | ||
int | nCount, | ||
int | nButtons, | ||
int | nModifier, | ||
double | fPPTScaleX, | ||
double | fPPTScaleY | ||
) |
Definition at line 156 of file lokstarmathhelper.cxx.
References tools::Rectangle::Contains(), o3tl::convert(), GetBoundingBox(), GetWidgetWindow(), nCount, nType, SfxLokHelper::postMouseEventAsync(), o3tl::px, tools::Rectangle::TopLeft(), and o3tl::twip.
Referenced by SfxLokHelper::testInPlaceComponentMouseEventHit().
|
private |
Definition at line 93 of file lokcomponenthelpers.hxx.
Referenced by GetGraphicWindow().
|
private |
Definition at line 91 of file lokcomponenthelpers.hxx.
Referenced by GetBoundingBox(), and LokStarMathHelper().
|
private |
Definition at line 90 of file lokcomponenthelpers.hxx.
Referenced by GetBoundingBox(), and LokStarMathHelper().
|
private |
Definition at line 94 of file lokcomponenthelpers.hxx.
Referenced by GetWidgetWindow().
|
private |
Definition at line 92 of file lokcomponenthelpers.hxx.
Referenced by Dispatch(), GetGraphicWindow(), and LokStarMathHelper().