LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwEntryBrowseBox Class Reference
Inheritance diagram for SwEntryBrowseBox:
[legend]
Collaboration diagram for SwEntryBrowseBox:
[legend]

Public Member Functions

 SwEntryBrowseBox (vcl::Window *pParent, VclBuilderContainer *pBuilder)
 
virtual ~SwEntryBrowseBox () override
 
virtual void dispose () override
 
void ReadEntries (SvStream &rInStr)
 
void WriteEntries (SvStream &rOutStr)
 
bool IsModified () const override
 
virtual OUString GetCellText (long nRow, sal_uInt16 nColumn) const override
 
virtual void Resize () override
 
virtual Size GetOptimalSize () const override
 
- Public Member Functions inherited from svt::EditBrowseBox
 EditBrowseBox (vcl::Window *pParent, EditBrowseBoxFlags nBrowserFlags, WinBits nBits, BrowserMode nMode=BrowserMode::NONE)
 
virtual ~EditBrowseBox () override
 
bool IsEditing () const
 
void InvalidateStatusCell (long nRow)
 
void InvalidateHandleColumn ()
 
virtual void Init ()
 
virtual void RemoveRows ()
 
virtual void Dispatch (sal_uInt16 nId)
 
const CellControllerRefController () const
 
EditBrowseBoxFlags GetBrowserFlags () const
 
void SetBrowserFlags (EditBrowseBoxFlags nFlags)
 
virtual void ActivateCell (long nRow, sal_uInt16 nCol, bool bSetCellFocus=true)
 
virtual void DeactivateCell (bool bUpdate=true)
 
virtual sal_Int32 GetAccessibleControlCount () const override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleControl (sal_Int32 nIndex) override
 
virtual void GrabTableFocus () override
 
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
 
css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCheckBoxCell (long _nRow, sal_uInt16 _nColumnPos, const TriState &eState)
 
- 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 MouseButtonDown (const MouseEvent &rEvt) override
 
virtual void MouseMove (const MouseEvent &rEvt) override
 
virtual void MouseButtonUp (const MouseEvent &rEvt) 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)
 
void StartScroll ()
 
virtual void Select ()
 
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 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 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
 

Protected Member Functions

virtual bool SeekRow (long nRow) override
 
virtual void PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColId) const override
 
virtual void InitController (::svt::CellControllerRef &rController, long nRow, sal_uInt16 nCol) override
 
virtual ::svt::CellControllerGetController (long nRow, sal_uInt16 nCol) override
 
virtual bool SaveModified () override
 
std::vector< long > GetOptimalColWidths () const
 
- Protected Member Functions inherited from svt::EditBrowseBox
BrowserMouseEventPtr & getMouseEvent ()
 
BrowserHeaderGetHeaderBar () const
 
virtual VclPtr< BrowserHeaderCreateHeaderBar (BrowseBox *pParent) override
 
virtual VclPtr< BrowserHeaderimp_CreateHeaderBar (BrowseBox *pParent)
 
virtual void ColumnMoved (sal_uInt16 nId) override
 
virtual void ColumnResized (sal_uInt16 nColId) override
 
virtual void ArrangeControls (sal_uInt16 &nX, sal_uInt16 nY)
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual void KeyInput (const KeyEvent &rEvt) override
 
virtual void MouseButtonDown (const BrowserMouseEvent &rEvt) override
 
virtual void MouseButtonUp (const BrowserMouseEvent &rEvt) override
 
virtual void StateChanged (StateChangedType nType) override
 
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
 
virtual bool PreNotify (NotifyEvent &rNEvt) override
 
virtual bool EventNotify (NotifyEvent &rNEvt) override
 
virtual void EndScroll () override
 
tools::Rectangle GetCellRect (long nRow, sal_uInt16 nColId, bool bRelToBrowser=true) const
 
virtual sal_uInt32 GetTotalCellWidth (long nRow, sal_uInt16 nColId)
 
sal_uInt32 GetAutoColumnWidth (sal_uInt16 nColId)
 
virtual void PaintStatusCell (OutputDevice &rDev, const tools::Rectangle &rRect) const
 
virtual RowStatus GetRowStatus (long nRow) const
 
