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

#include <SelectionBrowseBox.hxx>

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

Public Member Functions

 OSelectionBrowseBox (vcl::Window *pParent)
 
virtual ~OSelectionBrowseBox () override
 
virtual void dispose () override
 
void initialize ()
 
OTableFieldDescRef InsertField (const OJoinExchangeData &jxdSource)
 
OTableFieldDescRef InsertField (const OTableFieldDescRef &rInfo, sal_uInt16 _nColumnPosition=BROWSER_INVALIDID, bool bVis=true, bool bActivate=true)
 
void InsertColumn (const OTableFieldDescRef &pEntry, sal_uInt16 &_nColumnPosition)
 
void RemoveColumn (sal_uInt16 _nColumnId)
 
void DeleteFields (const OUString &rAliasName)
 
bool HasFieldByAliasName (std::u16string_view rFieldName, OTableFieldDescRef const &rInfo) const
 
void AddGroupBy (const OTableFieldDescRef &rInfo)
 
void AddCondition (const OTableFieldDescRef &rInfo, const OUString &rValue, const sal_uInt16 nLevel, bool _bAddOrOnOneLine)
 
void DuplicateConditionLevel (const sal_uInt16 nLevel)
 
void AddOrder (const OTableFieldDescRef &rInfo, const EOrderDir eDir, sal_uInt32 _nCurrentPos)
 
void ClearAll ()
 
OTableFieldDescRef const & AppendNewCol (sal_uInt16 nCnt=1)
 
bool Save ()
 
OQueryDesignViewgetDesignView ()
 
OQueryDesignViewgetDesignView () const
 
sal_uInt16 FieldsCount ()
 
void SetColWidth (sal_uInt16 nColId, tools::Long lNewWidth)
 
OUString GetCellContents (sal_Int32 nCellIndex, sal_uInt16 nColId)
 
void SetCellContents (sal_Int32 nCellIndex, sal_uInt16 nColId, const OUString &strNewText)
 
sal_Int32 GetNoneVisibleRows () const
 
void SetNoneVisibleRow (sal_Int32 nRows)
 
bool IsRowVisible (sal_uInt16 _nWhich) const
 
void SetRowVisible (sal_uInt16 _nWhich, bool _bVis)
 
void SetReadOnly (bool bRO)
 
Size CalcOptimalSize (const Size &_rAvailable)
 
bool isPasteAllowed () const
 
bool isCutAllowed () const
 
bool isCopyAllowed () const
 
void cut ()
 
void paste ()
 
void copy ()
 
virtual void GetFocus () override
 
virtual void DeactivateCell (bool bUpdate=true) override
 
virtual void ColumnMoved (sal_uInt16 nColId) override
 
void ColumnMoved (sal_uInt16 nColId, bool _bCreateUndo)
 
void Fill ()
 
void PreFill ()
 
void EnterUndoMode ()
 Disables the generation of undo actions. More...
 
void LeaveUndoMode ()
 Enables the generation of undo actions. More...
 
virtual OUString GetCellText (sal_Int32 _nRow, sal_uInt16 _nColId) const override
 GetCellText returns the text at the given position. More...
 
virtual OUString GetRowDescription (sal_Int32 _nRow) const override
 returns the description of the row. More...
 
