LibreOffice Module svx (master) 1
|
#include <swframeexample.hxx>
Public Member Functions | |
SwFrameExample () | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
void | SetWrap (css::text::WrapTextMode nW) |
void | SetHAlign (short nH) |
void | SetHoriRel (short nR) |
void | SetVAlign (short nV) |
void | SetVertRel (short nR) |
void | SetTransparent (bool bT) |
void | SetAnchor (RndStdIds nA) |
void | SetRelPos (const Point &rP) |
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 | |
void | InitColors_Impl () |
void | InitAllRects_Impl (vcl::RenderContext &rRenderContext) |
void | CalcBoundRect_Impl (const vcl::RenderContext &rRenderContext, tools::Rectangle &rRect) |
tools::Rectangle | DrawInnerFrame_Impl (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect, const Color &rFillColor, const Color &rBorderColor) |
virtual void | StyleUpdated () override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &) override |
Private Attributes | |
Color | m_aTransColor |
transparency More... | |
Color | m_aBgCol |
background More... | |
Color | m_aFrameColor |
graphic frame More... | |
Color | m_aAlignColor |
align anchor More... | |
Color | m_aBorderCol |
frame of doc More... | |
Color | m_aPrintAreaCol |
frame of printable area of doc More... | |
Color | m_aTxtCol |
symbolised text More... | |
Color | m_aBlankCol |
area of symbol for blank More... | |
Color | m_aBlankFrameCol |
frame of symbol for blank More... | |
tools::Rectangle | aPage |
tools::Rectangle | aPagePrtArea |
tools::Rectangle | aTextLine |
tools::Rectangle | aPara |
tools::Rectangle | aParaPrtArea |
tools::Rectangle | aFrameAtFrame |
tools::Rectangle | aDrawObj |
tools::Rectangle | aAutoCharFrame |
Size | aFrmSize |
short | nHAlign |
short | nHRel |
short | nVAlign |
short | nVRel |
css::text::WrapTextMode | nWrap |
RndStdIds | nAnchor |
bool | bTrans |
Point | aRelPos |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 29 of file swframeexample.hxx.
SwFrameExample::SwFrameExample | ( | ) |
Definition at line 48 of file swframeexample.cxx.
References CENTER, FLY_AT_PAGE, FRAME, InitColors_Impl(), and TOP.
|
private |
Definition at line 228 of file swframeexample.cxx.
References aAutoCharFrame, aDrawObj, aFrameAtFrame, aPage, aPagePrtArea, aPara, aParaPrtArea, tools::Rectangle::Bottom(), FLY_AS_CHAR, FLY_AT_CHAR, FLY_AT_FLY, FLY_AT_PAGE, FLY_AT_PARA, FLYINFLY_BORDER, FontMetric::GetDescent(), OutputDevice::GetFontMetric(), tools::Rectangle::Left(), nAnchor, nHRel, nVAlign, nVRel, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), and tools::Rectangle::Top().
Referenced by DrawInnerFrame_Impl(), and Paint().
|
private |
Definition at line 440 of file swframeexample.cxx.
References aPagePrtArea, aParaPrtArea, aTextLine, CalcBoundRect_Impl(), FLY_AT_FLY, tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), i, m_aTransColor, m_aTxtCol, tools::Rectangle::Move(), nAnchor, and tools::Rectangle::SetSize().
Referenced by Paint().
|
private |
Definition at line 94 of file swframeexample.cxx.
References aAutoCharFrame, tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), aDrawObj, aFrameAtFrame, aFrmSize, aPage, aPagePrtArea, aPara, aParaPrtArea, aTextLine, tools::Rectangle::Bottom(), DEMOTEXT, FLY_AS_CHAR, FLY_AT_CHAR, FLY_AT_PAGE, OutputDevice::GetDefaultFont(), tools::Rectangle::GetHeight(), weld::CustomWidgetController::GetOutputSizePixel(), Application::GetSettings(), weld::CustomWidgetController::GetTextHeight(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), Size::Height(), tools::Rectangle::Left(), m_aBgCol, m_aTxtCol, tools::Rectangle::Move(), nAnchor, nHRel, tools::Rectangle::Right(), vcl::Font::SetColor(), vcl::Font::SetFillColor(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), Size::setHeight(), tools::Rectangle::SetPos(), tools::Rectangle::SetRight(), tools::Rectangle::SetSize(), vcl::Font::SetWeight(), Size::setWidth(), tools::Rectangle::Top(), WEIGHT_NORMAL, and Size::Width().
Referenced by Paint().
|
private |
Definition at line 68 of file swframeexample.cxx.
References COL_GRAY(), COL_LIGHTGRAY(), COL_LIGHTGREEN(), COL_LIGHTRED(), COL_TRANSPARENT(), svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), StyleSettings::GetHighContrastMode(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), m_aAlignColor, m_aBgCol, m_aBlankCol, m_aBlankFrameCol, m_aBorderCol, m_aFrameColor, m_aPrintAreaCol, m_aTransColor, m_aTxtCol, and svtools::ColorConfigValue::nColor.
Referenced by StyleUpdated(), and SwFrameExample().
|
overrideprivatevirtual |
Implements weld::CustomWidgetController.
Definition at line 468 of file swframeexample.cxx.
References aAutoCharFrame, tools::Rectangle::AdjustBottom(), aDrawObj, aFrameAtFrame, aFrmSize, aPage, aPagePrtArea, aPara, aParaPrtArea, aRelPos, aTextLine, tools::Rectangle::Bottom(), bTrans, CalcBoundRect_Impl(), tools::Rectangle::Contains(), DEMOTEXT, DrawInnerFrame_Impl(), OutputDevice::DrawText(), FLY_AS_CHAR, FLY_AT_CHAR, FLY_AT_FLY, FLYINFLY_BORDER, tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), Size::Height(), i, InitAllRects_Impl(), tools::Rectangle::Left(), m_aAlignColor, m_aBgCol, m_aBlankCol, m_aBlankFrameCol, m_aBorderCol, m_aFrameColor, m_aPrintAreaCol, m_aTransColor, m_aTxtCol, tools::Rectangle::Move(), nAnchor, nHAlign, nHRel, nVAlign, nVRel, nWrap, tools::Rectangle::Overlaps(), tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), OutputDevice::SetMapMode(), tools::Rectangle::SetRight(), tools::Rectangle::SetSize(), tools::Rectangle::SetTop(), tools::Rectangle::Top(), Size::Width(), Point::X(), and Point::Y().
|
inline |
Definition at line 85 of file swframeexample.hxx.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 61 of file swframeexample.cxx.
References weld::Widget::get_approximate_digit_width(), weld::Widget::get_text_height(), and weld::Widget::set_size_request().
|
inline |
Definition at line 78 of file swframeexample.hxx.
|
inline |
Definition at line 79 of file swframeexample.hxx.
void SwFrameExample::SetRelPos | ( | const Point & | rP | ) |
Definition at line 699 of file swframeexample.cxx.
References aRelPos, Point::setX(), Point::setY(), Point::X(), and Point::Y().
|
inline |
Definition at line 84 of file swframeexample.hxx.
|
inline |
Definition at line 81 of file swframeexample.hxx.
|
inline |
Definition at line 82 of file swframeexample.hxx.
|
inline |
Definition at line 76 of file swframeexample.hxx.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 88 of file swframeexample.cxx.
References InitColors_Impl().
|
private |
Definition at line 48 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 47 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 46 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 49 of file swframeexample.hxx.
Referenced by InitAllRects_Impl(), and Paint().
|
private |
Definition at line 41 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 42 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), DrawInnerFrame_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 44 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 45 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), DrawInnerFrame_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 61 of file swframeexample.hxx.
Referenced by Paint(), and SetRelPos().
|
private |
Definition at line 43 of file swframeexample.hxx.
Referenced by DrawInnerFrame_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 59 of file swframeexample.hxx.
Referenced by Paint().
|
private |
align anchor
Definition at line 34 of file swframeexample.hxx.
Referenced by InitColors_Impl(), and Paint().
|
private |
background
Definition at line 32 of file swframeexample.hxx.
Referenced by InitAllRects_Impl(), InitColors_Impl(), and Paint().
|
private |
area of symbol for blank
Definition at line 38 of file swframeexample.hxx.
Referenced by InitColors_Impl(), and Paint().
|
private |
frame of symbol for blank
Definition at line 39 of file swframeexample.hxx.
Referenced by InitColors_Impl(), and Paint().
|
private |
frame of doc
Definition at line 35 of file swframeexample.hxx.
Referenced by InitColors_Impl(), and Paint().
|
private |
graphic frame
Definition at line 33 of file swframeexample.hxx.
Referenced by InitColors_Impl(), and Paint().
|
private |
frame of printable area of doc
Definition at line 36 of file swframeexample.hxx.
Referenced by InitColors_Impl(), and Paint().
|
private |
transparency
Definition at line 31 of file swframeexample.hxx.
Referenced by DrawInnerFrame_Impl(), InitColors_Impl(), and Paint().
|
private |
symbolised text
Definition at line 37 of file swframeexample.hxx.
Referenced by DrawInnerFrame_Impl(), InitAllRects_Impl(), InitColors_Impl(), and Paint().
|
private |
Definition at line 58 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), DrawInnerFrame_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 51 of file swframeexample.hxx.
Referenced by Paint().
|
private |
Definition at line 52 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().
|
private |
Definition at line 54 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), and Paint().
|
private |
Definition at line 55 of file swframeexample.hxx.
Referenced by CalcBoundRect_Impl(), and Paint().
|
private |
Definition at line 57 of file swframeexample.hxx.
Referenced by Paint().