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

#include <svdibrow.hxx>

Inheritance diagram for SdrItemBrowserControl:
Collaboration diagram for SdrItemBrowserControl:

Public Member Functions

 SdrItemBrowserControl (vcl::Window *pParent)
virtual ~SdrItemBrowserControl () override
virtual void dispose () override
void Clear ()
void SetAttributes (const SfxItemSet *pAttr, const SfxItemSet *p2ndSet)
sal_uInt16 GetCurrentWhich () const
void EndChangeEntry ()
void BreakChangeEntry ()
virtual OUString GetCellText (long _nRow, sal_uInt16 _nColId) const override
 GetCellText returns the text at the given position. More...
const ImpItemListRowGetCurrentChangeEntry () const
OUString GetNewEntryValue () const
void SetEntryChangedHdl (const Link< SdrItemBrowserControl &, void > &rLink)
void SetSetDirtyHdl (const Link< SdrItemBrowserControl &, void > &rLink)
- Public Member Functions inherited from BrowseBox
 BrowseBox (vcl::Window *pParent, WinBits nBits, BrowserMode nMode=BrowserMode::NONE)
virtual ~BrowseBox () 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 void Command (const CommandEvent &rEvt) override
virtual void StartDrag (sal_Int8 _nAction, const Point &_rPosPixel) override
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt) override
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt) override
virtual sal_Int8 AcceptDrop (const BrowserAcceptDropEvent &rEvt)
virtual sal_Int8 ExecuteDrop (const BrowserExecuteDropEvent &rEvt)
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 ImpCtor ()
void ImpSetEntry (const ImpItemListRow &rEntry, std::size_t nEntryNum)
void ImpSaveWhich ()
void ImpRestoreWhich ()
std::size_t GetCurrentPos () const
bool BeginChangeEntry (std::size_t nPos)
virtual long GetRowCount () const override
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 &) override
virtual void KeyInput (const KeyEvent &rEvt) override
virtual void Select () override
void SetDirty ()
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

Private Attributes

std::vector< std::unique_ptr< ImpItemListRow > > aList
long nCurrentPaintRow
VclPtr< EditpEditControl
OUString aWNameMemorized
Link< SdrItemBrowserControl &, voidaEntryChangedHdl
Link< SdrItemBrowserControl &, voidaSetDirtyHdl
std::unique_ptr< ImpItemListRowpCurrentChangeEntry
long nLastWhichOfs
sal_uInt16 nLastWhich
bool bWhichesButNames
bool bDontHideIneffectiveItems
bool bDontSortItems


class ImpItemEdit

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 33 of file svdibrow.hxx.

Constructor & Destructor Documentation

SdrItemBrowserControl::SdrItemBrowserControl ( vcl::Window pParent)

Definition at line 215 of file svdibrow.cxx.

References ImpCtor(), WB_3DLOOK, WB_BORDER, and WB_TABSTOP.

SdrItemBrowserControl::~SdrItemBrowserControl ( )

Definition at line 221 of file svdibrow.cxx.

Member Function Documentation

bool SdrItemBrowserControl::BeginChangeEntry ( std::size_t  nPos)
void SdrItemBrowserControl::BreakChangeEntry ( )
void SdrItemBrowserControl::Clear ( )

Definition at line 281 of file svdibrow.cxx.

References aList, and BrowseBox::Clear().

Referenced by dispose(), and SetAttributes().

void SdrItemBrowserControl::dispose ( void  )

Reimplemented from BrowseBox.

Definition at line 226 of file svdibrow.cxx.

References Clear(), BrowseBox::dispose(), VclPtr< Edit >::disposeAndClear(), pCurrentChangeEntry, and pEditControl.

void SdrItemBrowserControl::DoubleClick ( const BrowserMouseEvent )

Reimplemented from BrowseBox.

Definition at line 385 of file svdibrow.cxx.

References BeginChangeEntry(), GetCurrentPos(), ITEM_NOT_FOUND, and nPos.

void SdrItemBrowserControl::EndChangeEntry ( )
OUString SdrItemBrowserControl::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 298 of file svdibrow.cxx.


Referenced by PaintField().

