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:
[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
 
 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 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, PopupMenu &rMenu)
 This is called before executing a context menu for a column. More...
 
virtual void PostExecuteColumnContextMenu (sal_uInt16 nColId, const PopupMenu &rMenu, sal_uInt16 nExecutionResult)
 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 34 of file fmgridcl.hxx.

Constructor & Destructor Documentation

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

Definition at line 113 of file fmgridcl.cxx.

FmGridHeader::~FmGridHeader ( )
overridevirtual

Definition at line 120 of file fmgridcl.cxx.

Member Function Documentation

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

Reimplemented from BrowserHeader.

Definition at line 125 of file fmgridcl.cxx.

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

sal_Int8 FmGridHeader::ExecuteDrop ( const ExecuteDropEvent rEvt)
overrideprotectedvirtual
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 132 of file fmgridcl.cxx.

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

void FmGridHeader::notifyColumnSelect ( sal_uInt16  nColumnId)
protected

selects the column at the selection supplier.

Parameters
nColumnIdThe column id.

Definition at line 137 of file fmgridcl.cxx.

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

Referenced by Select().

void FmGridHeader::PostExecuteColumnContextMenu ( sal_uInt16  nColId,
const PopupMenu rMenu,
sal_uInt16  nExecutionResult 
)
protectedvirtual
void FmGridHeader::PreExecuteColumnContextMenu ( sal_uInt16  nColId,
PopupMenu rMenu 
)
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 641 of file fmgridcl.cxx.

References aName, Any, Menu::CheckItem(), SfxViewFrame::Current(), DBG_ASSERT, Menu::EnableItem(), 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(), Menu::GetItemId(), GetModelColumnPos(), Menu::GetPopupMenu(), comphelper::getString(), GetValue, i, Menu::InsertItem(), makeAny(), nPos, SfxBindings::QueryState(), SetMenuItem(), TYPE_CHECKBOX, TYPE_COMBOBOX, TYPE_CURRENCYFIELD, TYPE_DATEFIELD, TYPE_FORMATTEDFIELD, TYPE_LISTBOX, TYPE_NUMERICFIELD, TYPE_PATTERNFIELD, TYPE_TEXTFIELD, and TYPE_TIMEFIELD.

Referenced by triggerColumnContextMenu().

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

Definition at line 153 of file fmgridcl.cxx.

References notifyColumnSelect().

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

Member Data Documentation

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

Definition at line 39 of file fmgridcl.hxx.

Referenced by dispose(), and ExecuteDrop().


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