LibreOffice Module svx (master)
1
|
#include <swframeexample.hxx>
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 bool | IsUpdateMode () |
Definition at line 29 of file swframeexample.hxx.
SwFrameExample::SwFrameExample | ( | ) |
Definition at line 48 of file swframeexample.cxx.
References CENTER, false, FLY_AT_PAGE, FRAME, InitColors_Impl(), Point, 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, 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, Point, 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(), Point, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), OutputDevice::SetMapMode(), tools::Rectangle::SetRight(), tools::Rectangle::SetSize(), tools::Rectangle::SetTop(), tools::Rectangle::Top(), and Size::Width().
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.
Definition at line 699 of file swframeexample.cxx.
References aRelPos.
|
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().