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

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

Definition at line 110 of file frmsel.cxx.

References Hide, meType, and NONE.

Member Function Documentation

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

Definition at line 170 of file frmsel.cxx.

References maClickArea.

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

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

Definition at line 160 of file frmsel.cxx.

References maFocusArea.

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

void svx::FrameBorder::ClearClickArea ( )
inline

Definition at line 74 of file frmselimpl.hxx.

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

void svx::FrameBorder::ClearFocusArea ( )
inline

Definition at line 70 of file frmselimpl.hxx.

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

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

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

Definition at line 175 of file frmsel.cxx.

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

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

Definition at line 122 of file frmsel.cxx.

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

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

Definition at line 180 of file frmsel.cxx.

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

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

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

Definition at line 63 of file frmselimpl.hxx.

References maCoreStyle.

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

Definition at line 41 of file frmselimpl.hxx.

Referenced by SetCoreStyle(), and SetState().

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

Definition at line 194 of file frmsel.cxx.

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

FrameBorderState svx::FrameBorder::GetState ( ) const
inline
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().

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

Definition at line 68 of file frmselimpl.hxx.

References maUIStyle.

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

bool svx::FrameBorder::IsEnabled ( ) const
inline
bool svx::FrameBorder::IsSelected ( ) const
inline
void svx::FrameBorder::MergeFocusToPolyPolygon ( tools::PolyPolygon rPPoly) const

Definition at line 165 of file frmsel.cxx.

References maFocusArea.

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

Definition at line 61 of file frmselimpl.hxx.

References mbSelected.

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

void svx::FrameBorder::SetCoreStyle ( const editeng::SvxBorderLine pStyle)
void svx::FrameBorder::SetKeyboardNeighbors ( FrameBorderType  eLeft,
FrameBorderType  eRight,
FrameBorderType  eTop,
FrameBorderType  eBottom 
)

Definition at line 185 of file frmsel.cxx.

References meKeyBottom, meKeyLeft, meKeyRight, and meKeyTop.

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

void svx::FrameBorder::SetState ( FrameBorderState  eState)
void svx::FrameBorder::SetUIColorPrim ( const Color rColor)
inline

Definition at line 66 of file frmselimpl.hxx.

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

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

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

Focus drawing areas.

Definition at line 93 of file frmselimpl.hxx.

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

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

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

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

bool svx::FrameBorder::mbEnabled
private

Mouse click areas.

Definition at line 94 of file frmselimpl.hxx.

Referenced by Enable(), and IsEnabled().

bool svx::FrameBorder::mbSelected
private

true = Border enabled in control.

Definition at line 95 of file frmselimpl.hxx.

Referenced by IsSelected(), and Select().

FrameBorderType svx::FrameBorder::meKeyBottom
private

Upper neighbor for keyboard control.

Definition at line 91 of file frmselimpl.hxx.

Referenced by GetKeyboardNeighbor(), and SetKeyboardNeighbors().

FrameBorderType svx::FrameBorder::meKeyLeft
private

Internal style to draw lines.

Definition at line 88 of file frmselimpl.hxx.

Referenced by GetKeyboardNeighbor(), and SetKeyboardNeighbors().

FrameBorderType svx::FrameBorder::meKeyRight
private

Left neighbor for keyboard control.

Definition at line 89 of file frmselimpl.hxx.

Referenced by GetKeyboardNeighbor(), and SetKeyboardNeighbors().

FrameBorderType svx::FrameBorder::meKeyTop
private

Right neighbor for keyboard control.

Definition at line 90 of file frmselimpl.hxx.

Referenced by GetKeyboardNeighbor(), and SetKeyboardNeighbors().

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

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: