LibreOffice Module dbaccess (master) 1
|
#include <AppIconControl.hxx>
Public Member Functions | |
OApplicationIconControl (std::unique_ptr< weld::ScrolledWindow > xScroll) | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual void | Resize () override |
virtual tools::Rectangle | GetFocusRect () override |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
bool | DoKeyShortCut (const KeyEvent &rKEvt) |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual | ~OApplicationIconControl () override |
ElementType | GetSelectedItem () const |
void | setControlActionListener (IControlActionListener *_pListener) |
void | Fill () |
void | createIconAutoMnemonics (MnemonicGenerator &rMnemonics) |
sal_Int8 | AcceptDrop (const AcceptDropEvent &rEvt) |
sal_Int8 | ExecuteDrop (const ExecuteDropEvent &rEvt) |
Public Member Functions inherited from ThumbnailView | |
ThumbnailView (std::unique_ptr< weld::ScrolledWindow > xWindow, std::unique_ptr< weld::Menu > xMenu) | |
virtual | ~ThumbnailView () override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual void | Reload () |
void | AppendItem (std::unique_ptr< ThumbnailViewItem > pItem) |
void | RemoveItem (sal_uInt16 nItemId) |
virtual void | Clear () |
void | updateItems (std::vector< std::unique_ptr< ThumbnailViewItem > > items) |
size_t | GetItemPos (sal_uInt16 nItemId) const |
sal_uInt16 | GetItemId (size_t nPos) const |
sal_uInt16 | GetItemId (const Point &rPos) const |
virtual bool | renameItem (ThumbnailViewItem *pItem, const OUString &sNewTitle) |
bool | isDrawMnemonic () const |
void | setItemMaxTextLength (sal_uInt32 nLength) |
void | setItemDimensions (tools::Long ItemWidth, tools::Long ThumbnailHeight, tools::Long DisplayHeight, int itemPadding) |
void | SelectItem (sal_uInt16 nItemId) |
bool | IsItemSelected (sal_uInt16 nItemId) const |
void | deselectItems () |
void | ShowTooltips (bool bShowTooltips) |
void | DrawMnemonics (bool bDrawMnemonics) |
void | filterItems (const std::function< bool(const ThumbnailViewItem *) > &func) |
void | setItemStateHdl (const Link< const ThumbnailViewItem *, void > &aLink) |
virtual void | Resize () override |
virtual void | Show () override |
virtual void | Hide () override |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
Private Member Functions | |
bool | IsMnemonicChar (sal_Unicode cChar, ElementType &rType) const |
Private Attributes | |
std::unique_ptr< OApplicationIconControlDropTarget > | m_xDropTarget |
IControlActionListener * | m_pActionListener |
tools::Long | m_nMaxWidth |
tools::Long | m_nMaxHeight |
Definition at line 34 of file AppIconControl.hxx.
|
explicit |
Definition at line 59 of file AppIconControl.cxx.
References ThumbnailView::DrawMnemonics(), ThumbnailView::mbSelectOnFocus, and ThumbnailView::mnVItemSpace.
|
overridevirtual |
Definition at line 201 of file AppIconControl.cxx.
sal_Int8 dbaui::OApplicationIconControl::AcceptDrop | ( | const AcceptDropEvent & | rEvt | ) |
Definition at line 177 of file AppIconControl.cxx.
References ThumbnailView::deselectItems(), DND_ACTION_NONE, ThumbnailView::GetItemId(), m_pActionListener, m_xDropTarget, AcceptDropEvent::maPosPixel, dbaui::IControlActionListener::queryDrop(), and ThumbnailView::SelectItem().
Referenced by dbaui::OApplicationIconControlDropTarget::AcceptDrop().
void dbaui::OApplicationIconControl::createIconAutoMnemonics | ( | MnemonicGenerator & | rMnemonics | ) |
Definition at line 114 of file AppIconControl.cxx.
References MnemonicGenerator::CreateMnemonic(), ThumbnailView::mItemList, and MnemonicGenerator::RegisterMnemonic().
bool dbaui::OApplicationIconControl::DoKeyShortCut | ( | const KeyEvent & | rKEvt | ) |
Definition at line 150 of file AppIconControl.cxx.
References ThumbnailView::deselectItems(), dbaui::E_NONE, eType, KeyEvent::GetCharCode(), KeyEvent::GetKeyCode(), IsMnemonicChar(), vcl::KeyCode::IsMod2(), and ThumbnailView::SelectItem().
Referenced by KeyInput().
sal_Int8 dbaui::OApplicationIconControl::ExecuteDrop | ( | const ExecuteDropEvent & | rEvt | ) |
Definition at line 194 of file AppIconControl.cxx.
References DND_ACTION_NONE, dbaui::IControlActionListener::executeDrop(), and m_pActionListener.
Referenced by dbaui::OApplicationIconControlDropTarget::ExecuteDrop().
void dbaui::OApplicationIconControl::Fill | ( | ) |
Definition at line 70 of file AppIconControl.cxx.
References ThumbnailView::AppendItem(), DBA_RES, dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, Size::Height(), m_nMaxHeight, m_nMaxWidth, and Size::Width().
|
overridevirtual |
Reimplemented from ThumbnailView.
Definition at line 203 of file AppIconControl.cxx.
References ThumbnailView::GetFocus().
|
overridevirtual |
Definition at line 215 of file AppIconControl.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), ThumbnailViewItem::getDrawArea(), i, ThumbnailViewItem::isSelected(), ThumbnailView::mFilteredItemList, and THUMBNAILVIEW_ITEM_CORNER.
ElementType dbaui::OApplicationIconControl::GetSelectedItem | ( | ) | const |
Definition at line 103 of file AppIconControl.cxx.
References dbaui::E_NONE, and ThumbnailView::mItemList.
|
private |
Definition at line 132 of file AppIconControl.cxx.
References Application::GetSettings(), AllSettings::GetUILocaleI18nHelper(), vcl::I18nHelper::MatchMnemonic(), and ThumbnailView::mItemList.
Referenced by DoKeyShortCut().
|
overridevirtual |
Reimplemented from ThumbnailView.
Definition at line 166 of file AppIconControl.cxx.
References DoKeyShortCut(), and ThumbnailView::KeyInput().
|
overridevirtual |
Reimplemented from ThumbnailView.
Definition at line 209 of file AppIconControl.cxx.
References ThumbnailView::LoseFocus().
|
overridevirtual |
Reimplemented from ThumbnailView.
Definition at line 124 of file AppIconControl.cxx.
References m_nMaxHeight, ThumbnailView::Resize(), ThumbnailView::setItemDimensions(), and Width.
|
inline |
Definition at line 57 of file AppIconControl.hxx.
References m_pActionListener.
|
overridevirtual |
Reimplemented from ThumbnailView.
Definition at line 171 of file AppIconControl.cxx.
References m_xDropTarget, and ThumbnailView::SetDrawingArea().
|
private |
Definition at line 40 of file AppIconControl.hxx.
|
private |
Definition at line 39 of file AppIconControl.hxx.
Referenced by Fill().
|
private |
Definition at line 37 of file AppIconControl.hxx.
Referenced by AcceptDrop(), ExecuteDrop(), and setControlActionListener().
|
private |
Definition at line 36 of file AppIconControl.hxx.
Referenced by AcceptDrop(), and SetDrawingArea().