virtual void RowHeightChanged () override
 
virtual void ImplStartTracking () override
 
virtual void ImplEndTracking () override
 
virtual bool CursorMoving (long nNewRow, sal_uInt16 nNewCol)
 
virtual void CursorMoved () override
 
virtual void CellModified ()
 
virtual bool SaveRow ()
 
virtual void InitController (CellControllerRef &rController, long nRow, sal_uInt16 nCol)
 
virtual void DoubleClick (const BrowserMouseEvent &) override
 
void ActivateCell ()
 
Image GetImage (RowStatus) const
 
virtual sal_uInt16 AppendColumn (const OUString &rName, sal_uInt16 nWidth, sal_uInt16 nPos=HEADERBAR_APPEND, sal_uInt16 nId=sal_uInt16(-1))
 
virtual bool IsTabAllowed (bool bForward) const
 
virtual bool IsCursorMoveAllowed (long nNewRow, sal_uInt16 nNewColId) const override
 
void PaintTristate (const tools::Rectangle &rRect, const TriState &eState, bool _bEnabled=true) const
 
void AsynchGetFocus ()
 
void implCreateActiveAccessible ()
 
- 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 ()
 
long GetTopRow ()
 
sal_uInt16 GetFirstVisibleColNumber () const
 
void DoShowCursor (const char *pWhoLog)
 
void DoHideCursor (const char *pWhoLog)
 
short GetCursorHideCount () const
 
void SetHeaderBar (BrowserHeader *)
 
long CalcReverseZoom (long nVal)
 
const DataFlavorExVectorGetDataFlavors () const
 
bool IsDropFormatSupported (SotClipboardFormatId nFormat)
 

Private Attributes

VclPtr< Editm_aCellEdit
 
VclPtr< ::svt::CheckBoxControlm_aCellCheckBox
 
OUString m_sSearch
 
OUString m_sAlternative
 
OUString m_sPrimKey
 
OUString m_sSecKey
 
OUString m_sComment
 
OUString m_sCaseSensitive
 
OUString m_sWordOnly
 
OUString m_sYes
 
OUString m_sNo
 
std::vector< std::unique_ptr< AutoMarkEntry > > m_Entries
 
::svt::CellControllerRef m_xController
 
::svt::CellControllerRef m_xCheckController
 
long m_nCurrentRow
 
bool m_bModified
 

Additional Inherited Members

- Public Types inherited from svt::EditBrowseBox
enum  RowStatus
 
- Public Attributes inherited from svt::EditBrowseBox
 CLEAN
 
 CURRENT
 
 CURRENTNEW
 
 MODIFIED
 
 NEW
 
 DELETED
 
 PRIMARYKEY
 
 CURRENT_PRIMARYKEY
 
 FILTER
 
 HEADERFOOTER
 
- Public Attributes inherited from BrowseBox
MultiSelectionpSel
 
long nSel
 
- Static Public Attributes inherited from BrowseBox
static const sal_uInt16 HandleColumnId
 
- Static Protected Member Functions inherited from svt::EditBrowseBox
static void ResizeController (CellControllerRef const &rController, const tools::Rectangle &)
 
- Protected Attributes inherited from svt::EditBrowseBox
VclPtr< BrowserHeaderpHeader
 

Detailed Description

Definition at line 139 of file cnttab.cxx.

Constructor & Destructor Documentation

SwEntryBrowseBox::SwEntryBrowseBox ( vcl::Window pParent,
VclBuilderContainer pBuilder 
)
SwEntryBrowseBox::~SwEntryBrowseBox ( )
overridevirtual

Definition at line 3664 of file cnttab.cxx.

Member Function Documentation

void SwEntryBrowseBox::dispose ( void  )
overridevirtual
OUString SwEntryBrowseBox::GetCellText ( long  nRow,
sal_uInt16  nColumn 
) const
overridevirtual
svt::CellController * SwEntryBrowseBox::GetController ( long  nRow,
sal_uInt16  nCol 
)
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 3766 of file cnttab.cxx.

References tools::SvRef< class >::get(), ITEM_CASE, m_xCheckController, and m_xController.

std::vector< long > SwEntryBrowseBox::GetOptimalColWidths ( ) const
protected

