LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwFrameExample Class Referencefinal

#include <swframeexample.hxx>

Inheritance diagram for SwFrameExample:
[legend]
Collaboration diagram for SwFrameExample:
[legend]

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::DrawingAreaGetDrawingArea () 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
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (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 ()
 

Detailed Description

Definition at line 29 of file swframeexample.hxx.

Constructor & Destructor Documentation

◆ SwFrameExample()

SwFrameExample::SwFrameExample ( )

Definition at line 48 of file swframeexample.cxx.

References CENTER, FLY_AT_PAGE, FRAME, InitColors_Impl(), and TOP.

Member Function Documentation

◆ CalcBoundRect_Impl()

void SwFrameExample::CalcBoundRect_Impl ( const vcl::RenderContext rRenderContext,
tools::Rectangle rRect 
)
private

◆ DrawInnerFrame_Impl()

tools::Rectangle SwFrameExample::DrawInnerFrame_Impl ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect,
const Color rFillColor,
const Color rBorderColor 
)
private

◆ InitAllRects_Impl()

void SwFrameExample::InitAllRects_Impl ( vcl::RenderContext rRenderContext)
private

◆ InitColors_Impl()

void SwFrameExample::InitColors_Impl ( )
private

◆ Paint()

void SwFrameExample::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle  
)
overrideprivatevirtual

◆ SetAnchor()

void SwFrameExample::SetAnchor ( RndStdIds  nA)
inline

Definition at line 85 of file swframeexample.hxx.

◆ SetDrawingArea()

void SwFrameExample::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

◆ SetHAlign()

void SwFrameExample::SetHAlign ( short  nH)
inline

Definition at line 78 of file swframeexample.hxx.

◆ SetHoriRel()

void SwFrameExample::SetHoriRel ( short  nR)
inline

Definition at line 79 of file swframeexample.hxx.

◆ SetRelPos()

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().

◆ SetTransparent()

void SwFrameExample::SetTransparent ( bool  bT)
inline

Definition at line 84 of file swframeexample.hxx.

◆ SetVAlign()

void SwFrameExample::SetVAlign ( short  nV)
inline

Definition at line 81 of file swframeexample.hxx.

◆ SetVertRel()

void SwFrameExample::SetVertRel ( short  nR)
inline

Definition at line 82 of file swframeexample.hxx.

◆ SetWrap()

void SwFrameExample::SetWrap ( css::text::WrapTextMode  nW)
inline

Definition at line 76 of file swframeexample.hxx.

◆ StyleUpdated()

void SwFrameExample::StyleUpdated ( )
overrideprivatevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 88 of file swframeexample.cxx.

References InitColors_Impl().

Member Data Documentation

◆ aAutoCharFrame

tools::Rectangle SwFrameExample::aAutoCharFrame
private

Definition at line 48 of file swframeexample.hxx.

Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().

◆ aDrawObj

tools::Rectangle SwFrameExample::aDrawObj
private

Definition at line 47 of file swframeexample.hxx.

Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().

◆ aFrameAtFrame

tools::Rectangle SwFrameExample::aFrameAtFrame
private

Definition at line 46 of file swframeexample.hxx.

Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().

◆ aFrmSize

Size SwFrameExample::aFrmSize
private

Definition at line 49 of file swframeexample.hxx.

Referenced by InitAllRects_Impl(), and Paint().

◆ aPage

tools::Rectangle SwFrameExample::aPage
private

Definition at line 41 of file swframeexample.hxx.

Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().

◆ aPagePrtArea

tools::Rectangle SwFrameExample::aPagePrtArea
private

◆ aPara

tools::Rectangle SwFrameExample::aPara
private

Definition at line 44 of file swframeexample.hxx.

Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().

◆ aParaPrtArea

tools::Rectangle SwFrameExample::aParaPrtArea
private

◆ aRelPos

Point SwFrameExample::aRelPos
private

Definition at line 61 of file swframeexample.hxx.

Referenced by Paint(), and SetRelPos().

◆ aTextLine

tools::Rectangle SwFrameExample::aTextLine
private

Definition at line 43 of file swframeexample.hxx.

Referenced by DrawInnerFrame_Impl(), InitAllRects_Impl(), and Paint().

◆ bTrans

bool SwFrameExample::bTrans
private

Definition at line 59 of file swframeexample.hxx.

Referenced by Paint().

◆ m_aAlignColor

Color SwFrameExample::m_aAlignColor
private

align anchor

Definition at line 34 of file swframeexample.hxx.

Referenced by InitColors_Impl(), and Paint().

◆ m_aBgCol

Color SwFrameExample::m_aBgCol
private

background

Definition at line 32 of file swframeexample.hxx.

Referenced by InitAllRects_Impl(), InitColors_Impl(), and Paint().

◆ m_aBlankCol

Color SwFrameExample::m_aBlankCol
private

area of symbol for blank

Definition at line 38 of file swframeexample.hxx.

Referenced by InitColors_Impl(), and Paint().

◆ m_aBlankFrameCol

Color SwFrameExample::m_aBlankFrameCol
private

frame of symbol for blank

Definition at line 39 of file swframeexample.hxx.

Referenced by InitColors_Impl(), and Paint().

◆ m_aBorderCol

Color SwFrameExample::m_aBorderCol
private

frame of doc

Definition at line 35 of file swframeexample.hxx.

Referenced by InitColors_Impl(), and Paint().

◆ m_aFrameColor

Color SwFrameExample::m_aFrameColor
private

graphic frame

Definition at line 33 of file swframeexample.hxx.

Referenced by InitColors_Impl(), and Paint().

◆ m_aPrintAreaCol

Color SwFrameExample::m_aPrintAreaCol
private

frame of printable area of doc

Definition at line 36 of file swframeexample.hxx.

Referenced by InitColors_Impl(), and Paint().

◆ m_aTransColor

Color SwFrameExample::m_aTransColor
private

transparency

Definition at line 31 of file swframeexample.hxx.

Referenced by DrawInnerFrame_Impl(), InitColors_Impl(), and Paint().

◆ m_aTxtCol

Color SwFrameExample::m_aTxtCol
private

symbolised text

Definition at line 37 of file swframeexample.hxx.

Referenced by DrawInnerFrame_Impl(), InitAllRects_Impl(), InitColors_Impl(), and Paint().

◆ nAnchor

RndStdIds SwFrameExample::nAnchor
private

◆ nHAlign

short SwFrameExample::nHAlign
private

Definition at line 51 of file swframeexample.hxx.

Referenced by Paint().

◆ nHRel

short SwFrameExample::nHRel
private

Definition at line 52 of file swframeexample.hxx.

Referenced by CalcBoundRect_Impl(), InitAllRects_Impl(), and Paint().

◆ nVAlign

short SwFrameExample::nVAlign
private

Definition at line 54 of file swframeexample.hxx.

Referenced by CalcBoundRect_Impl(), and Paint().

◆ nVRel

short SwFrameExample::nVRel
private

Definition at line 55 of file swframeexample.hxx.

Referenced by CalcBoundRect_Impl(), and Paint().

◆ nWrap

css::text::WrapTextMode SwFrameExample::nWrap
private

Definition at line 57 of file swframeexample.hxx.

Referenced by Paint().


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