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

#include <fmgridcl.hxx>

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

Public Member Functions

 FmGridHeader (BrowseBox *pParent, WinBits nWinBits=WB_STDHEADERBAR|WB_DRAG)
 
virtual ~FmGridHeader () override
 
virtual void dispose () override
 
void triggerColumnContextMenu (const ::Point &_rPreferredPos)
 
- Public Member Functions inherited from svt::EditBrowserHeader
 EditBrowserHeader (BrowseBox *pParent, WinBits nWinBits=WB_BUTTONSTYLE)
 
- Public Member Functions inherited from BrowserHeader
virtual ~BrowserHeader () override
 
virtual void dispose () override
 
 BrowserHeader (BrowseBox *pParent, WinBits nWinBits=WB_STDHEADERBAR|WB_DRAG)
 

Protected Member Functions

virtual void Command (const CommandEvent &rCEvt) override
 
virtual void RequestHelp (const HelpEvent &rHEvt) override
 
virtual void Select () override
 
sal_uInt16 GetModelColumnPos (sal_uInt16 nId) const
 the value returned by GetItemPos is meaningless for the grid model if there are hidden columns, so use GetModelColumnPos instead More...
 
virtual void PreExecuteColumnContextMenu (sal_uInt16 nColId, weld::Menu &rMenu, weld::Menu &rInsertMenu, weld::Menu &rChangeMenu, weld::Menu &rShowMenu)
 This is called before executing a context menu for a column. More...
 
virtual void PostExecuteColumnContextMenu (sal_uInt16 nColId, const weld::Menu &rMenu, const OString &rExecutionResult)
 After executing the context menu for a column this method is called. More...
 
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt) override
 
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt) override
 
void notifyColumnSelect (sal_uInt16 nColumnId)
 selects the column at the selection supplier. More...
 
- Protected Member Functions inherited from svt::EditBrowserHeader
virtual void DoubleClick () override
 
- Protected Member Functions inherited from BrowserHeader
virtual void Command (const CommandEvent &rCEvt) override
 
virtual void EndDrag () override
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (OnAsyncExecuteDrop, void *, void)
 

Private Attributes

std::unique_ptr< FmGridHeaderDatam_pImpl
 

Detailed Description

Definition at line 35 of file fmgridcl.hxx.

Constructor & Destructor Documentation

◆ FmGridHeader()

FmGridHeader::FmGridHeader ( BrowseBox pParent,
WinBits  nWinBits = WB_STDHEADERBAR | WB_DRAG 
)

Definition at line 104 of file fmgridcl.cxx.

References m_pImpl.

◆ ~FmGridHeader()

FmGridHeader::~FmGridHeader ( )
overridevirtual

Definition at line 111 of file fmgridcl.cxx.

Member Function Documentation

◆ AcceptDrop()

sal_Int8 FmGridHeader::AcceptDrop ( const AcceptDropEvent rEvt)
overrideprotectedvirtual

◆ Command()

void FmGridHeader::Command ( const CommandEvent rCEvt)
overrideprotectedvirtual

◆ DECL_DLLPRIVATE_LINK()

FmGridHeader::DECL_DLLPRIVATE_LINK ( OnAsyncExecuteDrop  ,
void *  ,
void   
)
private

◆ dispose()

void FmGridHeader::dispose ( void  )
overridevirtual

Reimplemented from BrowserHeader.

Definition at line 116 of file fmgridcl.cxx.

References BrowserHeader::dispose(), and m_pImpl.

◆ ExecuteDrop()

sal_Int8 FmGridHeader::ExecuteDrop ( const ExecuteDropEvent rEvt)
overrideprotectedvirtual

◆ GetModelColumnPos()

sal_uInt16 FmGridHeader::GetModelColumnPos ( sal_uInt16  nId) const
protected

the value returned by GetItemPos is meaningless for the grid model if there are hidden columns, so use GetModelColumnPos instead

Definition at line 123 of file fmgridcl.cxx.

References GetModelColumnPos(), and nId.

Referenced by GetModelColumnPos(), notifyColumnSelect(), PostExecuteColumnContextMenu(), PreExecuteColumnContextMenu(), and RequestHelp().

◆ notifyColumnSelect()

void FmGridHeader::notifyColumnSelect ( sal_uInt16  nColumnId)
protected

selects the column at the selection supplier.

Parameters
nColumnIdThe column id.

Definition at line 128 of file fmgridcl.cxx.

References Any, GetModelColumnPos(), nPos, and xColumn.

Referenced by Select().

◆ PostExecuteColumnContextMenu()

void FmGridHeader::PostExecuteColumnContextMenu ( sal_uInt16  nColId,
const weld::Menu rMenu,
const OString &  rExecutionResult 
)
protectedvirtual

◆ PreExecuteColumnContextMenu()

void FmGridHeader::PreExecuteColumnContextMenu ( sal_uInt16  nColId,
weld::Menu rMenu,
weld::Menu rInsertMenu,
weld::Menu rChangeMenu,
weld::Menu rShowMenu 
)
protectedvirtual

This is called before executing a context menu for a column.

rMenu contains the initial entries handled by this base class' method (which always has to be called). Derived classes may alter the menu in any way and handle any additional entries in PostExecuteColumnContextMenu. All disabled entries will be removed before executing the menu, so be careful with separators near entries you probably wish to disable ...

Definition at line 655 of file fmgridcl.cxx.

References aName, Any, SfxViewFrame::Current(), DBG_ASSERT, FM_COL_CHECKBOX, FM_COL_COMBOBOX, FM_COL_CURRENCYFIELD, FM_COL_DATEFIELD, FM_COL_FORMATTEDFIELD, FM_COL_LISTBOX, FM_COL_NUMERICFIELD, FM_COL_PATTERNFIELD, FM_COL_TEXTFIELD, FM_COL_TIMEFIELD, FM_PROP_FORMATSSUPPLIER, FM_PROP_HIDDEN, FM_PROP_LABEL, SfxViewFrame::GetBindings(), getColumnTypeByModelName(), GetModelColumnPos(), i, weld::Menu::insert(), InsertMenuItem(), nPos, SfxBindings::QueryState(), weld::Menu::set_active(), weld::Menu::set_sensitive(), weld::Menu::set_visible(), SvxResId(), TRISTATE_INDET, TYPE_CHECKBOX, TYPE_COMBOBOX, TYPE_CURRENCYFIELD, TYPE_DATEFIELD, TYPE_FORMATTEDFIELD, TYPE_LISTBOX, TYPE_NUMERICFIELD, TYPE_PATTERNFIELD, TYPE_TEXTFIELD, TYPE_TIMEFIELD, and xColumn.

Referenced by triggerColumnContextMenu().

◆ RequestHelp()

void FmGridHeader::RequestHelp ( const HelpEvent rHEvt)
overrideprotectedvirtual

◆ Select()

void FmGridHeader::Select ( )
overrideprotectedvirtual

Definition at line 144 of file fmgridcl.cxx.

References notifyColumnSelect().

◆ triggerColumnContextMenu()

void FmGridHeader::triggerColumnContextMenu ( const ::Point _rPreferredPos)

Member Data Documentation

◆ m_pImpl

std::unique_ptr<FmGridHeaderData> FmGridHeader::m_pImpl
private

Definition at line 83 of file fmgridcl.hxx.

Referenced by dispose(), and ExecuteDrop().


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