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

#include <fmgridcl.hxx>

Inheritance diagram for FmGridHeader:
Collaboration diagram for FmGridHeader:

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
 BrowserHeader (BrowseBox *pParent, WinBits nWinBits=WB_STDHEADERBAR|WB_DRAG)
- Public Member Functions inherited from DropTargetHelper
 DropTargetHelper (vcl::Window *pWindow)
 DropTargetHelper (const css::uno::Reference< css::datatransfer::dnd::XDropTarget > &rxDropTarget)
void dispose ()
virtual ~DropTargetHelper ()
bool IsDropFormatSupported (SotClipboardFormatId nFormat) const
const DataFlavorExVectorGetDataFlavorExVector () const

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 EndDrag () override

Protected Attributes

std::unique_ptr< FmGridHeaderDatam_pImpl

Private Member Functions

 DECL_LINK (OnAsyncExecuteDrop, void *, void)

Detailed Description

Definition at line 35 of file fmgridcl.hxx.

Constructor & Destructor Documentation

FmGridHeader::FmGridHeader ( BrowseBox pParent,

Definition at line 105 of file fmgridcl.cxx.

References m_pImpl.

FmGridHeader::~FmGridHeader ( )

Definition at line 112 of file fmgridcl.cxx.

Member Function Documentation

sal_Int8 FmGridHeader::AcceptDrop ( const AcceptDropEvent rEvt)
void FmGridHeader::Command ( const CommandEvent rCEvt)
FmGridHeader::DECL_LINK ( OnAsyncExecuteDrop  ,
void ,
void FmGridHeader::dispose ( void  )

Reimplemented from BrowserHeader.

Definition at line 117 of file fmgridcl.cxx.

References DropTargetHelper::dispose(), BrowserHeader::dispose(), and m_pImpl.

sal_Int8 FmGridHeader::ExecuteDrop ( const ExecuteDropEvent rEvt)
sal_uInt16 FmGridHeader::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

Definition at line 124 of file fmgridcl.cxx.

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

void FmGridHeader::notifyColumnSelect ( sal_uInt16  nColumnId)

selects the column at the selection supplier.

nColumnIdThe column id.

Definition at line 129 of file fmgridcl.cxx.

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

Referenced by Select().

void FmGridHeader::PostExecuteColumnContextMenu ( sal_uInt16  nColId,
const weld::Menu rMenu,
const OString &  rExecutionResult 
void FmGridHeader::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.

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 656 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(), comphelper::getBOOL(), getColumnTypeByModelName(), GetModelColumnPos(), comphelper::getString(), GetValue, i, weld::Menu::insert(), InsertMenuItem(), makeAny(), 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().

void FmGridHeader::RequestHelp ( const HelpEvent rHEvt)
void FmGridHeader::Select ( )

Definition at line 145 of file fmgridcl.cxx.

References notifyColumnSelect().

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

Member Data Documentation

std::unique_ptr<FmGridHeaderData> FmGridHeader::m_pImpl

Definition at line 40 of file fmgridcl.hxx.

Referenced by dispose(), and ExecuteDrop().

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