const ImpItemListRow* SdrItemBrowserControl::GetCurrentChangeEntry ( ) const

Definition at line 86 of file svdibrow.hxx.

std::size_t SdrItemBrowserControl::GetCurrentPos ( ) const
sal_uInt16 SdrItemBrowserControl::GetCurrentWhich ( ) const

Definition at line 375 of file svdibrow.cxx.

References aList, GetCurrentPos(), ITEM_NOT_FOUND, and nPos.

Referenced by ImpSaveWhich().

tools::Rectangle SdrItemBrowserControl::GetFieldCharacterBounds ( sal_Int32  _nRow,
sal_Int32  _nColumnPos,
sal_Int32  nIndex 

Definition at line 426 of file svdibrow.cxx.

sal_Int32 SdrItemBrowserControl::GetFieldIndexAtPoint ( sal_Int32  _nRow,
sal_Int32  _nColumnPos,
const Point _rPoint 

Definition at line 432 of file svdibrow.cxx.

OUString SdrItemBrowserControl::GetNewEntryValue ( ) const

Definition at line 87 of file svdibrow.hxx.

References Edit::GetText().

long SdrItemBrowserControl::GetRowCount ( ) const

Reimplemented from BrowseBox.

Definition at line 287 of file svdibrow.cxx.

References aList.

void SdrItemBrowserControl::ImpCtor ( )
void SdrItemBrowserControl::ImpRestoreWhich ( )
void SdrItemBrowserControl::ImpSaveWhich ( )

Definition at line 445 of file svdibrow.cxx.

References GetCurrentPos(), GetCurrentWhich(), BrowseBox::GetTopRow(), nLastWhich, and nLastWhichOfs.

Referenced by Select().

void SdrItemBrowserControl::ImpSetEntry ( const ImpItemListRow rEntry,
std::size_t  nEntryNum 
void SdrItemBrowserControl::KeyInput ( const KeyEvent rEvt)
void SdrItemBrowserControl::PaintField ( vcl::RenderContext rDev,
const tools::Rectangle rRect,
sal_uInt16  nColumnId 
) const
bool SdrItemBrowserControl::SeekRow ( long  nRow)

Implements BrowseBox.

Definition at line 292 of file svdibrow.cxx.

References nCurrentPaintRow.

void SdrItemBrowserControl::Select ( )

Reimplemented from BrowseBox.

Definition at line 438 of file svdibrow.cxx.

References EndChangeEntry(), ImpSaveWhich(), and BrowseBox::Select().

void SdrItemBrowserControl::SetAttributes ( const SfxItemSet pAttr,
const SfxItemSet p2ndSet 

Definition at line 883 of file svdibrow.cxx.

References aList, ImpItemListRow::aName, ImpItemListRow::aValue, ImpItemListRow::bCanNum, ImpItemListRow::bComment, bDontHideIneffectiveItems, bDontSortItems, ImpItemListRow::bIsNum, BOOL, BYTE, Clear(), COLOR, EE_ITEMS_END, EE_ITEMS_START, ImpItemListRow::eItemType, ENUM, ImpItemListRow::eState, FIELD, SfxWhichIter::FirstWhich(), FLAG, FONT, FONTHEIGHT, FONTWIDTH, FRACTION, SfxItemSet::Get(), SdrItemPool::GetItemName(), SfxItemSet::GetItemState(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SfxPoolItem::GetPresentation(), GetValue, if(), ImpRestoreWhich(), ImpSetEntry(), ImpSortWhich(), INSERTCOMMENT, INT16, INT32, IsInvalidItem(), IsItemIneffective(), SfxPoolItem::IsVoidItem(), MYBROWSEMODE, SfxWhichIter::NextWhich(), ImpItemListRow::nMax, ImpItemListRow::nMin, ImpItemListRow::nVal, ImpItemListRow::nWhichId, POINT, ImpItemListRow::pType, RANGE, RECT, BrowseBox::RowRemoved(), SDRATTR_CAPTION_FIRST, SDRATTR_CAPTION_LAST, SDRATTR_CIRC_FIRST, SDRATTR_CIRC_LAST, SDRATTR_EDGE_FIRST, SDRATTR_EDGE_LAST, SDRATTR_GRAF_FIRST, SDRATTR_GRAF_LAST, SDRATTR_MEASURE_FIRST, SDRATTR_MEASURE_LAST, SDRATTR_MISC_FIRST, SDRATTR_MISC_LAST, SDRATTR_MOVEX, SDRATTR_NOTPERSIST_FIRST, SDRATTR_NOTPERSIST_LAST, SDRATTR_RESIZEXALL, SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, SDRATTR_TRANSFORMREF1X, SDRATTR_TRANSFORMREF2Y, SDRATTR_VERTSHEARALL, SDRATTR_VERTSHEARONE, BrowseBox::SetMode(), STRING, UINT16, UINT32, XATTR_FILL_FIRST, XATTR_FILL_LAST, XATTR_LINE_FIRST, XATTR_LINE_LAST, XATTR_TEXT_FIRST, XATTR_TEXT_LAST, and XCOLOR.

Referenced by SdrItemBrowser::SetAttributes().

void SdrItemBrowserControl::SetDirty ( )

Definition at line 421 of file svdibrow.cxx.

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

Referenced by KeyInput().

void SdrItemBrowserControl::SetEntryChangedHdl ( const Link< SdrItemBrowserControl &, void > &  rLink)

Definition at line 88 of file svdibrow.hxx.

Referenced by SdrItemBrowser::SdrItemBrowser().

void SdrItemBrowserControl::SetSetDirtyHdl ( const Link< SdrItemBrowserControl &, void > &  rLink)

Definition at line 89 of file svdibrow.hxx.

Referenced by SdrItemBrowser::SdrItemBrowser().

Friends And Related Function Documentation

friend class ImpItemEdit

Definition at line 35 of file svdibrow.hxx.

Member Data Documentation

Link<SdrItemBrowserControl&,void> SdrItemBrowserControl::aEntryChangedHdl

Definition at line 40 of file svdibrow.hxx.

Referenced by EndChangeEntry().

std::vector<std::unique_ptr<ImpItemListRow> > SdrItemBrowserControl::aList
Link<SdrItemBrowserControl&,void> SdrItemBrowserControl::aSetDirtyHdl

Definition at line 41 of file svdibrow.hxx.

Referenced by SetDirty().

OUString SdrItemBrowserControl::aWNameMemorized

Definition at line 39 of file svdibrow.hxx.

Referenced by BeginChangeEntry(), and BreakChangeEntry().

bool SdrItemBrowserControl::bDontHideIneffectiveItems

Definition at line 46 of file svdibrow.hxx.

Referenced by ImpCtor(), KeyInput(), and SetAttributes().

bool SdrItemBrowserControl::bDontSortItems

Definition at line 47 of file svdibrow.hxx.

Referenced by ImpCtor(), KeyInput(), and SetAttributes().

bool SdrItemBrowserControl::bWhichesButNames

Definition at line 45 of file svdibrow.hxx.

Referenced by ImpCtor(), and KeyInput().

long SdrItemBrowserControl::nCurrentPaintRow

Definition at line 37 of file svdibrow.hxx.

Referenced by PaintField(), and SeekRow().

sal_uInt16 SdrItemBrowserControl::nLastWhich

Definition at line 44 of file svdibrow.hxx.

Referenced by ImpCtor(), ImpRestoreWhich(), and ImpSaveWhich().

long SdrItemBrowserControl::nLastWhichOfs

Definition at line 43 of file svdibrow.hxx.

Referenced by ImpCtor(), ImpRestoreWhich(), and ImpSaveWhich().

std::unique_ptr<ImpItemListRow> SdrItemBrowserControl::pCurrentChangeEntry

Definition at line 42 of file svdibrow.hxx.

Referenced by BeginChangeEntry(), BreakChangeEntry(), dispose(), and ImpCtor().

VclPtr<Edit> SdrItemBrowserControl::pEditControl

Definition at line 38 of file svdibrow.hxx.

Referenced by BeginChangeEntry(), BreakChangeEntry(), dispose(), EndChangeEntry(), and ImpCtor().

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