LibreOffice Module sw (master) 1
|
#include <optpage.hxx>
Public Member Functions | |
SwMarkPreview () | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual | ~SwMarkPreview () override |
void | SetColor (const Color &rCol) |
void | SetMarkPos (sal_uInt16 nPos) |
Public Member Functions inherited from weld::CustomWidgetController | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
virtual void | Resize () |
virtual bool | MouseButtonDown (const MouseEvent &) |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual void | StyleUpdated () |
virtual bool | Command (const CommandEvent &) |
virtual bool | KeyInput (const KeyEvent &) |
virtual tools::Rectangle | GetFocusRect () |
virtual FactoryFunction | GetUITestFactory () const |
virtual OUString | RequestHelp (tools::Rectangle &) |
virtual OUString | GetHelpText () const |
Size const & | GetOutputSizePixel () const |
void | SetOutputSizePixel (const Size &rSize) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
weld::DrawingArea * | GetDrawingArea () const |
void | Invalidate () |
void | Invalidate (const tools::Rectangle &rRect) |
virtual void | Show () |
virtual void | Hide () |
void | SetCursor (void *pData) |
void | GrabFocus () |
bool | HasFocus () const |
bool | HasChildFocus () const |
bool | IsVisible () const |
bool | IsReallyVisible () const |
bool | IsEnabled () const |
void | Enable () const |
void | Disable () const |
bool | IsActive () const |
int | GetTextHeight () const |
int | GetTextWidth (const OUString &rText) const |
OUString | GetAccessibleName () const |
OUString | GetAccessibleDescription () const |
void | CaptureMouse () |
bool | IsMouseCaptured () const |
Point | GetPointerPosPixel () const |
void | EnableRTL (bool bEnable) |
bool | IsRTLEnabled () const |
void | ReleaseMouse () |
void | SetPointer (PointerStyle ePointerStyle) |
void | SetHelpId (const OUString &rHelpId) |
void | SetAccessibleName (const OUString &rName) |
void | SetInputContext (const InputContext &rInputContext) |
void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
virtual int | GetSurroundingText (OUString &) |
virtual bool | DeleteSurroundingText (const Selection &) |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
virtual bool | StartDrag () |
void | set_size_request (int nWidth, int nHeight) |
void | queue_resize () |
CustomWidgetController () | |
virtual | ~CustomWidgetController () |
CustomWidgetController (CustomWidgetController const &)=default | |
CustomWidgetController (CustomWidgetController &&)=default | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Private Member Functions | |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &) override |
void | PaintPage (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) |
void | InitColors () |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 260 of file optpage.hxx.
SwMarkPreview::SwMarkPreview | ( | ) |
Definition at line 1372 of file optpage.cxx.
References COL_LIGHTRED(), COL_TRANSPARENT(), and InitColors().
|
overridevirtual |
Definition at line 1381 of file optpage.cxx.
|
private |
Definition at line 1385 of file optpage.cxx.
References COL_BLACK(), COL_GRAY(), SwViewOption::GetCurrentViewOptions(), SwViewOption::GetFontColor(), StyleSettings::GetHighContrastMode(), Application::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), m_aBgCol, m_aLineCol, m_aPrintAreaCol, m_aShadowCol, and m_aTextCol.
Referenced by SwMarkPreview().
|
overrideprivatevirtual |
Implements weld::CustomWidgetController.
Definition at line 1400 of file optpage.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::GetHeight(), weld::CustomWidgetController::GetOutputSizePixel(), tools::Rectangle::GetWidth(), Size::Height(), tools::Rectangle::Left(), m_aBgCol, m_aLeftPagePrtArea, m_aLineCol, m_aMarkCol, m_aPage, m_aRightPagePrtArea, m_aShadowCol, m_aTransCol, m_nMarkPos, tools::Rectangle::Move(), PaintPage(), tools::Rectangle::Right(), tools::Rectangle::SetPos(), tools::Rectangle::SetSize(), tools::Rectangle::Top(), and Size::Width().
|
private |
Definition at line 1470 of file optpage.cxx.
References tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::Contains(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), i, m_aPage, m_aPrintAreaCol, m_aTextCol, m_aTransCol, tools::Rectangle::Move(), and tools::Rectangle::SetSize().
Referenced by Paint().
|
inline |
Definition at line 285 of file optpage.hxx.
References m_aMarkCol.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1500 of file optpage.cxx.
References weld::DrawingArea::get_ref_device(), getPreviewOptionsSize(), Size::Height(), weld::Widget::set_size_request(), weld::CustomWidgetController::SetDrawingArea(), weld::CustomWidgetController::SetOutputSizePixel(), and Size::Width().
|
inline |
Definition at line 286 of file optpage.hxx.
References m_nMarkPos, and nPos.
|
private |
Definition at line 262 of file optpage.hxx.
Referenced by InitColors(), and Paint().
|
private |
Definition at line 271 of file optpage.hxx.
Referenced by Paint().
|
private |
Definition at line 265 of file optpage.hxx.
Referenced by InitColors(), and Paint().
|
private |
Definition at line 264 of file optpage.hxx.
Referenced by Paint(), and SetColor().
|
private |
Definition at line 270 of file optpage.hxx.
Referenced by Paint(), and PaintPage().
|
private |
Definition at line 268 of file optpage.hxx.
Referenced by InitColors(), and PaintPage().
|
private |
Definition at line 272 of file optpage.hxx.
Referenced by Paint().
|
private |
Definition at line 266 of file optpage.hxx.
Referenced by InitColors(), and Paint().
|
private |
Definition at line 267 of file optpage.hxx.
Referenced by InitColors(), and PaintPage().
|
private |
Definition at line 263 of file optpage.hxx.
Referenced by Paint(), and PaintPage().
|
private |
Definition at line 274 of file optpage.hxx.
Referenced by Paint(), and SetMarkPos().