LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
svx::FrameBorder Class Reference

#include <frmselimpl.hxx>

Collaboration diagram for svx::FrameBorder:
[legend]

Public Member Functions

 FrameBorder (FrameBorderType eType)
 
FrameBorderType GetType () const
 
bool IsEnabled () const
 
void Enable (FrameSelFlags nFlags)
 
FrameBorderState GetState () const
 
void SetState (FrameBorderState eState)
 
bool IsSelected () const
 
void Select (bool bSelect)
 
const editeng::SvxBorderLineGetCoreStyle () const
 
void SetCoreStyle (const editeng::SvxBorderLine *pStyle)
 
void SetUIColorPrim (const Color &rColor)
 
void SetUIColorSecn (const Color &rColor)
 
const frame::StyleGetUIStyle () const
 
void ClearFocusArea ()
 
void AddFocusPolygon (const tools::Polygon &rFocus)
 
void MergeFocusToPolyPolygon (tools::PolyPolygon &rPPoly) const
 
void ClearClickArea ()
 
void AddClickRect (const tools::Rectangle &rRect)
 
bool ContainsClickPoint (const Point &rPos) const
 
tools::Rectangle GetClickBoundRect () const
 
void SetKeyboardNeighbors (FrameBorderType eLeft, FrameBorderType eRight, FrameBorderType eTop, FrameBorderType eBottom)
 
FrameBorderType GetKeyboardNeighbor (sal_uInt16 nKeyCode) const
 

Static Public Member Functions

static double GetDefaultPatternScale ()
 

Private Attributes

const FrameBorderType meType
 
FrameBorderState meState
 Frame border type (position in control). More...
 
