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

#include <galctrl.hxx>

Inheritance diagram for GalleryListView:
Collaboration diagram for GalleryListView:

Public Member Functions

 GalleryListView (GalleryBrowser2 *pParent, GalleryTheme *pTheme)
void SetSelectHdl (const Link< GalleryListView *, void > &rSelectHdl)
virtual OUString GetCellText (long _nRow, sal_uInt16 _nColId) const override
 GetCellText returns the text at the given position. More...
virtual tools::Rectangle GetFieldCharacterBounds (sal_Int32 _nRow, sal_Int32 _nColumnPos, sal_Int32 nIndex) override
virtual sal_Int32 GetFieldIndexAtPoint (sal_Int32 _nRow, sal_Int32 _nColumnPos, const Point &_rPoint) override
- Public Member Functions inherited from BrowseBox
virtual long GetRowCount () const override
 BrowseBox (vcl::Window *pParent, WinBits nBits, BrowserMode nMode=BrowserMode::NONE)
virtual ~BrowseBox () override
virtual void dispose () override
virtual void StateChanged (StateChangedType nStateChange) override
virtual void MouseButtonDown (const MouseEvent &rEvt) override
virtual void MouseMove (const MouseEvent &rEvt) override
virtual void MouseButtonUp (const MouseEvent &rEvt) override
virtual void LoseFocus () override
virtual void GetFocus () override
virtual void Resize () override
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual void Draw (OutputDevice *pDev, const Point &rPos, const Size &rSize, DrawFlags nFlags) override
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt) override
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt) override
virtual void MouseButtonDown (const BrowserMouseEvent &rEvt)
virtual void MouseButtonUp (const BrowserMouseEvent &rEvt)
void StartScroll ()
virtual void EndScroll ()
virtual bool IsCursorMoveAllowed (long nNewRow, sal_uInt16 nNewColId) const
virtual void CursorMoved ()
virtual void ColumnMoved (sal_uInt16 nColId)
virtual void ColumnResized (sal_uInt16 nColId)
virtual void RowHeightChanged ()
virtual long QueryMinimumRowHeight ()
void SetUpdateMode (bool bUpdate)
bool GetUpdateMode () const
void SetFont (const vcl::Font &rNewFont)
const vcl::FontGetFont () const
void SetTitleFont (const vcl::Font &rNewFont)
void InsertHandleColumn (sal_uLong nWidth)
void InsertDataColumn (sal_uInt16 nItemId, const OUString &rText, long nSize, HeaderBarItemBits nBits=HeaderBarItemBits::STDSTYLE, sal_uInt16 nPos=HEADERBAR_APPEND)
void SetColumnTitle (sal_uInt16 nColumnId, const OUString &rTitle)
void SetColumnWidth (sal_uInt16 nColumnId, sal_uLong nWidth)
void SetColumnPos (sal_uInt16 nColumnId, sal_uInt16 nPos)
void FreezeColumn (sal_uInt16 nColumnId)
void RemoveColumn (sal_uInt16 nColumnId)
void RemoveColumns ()
void SetDataRowHeight (long nPixel)
long GetDataRowHeight () const
void SetTitleLines (sal_uInt16 nLines)
long GetTitleHeight () const
OUString GetColumnTitle (sal_uInt16 nColumnId) const
tools::Rectangle GetFieldRect (sal_uInt16 nColumnId) const
sal_uLong GetColumnWidth (sal_uInt16 nColumnId) const
sal_uInt16 GetColumnId (sal_uInt16 nPos) const
sal_uInt16 GetColumnPos (sal_uInt16 nColumnId) const
bool IsFrozen (sal_uInt16 nColumnId) const
long ScrollColumns (long nColumns)
long ScrollRows (long nRows)
void MakeFieldVisible (long nRow, sal_uInt16 nColId)
long GetCurRow () const
sal_uInt16 GetCurColumnId () const
bool GoToRow (long nRow)
bool GoToColumnId (sal_uInt16 nColId)
bool GoToRowColumnId (long nRow, sal_uInt16 nColId)
virtual void SetNoSelection () override
virtual void SelectAll () override
virtual void SelectRow (long nRow, bool _bSelect=true, bool bExpand=true) override
void SelectColumnPos (sal_uInt16 nCol, bool _bSelect=true)
void SelectColumnId (sal_uInt16 nColId)
long GetSelectRowCount () const
sal_uInt16 GetSelectColumnCount () const
virtual bool IsRowSelected (long nRow) const override
bool IsColumnSelected (sal_uInt16 nColumnId) const
long FirstSelectedRow ()
long LastSelectedRow ()
long NextSelectedRow ()
const MultiSelectionGetColumnSelection () const
const MultiSelectionGetSelection () const
long FirstSelectedColumn () const
bool IsResizing () const
vcl::WindowGetDataWindow () const
tools::Rectangle GetRowRectPixel (long nRow) const
tools::Rectangle GetFieldRectPixel (long nRow, sal_uInt16 nColId, bool bRelToBrowser=true) const
bool IsFieldVisible (long nRow, sal_uInt16 nColId, bool bComplete=false) const
long GetRowAtYPosPixel (long nY, bool bRelToBrowser=true) const
sal_uInt16 GetColumnAtXPosPixel (long nX) const
void Clear ()
void RowRemoved (long nRow, long nNumRows=1, bool bDoPaint=true)
void RowModified (long nRow, sal_uInt16 nColId=BROWSER_INVALIDID)
void RowInserted (long nRow, long nNumRows=1, bool bDoPaint=true, bool bKeepSelection=false)
bool ReserveControlArea (sal_uInt16 nWidth=USHRT_MAX)
tools::Rectangle GetControlArea () const
bool ProcessKey (const KeyEvent &rEvt)
void Dispatch (sal_uInt16 nId)
void SetMode (BrowserMode nMode)
BrowserMode GetMode () const
void SetCursorColor (const Color &_rCol)
void EnableInteractiveRowHeight ()
bool IsInteractiveRowHeightEnabled () const
void DoPaintField (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColumnId, BrowserColumnAccess) const
sal_uLong GetDefaultColumnWidth (const OUString &_rText) const
sal_uInt16 GetColumnCount () const override
void commitBrowseBoxEvent (sal_Int16 nEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue)
void commitTableEvent (sal_Int16 nEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue)
void commitHeaderBarEvent (sal_Int16 nEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue, bool _bColumnHeaderBar)
virtual tools::Rectangle calcHeaderRect (bool _bIsColumnBar, bool _bOnScreen=true) override
virtual tools::Rectangle calcTableRect (bool _bOnScreen=true) override
virtual tools::Rectangle GetFieldRectPixelAbs (sal_Int32 _nRowId, sal_uInt16 _nColId, bool _bIsHeader, bool _bOnScreen=true) override
bool isAccessibleAlive () const
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCell (sal_Int32 nRow, sal_uInt16 nColumnPos) override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleRowHeader (sal_Int32 nRow) override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleColumnHeader (sal_uInt16 nColumnPos) override
virtual sal_Int32 GetAccessibleControlCount () const override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleControl (sal_Int32 nIndex) override
virtual bool ConvertPointToCellAddress (sal_Int32 &rnRow, sal_uInt16 &rnColumnId, const Point &rPoint) override
virtual bool ConvertPointToRowHeader (sal_Int32 &rnRow, const Point &rPoint) override
virtual bool ConvertPointToColumnHeader (sal_uInt16 &rnColumnPos, const Point &rPoint) override
virtual bool ConvertPointToControlIndex (sal_Int32 &rnIndex, const Point &rPoint) override
virtual OUString GetAccessibleObjectName (::vcl::AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override
virtual OUString GetAccessibleObjectDescription (::vcl::AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override
virtual OUString GetRowDescription (sal_Int32 nRow) const override
virtual OUString GetColumnDescription (sal_uInt16 _nColumn) const override
virtual void FillAccessibleStateSet (::utl::AccessibleStateSetHelper &rStateSet,::vcl::AccessibleBrowseBoxObjType eObjType) const override
virtual void FillAccessibleStateSetForCell (::utl::AccessibleStateSetHelper &_rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumn) const override
virtual void GrabTableFocus () override
virtual sal_Int32 GetCurrRow () const override
virtual sal_uInt16 GetCurrColumn () const override
virtual bool HasRowHeader () const override
virtual bool GoToCell (sal_Int32 _nRow, sal_uInt16 _nColumn) override
virtual void SelectColumn (sal_uInt16 _nColumn, bool _bSelect=true) override
virtual bool IsColumnSelected (long _nColumn) const override
virtual sal_Int32 GetSelectedRowCount () const override
virtual sal_Int32 GetSelectedColumnCount () const override
virtual void GetAllSelectedRows (css::uno::Sequence< sal_Int32 > &_rRows) const override
virtual void GetAllSelectedColumns (css::uno::Sequence< sal_Int32 > &_rColumns) const override
virtual bool IsCellVisible (sal_Int32 _nRow, sal_uInt16 _nColumn) const override
virtual OUString GetAccessibleCellText (long _nRow, sal_uInt16 _nColPos) const override
virtual bool GetGlyphBoundRects (const Point &rOrigin, const OUString &rStr, int nIndex, int nLen, MetricVector &rVector) override
virtual tools::Rectangle GetWindowExtentsRelative (vcl::Window *pRelativeWindow) const override
virtual void GrabFocus () override
virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible () override
virtual vcl::WindowGetAccessibleParentWindow () const override
virtual vcl::WindowGetWindowInstance () override

Private Member Functions

void InitSettings ()
virtual bool SeekRow (long nRow) override
virtual void PaintField (vcl::RenderContext &rDev, const tools::Rectangle &rRect, sal_uInt16 nColumnId) const override
virtual void DoubleClick (const BrowserMouseEvent &rEvt) override
virtual void Select () override
virtual sal_Int8 AcceptDrop (const BrowserAcceptDropEvent &rEvt) override
virtual sal_Int8 ExecuteDrop (const BrowserExecuteDropEvent &rEvt) override
virtual void KeyInput (const KeyEvent &rKEvt) override
virtual void Command (const CommandEvent &rCEvt) override
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
virtual void StartDrag (sal_Int8 nAction, const Point &rPosPixel) override

Private Attributes

Link< GalleryListView *, voidmaSelectHdl
sal_uInt32 mnCurRow

Additional Inherited Members

- Public Attributes inherited from BrowseBox
long nSel
- Static Public Attributes inherited from BrowseBox
static const sal_uInt16 HandleColumnId
- Protected Member Functions inherited from BrowseBox
::vcl::IAccessibleFactorygetAccessibleFactory ()
sal_uInt16 ColCount () const
void SetRealRowCount (const OUString &rRealRowCount)
void DrawCursor ()
void PaintData (vcl::Window const &rWin, vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
virtual void VisibleRowsChanged (long nNewTopRow, sal_uInt16 nNumRows)
sal_uInt16 GetVisibleRows () const
long GetTopRow () const
sal_uInt16 GetFirstVisibleColNumber () const
void DoShowCursor (const char *pWhoLog)
void DoHideCursor (const char *pWhoLog)
short GetCursorHideCount () const
virtual VclPtr< BrowserHeaderCreateHeaderBar (BrowseBox *pParent)
void SetHeaderBar (BrowserHeader *)
long CalcReverseZoom (long nVal)
const DataFlavorExVectorGetDataFlavors () const
bool IsDropFormatSupported (SotClipboardFormatId nFormat)
virtual void ImplStartTracking ()
virtual void ImplEndTracking ()

Detailed Description

Definition at line 122 of file galctrl.hxx.

Constructor & Destructor Documentation

GalleryListView::GalleryListView ( GalleryBrowser2 pParent,
GalleryTheme pTheme 

Member Function Documentation

sal_Int8 GalleryListView::AcceptDrop ( const BrowserAcceptDropEvent rEvt)

Reimplemented from BrowseBox.

Definition at line 644 of file galctrl.cxx.

References DND_ACTION_COPY, DND_ACTION_NONE, GalleryTheme::IsReadOnly(), and mpTheme.

void GalleryListView::Command ( const CommandEvent rCEvt)
void GalleryListView::DataChanged ( const DataChangedEvent rDCEvt)
void GalleryListView::DoubleClick ( const BrowserMouseEvent rEvt)
sal_Int8 GalleryListView::ExecuteDrop ( const BrowserExecuteDropEvent rEvt)
OUString GalleryListView::GetCellText ( long  _nRow,
sal_uInt16  _nColId 
) const

GetCellText returns the text at the given position.

_nRowthe number of the row
_nColIdthe ID of the column
the text out of the cell

Reimplemented from BrowseBox.

Definition at line 506 of file galctrl.cxx.

References GalleryTheme::AcquireObject(), GalleryBrowser2::GetItemText(), GalleryTheme::GetObjectCount(), mpTheme, and Title.

Referenced by GetFieldCharacterBounds(), and GetFieldIndexAtPoint().

tools::Rectangle GalleryListView::GetFieldCharacterBounds ( sal_Int32  _nRow,
sal_Int32  _nColumnPos,
sal_Int32  nIndex 
sal_Int32 GalleryListView::GetFieldIndexAtPoint ( sal_Int32  _nRow,
sal_Int32  _nColumnPos,
const Point _rPoint 
void GalleryListView::InitSettings ( )
void GalleryListView::KeyInput ( const KeyEvent rKEvt)

Reimplemented from BrowseBox.

Definition at line 625 of file galctrl.cxx.

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

void GalleryListView::PaintField ( vcl::RenderContext rDev,
const tools::Rectangle rRect,
sal_uInt16  nColumnId 
) const
bool GalleryListView::SeekRow ( long  nRow)

Implements BrowseBox.

Definition at line 500 of file galctrl.cxx.

References mnCurRow.

Referenced by GetFieldCharacterBounds(), and GetFieldIndexAtPoint().

void GalleryListView::Select ( )

Reimplemented from BrowseBox.

Definition at line 639 of file galctrl.cxx.

References Link< class, class >::Call(), and maSelectHdl.

void GalleryListView::SetSelectHdl ( const Link< GalleryListView *, void > &  rSelectHdl)

Definition at line 155 of file galctrl.hxx.

Referenced by GalleryBrowser2::GalleryBrowser2(), and GalleryBrowser2::SelectTheme().

void GalleryListView::StartDrag ( sal_Int8  nAction,
const Point rPosPixel 

Reimplemented from BrowseBox.

Definition at line 663 of file galctrl.cxx.

References vcl::Window::GetParent().

Member Data Documentation

Link<GalleryListView*,void> GalleryListView::maSelectHdl

Definition at line 129 of file galctrl.hxx.

Referenced by Select().

sal_uInt32 GalleryListView::mnCurRow

Definition at line 131 of file galctrl.hxx.

Referenced by PaintField(), and SeekRow().

GalleryTheme* GalleryListView::mpTheme

Definition at line 130 of file galctrl.hxx.

Referenced by AcceptDrop(), GetCellText(), KeyInput(), and PaintField().

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