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) |
![]() | |
EditBrowserHeader (BrowseBox *pParent, WinBits nWinBits=WB_BUTTONSTYLE) | |
![]() | |
virtual | ~BrowserHeader () override |
BrowserHeader (BrowseBox *pParent, WinBits nWinBits=WB_STDHEADERBAR|WB_DRAG) | |
![]() | |
DropTargetHelper (vcl::Window *pWindow) | |
DropTargetHelper (const css::uno::Reference< css::datatransfer::dnd::XDropTarget > &rxDropTarget) | |
void | dispose () |
virtual | ~DropTargetHelper () |
bool | IsDropFormatSupported (SotClipboardFormatId nFormat) const |
const DataFlavorExVector & | GetDataFlavorExVector () 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... | |
![]() | |
virtual void | DoubleClick () override |
![]() | |
virtual void | EndDrag () override |
Protected Attributes | |
std::unique_ptr< FmGridHeaderData > | m_pImpl |
Private Member Functions | |
DECL_LINK (OnAsyncExecuteDrop, void *, void) | |
Definition at line 35 of file fmgridcl.hxx.
FmGridHeader::FmGridHeader | ( | BrowseBox * | pParent, |
WinBits | nWinBits = WB_STDHEADERBAR | WB_DRAG |
||
) |
Definition at line 105 of file fmgridcl.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 112 of file fmgridcl.cxx.
|
overrideprotectedvirtual |
Reimplemented from DropTargetHelper.
Definition at line 193 of file fmgridcl.cxx.
References COLUMN_DESCRIPTOR, DND_ACTION_NONE, FIELD_DESCRIPTOR, DropTargetHelper::GetDataFlavorExVector(), and AcceptDropEvent::mnAction.
|
overrideprotectedvirtual |
Reimplemented from BrowserHeader.
Definition at line 1040 of file fmgridcl.cxx.
References CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), CommandEvent::IsMouseEvent(), and triggerColumnContextMenu().
Reimplemented from BrowserHeader.
Definition at line 117 of file fmgridcl.cxx.
References DropTargetHelper::dispose(), BrowserHeader::dispose(), and m_pImpl.
|
overrideprotectedvirtual |
Reimplemented from DropTargetHelper.
Definition at line 207 of file fmgridcl.cxx.
References COLUMN_DESCRIPTOR, DBG_ASSERT, DND_ACTION_LINK, DND_ACTION_NONE, Exception, FIELD_DESCRIPTOR, getConnection_withFeedback(), TransferableDataHelper::GetDataFlavorExVector(), LINK, m_pImpl, ExecuteDropEvent::maDropEvent, makeAny(), 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 124 of file fmgridcl.cxx.
Referenced by notifyColumnSelect(), PostExecuteColumnContextMenu(), PreExecuteColumnContextMenu(), and RequestHelp().
|
protected |
selects the column at the selection supplier.
nColumnId | The column id. |
Definition at line 129 of file fmgridcl.cxx.
References GetModelColumnPos(), makeAny(), nPos, and xColumn.
Referenced by Select().
|
protectedvirtual |
After executing the context menu for a column this method is called.
Definition at line 819 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(), comphelper::getBOOL(), SfxBindings::GetDispatcher(), GetFrameWeld(), getLocale(), GetModelColumnPos(), Application::GetSettings(), SfxViewFrame::HasChildWindow(), i, makeAny(), nPos, VclPtr< 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 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().
Definition at line 151 of file fmgridcl.cxx.
References tools::Rectangle::BottomRight(), tools::Rectangle::Center(), Exception, FM_PROP_DESCRIPTION, FM_PROP_HELPTEXT, HelpEvent::GetMode(), GetModelColumnPos(), HelpEvent::GetMousePosPixel(), nPos, Point, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), Help::ShowBalloon(), Help::ShowQuickHelp(), tools::Rectangle::TopLeft(), and xColumn.
|
overrideprotectedvirtual |
Definition at line 145 of file fmgridcl.cxx.
References notifyColumnSelect().
Definition at line 1006 of file fmgridcl.cxx.
References Application::CreateBuilder(), weld::GetPopupParent(), i, nCount, PostExecuteColumnContextMenu(), and PreExecuteColumnContextMenu().
Referenced by Command(), and FmGridControl::Command().
|
protected |
Definition at line 40 of file fmgridcl.hxx.
Referenced by dispose(), and ExecuteDrop().