editeng::SvxBorderLine maCoreStyle
 Frame border state (on/off/don't care). More...
 
frame::Style maUIStyle
 Core style from application. More...
 
FrameBorderType meKeyLeft
 Internal style to draw lines. More...
 
FrameBorderType meKeyRight
 Left neighbor for keyboard control. More...
 
FrameBorderType meKeyTop
 Right neighbor for keyboard control. More...
 
FrameBorderType meKeyBottom
 Upper neighbor for keyboard control. More...
 
tools::PolyPolygon maFocusArea
 Lower neighbor for keyboard control. More...
 
tools::PolyPolygon maClickArea
 Focus drawing areas. More...
 
bool mbEnabled: 1
 Mouse click areas. More...
 
bool mbSelected: 1
 true = Border enabled in control. More...
 

Detailed Description

Definition at line 37 of file frmselimpl.hxx.

Constructor & Destructor Documentation

◆ FrameBorder()

svx::FrameBorder::FrameBorder ( FrameBorderType  eType)
explicit

Definition at line 117 of file frmsel.cxx.

References Hide, meType, and NONE.

Member Function Documentation

◆ AddClickRect()

void svx::FrameBorder::AddClickRect ( const tools::Rectangle rRect)

Definition at line 177 of file frmsel.cxx.

References maClickArea.

Referenced by svx::FrameSelectorImpl::InitBorderGeometry().

◆ AddFocusPolygon()

void svx::FrameBorder::AddFocusPolygon ( const tools::Polygon rFocus)

Definition at line 167 of file frmsel.cxx.

References maFocusArea.

Referenced by svx::FrameSelectorImpl::InitBorderGeometry().

◆ ClearClickArea()

void svx::FrameBorder::ClearClickArea ( )
inline

Definition at line 74 of file frmselimpl.hxx.

References tools::PolyPolygon::Clear(), and maClickArea.

◆ ClearFocusArea()

void svx::FrameBorder::ClearFocusArea ( )
inline

Definition at line 70 of file frmselimpl.hxx.

References tools::PolyPolygon::Clear(), and maFocusArea.

Referenced by svx::FrameSelectorImpl::InitBorderGeometry().

◆ ContainsClickPoint()

bool svx::FrameBorder::ContainsClickPoint ( const Point rPos) const

Definition at line 182 of file frmsel.cxx.

References vcl::Region::Contains(), and maClickArea.

◆ Enable()

void svx::FrameBorder::Enable ( FrameSelFlags  nFlags)

Definition at line 129 of file frmsel.cxx.

References svx::Hide, mbEnabled, meType, and SetState().

◆ GetClickBoundRect()

tools::Rectangle svx::FrameBorder::GetClickBoundRect ( ) const

Definition at line 187 of file frmsel.cxx.

References tools::PolyPolygon::GetBoundRect(), and maClickArea.

Referenced by svx::FrameSelector::GetClickBoundRect().

◆ GetCoreStyle()

const editeng::SvxBorderLine & svx::FrameBorder::GetCoreStyle ( ) const
inline

Definition at line 63 of file frmselimpl.hxx.

References maCoreStyle.

◆ GetDefaultPatternScale()

static double svx::FrameBorder::GetDefaultPatternScale ( )
inlinestatic

Definition at line 41 of file frmselimpl.hxx.

Referenced by SetCoreStyle(), and SetState().

◆ GetKeyboardNeighbor()

FrameBorderType svx::FrameBorder::GetKeyboardNeighbor ( sal_uInt16  nKeyCode) const

Definition at line 201 of file frmsel.cxx.

References KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, meKeyBottom, meKeyLeft, meKeyRight, meKeyTop, svx::NONE, and SAL_WARN.

◆ GetState()

FrameBorderState svx::FrameBorder::GetState ( ) const
inline

◆ GetType()

FrameBorderType svx::FrameBorder::GetType ( ) const
inline

Definition at line 43 of file frmselimpl.hxx.

References meType.

Referenced by svx::FrameSelectorImpl::DrawArrows(), and svx::FrameSelectorImpl::SetBorderState().

◆ GetUIStyle()

const frame::Style & svx::FrameBorder::GetUIStyle ( ) const
inline

Definition at line 68 of file frmselimpl.hxx.

References maUIStyle.

Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().

◆ IsEnabled()

bool svx::FrameBorder::IsEnabled ( ) const
inline

◆ IsSelected()

bool svx::FrameBorder::IsSelected ( ) const
inline

◆ MergeFocusToPolyPolygon()

void svx::FrameBorder::MergeFocusToPolyPolygon ( tools::PolyPolygon rPPoly) const

Definition at line 172 of file frmsel.cxx.

References maFocusArea.

◆ Select()

void svx::FrameBorder::Select ( bool  bSelect)
inline

Definition at line 61 of file frmselimpl.hxx.

References mbSelected.

Referenced by svx::FrameSelectorImpl::SelectBorder().

◆ SetCoreStyle()

void svx::FrameBorder::SetCoreStyle ( const editeng::SvxBorderLine pStyle)

◆ SetKeyboardNeighbors()

void svx::FrameBorder::SetKeyboardNeighbors ( FrameBorderType  eLeft,
FrameBorderType  eRight,
FrameBorderType  eTop,
FrameBorderType  eBottom 
)

Definition at line 192 of file frmsel.cxx.

References meKeyBottom, meKeyLeft, meKeyRight, and meKeyTop.

Referenced by svx::FrameSelectorImpl::FrameSelectorImpl().

◆ SetState()

void svx::FrameBorder::SetState ( FrameBorderState  eState)

◆ SetUIColorPrim()

void svx::FrameBorder::SetUIColorPrim ( const Color rColor)
inline

Definition at line 66 of file frmselimpl.hxx.

References maUIStyle, and svx::frame::Style::SetColorPrim().

◆ SetUIColorSecn()

void svx::FrameBorder::SetUIColorSecn ( const Color rColor)
inline

Definition at line 67 of file frmselimpl.hxx.

References maUIStyle, and svx::frame::Style::SetColorSecn().

Member Data Documentation

◆ maClickArea

tools::PolyPolygon svx::FrameBorder::maClickArea
private

Focus drawing areas.

Definition at line 93 of file frmselimpl.hxx.

Referenced by AddClickRect(), ClearClickArea(), ContainsClickPoint(), and GetClickBoundRect().

◆ maCoreStyle

editeng::SvxBorderLine svx::FrameBorder::maCoreStyle
private

Frame border state (on/off/don't care).

Definition at line 86 of file frmselimpl.hxx.

Referenced by GetCoreStyle(), SetCoreStyle(), and SetState().

◆ maFocusArea

tools::PolyPolygon svx::FrameBorder::maFocusArea
private

Lower neighbor for keyboard control.

Definition at line 92 of file frmselimpl.hxx.

Referenced by AddFocusPolygon(), ClearFocusArea(), and MergeFocusToPolyPolygon().

◆ maUIStyle

frame::Style svx::FrameBorder::maUIStyle
private

Core style from application.

Definition at line 87 of file frmselimpl.hxx.

Referenced by GetUIStyle(), SetCoreStyle(), SetState(), SetUIColorPrim(), and SetUIColorSecn().

◆ mbEnabled

bool svx::FrameBorder::mbEnabled
private

Mouse click areas.

Definition at line 94 of file frmselimpl.hxx.

Referenced by Enable(), and IsEnabled().

◆ mbSelected

bool svx::FrameBorder::mbSelected
private

true = Border enabled in control.

Definition at line 95 of file frmselimpl.hxx.

Referenced by IsSelected(), and Select().

◆ meKeyBottom

FrameBorderType svx::FrameBorder::meKeyBottom
private

Upper neighbor for keyboard control.

Definition at line 91 of file frmselimpl.hxx.

Referenced by GetKeyboardNeighbor(), and SetKeyboardNeighbors().

◆ meKeyLeft

FrameBorderType svx::FrameBorder::meKeyLeft
private

Internal style to draw lines.

Definition at line 88 of file frmselimpl.hxx.

Referenced by GetKeyboardNeighbor(), and SetKeyboardNeighbors().

◆ meKeyRight

FrameBorderType svx::FrameBorder::meKeyRight
private

Left neighbor for keyboard control.

Definition at line 89 of file frmselimpl.hxx.

Referenced by GetKeyboardNeighbor(), and SetKeyboardNeighbors().

◆ meKeyTop

FrameBorderType svx::FrameBorder::meKeyTop
private

Right neighbor for keyboard control.

Definition at line 90 of file frmselimpl.hxx.

Referenced by GetKeyboardNeighbor(), and SetKeyboardNeighbors().

◆ meState

FrameBorderState svx::FrameBorder::meState
private

Frame border type (position in control).

Definition at line 85 of file frmselimpl.hxx.

Referenced by GetState(), SetCoreStyle(), and SetState().

◆ meType

const FrameBorderType svx::FrameBorder::meType
private

Definition at line 84 of file frmselimpl.hxx.

Referenced by Enable(), and GetType().


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