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

Popup menu to select the selection type. More...

Collaboration diagram for SelectionTypePopup:
[legend]

Public Member Functions

 SelectionTypePopup (sal_uInt16 nCurrent)
 
OUString GetItemTextForState (sal_uInt16 nState)
 
sal_uInt16 GetState () const
 
sal_uInt16 Execute (vcl::Window *pWindow, const Point &rPopupPos)
 

Private Member Functions

sal_uInt16 state_to_id (sal_uInt16 nState) const
 

Static Private Member Functions

static sal_uInt16 id_to_state (const OString &rIdent)
 

Private Attributes

VclBuilder m_aBuilder
 
VclPtr< PopupMenum_xMenu
 

Detailed Description

Popup menu to select the selection type.

Definition at line 38 of file selctrl.cxx.

Constructor & Destructor Documentation

SelectionTypePopup::SelectionTypePopup ( sal_uInt16  nCurrent)
explicit

Definition at line 75 of file selctrl.cxx.

References Menu::CheckItem(), m_xMenu, and state_to_id().

Member Function Documentation

sal_uInt16 SelectionTypePopup::Execute ( vcl::Window pWindow,
const Point rPopupPos 
)
inline

Definition at line 48 of file selctrl.cxx.

References PopupMenu::Execute().

Referenced by SvxSelectionModeControl::MouseButtonDown().

OUString SelectionTypePopup::GetItemTextForState ( sal_uInt16  nState)
inline

Definition at line 46 of file selctrl.cxx.

References Menu::GetItemText(), and state_to_id().

Referenced by SvxSelectionModeControl::StateChanged().

sal_uInt16 SelectionTypePopup::GetState ( ) const
inline

Definition at line 47 of file selctrl.cxx.

References Menu::GetCurItemIdent(), and id_to_state().

Referenced by SvxSelectionModeControl::MouseButtonDown().

sal_uInt16 SelectionTypePopup::id_to_state ( const OString &  rIdent)
staticprivate

Definition at line 51 of file selctrl.cxx.

Referenced by GetState().

sal_uInt16 SelectionTypePopup::state_to_id ( sal_uInt16  nState) const
private

Definition at line 63 of file selctrl.cxx.

References Menu::GetItemId(), and m_xMenu.

Referenced by GetItemTextForState(), and SelectionTypePopup().

Member Data Documentation

VclBuilder SelectionTypePopup::m_aBuilder
private

Definition at line 40 of file selctrl.cxx.

VclPtr<PopupMenu> SelectionTypePopup::m_xMenu
private

Definition at line 41 of file selctrl.cxx.

Referenced by SelectionTypePopup(), and state_to_id().


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