LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dbaui::OApplicationIconControl Class Referencefinal

#include <AppIconControl.hxx>

Inheritance diagram for dbaui::OApplicationIconControl:
[legend]
Collaboration diagram for dbaui::OApplicationIconControl:
[legend]

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< OApplicationIconControlDropTargetm_xDropTarget
 
IControlActionListenerm_pActionListener
 
tools::Long m_nMaxWidth
 
tools::Long m_nMaxHeight
 

Additional Inherited Members

- Static Public Member Functions inherited from ThumbnailView
static BitmapEx readThumbnail (const OUString &msURL)
 
- Protected Member Functions inherited from ThumbnailView
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual OUString RequestHelp (tools::Rectangle &rRect) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
const css::uno::Reference< css::accessibility::XAccessible > & getAccessible () const
 
void DrawItem (ThumbnailViewItem const *pItem)
 
virtual void OnItemDblClicked (ThumbnailViewItem *pItem)
 
void UpdateColors ()
 
void CalculateItemPositions (bool bScrollBarUsed=false)
 
void MakeItemVisible (sal_uInt16 nId)
 
void ImplInit ()
 
void ImplDeleteItems ()
 
size_t ImplGetItem (const Point &rPoint) const
 
ThumbnailViewItemImplGetItem (size_t nPos)
 
sal_uInt16 ImplGetVisibleItemCount () const
 
ThumbnailViewItemImplGetVisibleItem (sal_uInt16 nVisiblePos)
 
void ImplFireAccessibleEvent (short nEventId, const css::uno::Any &rOldValue, const css::uno::Any &rNewValue)
 
bool ImplHasAccessibleListeners () const
 
 DECL_DLLPRIVATE_LINK (ImplScrollHdl, weld::ScrolledWindow &, void)
 
- Protected Attributes inherited from ThumbnailView
std::vector< std::unique_ptr< ThumbnailViewItem > > mItemList
 
css::uno::Reference< css::accessibility::XAccessible > mxAccessible
 
ThumbnailValueItemList mFilteredItemList
 
ThumbnailValueItemList::iterator mpStartSelRange
 
tools::Long mnItemWidth
 
tools::Long mnItemHeight
 
tools::Long mnItemPadding
 
tools::Long mnThumbnailHeight
 
tools::Long mnDisplayHeight
 
tools::Long mnVItemSpace
 
tools::Long mnVisLines
 
tools::Long mnLines
 
sal_uInt16 mnCols
 
sal_uInt16 mnFirstLine
 
bool mbScroll
 
bool mbAllowVScrollBar
 
bool mbHasVisibleItems
 
bool mbShowTooltips
 
bool mbDrawMnemonics
 
bool mbSelectOnFocus
 
Color maFillColor
 
Color maTextColor
 
Color maHighlightColor
 
Color maHighlightTextColor
 
Color maSelectHighlightColor
 
Color maSelectHighlightTextColor
 
double mfHighlightTransparence
 
Link< const ThumbnailViewItem *, void > maItemStateHdl
 
std::unique_ptr< ThumbnailItemAttributesmpItemAttrs
 
std::unique_ptr< weld::ScrolledWindowmxScrolledWindow
 
std::unique_ptr< weld::MenumxContextMenu
 
std::function< bool(const ThumbnailViewItem *)> maFilterFunc
 

Detailed Description

Definition at line 34 of file AppIconControl.hxx.

Constructor & Destructor Documentation

◆ OApplicationIconControl()

dbaui::OApplicationIconControl::OApplicationIconControl ( std::unique_ptr< weld::ScrolledWindow xScroll)
explicit

◆ ~OApplicationIconControl()

dbaui::OApplicationIconControl::~OApplicationIconControl ( )
overridevirtual

Definition at line 201 of file AppIconControl.cxx.

Member Function Documentation

◆ AcceptDrop()

sal_Int8 dbaui::OApplicationIconControl::AcceptDrop ( const AcceptDropEvent rEvt)

◆ createIconAutoMnemonics()

void dbaui::OApplicationIconControl::createIconAutoMnemonics ( MnemonicGenerator rMnemonics)

◆ DoKeyShortCut()

bool dbaui::OApplicationIconControl::DoKeyShortCut ( const KeyEvent rKEvt)

◆ ExecuteDrop()

sal_Int8 dbaui::OApplicationIconControl::ExecuteDrop ( const ExecuteDropEvent rEvt)

◆ Fill()

void dbaui::OApplicationIconControl::Fill ( )

◆ GetFocus()

void dbaui::OApplicationIconControl::GetFocus ( )
overridevirtual

Reimplemented from ThumbnailView.

Definition at line 203 of file AppIconControl.cxx.

References ThumbnailView::GetFocus().

◆ GetFocusRect()

tools::Rectangle dbaui::OApplicationIconControl::GetFocusRect ( )
overridevirtual

◆ GetSelectedItem()

ElementType dbaui::OApplicationIconControl::GetSelectedItem ( ) const

Definition at line 103 of file AppIconControl.cxx.

References dbaui::E_NONE, and ThumbnailView::mItemList.

◆ IsMnemonicChar()

bool dbaui::OApplicationIconControl::IsMnemonicChar ( sal_Unicode  cChar,
ElementType rType 
) const
private

◆ KeyInput()

bool dbaui::OApplicationIconControl::KeyInput ( const KeyEvent rKEvt)
overridevirtual

Reimplemented from ThumbnailView.

Definition at line 166 of file AppIconControl.cxx.

References DoKeyShortCut(), and ThumbnailView::KeyInput().

◆ LoseFocus()

void dbaui::OApplicationIconControl::LoseFocus ( )
overridevirtual

Reimplemented from ThumbnailView.

Definition at line 209 of file AppIconControl.cxx.

References ThumbnailView::LoseFocus().

◆ Resize()

void dbaui::OApplicationIconControl::Resize ( )
overridevirtual

Reimplemented from ThumbnailView.

Definition at line 124 of file AppIconControl.cxx.

References m_nMaxHeight, ThumbnailView::Resize(), ThumbnailView::setItemDimensions(), and Width.

◆ setControlActionListener()

void dbaui::OApplicationIconControl::setControlActionListener ( IControlActionListener _pListener)
inline

Definition at line 57 of file AppIconControl.hxx.

References m_pActionListener.

◆ SetDrawingArea()

void dbaui::OApplicationIconControl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

Reimplemented from ThumbnailView.

Definition at line 171 of file AppIconControl.cxx.

References m_xDropTarget, and ThumbnailView::SetDrawingArea().

Member Data Documentation

◆ m_nMaxHeight

tools::Long dbaui::OApplicationIconControl::m_nMaxHeight
private

Definition at line 40 of file AppIconControl.hxx.

Referenced by Fill(), and Resize().

◆ m_nMaxWidth

tools::Long dbaui::OApplicationIconControl::m_nMaxWidth
private

Definition at line 39 of file AppIconControl.hxx.

Referenced by Fill().

◆ m_pActionListener

IControlActionListener* dbaui::OApplicationIconControl::m_pActionListener
private

Definition at line 37 of file AppIconControl.hxx.

Referenced by AcceptDrop(), ExecuteDrop(), and setControlActionListener().

◆ m_xDropTarget

std::unique_ptr<OApplicationIconControlDropTarget> dbaui::OApplicationIconControl::m_xDropTarget
private

Definition at line 36 of file AppIconControl.hxx.

Referenced by AcceptDrop(), and SetDrawingArea().


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