Definition at line 3693 of file cnttab.cxx.

References BrowseBox::GetColumnTitle(), i, m_sNo, and m_sYes.

Referenced by GetOptimalSize(), and Resize().

Size SwEntryBrowseBox::GetOptimalSize ( ) const
overridevirtual

Definition at line 3720 of file cnttab.cxx.

References GetOptimalColWidths(), Size::setWidth(), and Size::Width().

void SwEntryBrowseBox::InitController ( ::svt::CellControllerRef rController,
long  nRow,
sal_uInt16  nCol 
)
overrideprotectedvirtual
bool SwEntryBrowseBox::IsModified ( ) const
overridevirtual
void SwEntryBrowseBox::PaintCell ( OutputDevice rDev,
const tools::Rectangle rRect,
sal_uInt16  nColId 
) const
overrideprotectedvirtual

Implements svt::EditBrowseBox.

Definition at line 3759 of file cnttab.cxx.

References OutputDevice::DrawText(), GetCellText(), and m_nCurrentRow.

void SwEntryBrowseBox::ReadEntries ( SvStream rInStr)
void SwEntryBrowseBox::Resize ( )
overridevirtual
bool SwEntryBrowseBox::SaveModified ( )
overrideprotectedvirtual
bool SwEntryBrowseBox::SeekRow ( long  nRow)
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 3733 of file cnttab.cxx.

References m_nCurrentRow.

void SwEntryBrowseBox::WriteEntries ( SvStream rOutStr)

Member Data Documentation

VclPtr< ::svt::CheckBoxControl> SwEntryBrowseBox::m_aCellCheckBox
private

Definition at line 142 of file cnttab.cxx.

Referenced by dispose(), and SwEntryBrowseBox().

VclPtr<Edit> SwEntryBrowseBox::m_aCellEdit
private

Definition at line 141 of file cnttab.cxx.

Referenced by dispose(), and SwEntryBrowseBox().

bool SwEntryBrowseBox::m_bModified
private

Definition at line 160 of file cnttab.cxx.

Referenced by IsModified(), and SaveModified().

std::vector<std::unique_ptr<AutoMarkEntry> > SwEntryBrowseBox::m_Entries
private

Definition at line 154 of file cnttab.cxx.

Referenced by GetCellText(), ReadEntries(), SaveModified(), and WriteEntries().

long SwEntryBrowseBox::m_nCurrentRow
private

Definition at line 159 of file cnttab.cxx.

Referenced by PaintCell(), and SeekRow().

OUString SwEntryBrowseBox::m_sAlternative
private

Definition at line 145 of file cnttab.cxx.

Referenced by SwEntryBrowseBox().

OUString SwEntryBrowseBox::m_sCaseSensitive
private

Definition at line 149 of file cnttab.cxx.

Referenced by SwEntryBrowseBox().

OUString SwEntryBrowseBox::m_sComment
private

Definition at line 148 of file cnttab.cxx.

Referenced by SwEntryBrowseBox().

OUString SwEntryBrowseBox::m_sNo
private

Definition at line 152 of file cnttab.cxx.

Referenced by GetCellText(), GetOptimalColWidths(), and SwEntryBrowseBox().

OUString SwEntryBrowseBox::m_sPrimKey
private

Definition at line 146 of file cnttab.cxx.

Referenced by SwEntryBrowseBox().

OUString SwEntryBrowseBox::m_sSearch
private

Definition at line 144 of file cnttab.cxx.

Referenced by SwEntryBrowseBox().

OUString SwEntryBrowseBox::m_sSecKey
private

Definition at line 147 of file cnttab.cxx.

Referenced by SwEntryBrowseBox().

OUString SwEntryBrowseBox::m_sWordOnly
private

Definition at line 150 of file cnttab.cxx.

Referenced by SwEntryBrowseBox().

OUString SwEntryBrowseBox::m_sYes
private

Definition at line 151 of file cnttab.cxx.

Referenced by GetCellText(), GetOptimalColWidths(), InitController(), and SwEntryBrowseBox().

::svt::CellControllerRef SwEntryBrowseBox::m_xCheckController
private
::svt::CellControllerRef SwEntryBrowseBox::m_xController
private

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