virtual OUString GetAccessibleObjectName (AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override
 return the name of the specified object. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCell (sal_Int32 nRow, sal_uInt16 nColumnId) override
 Creates the accessible object of a data table cell. More...
 
- Public Member Functions inherited from svt::EditBrowseBox
 EditBrowseBox (vcl::Window *pParent, EditBrowseBoxFlags nBrowserFlags, WinBits nBits, BrowserMode nMode=BrowserMode::NONE)
 
virtual ~EditBrowseBox () override
 
virtual void dispose () override
 
bool IsEditing () const
 
void InvalidateStatusCell (sal_Int32 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 (sal_Int32 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
 
virtual bool ProcessKey (const KeyEvent &rEvt) override
 
virtual void ChildFocusIn () override
 
virtual void ChildFocusOut () override
 
css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCheckBoxCell (sal_Int32 _nRow, sal_uInt16 _nColumnPos, const TriState &eState)
 
bool ControlHasFocus () const
 
- Public Member Functions inherited from BrowseBox
virtual sal_Int32 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 KeyInput (const KeyEvent &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, SystemTextColorFlags 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 void Select ()
 
virtual void DoubleClick (const BrowserMouseEvent &rEvt)
 
virtual bool IsCursorMoveAllowed (sal_Int32 nNewRow, sal_uInt16 nNewColId) const
 
virtual void CursorMoved ()
 
virtual void ColumnMoved (sal_uInt16 nColId)
 
virtual void ColumnResized (sal_uInt16 nColId)
 
virtual void RowHeightChanged ()
 
virtual tools::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, tools::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 (tools::Long nPixel)
 
tools::Long GetDataRowHeight () const
 
void SetTitleLines (sal_uInt16 nLines)
 
tools::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
 
sal_Int32 ScrollColumns (sal_Int32 nColumns)
 
sal_Int32 ScrollRows (sal_Int32 nRows)
 
void MakeFieldVisible (sal_Int32 nRow, sal_uInt16 nColId)
 
sal_Int32 GetCurRow () const
 
sal_uInt16 GetCurColumnId () const
 
bool GoToRow (sal_Int32 nRow)
 
bool GoToColumnId (sal_uInt16 nColId)
 
bool GoToRowColumnId (sal_Int32 nRow, sal_uInt16 nColId)
 
virtual void SetNoSelection () override
 
virtual void SelectAll () override
 
virtual void SelectRow (sal_Int32 nRow, bool _bSelect=true, bool bExpand=true) override
 
void SelectColumnPos (sal_uInt16 nCol, bool _bSelect=true)
 
void SelectColumnId (sal_uInt16 nColId)
 
sal_Int32 GetSelectRowCount () const
 
sal_uInt16 GetSelectColumnCount () const
 
virtual bool IsRowSelected (sal_Int32 nRow) const override
 
bool IsColumnSelected (sal_uInt16 nColumnId) const
 
sal_Int32 FirstSelectedRow ()
 
sal_Int32 LastSelectedRow ()
 
sal_Int32 NextSelectedRow ()
 
const MultiSelectionGetColumnSelection () const
 
const MultiSelectionGetSelection () const
 
sal_Int32 FirstSelectedColumn () const
 
bool IsResizing () const
 
BrowserDataWinGetDataWindow () const
 
tools::Rectangle GetRowRectPixel (sal_Int32 nRow) const
 
tools::Rectangle GetFieldRectPixel (sal_Int32 nRow, sal_uInt16 nColId, bool bRelToBrowser=true) const
 
bool IsFieldVisible (sal_Int32 nRow, sal_uInt16 nColId, bool bComplete=false) const
 
sal_Int32 GetRowAtYPosPixel (tools::Long nY, bool bRelToBrowser=true) const
 
sal_uInt16 GetColumnAtXPosPixel (tools::Long nX) const
 
void Clear ()
 
void RowRemoved (sal_Int32 nRow, sal_Int32 nNumRows=1, bool bDoPaint=true)
 
void RowModified (sal_Int32 nRow, sal_uInt16 nColId=BROWSER_INVALIDID)
 
void RowInserted (sal_Int32 nRow, sal_Int32 nNumRows=1, bool bDoPaint=true, bool bKeepSelection=false)
 
bool ReserveControlArea (sal_uInt16 nWidth=USHRT_MAX)
 
tools::Rectangle GetControlArea () const
 
virtual bool ProcessKey (const KeyEvent &rEvt)
 
virtual void ChildFocusIn ()
 
virtual void ChildFocusOut ()
 
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
 
virtual OUString GetCellText (sal_Int32 _nRow, sal_uInt16 _nColId) 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 GetFieldRectPixel (sal_Int32 _nRowId, sal_uInt16 _nColId, bool _bIsHeader, bool _bOnScreen) 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 (AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override
 
virtual OUString GetAccessibleObjectDescription (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 (sal_Int64 &rStateSet, AccessibleBrowseBoxObjType eObjType) const override
 
virtual void FillAccessibleStateSetForCell (sal_Int64 &_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 (sal_Int32 _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 (sal_Int32 _nRow, sal_uInt16 _nColPos) const override
 
virtual bool GetGlyphBoundRects (const Point &rOrigin, const OUString &rStr, int nIndex, int nLen, std::vector< tools::Rectangle > &rVector) override
 
virtual tools::Rectangle GetWindowExtentsAbsolute () const override
 
virtual tools::Rectangle GetWindowExtentsRelative (const vcl::Window &rRelativeWindow) 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

 DECL_LINK (OnInvalidateTimer, Timer *, void)
 
virtual bool SeekRow (sal_Int32 nRow) override
 
virtual void PaintStatusCell (OutputDevice &rDev, const tools::Rectangle &rRect) const override
 
virtual void PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColumnId) const override
 
virtual sal_Int8 AcceptDrop (const BrowserAcceptDropEvent &rEvt) override
 
virtual sal_Int8 ExecuteDrop (const BrowserExecuteDropEvent &rEvt) override
 
virtual void MouseButtonDown (const BrowserMouseEvent &rEvt) override
 
virtual void MouseButtonUp (const BrowserMouseEvent &rEvt) override
 
virtual void KeyInput (const KeyEvent &rEvt) override
 
virtual void Command (const CommandEvent &rEvt) override
 
virtual ::svt::CellControllerGetController (sal_Int32 nRow, sal_uInt16 nCol) override
 
virtual void InitController (::svt::CellControllerRef &rController, sal_Int32 nRow, sal_uInt16 nCol) override
 
virtual void CellModified () override
 
virtual bool SaveModified () override
 
virtual void Init () override
 
virtual void ColumnResized (sal_uInt16 nColId) override
 
virtual sal_uInt32 GetTotalCellWidth (sal_Int32 nRow, sal_uInt16 nColId) override
 
virtual VclPtr< BrowserHeaderimp_CreateHeaderBar (BrowseBox *pParent) override
 
void stopTimer ()
 
void startTimer ()
 
OTableFieldDescRef FindFirstFreeCol (sal_uInt16 &_rColumnPosition)
 
void CheckFreeColumns (sal_uInt16 &_rColumnPosition)
 
void RemoveField (sal_uInt16 nId)
 
tools::Rectangle GetInvalidRect (sal_uInt16 nColId)
 
sal_Int32 GetRealRow (sal_Int32 nRow) const
 
sal_Int32 GetBrowseRow (sal_Int32 nRowId) const
 
bool GetFunctionName (sal_uInt32 _nFunctionTokenId, OUString &rFkt)
 
void appendUndoAction (const OUString &_rOldValue, std::u16string_view _rNewValue, sal_Int32 _nRow, bool &_bListAction)
 
void appendUndoAction (const OUString &_rOldValue, std::u16string_view _rNewValue, sal_Int32 _nRow)
 
OTableFieldsgetFields () const
 
void setTextCellContext (const OTableFieldDescRef &_rEntry, const OUString &_sText, const OUString &_sHelpId)
 
void invalidateUndoRedo ()
 
OTableFieldDescRef getEntry (OTableFields::size_type _nPos)
 
void adjustSelectionMode (bool _bClickedOntoHeader, bool _bClickedOntoHandleCol)
 
bool saveField (OUString &_sFieldName, OTableFieldDescRef const &_pEntry, bool &_bListAction)
 save the field change in save modified More...
 
bool fillEntryTable (OTableFieldDescRef const &_pEntry, const OUString &_sTableName)
 sets the table window at the _pEntry More...
 
bool fillColumnRef (const ::connectivity::OSQLParseNode *_pColumnRef, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, OTableFieldDescRef const &_pEntry, bool &_bListAction)
 uses the parse node to fill all information into the field More...
 
bool fillColumnRef (const OUString &_sColumnName, std::u16string_view _sTableRange, const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_xMetaData, OTableFieldDescRef const &_pEntry, bool &_bListAction)
 
void notifyTableFieldChanged (const OUString &_sOldAlias, std::u16string_view _sAlias, bool &_bListAction, sal_uInt16 _nColumnId)
 append an undo action for the table field More...
 
void notifyFunctionFieldChanged (const OUString &_sOldFunctionName, std::u16string_view _sFunctionName, bool &_bListAction, sal_uInt16 _nColumnId)
 append an undo action for the function field More...
 
void clearEntryFunctionField (std::u16string_view _sFieldName, OTableFieldDescRef const &_pEntry, bool &_bListAction, sal_uInt16 _nColumnId)
 clears the function fields of the submitted entry if it doesn't match the SQL standard and append an undo action. More...
 
void setFunctionCell (OTableFieldDescRef const &_pEntry)
 remove or insert the necessary function types More...
 

Static Private Member Functions

static void enableControl (const OTableFieldDescRef &_rEntry, Window *_pControl)
 

Private Attributes

std::vector< bool > m_bVisibleRow
 
Timer m_timerInvalidate
 
sal_Int32 m_nSeekRow
 
BrowserMode m_nMode
 
VclPtr< ::svt::EditControlm_pTextCell
 
VclPtr< ::svt::CheckBoxControlm_pVisibleCell
 
VclPtr< ::svt::ComboBoxControlm_pFieldCell
 
VclPtr< ::svt::ListBoxControlm_pFunctionCell
 
VclPtr< ::svt::ListBoxControlm_pTableCell
 
VclPtr< ::svt::ListBoxControlm_pOrderCell
 
sal_Int32 m_nMaxColumns
 
OUString m_aFunctionStrings
 
sal_uInt16 m_nVisibleCount
 
sal_uInt32 m_nLastSortColumn
 
bool m_bOrderByUnRelated
 
bool m_bGroupByUnRelated
 
bool m_bStopTimer
 
bool m_bWasEditing
 
bool m_bDisableErrorBox
 
bool m_bInUndoMode
 

Friends

class OQueryDesignView
 

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
 
sal_Int32 nSel
 
- Static Public Attributes inherited from BrowseBox
static const sal_uInt16 HandleColumnId
 
- 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 Resize () override
 
virtual void ArrangeControls (sal_uInt16 &nX, sal_uInt16 nY)
 
virtual bool SeekRow (sal_Int32 nRow) override
 
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 (sal_Int32 nRow, sal_uInt16 nColId, bool bRelToBrowser=true) const
 
virtual sal_uInt32 GetTotalCellWidth (sal_Int32 nRow, sal_uInt16 nColId)
 
sal_uInt32 GetAutoColumnWidth (sal_uInt16 nColId)
 
virtual void PaintStatusCell (OutputDevice &rDev, const tools::Rectangle &rRect) const
 
virtual void PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColId) const=0
 
virtual RowStatus GetRowStatus (sal_Int32 nRow) const
 
virtual void RowHeightChanged () override
 
virtual void ImplStartTracking () override
 
virtual void ImplEndTracking () override
 
virtual bool CursorMoving (sal_Int32 nNewRow, sal_uInt16 nNewCol)
 
virtual void CursorMoved () override
 
virtual void CellModified ()
 
virtual bool SaveModified ()
 
virtual bool SaveRow ()
 
virtual bool IsModified () const
 
virtual CellControllerGetController (sal_Int32 nRow, sal_uInt16 nCol)
 
virtual void InitController (CellControllerRef &rController, sal_Int32 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 (sal_Int32 nNewRow, sal_uInt16 nNewColId) const override
 
void PaintTristate (const tools::Rectangle &rRect, const TriState &eState, bool _bEnabled=true) const
 
void AsynchGetFocus ()
 
void implCreateActiveAccessible ()
 
virtual void MouseButtonUp (const MouseEvent &rEvt) override
 
virtual void MouseButtonUp (const BrowserMouseEvent &rEvt)
 
virtual void MouseButtonDown (const MouseEvent &rEvt) override
 
virtual void MouseButtonDown (const BrowserMouseEvent &rEvt)
 
- Protected Member Functions inherited from BrowseBox
::vcl::IAccessibleFactorygetAccessibleFactory ()
 
sal_uInt16 ColCount () const
 
void SetRealRowCount (const OUString &rRealRowCount)
 
virtual bool SeekRow (sal_Int32 nRow)=0
 
void DrawCursor ()
 
void PaintData (vcl::Window const &rWin, vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
virtual void PaintField (vcl::RenderContext &rDev, const tools::Rectangle &rRect, sal_uInt16 nColumnId) const=0
 
virtual void VisibleRowsChanged (sal_Int32 nNewTopRow, sal_uInt16 nNumRows)
 
sal_uInt16 GetVisibleRows () const
 
sal_Int32 GetTopRow () const
 
sal_uInt16 GetFirstVisibleColNumber () const
 
void DoShowCursor ()
 
void DoHideCursor ()
 
short GetCursorHideCount () const
 
virtual VclPtr< BrowserHeaderCreateHeaderBar (BrowseBox *pParent)
 
void SetHeaderBar (BrowserHeader *)
 
tools::Long CalcReverseZoom (tools::Long nVal) const
 
const DataFlavorExVectorGetDataFlavors () const
 
bool IsDropFormatSupported (SotClipboardFormatId nFormat) const
 
void DisposeAccessible ()
 
virtual void ImplStartTracking ()
 
virtual void ImplEndTracking ()
 
- 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
 
- Protected Attributes inherited from BrowseBox
bool m_bNavigationBar
 

Detailed Description

Definition at line 53 of file SelectionBrowseBox.hxx.

Constructor & Destructor Documentation

◆ OSelectionBrowseBox()

OSelectionBrowseBox::OSelectionBrowseBox ( vcl::Window pParent)
explicit

◆ ~OSelectionBrowseBox()

OSelectionBrowseBox::~OSelectionBrowseBox ( )
overridevirtual

Definition at line 161 of file SelectionBrowseBox.cxx.

Member Function Documentation

◆ AcceptDrop()

sal_Int8 OSelectionBrowseBox::AcceptDrop ( const BrowserAcceptDropEvent rEvt)
overrideprivatevirtual

◆ AddCondition()

void OSelectionBrowseBox::AddCondition ( const OTableFieldDescRef rInfo,
const OUString &  rValue,
const sal_uInt16  nLevel,
bool  _bAddOrOnOneLine 
)

◆ AddGroupBy()

void OSelectionBrowseBox::AddGroupBy ( const OTableFieldDescRef rInfo)

◆ AddOrder()

void OSelectionBrowseBox::AddOrder ( const OTableFieldDescRef rInfo,
const EOrderDir  eDir,
sal_uInt32  _nCurrentPos 
)

◆ adjustSelectionMode()

void OSelectionBrowseBox::adjustSelectionMode ( bool  _bClickedOntoHeader,
bool  _bClickedOntoHandleCol 
)
private

◆ AppendNewCol()

OTableFieldDescRef const & OSelectionBrowseBox::AppendNewCol ( sal_uInt16  nCnt = 1)

◆ appendUndoAction() [1/2]

void OSelectionBrowseBox::appendUndoAction ( const OUString &  _rOldValue,
std::u16string_view  _rNewValue,
sal_Int32  _nRow 
)
private

◆ appendUndoAction() [2/2]

void OSelectionBrowseBox::appendUndoAction ( const OUString &  _rOldValue,
std::u16string_view  _rNewValue,
sal_Int32  _nRow,
bool &  _bListAction 
)
private

◆ CalcOptimalSize()

Size OSelectionBrowseBox::CalcOptimalSize ( const Size _rAvailable)

◆ CellModified()

void OSelectionBrowseBox::CellModified ( )
overrideprivatevirtual

◆ CheckFreeColumns()

void OSelectionBrowseBox::CheckFreeColumns ( sal_uInt16 &  _rColumnPosition)
private

Definition at line 1630 of file SelectionBrowseBox.cxx.

References AppendNewCol(), DEFAULT_QUERY_COLS, and FindFirstFreeCol().

Referenced by SaveModified().

◆ ClearAll()

void OSelectionBrowseBox::ClearAll ( )

◆ clearEntryFunctionField()

void OSelectionBrowseBox::clearEntryFunctionField ( std::u16string_view  _sFieldName,
OTableFieldDescRef const &  _pEntry,
bool &  _bListAction,
sal_uInt16  _nColumnId 
)
private

clears the function fields of the submitted entry if it doesn't match the SQL standard and append an undo action.

E.q. AGGREGATE functions are only valid when the field name isn't an asterisk

Parameters
_sFieldNameThe field name.
_pEntryThe entry to be cleared
_bListActionWhen <TRUE> a list action will be created.

Definition at line 579 of file SelectionBrowseBox.cxx.

References dbaui::FKT_NONE, GetFunctionName(), and notifyFunctionFieldChanged().

Referenced by saveField().

◆ ColumnMoved() [1/2]

virtual void dbaui::OSelectionBrowseBox::ColumnMoved ( sal_uInt16  nColId)
inlineoverridevirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 136 of file SelectionBrowseBox.hxx.

References ColumnMoved().

Referenced by ColumnMoved(), and InsertColumn().

◆ ColumnMoved() [2/2]

void OSelectionBrowseBox::ColumnMoved ( sal_uInt16  nColId,
bool  _bCreateUndo 
)

◆ ColumnResized()

void OSelectionBrowseBox::ColumnResized ( sal_uInt16  nColId)
overrideprivatevirtual

◆ Command()

void OSelectionBrowseBox::Command ( const CommandEvent rEvt)
overrideprivatevirtual

◆ copy()

void OSelectionBrowseBox::copy ( )

◆ CreateAccessibleCell()

Reference< XAccessible > OSelectionBrowseBox::CreateAccessibleCell ( sal_Int32  nRow,
sal_uInt16  nColumnId 
)
overridevirtual

Creates the accessible object of a data table cell.

Parameters
nRowThe row index of the cell.
nColumnIdThe column ID of the cell.
Returns
The XAccessible interface of the specified cell.

Reimplemented from BrowseBox.

Definition at line 2695 of file SelectionBrowseBox.cxx.

References BROW_VIS_ROW, BROWSER_INVALIDID, BrowseBox::CreateAccessibleCell(), svt::EditBrowseBox::CreateAccessibleCheckBoxCell(), getFields(), size, TRISTATE_FALSE, and TRISTATE_TRUE.

◆ cut()

void OSelectionBrowseBox::cut ( )

◆ DeactivateCell()

void OSelectionBrowseBox::DeactivateCell ( bool  bUpdate = true)
overridevirtual

◆ DECL_LINK()

dbaui::OSelectionBrowseBox::DECL_LINK ( OnInvalidateTimer  ,
Timer ,
void   
)
private

◆ DeleteFields()

void OSelectionBrowseBox::DeleteFields ( const OUString &  rAliasName)

◆ dispose()

void OSelectionBrowseBox::dispose ( void  )
overridevirtual

◆ DuplicateConditionLevel()

void OSelectionBrowseBox::DuplicateConditionLevel ( const sal_uInt16  nLevel)

◆ enableControl()

void OSelectionBrowseBox::enableControl ( const OTableFieldDescRef _rEntry,
Window _pControl 
)
staticprivate

◆ EnterUndoMode()

void dbaui::OSelectionBrowseBox::EnterUndoMode ( )
inline

Disables the generation of undo actions.

Definition at line 144 of file SelectionBrowseBox.hxx.

References m_bInUndoMode.

◆ ExecuteDrop()

sal_Int8 OSelectionBrowseBox::ExecuteDrop ( const BrowserExecuteDropEvent rEvt)
overrideprivatevirtual

◆ FieldsCount()

sal_uInt16 OSelectionBrowseBox::FieldsCount ( )

Definition at line 1602 of file SelectionBrowseBox.cxx.

References getFields(), and nCount.

◆ Fill()

void OSelectionBrowseBox::Fill ( )

◆ fillColumnRef() [1/2]

bool dbaui::OSelectionBrowseBox::fillColumnRef ( const ::connectivity::OSQLParseNode _pColumnRef,
const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection,
OTableFieldDescRef const &  _pEntry,
bool &  _bListAction 
)
private

uses the parse node to fill all information into the field

Parameters
_pColumnRefThe parse node used to fill the info into the field.
_xMetaDataUse to parse the node to a string.
_pEntryThe entry which will contain the necessary entries.
_bListActionWill be set to <TRUE> when we are in a list action otherwise <FALSE>
Returns
<TRUE> if an error occurred otherwise <FALSE>

Referenced by saveField(), and SaveModified().

◆ fillColumnRef() [2/2]

bool dbaui::OSelectionBrowseBox::fillColumnRef ( const OUString &  _sColumnName,
std::u16string_view  _sTableRange,
const css::uno::Reference< css::sdbc::XDatabaseMetaData > &  _xMetaData,
OTableFieldDescRef const &  _pEntry,
bool &  _bListAction 
)
private

◆ fillEntryTable()

bool OSelectionBrowseBox::fillEntryTable ( OTableFieldDescRef const &  _pEntry,
const OUString &  _sTableName 
)
private

sets the table window at the _pEntry

Parameters
_pEntryThe entry where the window should be set.
_sTableNameThe table name to search for.
Returns
<TRUE> if the table name was set otherwise <FALSE>

Definition at line 2619 of file SelectionBrowseBox.cxx.

References getDesignView(), dbaui::OTableWindow::GetTableName(), dbaui::OJoinDesignView::getTableView(), and dbaui::OJoinTableView::GetTabWinMap().

◆ FindFirstFreeCol()

OTableFieldDescRef OSelectionBrowseBox::FindFirstFreeCol ( sal_uInt16 &  _rColumnPosition)
private

Definition at line 1614 of file SelectionBrowseBox.cxx.

References BROWSER_INVALIDID, and getFields().

Referenced by CheckFreeColumns(), InsertColumn(), and saveField().

◆ GetAccessibleObjectName()

OUString OSelectionBrowseBox::GetAccessibleObjectName ( AccessibleBrowseBoxObjType  eObjType,
sal_Int32  _nPosition = -1 
) const
overridevirtual

return the name of the specified object.

Parameters
eObjTypeThe type to ask for
_nPositionThe position of a tablecell (index position), header bar column/row cell
Returns
The name of the specified object.

Reimplemented from BrowseBox.

Definition at line 2605 of file SelectionBrowseBox.cxx.

References BrowseBox::GetAccessibleObjectDescription(), and GetRowDescription().

◆ GetBrowseRow()

sal_Int32 OSelectionBrowseBox::GetBrowseRow ( sal_Int32  nRowId) const
private

◆ GetCellContents()

OUString OSelectionBrowseBox::GetCellContents ( sal_Int32  nCellIndex,
sal_uInt16  nColId 
)

◆ GetCellText()

OUString OSelectionBrowseBox::GetCellText ( sal_Int32  _nRow,
sal_uInt16  _nColId 
) const
overridevirtual

GetCellText returns the text at the given position.

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

Reimplemented from BrowseBox.

Definition at line 2108 of file SelectionBrowseBox.cxx.

References BROW_COLUMNALIAS_ROW, BROW_CRIT1_ROW, BROW_FIELD_ROW, BROW_FUNCTION_ROW, BROW_ORDER_ROW, BROW_TABLE_ROW, BROW_VIS_ROW, BROWSER_INVALIDID, DBA_RES, BrowseBox::GetColumnPos(), getFields(), m_aFunctionStrings, nPos, dbaui::ORDER_NONE, and size.

Referenced by GetCellContents(), GetTotalCellWidth(), and PaintCell().

◆ GetController()

CellController * OSelectionBrowseBox::GetController ( sal_Int32  nRow,
sal_uInt16  nCol 
)
overrideprivatevirtual

◆ getDesignView() [1/2]

OQueryDesignView * OSelectionBrowseBox::getDesignView ( )

◆ getDesignView() [2/2]

OQueryDesignView * OSelectionBrowseBox::getDesignView ( ) const

Definition at line 244 of file SelectionBrowseBox.cxx.

◆ getEntry()

OTableFieldDescRef OSelectionBrowseBox::getEntry ( OTableFields::size_type  _nPos)
private

◆ getFields()

OTableFields & OSelectionBrowseBox::getFields ( ) const
private

◆ GetFocus()

void OSelectionBrowseBox::GetFocus ( )
overridevirtual

◆ GetFunctionName()

bool OSelectionBrowseBox::GetFunctionName ( sal_uInt32  _nFunctionTokenId,
OUString &  rFkt 
)
private

◆ GetInvalidRect()

tools::Rectangle OSelectionBrowseBox::GetInvalidRect ( sal_uInt16  nColId)
private

◆ GetNoneVisibleRows()

sal_Int32 OSelectionBrowseBox::GetNoneVisibleRows ( ) const

Definition at line 2087 of file SelectionBrowseBox.cxx.

References i, m_bVisibleRow, and nVisibleRowMask.

◆ GetRealRow()

sal_Int32 OSelectionBrowseBox::GetRealRow ( sal_Int32  nRow) const
private

◆ GetRowDescription()

OUString OSelectionBrowseBox::GetRowDescription ( sal_Int32  _nRow) const
overridevirtual

returns the description of the row.

Parameters
_nRowThe row number.
Returns
The header text of the specified row.

Reimplemented from BrowseBox.

Definition at line 2595 of file SelectionBrowseBox.cxx.

References aLabel, BROW_CRIT2_ROW, DBA_RES, GetBrowseRow(), GetRealRow(), and nToken.

Referenced by GetAccessibleObjectName().

◆ GetTotalCellWidth()

sal_uInt32 OSelectionBrowseBox::GetTotalCellWidth ( sal_Int32  nRow,
sal_uInt16  nColId 
)
overrideprivatevirtual

◆ HasFieldByAliasName()

bool OSelectionBrowseBox::HasFieldByAliasName ( std::u16string_view  rFieldName,
OTableFieldDescRef const &  rInfo 
) const

Definition at line 2707 of file SelectionBrowseBox.cxx.

References getFields().

◆ imp_CreateHeaderBar()

VclPtr< BrowserHeader > OSelectionBrowseBox::imp_CreateHeaderBar ( BrowseBox pParent)
overrideprivatevirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 290 of file SelectionBrowseBox.cxx.

References VclPtr< class reference_type >::Create().

◆ Init()

void OSelectionBrowseBox::Init ( void  )
overrideprivatevirtual

◆ InitController()

void OSelectionBrowseBox::InitController ( ::svt::CellControllerRef rController,
sal_Int32  nRow,
sal_uInt16  nCol 
)
overrideprivatevirtual

◆ initialize()

void OSelectionBrowseBox::initialize ( )

◆ InsertColumn()

void OSelectionBrowseBox::InsertColumn ( const OTableFieldDescRef pEntry,
sal_uInt16 &  _nColumnPosition 
)

◆ InsertField() [1/2]

OTableFieldDescRef OSelectionBrowseBox::InsertField ( const OJoinExchangeData jxdSource)

◆ InsertField() [2/2]

OTableFieldDescRef dbaui::OSelectionBrowseBox::InsertField ( const OTableFieldDescRef rInfo,
sal_uInt16  _nColumnPosition = BROWSER_INVALIDID,
bool  bVis = true,
bool  bActivate = true 
)

◆ invalidateUndoRedo()

void OSelectionBrowseBox::invalidateUndoRedo ( )
private

◆ isCopyAllowed()

bool OSelectionBrowseBox::isCopyAllowed ( ) const

Definition at line 2452 of file SelectionBrowseBox.cxx.

References isCutAllowed().

◆ isCutAllowed()

bool OSelectionBrowseBox::isCutAllowed ( ) const

◆ isPasteAllowed()

bool OSelectionBrowseBox::isPasteAllowed ( ) const

◆ IsRowVisible()

bool OSelectionBrowseBox::IsRowVisible ( sal_uInt16  _nWhich) const

Definition at line 2015 of file SelectionBrowseBox.cxx.

References m_bVisibleRow.

Referenced by Command(), and SetCellContents().

◆ KeyInput()

void OSelectionBrowseBox::KeyInput ( const KeyEvent rEvt)
overrideprivatevirtual

◆ LeaveUndoMode()

void dbaui::OSelectionBrowseBox::LeaveUndoMode ( )
inline

Enables the generation of undo actions.

Definition at line 147 of file SelectionBrowseBox.hxx.

References m_bInUndoMode.

◆ MouseButtonDown()

void OSelectionBrowseBox::MouseButtonDown ( const BrowserMouseEvent rEvt)
overrideprivatevirtual

◆ MouseButtonUp()

void OSelectionBrowseBox::MouseButtonUp ( const BrowserMouseEvent rEvt)
overrideprivatevirtual

◆ notifyFunctionFieldChanged()

void OSelectionBrowseBox::notifyFunctionFieldChanged ( const OUString &  _sOldFunctionName,
std::u16string_view  _sFunctionName,
bool &  _bListAction,
sal_uInt16  _nColumnId 
)
private

append an undo action for the function field

Parameters
_sOldFunctionNameThe old value.
_sFunctionNameThe new function name.
_bListActionWill be set to <TRUE> when we are in a list action otherwise <FALSE>

Definition at line 571 of file SelectionBrowseBox.cxx.

References appendUndoAction(), BROW_FUNCTION_ROW, GetBrowseRow(), m_bVisibleRow, BrowseBox::RowModified(), and SetRowVisible().

Referenced by clearEntryFunctionField(), and saveField().

◆ notifyTableFieldChanged()

void OSelectionBrowseBox::notifyTableFieldChanged ( const OUString &  _sOldAlias,
std::u16string_view  _sAlias,
bool &  _bListAction,
sal_uInt16  _nColumnId 
)
private

append an undo action for the table field

Parameters
_sOldAliasThe old table alias.
_sAliasThe new alias name.
_bListActionWill be set to <TRUE> when we are in a list action otherwise <FALSE>

Definition at line 564 of file SelectionBrowseBox.cxx.

References appendUndoAction(), BROW_TABLE_ROW, GetBrowseRow(), m_bVisibleRow, and BrowseBox::RowModified().

Referenced by saveField().

◆ PaintCell()

void OSelectionBrowseBox::PaintCell ( OutputDevice rDev,
const tools::Rectangle rRect,
sal_uInt16  nColumnId 
) const
overrideprivatevirtual

◆ PaintStatusCell()

void OSelectionBrowseBox::PaintStatusCell ( OutputDevice rDev,
const tools::Rectangle rRect 
) const
overrideprivatevirtual

◆ paste()

void OSelectionBrowseBox::paste ( )

◆ PreFill()

void OSelectionBrowseBox::PreFill ( )

◆ RemoveColumn()

void OSelectionBrowseBox::RemoveColumn ( sal_uInt16  _nColumnId)

◆ RemoveField()

void OSelectionBrowseBox::RemoveField ( sal_uInt16  nId)
private

◆ Save()

bool OSelectionBrowseBox::Save ( )

Definition at line 1859 of file SelectionBrowseBox.cxx.

References svt::EditBrowseBox::IsModified(), and SaveModified().

◆ saveField()

bool OSelectionBrowseBox::saveField ( OUString &  _sFieldName,
OTableFieldDescRef const &  _pEntry,
bool &  _bListAction 
)
private

save the field change in save modified

Parameters
_sFieldNameThe field name inserted by the user.
_pEntryThe entry which will contain the necessary entries.
_bListActionWill be set to <TRUE> when we are in a list action otherwise <FALSE>
Returns
<TRUE> if an error occurred otherwise <FALSE>

Definition at line 647 of file SelectionBrowseBox.cxx.

References AppendNewCol(), appendUndoAction(), BROW_COLUMNALIAS_ROW, BROWSER_INVALIDID, clearEntryFunctionField(), connectivity::OSQLParseNode::count(), DBA_RES, fillColumnRef(), dbaui::OQueryDesignView::fillFunctionInfo(), FindFirstFreeCol(), dbaui::OQueryTableView::FindTableFromField(), dbaui::FKT_AGGREGATE, dbaui::FKT_NUMERIC, dbaui::FKT_OTHER, GetBrowseRow(), connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseTreeIterator::getColumnAlias(), BrowseBox::GetColumnId(), connectivity::OSQLParser::getContext(), dbaui::OJoinDesignView::getController(), BrowseBox::GetCurColumnId(), getDesignView(), GetFrameWeld(), GetFunctionName(), connectivity::OSQLParseNode::getKnownRuleID(), dbaui::OQueryController::getParser(), connectivity::OSQLParseNode::getTokenID(), i, InsertField(), m_aFunctionStrings, m_bVisibleRow, nCount, notifyFunctionFieldChanged(), notifyTableFieldChanged(), connectivity::OSQLParseNode::parseNodeToStr(), connectivity::OSQLParser::parseTree(), BrowseBox::RowModified(), weld::DialogController::run(), SQL_ISPUNCTUATION, SQL_ISRULE, SQL_ISRULEOR3, connectivity::OSQLParseNode::subquery, and dbaui::TAB_NORMAL_FIELD.

Referenced by SaveModified().

◆ SaveModified()

bool OSelectionBrowseBox::SaveModified ( )
overrideprivatevirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 899 of file SelectionBrowseBox.cxx.

References appendUndoAction(), begin, BROW_COLUMNALIAS_ROW, BROW_CRIT1_ROW, BROW_FIELD_ROW, BROW_FUNCTION_ROW, BROW_ORDER_ROW, BROW_TABLE_ROW, BROW_VIS_ROW, CheckFreeColumns(), svt::EditBrowseBox::Controller(), end, SfxUndoManager::EnterListAction(), Exception, fillColumnRef(), weld::ComboBox::find_text(), dbaui::FKT_AGGREGATE, weld::ComboBox::get_active(), weld::ComboBox::get_active_text(), weld::ComboBox::get_text(), GetBrowseRow(), BrowseBox::GetColumnPos(), getConnection(), dbaui::OJoinDesignView::getController(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), dbaui::OQueryDesignView::getDecimalSeparator(), getDesignView(), getEntry(), getFields(), GetFrameWeld(), getLocale(), dbaui::OQueryDesignView::getLocale(), dbaui::getNumberFormatter(), dbaui::OQueryDesignView::getPredicateTreeFromEntry(), GetRealRow(), BrowseBox::GetRowCount(), dbaui::OTableWindow::GetTableName(), dbaui::OJoinDesignView::getTableView(), dbaui::OJoinTableView::GetTabWinMap(), dbaui::OSingleDocumentController::GetUndoManager(), i, ID_BROWSER_QUERY_EXECUTE, m_aFunctionStrings, m_bDisableErrorBox, m_bGroupByUnRelated, m_bInUndoMode, m_bOrderByUnRelated, m_bVisibleRow, m_nVisibleCount, m_pFieldCell, m_pFunctionCell, m_pOrderCell, m_pTableCell, m_pTextCell, m_pVisibleCell, o3tl::make_unsigned(), nPos, nType, dbaui::ORDER_NONE, connectivity::OSQLParser::predicateTree(), PROPERTY_TYPE(), BrowseBox::RowInserted(), BrowseBox::RowModified(), weld::DialogController::run(), saveField(), size, comphelper::string::stripStart(), TRISTATE_FALSE, u, and xColumn.

Referenced by AcceptDrop(), cut(), GetCellContents(), and Save().

◆ SeekRow()

bool OSelectionBrowseBox::SeekRow ( sal_Int32  nRow)
overrideprivatevirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 1223 of file SelectionBrowseBox.cxx.

References m_nSeekRow, and m_nVisibleCount.

◆ SetCellContents()

void OSelectionBrowseBox::SetCellContents ( sal_Int32  nCellIndex,
sal_uInt16  nColId,
const OUString &  strNewText 
)

◆ SetColWidth()

void OSelectionBrowseBox::SetColWidth ( sal_uInt16  nColId,
tools::Long  lNewWidth 
)

◆ setFunctionCell()

void OSelectionBrowseBox::setFunctionCell ( OTableFieldDescRef const &  _pEntry)
private

◆ SetNoneVisibleRow()

void OSelectionBrowseBox::SetNoneVisibleRow ( sal_Int32  nRows)

Definition at line 2100 of file SelectionBrowseBox.cxx.

References i, m_bVisibleRow, and nVisibleRowMask.

◆ SetReadOnly()

void OSelectionBrowseBox::SetReadOnly ( bool  bRO)

◆ SetRowVisible()

void OSelectionBrowseBox::SetRowVisible ( sal_uInt16  _nWhich,
bool  _bVis 
)

◆ setTextCellContext()

void OSelectionBrowseBox::setTextCellContext ( const OTableFieldDescRef _rEntry,
const OUString &  _sText,
const OUString &  _sHelpId 
)
private

◆ startTimer()

void OSelectionBrowseBox::startTimer ( )
private

◆ stopTimer()

void OSelectionBrowseBox::stopTimer ( )
private

Friends And Related Function Documentation

◆ OQueryDesignView

friend class OQueryDesignView
friend

Definition at line 55 of file SelectionBrowseBox.hxx.

Member Data Documentation

◆ m_aFunctionStrings

OUString dbaui::OSelectionBrowseBox::m_aFunctionStrings
private

◆ m_bDisableErrorBox

bool dbaui::OSelectionBrowseBox::m_bDisableErrorBox
private

Definition at line 77 of file SelectionBrowseBox.hxx.

Referenced by AcceptDrop(), and SaveModified().

◆ m_bGroupByUnRelated

bool dbaui::OSelectionBrowseBox::m_bGroupByUnRelated
private

Definition at line 74 of file SelectionBrowseBox.hxx.

Referenced by AddCondition(), AddGroupBy(), initialize(), and SaveModified().

◆ m_bInUndoMode

bool dbaui::OSelectionBrowseBox::m_bInUndoMode
private

◆ m_bOrderByUnRelated

bool dbaui::OSelectionBrowseBox::m_bOrderByUnRelated
private

◆ m_bStopTimer

bool dbaui::OSelectionBrowseBox::m_bStopTimer
private

Definition at line 75 of file SelectionBrowseBox.hxx.

Referenced by startTimer(), and stopTimer().

◆ m_bVisibleRow

std::vector<bool> dbaui::OSelectionBrowseBox::m_bVisibleRow
private

◆ m_bWasEditing

bool dbaui::OSelectionBrowseBox::m_bWasEditing
private

Definition at line 76 of file SelectionBrowseBox.hxx.

Referenced by DeactivateCell(), and GetFocus().

◆ m_nLastSortColumn

sal_uInt32 dbaui::OSelectionBrowseBox::m_nLastSortColumn
private

Definition at line 72 of file SelectionBrowseBox.hxx.

Referenced by AddOrder(), and ClearAll().

◆ m_nMaxColumns

sal_Int32 dbaui::OSelectionBrowseBox::m_nMaxColumns
private

Definition at line 68 of file SelectionBrowseBox.hxx.

Referenced by Init().

◆ m_nMode

BrowserMode dbaui::OSelectionBrowseBox::m_nMode
private

Definition at line 60 of file SelectionBrowseBox.hxx.

Referenced by adjustSelectionMode(), Init(), OSelectionBrowseBox(), and SetReadOnly().

◆ m_nSeekRow

sal_Int32 dbaui::OSelectionBrowseBox::m_nSeekRow
private

Definition at line 59 of file SelectionBrowseBox.hxx.

Referenced by PaintCell(), PaintStatusCell(), and SeekRow().

◆ m_nVisibleCount

sal_uInt16 dbaui::OSelectionBrowseBox::m_nVisibleCount
private

◆ m_pFieldCell

VclPtr< ::svt::ComboBoxControl> dbaui::OSelectionBrowseBox::m_pFieldCell
private

◆ m_pFunctionCell

VclPtr< ::svt::ListBoxControl> dbaui::OSelectionBrowseBox::m_pFunctionCell
private

◆ m_pOrderCell

VclPtr< ::svt::ListBoxControl> dbaui::OSelectionBrowseBox::m_pOrderCell
private

◆ m_pTableCell

VclPtr< ::svt::ListBoxControl> dbaui::OSelectionBrowseBox::m_pTableCell
private

◆ m_pTextCell

VclPtr< ::svt::EditControl> dbaui::OSelectionBrowseBox::m_pTextCell
private

◆ m_pVisibleCell

VclPtr< ::svt::CheckBoxControl> dbaui::OSelectionBrowseBox::m_pVisibleCell
private

◆ m_timerInvalidate

Timer dbaui::OSelectionBrowseBox::m_timerInvalidate
private

Definition at line 57 of file SelectionBrowseBox.hxx.

Referenced by OSelectionBrowseBox(), startTimer(), and stopTimer().


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