LibreOffice Module svx (master) 1
|
#include <fmgridcl.hxx>
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 OUString &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< FmGridHeaderData > | m_pImpl |
Definition at line 35 of file fmgridcl.hxx.
FmGridHeader::FmGridHeader | ( | BrowseBox * | pParent, |
WinBits | nWinBits = WB_STDHEADERBAR | WB_DRAG |
||
) |
Definition at line 104 of file fmgridcl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 111 of file fmgridcl.cxx.
|
overrideprotectedvirtual |
Definition at line 192 of file fmgridcl.cxx.
References COLUMN_DESCRIPTOR, DND_ACTION_NONE, FIELD_DESCRIPTOR, and AcceptDropEvent::mnAction.
|
overrideprotectedvirtual |
Reimplemented from BrowserHeader.
Definition at line 1039 of file fmgridcl.cxx.
References CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), CommandEvent::IsMouseEvent(), and triggerColumnContextMenu().
|
private |
|
overridevirtual |
Reimplemented from BrowserHeader.
Definition at line 116 of file fmgridcl.cxx.
References BrowserHeader::dispose(), and m_pImpl.
|
overrideprotectedvirtual |
Definition at line 206 of file fmgridcl.cxx.
References Any, COLUMN_DESCRIPTOR, DBG_ASSERT, DND_ACTION_LINK, DND_ACTION_NONE, Exception, FIELD_DESCRIPTOR, getConnection_withFeedback(), TransferableDataHelper::GetDataFlavorExVector(), LINK, m_pImpl, ExecuteDropEvent::maDropEvent, ExecuteDropEvent::maPosPixel, ExecuteDropEvent::mnAction, SRV_SDB_CONNECTION, and TOOLS_WARN_EXCEPTION.
|
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().
|
protected |
selects the column at the selection supplier.
nColumnId | The column id. |
Definition at line 128 of file fmgridcl.cxx.
References Any, GetModelColumnPos(), nPos, and xColumn.
Referenced by Select().
|
protectedvirtual |
After executing the context menu for a column this method is called.
Definition at line 818 of file fmgridcl.cxx.
References Any, SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateFmShowColsDialog(), SfxViewFrame::Current(), DBG_UNHANDLED_EXCEPTION, Exception, SfxDispatcher::ExecuteList(), 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_HIDDEN, FM_PROP_LABEL, FM_PROP_NAME, weld::Menu::get_active(), SfxViewFrame::GetBindings(), SfxBindings::GetDispatcher(), GetFrameWeld(), getLocale(), GetModelColumnPos(), Application::GetSettings(), SfxViewFrame::HasChildWindow(), i, nPos, VclPtr< class reference_type >::set(), TransferFormComponentProperties(), and xFactory.
Referenced by triggerColumnContextMenu().
|
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().
|
overrideprotectedvirtual |
Definition at line 150 of file fmgridcl.cxx.
References tools::Rectangle::BottomRight(), tools::Rectangle::Center(), Exception, FM_PROP_DESCRIPTION, FM_PROP_HELPTEXT, HelpEvent::GetMode(), GetModelColumnPos(), HelpEvent::GetMousePosPixel(), nPos, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), Help::ShowBalloon(), Help::ShowQuickHelp(), tools::Rectangle::TopLeft(), Point::X(), xColumn, and Point::Y().
|
overrideprotectedvirtual |
Definition at line 144 of file fmgridcl.cxx.
References notifyColumnSelect().
void FmGridHeader::triggerColumnContextMenu | ( | const ::Point & | _rPreferredPos | ) |
Definition at line 1005 of file fmgridcl.cxx.
References Application::CreateBuilder(), weld::GetPopupParent(), i, nCount, PostExecuteColumnContextMenu(), and PreExecuteColumnContextMenu().
Referenced by Command(), and FmGridControl::Command().
|
private |
Definition at line 83 of file fmgridcl.hxx.
Referenced by dispose(), and ExecuteDrop().