LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GalleryIconView Class Referencefinal

#include <galctrl.hxx>

Inheritance diagram for GalleryIconView:
[legend]
Collaboration diagram for GalleryIconView:
[legend]

Public Member Functions

 GalleryIconView (GalleryBrowser2 *pParent, GalleryTheme *pTheme)
 
- Public Member Functions inherited from ValueSet
 ValueSet (vcl::Window *pParent, WinBits nWinStyle)
 
virtual ~ValueSet () override
 
virtual void dispose () override
 
virtual void MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual void MouseMove (const MouseEvent &rMEvt) override
 
virtual void Tracking (const TrackingEvent &rMEvt) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual void Resize () override
 
virtual Size GetOptimalSize () const override
 
virtual void RequestHelp (const HelpEvent &rHEvt) override
 
virtual void StateChanged (StateChangedType nStateChange) override
 
virtual boost::property_tree::ptree DumpAsPropertyTree () override
 
virtual FactoryFunction GetUITestFactory () const override
 
virtual void Select ()
 
void InsertItem (sal_uInt16 nItemId, const Image &rImage)
 
void InsertItem (sal_uInt16 nItemId, const Image &rImage, const OUString &rStr, size_t nPos=VALUESET_APPEND, bool bShowLegend=false)
 
void InsertItem (sal_uInt16 nItemId, const Color &rColor, const OUString &rStr)
 
void InsertItem (sal_uInt16 nItemId, size_t nPos=VALUESET_APPEND)
 
void RemoveItem (sal_uInt16 nItemId)
 
void Clear ()
 
size_t GetItemCount () const
 
size_t GetItemPos (sal_uInt16 nItemId) const
 
sal_uInt16 GetItemId (size_t nPos) const
 
sal_uInt16 GetItemId (const Point &rPos) const
 
tools::Rectangle GetItemRect (sal_uInt16 nItemId) const
 
void EnableFullItemMode (bool bFullMode)
 
void SetColCount (sal_uInt16 nNewCols=1)
 
sal_uInt16 GetColCount () const
 
void SetLineCount (sal_uInt16 nNewLines=0)
 
sal_uInt16 GetLineCount () const
 
void SetItemWidth (long nItemWidth)
 
void SetItemHeight (long nLineHeight)
 
Size GetLargestItemSize ()
 
void RecalculateItemSizes ()
 
void SelectItem (sal_uInt16 nItemId)
 
sal_uInt16 GetSelectedItemId () const
 
bool IsItemSelected (sal_uInt16 nItemId) const
 
void SetNoSelection ()
 
bool IsNoSelection () const
 
void SetItemImage (sal_uInt16 nItemId, const Image &rImage)
 
Image GetItemImage (sal_uInt16 nItemId) const
 
void SetItemColor (sal_uInt16 nItemId, const Color &rColor)
 
Color GetItemColor (sal_uInt16 nItemId) const
 
void SetItemData (sal_uInt16 nItemId, void *pData)
 
voidGetItemData (sal_uInt16 nItemId) const
 
void SetItemText (sal_uInt16 nItemId, const OUString &rStr)
 
OUString GetItemText (sal_uInt16 nItemId) const
 
void SetColor (const Color &rColor)
 
void SetColor ()
 
bool IsColor () const
 
void SetExtraSpacing (sal_uInt16 nNewSpacing)
 
void SetFormat ()
 
void StartSelection ()
 
void EndSelection ()
 
Size CalcWindowSizePixel (const Size &rItemSize, sal_uInt16 nCalcCols=0, sal_uInt16 nCalcLines=0) const
 
Size CalcItemSizePixel (const Size &rSize) const
 
long GetScrollWidth () const
 
void SetSelectHdl (const Link< ValueSet *, void > &rLink)
 
void SetDoubleClickHdl (const Link< ValueSet *, void > &rLink)
 
void SetHighlightHdl (const Link< ValueSet *, void > &rLink)
 
bool GetEdgeBlending () const
 
void SetEdgeBlending (bool bNew)
 
- 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
 
- Public Member Functions inherited from DragSourceHelper
 DragSourceHelper (vcl::Window *pWindow)
 
void dispose ()
 
virtual ~DragSourceHelper ()
 

Private Member Functions

void InitSettings ()
 
virtual void UserDraw (const UserDrawEvent &rUDEvt) override
 
virtual void MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual void Command (const CommandEvent &rCEvt) override
 
virtual void KeyInput (const KeyEvent &rKEvt) override
 
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
 
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt) override
 
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt) override
 
virtual void StartDrag (sal_Int8 nAction, const Point &rPosPixel) override
 

Private Attributes

GalleryThemempTheme
 

Additional Inherited Members

- Protected Member Functions inherited from ValueSet
void StartDrag (const CommandEvent &rCEvt, vcl::Region &rRegion)
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 

Detailed Description

Definition at line 91 of file galctrl.hxx.

Constructor & Destructor Documentation

GalleryIconView::GalleryIconView ( GalleryBrowser2 pParent,
GalleryTheme pTheme 
)

Member Function Documentation

sal_Int8 GalleryIconView::AcceptDrop ( const AcceptDropEvent rEvt)
overrideprivatevirtual

Reimplemented from DropTargetHelper.

Definition at line 450 of file galctrl.cxx.

References vcl::Window::GetParent().

void GalleryIconView::Command ( const CommandEvent rCEvt)
overrideprivatevirtual
void GalleryIconView::DataChanged ( const DataChangedEvent rDCEvt)
overrideprivatevirtual
sal_Int8 GalleryIconView::ExecuteDrop ( const ExecuteDropEvent rEvt)
overrideprivatevirtual

Reimplemented from DropTargetHelper.

Definition at line 455 of file galctrl.cxx.

References vcl::Window::GetParent().

void GalleryIconView::InitSettings ( )
private
void GalleryIconView::KeyInput ( const KeyEvent rKEvt)
overrideprivatevirtual

Reimplemented from ValueSet.

Definition at line 444 of file galctrl.cxx.

References vcl::Window::GetParent(), ValueSet::KeyInput(), and mpTheme.

void GalleryIconView::MouseButtonDown ( const MouseEvent rMEvt)
overrideprivatevirtual

Reimplemented from ValueSet.

Definition at line 425 of file galctrl.cxx.

References MouseEvent::GetClicks(), vcl::Window::GetParent(), and ValueSet::MouseButtonDown().

void GalleryIconView::StartDrag ( sal_Int8  nAction,
const Point rPosPixel 
)
overrideprivatevirtual

Reimplemented from DragSourceHelper.

Definition at line 460 of file galctrl.cxx.

References vcl::Window::GetParent(), vcl::Window::GetPointerPosPixel(), and ValueSet::StartDrag().

void GalleryIconView::UserDraw ( const UserDrawEvent rUDEvt)
overrideprivatevirtual

Member Data Documentation

GalleryTheme* GalleryIconView::mpTheme
private

Definition at line 97 of file galctrl.hxx.

Referenced by KeyInput(), and UserDraw().


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