LibreOffice Module dbaccess (master) 1
|
#include <SelectionBrowseBox.hxx>
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 () |
OQueryDesignView * | getDesignView () |
OQueryDesignView * | getDesignView () 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 CellControllerRef & | Controller () 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::Font & | GetFont () 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 MultiSelection * | GetColumnSelection () const |
const MultiSelection * | GetSelection () const |
sal_Int32 | FirstSelectedColumn () const |
bool | IsResizing () const |
BrowserDataWin & | GetDataWindow () 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::Window * | GetAccessibleParentWindow () const override |
virtual vcl::Window * | GetWindowInstance () 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::CellController * | GetController (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< BrowserHeader > | imp_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) |
OTableFields & | getFields () 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::EditControl > | m_pTextCell |
VclPtr< ::svt::CheckBoxControl > | m_pVisibleCell |
VclPtr< ::svt::ComboBoxControl > | m_pFieldCell |
VclPtr< ::svt::ListBoxControl > | m_pFunctionCell |
VclPtr< ::svt::ListBoxControl > | m_pTableCell |
VclPtr< ::svt::ListBoxControl > | m_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 | |
MultiSelection * | pSel |
sal_Int32 | nSel |
Static Public Attributes inherited from BrowseBox | |
static const sal_uInt16 | HandleColumnId |
Protected Member Functions inherited from svt::EditBrowseBox | |
BrowserMouseEventPtr & | getMouseEvent () |
BrowserHeader * | GetHeaderBar () const |
virtual VclPtr< BrowserHeader > | CreateHeaderBar (BrowseBox *pParent) override |
virtual VclPtr< BrowserHeader > | imp_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 CellController * | GetController (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::IAccessibleFactory & | getAccessibleFactory () |
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< BrowserHeader > | CreateHeaderBar (BrowseBox *pParent) |
void | SetHeaderBar (BrowserHeader *) |
tools::Long | CalcReverseZoom (tools::Long nVal) const |
const DataFlavorExVector & | GetDataFlavors () 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< BrowserHeader > | pHeader |
Protected Attributes inherited from BrowseBox | |
bool | m_bNavigationBar |
Definition at line 53 of file SelectionBrowseBox.hxx.
|
explicit |
Definition at line 104 of file SelectionBrowseBox.cxx.
References weld::ComboBox::append_text(), BROW_FUNCTION_ROW, BROW_ROW_CNT, COLUMNSELECTION, VclPtr< class reference_type >::Create(), DBA_RES, BrowseBox::GetDataWindow(), OutputDevice::GetDefaultFont(), vcl::Window::GetSettings(), o3tl::getToken(), HID_CTL_QRYDGNCRIT, HID_QRYDGN_ROW_FIELD, HID_QRYDGN_ROW_FUNCTION, HID_QRYDGN_ROW_ORDER, HID_QRYDGN_ROW_TABLE, HID_QRYDGN_ROW_VISIBLE, HIDECURSOR, HIDESELECT, HLINES, KEEPHIGHLIGHT, LINK, m_bVisibleRow, m_nMode, m_pFieldCell, m_pFunctionCell, m_pOrderCell, m_pTableCell, m_pTextCell, m_pVisibleCell, m_timerInvalidate, NO_HANDLE_COLUMN_CONTENT, vcl::Font::SetFontSize(), SetHelpId(), Timer::SetInvokeHandler(), Timer::SetTimeout(), BrowseBox::SetTitleFont(), Timer::Start(), VLINES, and WB_3DLOOK.
|
overridevirtual |
Definition at line 161 of file SelectionBrowseBox.cxx.
|
overrideprivatevirtual |
Reimplemented from BrowseBox.
Definition at line 1379 of file SelectionBrowseBox.cxx.
References DeactivateCell(), DND_ACTION_LINK, DND_ACTION_NONE, BrowseBox::GetDataFlavors(), BrowseEvent::GetRow(), svt::EditBrowseBox::IsEditing(), dbaui::OJoinExchObj::isFormatAvailable(), m_bDisableErrorBox, and SaveModified().
void OSelectionBrowseBox::AddCondition | ( | const OTableFieldDescRef & | rInfo, |
const OUString & | rValue, | ||
const sal_uInt16 | nLevel, | ||
bool | _bAddOrOnOneLine | ||
) |
Definition at line 1716 of file SelectionBrowseBox.cxx.
References BROW_CRIT1_ROW, BROWSER_INVALIDID, getConnection(), dbaui::OJoinDesignView::getController(), getDesignView(), getFields(), BrowseBox::GetRowCount(), InsertField(), m_bGroupByUnRelated, m_bVisibleRow, m_nVisibleCount, and BrowseBox::RowInserted().
void OSelectionBrowseBox::AddGroupBy | ( | const OTableFieldDescRef & | rInfo | ) |
Definition at line 1640 of file SelectionBrowseBox.cxx.
References BROWSER_INVALIDID, getConnection(), dbaui::OJoinDesignView::getController(), getDesignView(), getFields(), InsertField(), and m_bGroupByUnRelated.
void OSelectionBrowseBox::AddOrder | ( | const OTableFieldDescRef & | rInfo, |
const EOrderDir | eDir, | ||
sal_uInt32 | _nCurrentPos | ||
) |
Definition at line 1801 of file SelectionBrowseBox.cxx.
References BROWSER_INVALIDID, getConnection(), dbaui::OJoinDesignView::getController(), getDesignView(), getFields(), InsertField(), m_bOrderByUnRelated, m_nLastSortColumn, nPos, and SORT_COLUMN_NONE.
|
private |
Definition at line 1319 of file SelectionBrowseBox.cxx.
References BrowseBox::GetSelectColumnCount(), m_nMode, BrowseBox::SetMode(), and BrowseBox::SetNoSelection().
Referenced by Command(), and MouseButtonDown().
OTableFieldDescRef const & OSelectionBrowseBox::AppendNewCol | ( | sal_uInt16 | nCnt = 1 | ) |
Definition at line 1417 of file SelectionBrowseBox.cxx.
References DEFAULT_SIZE, getFields(), i, BrowseBox::InsertDataColumn(), nCount, and size.
Referenced by CheckFreeColumns(), Fill(), InsertColumn(), and saveField().
|
private |
Definition at line 2490 of file SelectionBrowseBox.cxx.
References dbaui::OSingleDocumentController::addUndoActionAndInvalidate(), BROWSER_INVALIDID, BrowseBox::GetColumnPos(), dbaui::OJoinDesignView::getController(), BrowseBox::GetCurColumnId(), getDesignView(), and m_bInUndoMode.
|
private |
Definition at line 2477 of file SelectionBrowseBox.cxx.
References appendUndoAction(), dbaui::OJoinDesignView::getController(), getDesignView(), and m_bInUndoMode.
Referenced by appendUndoAction(), notifyFunctionFieldChanged(), notifyTableFieldChanged(), saveField(), and SaveModified().
Definition at line 1903 of file SelectionBrowseBox.cxx.
References Size::AdjustHeight(), BrowseBox::GetDataRowHeight(), BrowseBox::GetTitleHeight(), m_nVisibleCount, and Size::Width().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1867 of file SelectionBrowseBox.cxx.
References BROW_VIS_ROW, weld::ComboBox::get_active(), BrowseBox::GetColumnPos(), dbaui::OJoinDesignView::getController(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), getDesignView(), getEntry(), GetRealRow(), m_bOrderByUnRelated, m_pOrderCell, m_pVisibleCell, and dbaui::ORDER_NONE.
|
private |
Definition at line 1630 of file SelectionBrowseBox.cxx.
References AppendNewCol(), DEFAULT_QUERY_COLS, and FindFirstFreeCol().
Referenced by SaveModified().
void OSelectionBrowseBox::ClearAll | ( | ) |
Definition at line 406 of file SelectionBrowseBox.cxx.
References getFields(), m_nLastSortColumn, RemoveField(), BrowseBox::SetUpdateMode(), and SORT_COLUMN_NONE.
|
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
_sFieldName | The field name. |
_pEntry | The entry to be cleared |
_bListAction | When <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().
|
inlineoverridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 136 of file SelectionBrowseBox.hxx.
References ColumnMoved().
Referenced by ColumnMoved(), and InsertColumn().
void OSelectionBrowseBox::ColumnMoved | ( | sal_uInt16 | nColId, |
bool | _bCreateUndo | ||
) |
Definition at line 295 of file SelectionBrowseBox.cxx.
References dbaui::OSingleDocumentController::addUndoActionAndInvalidate(), svt::EditBrowseBox::ColumnMoved(), BrowseBox::GetColumnPos(), dbaui::OJoinDesignView::getController(), getDesignView(), getFields(), m_bInUndoMode, and o3tl::make_unsigned().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 2320 of file SelectionBrowseBox.cxx.
References dbaui::OSingleDocumentController::addUndoActionAndInvalidate(), svt::EditBrowseBox::ColumnResized(), BrowseBox::GetColumnPos(), BrowseBox::GetColumnWidth(), dbaui::OJoinDesignView::getController(), getDesignView(), getEntry(), getFields(), m_bInUndoMode, nPos, and size.
|
overrideprivatevirtual |
Reimplemented from BrowseBox.
Definition at line 1913 of file SelectionBrowseBox.cxx.
References dbaui::adjustBrowseBoxColumnWidth(), adjustSelectionMode(), BROW_COLUMNALIAS_ROW, BROW_FUNCTION_ROW, BROW_TABLE_ROW, BrowseBox::Command(), Application::CreateBuilder(), BrowseBox::FirstSelectedColumn(), BrowseBox::GetColumnAtXPosPixel(), BrowseBox::GetColumnId(), CommandEvent::GetCommand(), dbaui::OJoinDesignView::getController(), getDesignView(), BrowseBox::GetFieldRectPixel(), CommandEvent::GetMousePosPixel(), weld::GetPopupParent(), BrowseBox::GetRowAtYPosPixel(), BrowseBox::GetSelectColumnCount(), HANDLE_ID, BrowseBox::IsColumnSelected(), dbaui::OQueryController::isDistinct(), CommandEvent::IsMouseEvent(), IsRowVisible(), m_bVisibleRow, RemoveField(), BrowseBox::SelectColumnId(), SetRowVisible(), tools::Rectangle::TopCenter(), Point::X(), and Point::Y().
void OSelectionBrowseBox::copy | ( | ) |
Definition at line 2457 of file SelectionBrowseBox.cxx.
References BROW_FIELD_ROW, weld::Entry::copy_clipboard(), weld::ComboBox::copy_entry_clipboard(), BrowseBox::GetCurRow(), GetRealRow(), m_pFieldCell, and m_pTextCell.
|
overridevirtual |
Creates the accessible object of a data table cell.
nRow | The row index of the cell. |
nColumnId | The column ID of the 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.
void OSelectionBrowseBox::cut | ( | ) |
Definition at line 2391 of file SelectionBrowseBox.cxx.
References BROW_FIELD_ROW, weld::Entry::cut_clipboard(), weld::ComboBox::cut_entry_clipboard(), GetBrowseRow(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), GetRealRow(), invalidateUndoRedo(), m_pFieldCell, m_pTextCell, BrowseBox::RowModified(), and SaveModified().
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 2588 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::DeactivateCell(), and m_bWasEditing.
Referenced by AcceptDrop(), DeleteFields(), InsertColumn(), PreFill(), RemoveColumn(), SetCellContents(), SetColWidth(), SetReadOnly(), and SetRowVisible().
|
private |
void OSelectionBrowseBox::DeleteFields | ( | const OUString & | rAliasName | ) |
Definition at line 1434 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::ActivateCell(), DeactivateCell(), BrowseBox::GetColumnId(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), getFields(), svt::EditBrowseBox::IsEditing(), nPos, and RemoveField().
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 166 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::dispose(), m_pFieldCell, m_pFunctionCell, m_pOrderCell, m_pTableCell, m_pTextCell, and m_pVisibleCell.
void OSelectionBrowseBox::DuplicateConditionLevel | ( | const sal_uInt16 | nLevel | ) |
Definition at line 1695 of file SelectionBrowseBox.cxx.
References BROW_CRIT1_ROW, getFields(), BrowseBox::GetRowCount(), m_bVisibleRow, m_nVisibleCount, and BrowseBox::RowInserted().
|
staticprivate |
Definition at line 2532 of file SelectionBrowseBox.cxx.
References vcl::Window::Enable(), and vcl::Window::EnableInput().
Referenced by InitController(), setFunctionCell(), and setTextCellContext().
|
inline |
Disables the generation of undo actions.
Definition at line 144 of file SelectionBrowseBox.hxx.
References m_bInUndoMode.
|
overrideprivatevirtual |
Reimplemented from BrowseBox.
Definition at line 1400 of file SelectionBrowseBox.cxx.
References DND_ACTION_LINK, DND_ACTION_NONE, TransferableDataHelper::GetDataFlavorExVector(), dbaui::OJoinExchObj::GetSourceDescription(), InsertField(), and dbaui::OJoinExchObj::isFormatAvailable().
sal_uInt16 OSelectionBrowseBox::FieldsCount | ( | ) |
Definition at line 1602 of file SelectionBrowseBox.cxx.
References getFields(), and nCount.
void OSelectionBrowseBox::Fill | ( | ) |
Definition at line 1894 of file SelectionBrowseBox.cxx.
References AppendNewCol(), BrowseBox::ColCount(), and DEFAULT_QUERY_COLS.
|
private |
uses the parse node to fill all information into the field
_pColumnRef | The parse node used to fill the info into the field. |
_xMetaData | Use to parse the node to a string. |
_pEntry | The entry which will contain the necessary entries. |
_bListAction | Will be set to <TRUE> when we are in a list action otherwise <FALSE> |
Referenced by saveField(), and SaveModified().
|
private |
|
private |
sets the table window at the _pEntry
_pEntry | The entry where the window should be set. |
_sTableName | The table name to search for. |
Definition at line 2619 of file SelectionBrowseBox.cxx.
References getDesignView(), dbaui::OTableWindow::GetTableName(), dbaui::OJoinDesignView::getTableView(), and dbaui::OJoinTableView::GetTabWinMap().
|
private |
Definition at line 1614 of file SelectionBrowseBox.cxx.
References BROWSER_INVALIDID, and getFields().
Referenced by CheckFreeColumns(), InsertColumn(), and saveField().
|
overridevirtual |
return the name of the specified object.
eObjType | The type to ask for |
_nPosition | The position of a tablecell (index position), header bar column/row cell |
Reimplemented from BrowseBox.
Definition at line 2605 of file SelectionBrowseBox.cxx.
References BrowseBox::GetAccessibleObjectDescription(), and GetRowDescription().
|
private |
Definition at line 2048 of file SelectionBrowseBox.cxx.
References i, m_bVisibleRow, and nCount.
Referenced by cut(), GetRowDescription(), notifyFunctionFieldChanged(), notifyTableFieldChanged(), PaintStatusCell(), paste(), saveField(), SaveModified(), SetCellContents(), and SetRowVisible().
OUString OSelectionBrowseBox::GetCellContents | ( | sal_Int32 | nCellIndex, |
sal_uInt16 | nColId | ||
) |
Definition at line 2229 of file SelectionBrowseBox.cxx.
References BROW_ORDER_ROW, BROW_VIS_ROW, GetCellText(), BrowseBox::GetColumnPos(), BrowseBox::GetCurColumnId(), getFields(), m_bInUndoMode, m_pOrderCell, nPos, SaveModified(), and u.
|
overridevirtual |
GetCellText returns the text at the given position.
_nRow | the number of the row |
_nColId | the ID of the column |
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().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 439 of file SelectionBrowseBox.cxx.
References BROW_FIELD_ROW, BROW_FUNCTION_ROW, BROW_ORDER_ROW, BROW_TABLE_ROW, BROW_VIS_ROW, getDesignView(), getFields(), GetRealRow(), m_pFieldCell, m_pFunctionCell, m_pOrderCell, m_pTableCell, m_pTextCell, m_pVisibleCell, and size.
OQueryDesignView * OSelectionBrowseBox::getDesignView | ( | ) |
Definition at line 238 of file SelectionBrowseBox.cxx.
Referenced by AddCondition(), AddGroupBy(), AddOrder(), appendUndoAction(), CellModified(), ColumnMoved(), ColumnResized(), Command(), fillEntryTable(), GetController(), getFields(), Init(), InitController(), initialize(), InsertColumn(), invalidateUndoRedo(), MouseButtonUp(), PreFill(), RemoveColumn(), RemoveField(), saveField(), SaveModified(), SetCellContents(), and setFunctionCell().
OQueryDesignView * OSelectionBrowseBox::getDesignView | ( | ) | const |
Definition at line 244 of file SelectionBrowseBox.cxx.
|
private |
Definition at line 2563 of file SelectionBrowseBox.cxx.
References _nPos, BrowseBox::GetColumnId(), and getFields().
Referenced by CellModified(), ColumnResized(), RemoveField(), SaveModified(), SetCellContents(), and SetColWidth().
|
private |
Definition at line 2526 of file SelectionBrowseBox.cxx.
References dbaui::OJoinDesignView::getController(), getDesignView(), and dbaui::OQueryController::getTableFieldDesc().
Referenced by AddCondition(), AddGroupBy(), AddOrder(), AppendNewCol(), ClearAll(), ColumnMoved(), ColumnResized(), CreateAccessibleCell(), DeleteFields(), DuplicateConditionLevel(), FieldsCount(), FindFirstFreeCol(), GetCellContents(), GetCellText(), GetController(), getEntry(), GetTotalCellWidth(), HasFieldByAliasName(), InitController(), InsertColumn(), PaintCell(), RemoveColumn(), RemoveField(), and SaveModified().
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 2581 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::ActivateCell(), svt::EditBrowseBox::GetFocus(), svt::EditBrowseBox::IsEditing(), and m_bWasEditing.
|
private |
Definition at line 2160 of file SelectionBrowseBox.cxx.
References weld::ComboBox::get_count(), weld::ComboBox::get_text(), m_aFunctionStrings, and m_pFunctionCell.
Referenced by clearEntryFunctionField(), InsertColumn(), and saveField().
|
private |
Definition at line 1476 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::GetCellRect(), tools::Rectangle::Left(), and tools::Rectangle::SetLeft().
Referenced by InsertColumn(), and RemoveColumn().
sal_Int32 OSelectionBrowseBox::GetNoneVisibleRows | ( | ) | const |
Definition at line 2087 of file SelectionBrowseBox.cxx.
References i, m_bVisibleRow, and nVisibleRowMask.
|
private |
Definition at line 2059 of file SelectionBrowseBox.cxx.
References i, m_bVisibleRow, and nCount.
Referenced by CellModified(), copy(), cut(), GetController(), GetRowDescription(), GetTotalCellWidth(), InitController(), isCutAllowed(), isPasteAllowed(), PaintCell(), PaintStatusCell(), paste(), SaveModified(), and SetCellContents().
|
overridevirtual |
returns the description of the row.
_nRow | The row number. |
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().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 2349 of file SelectionBrowseBox.cxx.
References GetCellText(), BrowseBox::GetColumnPos(), BrowseBox::GetDataWindow(), getFields(), GetRealRow(), nPos, and size.
bool OSelectionBrowseBox::HasFieldByAliasName | ( | std::u16string_view | rFieldName, |
OTableFieldDescRef const & | rInfo | ||
) | const |
Definition at line 2707 of file SelectionBrowseBox.cxx.
References getFields().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 290 of file SelectionBrowseBox.cxx.
References VclPtr< class reference_type >::Create().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 337 of file SelectionBrowseBox.cxx.
References BROW_ROW_CNT, svt::EditBrowseBox::CreateHeaderBar(), getConnection(), dbaui::OJoinDesignView::getController(), BrowseBox::GetDataWindow(), getDesignView(), BrowseBox::GetFont(), Size::Height(), i, svt::EditBrowseBox::Init(), m_bVisibleRow, m_nMaxColumns, m_nMode, m_nVisibleCount, m_pFieldCell, m_pTableCell, m_pTextCell, m_pVisibleCell, BrowseBox::RowInserted(), BrowseBox::SetDataRowHeight(), BrowseBox::SetHeaderBar(), Size::setHeight(), BrowseBox::SetMode(), BrowseBox::SetTitleLines(), vcl::Font::SetWeight(), TOOLS_WARN_EXCEPTION, and WEIGHT_NORMAL.
Referenced by initialize().
|
overrideprivatevirtual |
Definition at line 470 of file SelectionBrowseBox.cxx.
References weld::ComboBox::append_text(), BROW_COLUMNALIAS_ROW, BROW_CRIT1_ROW, BROW_FIELD_ROW, BROW_FUNCTION_ROW, BROW_ORDER_ROW, BROW_TABLE_ROW, BROW_VIS_ROW, BROWSER_INVALIDID, weld::ComboBox::clear(), svt::EditBrowseBox::Controller(), Application::CreateMessageDialog(), DBA_RES, enableControl(), dbaui::OQueryDesignView::fillValidFields(), dbaui::OQueryTableWindow::GetAliasName(), BrowseBox::GetColumnPos(), getDesignView(), getFields(), vcl::Window::GetFrameWeld(), GetRealRow(), HID_QRYDGN_ROW_ALIAS, HID_QRYDGN_ROW_CRIT, weld::ComboBox::insert_text(), m_bOrderByUnRelated, m_pFieldCell, m_pOrderCell, m_pTableCell, m_pTextCell, m_pVisibleCell, nPos, dbaui::ORDER_NONE, weld::ComboBox::set_active(), weld::ComboBox::set_active_text(), weld::ComboBox::set_entry_text(), setFunctionCell(), setTextCellContext(), size, o3tl::trim(), and u.
void OSelectionBrowseBox::initialize | ( | ) |
Definition at line 177 of file SelectionBrowseBox.cxx.
References weld::ComboBox::append_text(), Exception, getConnection(), dbaui::OJoinDesignView::getController(), getDesignView(), connectivity::IParseContext::getIntlKeywordAscii(), Init(), m_aFunctionStrings, m_bGroupByUnRelated, m_bOrderByUnRelated, and m_pFunctionCell.
void OSelectionBrowseBox::InsertColumn | ( | const OTableFieldDescRef & | pEntry, |
sal_uInt16 & | _nColumnPosition | ||
) |
Definition at line 1488 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::ActivateCell(), AppendNewCol(), BROWSER_INVALIDID, ColumnMoved(), DeactivateCell(), FindFirstFreeCol(), dbaui::FKT_AGGREGATE, BrowseBox::GetColumnId(), BrowseBox::GetColumnPos(), dbaui::OJoinDesignView::getController(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), getDesignView(), getFields(), GetFunctionName(), GetInvalidRect(), invalidateUndoRedo(), BrowseBox::SetColumnPos(), SetColWidth(), and size.
OTableFieldDescRef OSelectionBrowseBox::InsertField | ( | const OJoinExchangeData & | jxdSource | ) |
Definition at line 1550 of file SelectionBrowseBox.cxx.
References weld::TreeView::get_id(), weld::TreeView::get_text(), dbaui::OQueryTableWindow::GetAliasName(), dbaui::OTableFieldInfo::GetDataType(), dbaui::OTableFieldInfo::GetKeyType(), dbaui::OTableWindow::GetTableName(), InsertField(), dbaui::OJoinExchangeData::nEntry, and dbaui::OJoinExchangeData::pListBox.
Referenced by AddCondition(), AddGroupBy(), AddOrder(), ExecuteDrop(), InsertField(), and saveField().
OTableFieldDescRef dbaui::OSelectionBrowseBox::InsertField | ( | const OTableFieldDescRef & | rInfo, |
sal_uInt16 | _nColumnPosition = BROWSER_INVALIDID , |
||
bool | bVis = true , |
||
bool | bActivate = true |
||
) |
|
private |
Definition at line 2555 of file SelectionBrowseBox.cxx.
References dbaui::OJoinDesignView::getController(), getDesignView(), ID_BROWSER_QUERY_EXECUTE, ID_BROWSER_REDO, and ID_BROWSER_UNDO.
Referenced by cut(), InsertColumn(), paste(), RemoveColumn(), and RemoveField().
bool OSelectionBrowseBox::isCopyAllowed | ( | ) | const |
Definition at line 2452 of file SelectionBrowseBox.cxx.
References isCutAllowed().
bool OSelectionBrowseBox::isCutAllowed | ( | ) | const |
Definition at line 2362 of file SelectionBrowseBox.cxx.
References BROW_FIELD_ROW, BROW_FUNCTION_ROW, BROW_ORDER_ROW, BROW_TABLE_ROW, BROW_VIS_ROW, weld::ComboBox::get_entry_selection_bounds(), weld::Entry::get_selection_bounds(), BrowseBox::GetCurRow(), GetRealRow(), m_pFieldCell, and m_pTextCell.
Referenced by isCopyAllowed().
bool OSelectionBrowseBox::isPasteAllowed | ( | ) | const |
Definition at line 2436 of file SelectionBrowseBox.cxx.
References BROW_FUNCTION_ROW, BROW_ORDER_ROW, BROW_TABLE_ROW, BROW_VIS_ROW, BrowseBox::GetCurRow(), and GetRealRow().
bool OSelectionBrowseBox::IsRowVisible | ( | sal_uInt16 | _nWhich | ) | const |
Definition at line 2015 of file SelectionBrowseBox.cxx.
References m_bVisibleRow.
Referenced by Command(), and SetCellContents().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1364 of file SelectionBrowseBox.cxx.
References vcl::KeyCode::GetCode(), BrowseBox::GetCurColumnId(), KeyEvent::GetKeyCode(), BrowseBox::IsColumnSelected(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsShift(), KEY_DELETE, svt::EditBrowseBox::KeyInput(), and RemoveField().
|
inline |
Enables the generation of undo actions.
Definition at line 147 of file SelectionBrowseBox.hxx.
References m_bInUndoMode.
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1347 of file SelectionBrowseBox.cxx.
References adjustSelectionMode(), BrowseEvent::GetColumnId(), BrowseEvent::GetRow(), HANDLE_ID, and svt::EditBrowseBox::MouseButtonDown().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1358 of file SelectionBrowseBox.cxx.
References dbaui::OJoinDesignView::getController(), getDesignView(), ID_BROWSER_QUERY_EXECUTE, and svt::EditBrowseBox::MouseButtonUp().
|
private |
append an undo action for the function field
_sOldFunctionName | The old value. |
_sFunctionName | The new function name. |
_bListAction | Will 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().
|
private |
append an undo action for the table field
_sOldAlias | The old table alias. |
_sAlias | The new alias name. |
_bListAction | Will 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().
|
overrideprivatevirtual |
Implements svt::EditBrowseBox.
Definition at line 1229 of file SelectionBrowseBox.cxx.
References BROW_VIS_ROW, OutputDevice::DrawText(), GetCellText(), BrowseBox::GetColumnPos(), getFields(), GetRealRow(), m_nSeekRow, o3tl::make_unsigned(), nPos, svt::EditBrowseBox::PaintTristate(), OutputDevice::SetClipRegion(), size, TRISTATE_FALSE, and TRISTATE_TRUE.
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1250 of file SelectionBrowseBox.cxx.
References Point::AdjustY(), aLabel, BROW_CRIT2_ROW, DBA_RES, OutputDevice::DrawText(), GetBrowseRow(), GetRealRow(), m_nSeekRow, nToken, and tools::Rectangle::TopLeft().
void OSelectionBrowseBox::paste | ( | ) |
Definition at line 2414 of file SelectionBrowseBox.cxx.
References BROW_FIELD_ROW, GetBrowseRow(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), GetRealRow(), invalidateUndoRedo(), m_pFieldCell, m_pTextCell, weld::Entry::paste_clipboard(), weld::ComboBox::paste_entry_clipboard(), and BrowseBox::RowModified().
void OSelectionBrowseBox::PreFill | ( | ) |
Definition at line 390 of file SelectionBrowseBox.cxx.
References DeactivateCell(), dbaui::OJoinDesignView::getController(), BrowseBox::GetCurRow(), getDesignView(), BrowseBox::GoToRow(), HANDLE_COLUMN_WIDTH, BrowseBox::InsertHandleColumn(), BrowseBox::RemoveColumns(), and BrowseBox::SetUpdateMode().
void OSelectionBrowseBox::RemoveColumn | ( | sal_uInt16 | _nColumnId | ) |
Definition at line 1262 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::ActivateCell(), begin, DeactivateCell(), DEFAULT_SIZE, BrowseBox::GetColumnPos(), dbaui::OJoinDesignView::getController(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), getDesignView(), getFields(), GetInvalidRect(), BrowseBox::InsertDataColumn(), invalidateUndoRedo(), nPos, BrowseBox::RemoveColumn(), and size.
Referenced by RemoveField().
|
private |
Definition at line 1295 of file SelectionBrowseBox.cxx.
References dbaui::OSingleDocumentController::addUndoActionAndInvalidate(), BrowseBox::GetColumnPos(), BrowseBox::GetColumnWidth(), dbaui::OJoinDesignView::getController(), getDesignView(), getEntry(), getFields(), invalidateUndoRedo(), m_bInUndoMode, o3tl::make_unsigned(), nPos, RemoveColumn(), and size.
Referenced by ClearAll(), Command(), DeleteFields(), and KeyInput().
bool OSelectionBrowseBox::Save | ( | ) |
Definition at line 1859 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::IsModified(), and SaveModified().
|
private |
save the field change in save modified
_sFieldName | The field name inserted by the user. |
_pEntry | The entry which will contain the necessary entries. |
_bListAction | Will be set to <TRUE> when we are in a list action 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().
|
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().
|
overrideprivatevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1223 of file SelectionBrowseBox.cxx.
References m_nSeekRow, and m_nVisibleCount.
void OSelectionBrowseBox::SetCellContents | ( | sal_Int32 | nCellIndex, |
sal_uInt16 | nColId, | ||
const OUString & | strNewText | ||
) |
Definition at line 2254 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::ActivateCell(), BROW_COLUMNALIAS_ROW, BROW_CRIT1_ROW, BROW_FIELD_ROW, BROW_FUNCTION_ROW, BROW_ORDER_ROW, BROW_TABLE_ROW, BROW_VIS_ROW, DeactivateCell(), o3tl::equalsIgnoreAsciiCase(), dbaui::FKT_AGGREGATE, GetBrowseRow(), BrowseBox::GetColumnPos(), dbaui::OJoinDesignView::getController(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), getDesignView(), getEntry(), GetRealRow(), svt::EditBrowseBox::IsEditing(), IsRowVisible(), m_aFunctionStrings, nPos, and BrowseBox::RowModified().
void OSelectionBrowseBox::SetColWidth | ( | sal_uInt16 | nColId, |
tools::Long | lNewWidth | ||
) |
Definition at line 1458 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::ActivateCell(), DeactivateCell(), BrowseBox::GetColumnPos(), BrowseBox::GetColumnWidth(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), getEntry(), svt::EditBrowseBox::IsEditing(), and BrowseBox::SetColumnWidth().
Referenced by InsertColumn().
|
private |
remove or insert the necessary function types
_pEntry | The currently edited entry. |
Definition at line 2637 of file SelectionBrowseBox.cxx.
References weld::ComboBox::append_text(), weld::ComboBox::clear(), enableControl(), weld::ComboBox::find_text(), weld::ComboBox::get_count(), weld::ComboBox::get_text(), getConnection(), dbaui::OJoinDesignView::getController(), getDesignView(), m_aFunctionStrings, m_pFunctionCell, weld::ComboBox::remove(), weld::ComboBox::set_active(), and weld::ComboBox::set_active_text().
Referenced by InitController().
void OSelectionBrowseBox::SetNoneVisibleRow | ( | sal_Int32 | nRows | ) |
Definition at line 2100 of file SelectionBrowseBox.cxx.
References i, m_bVisibleRow, and nVisibleRowMask.
void OSelectionBrowseBox::SetReadOnly | ( | bool | bRO | ) |
Definition at line 423 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::ActivateCell(), DeactivateCell(), m_nMode, and BrowseBox::SetMode().
void OSelectionBrowseBox::SetRowVisible | ( | sal_uInt16 | _nWhich, |
bool | _bVis | ||
) |
Definition at line 2021 of file SelectionBrowseBox.cxx.
References svt::EditBrowseBox::ActivateCell(), DeactivateCell(), GetBrowseRow(), svt::EditBrowseBox::IsEditing(), m_bVisibleRow, m_nVisibleCount, nId, BrowseBox::RowInserted(), and BrowseBox::RowRemoved().
Referenced by Command(), and notifyFunctionFieldChanged().
|
private |
Definition at line 2539 of file SelectionBrowseBox.cxx.
References enableControl(), m_pTextCell, weld::Entry::save_value(), and weld::Entry::set_text().
Referenced by InitController().
|
private |
Definition at line 2519 of file SelectionBrowseBox.cxx.
References Task::IsActive(), m_bStopTimer, m_timerInvalidate, and Timer::Start().
|
private |
Definition at line 2512 of file SelectionBrowseBox.cxx.
References Task::IsActive(), m_bStopTimer, m_timerInvalidate, and Task::Stop().
|
friend |
Definition at line 55 of file SelectionBrowseBox.hxx.
|
private |
Definition at line 70 of file SelectionBrowseBox.hxx.
Referenced by GetCellText(), GetFunctionName(), initialize(), saveField(), SaveModified(), SetCellContents(), and setFunctionCell().
|
private |
Definition at line 77 of file SelectionBrowseBox.hxx.
Referenced by AcceptDrop(), and SaveModified().
|
private |
Definition at line 74 of file SelectionBrowseBox.hxx.
Referenced by AddCondition(), AddGroupBy(), initialize(), and SaveModified().
|
private |
Definition at line 78 of file SelectionBrowseBox.hxx.
Referenced by appendUndoAction(), ColumnMoved(), ColumnResized(), EnterUndoMode(), GetCellContents(), LeaveUndoMode(), RemoveField(), and SaveModified().
|
private |
Definition at line 73 of file SelectionBrowseBox.hxx.
Referenced by AddOrder(), CellModified(), InitController(), initialize(), and SaveModified().
|
private |
Definition at line 75 of file SelectionBrowseBox.hxx.
Referenced by startTimer(), and stopTimer().
|
private |
Definition at line 56 of file SelectionBrowseBox.hxx.
Referenced by AddCondition(), Command(), DuplicateConditionLevel(), GetBrowseRow(), GetNoneVisibleRows(), GetRealRow(), Init(), IsRowVisible(), notifyFunctionFieldChanged(), notifyTableFieldChanged(), OSelectionBrowseBox(), saveField(), SaveModified(), SetNoneVisibleRow(), and SetRowVisible().
|
private |
Definition at line 76 of file SelectionBrowseBox.hxx.
Referenced by DeactivateCell(), and GetFocus().
|
private |
Definition at line 72 of file SelectionBrowseBox.hxx.
Referenced by AddOrder(), and ClearAll().
|
private |
Definition at line 68 of file SelectionBrowseBox.hxx.
Referenced by Init().
|
private |
Definition at line 60 of file SelectionBrowseBox.hxx.
Referenced by adjustSelectionMode(), Init(), OSelectionBrowseBox(), and SetReadOnly().
|
private |
Definition at line 59 of file SelectionBrowseBox.hxx.
Referenced by PaintCell(), PaintStatusCell(), and SeekRow().
|
private |
Definition at line 71 of file SelectionBrowseBox.hxx.
Referenced by AddCondition(), CalcOptimalSize(), DuplicateConditionLevel(), Init(), SaveModified(), SeekRow(), and SetRowVisible().
|
private |
Definition at line 63 of file SelectionBrowseBox.hxx.
Referenced by copy(), cut(), dispose(), GetController(), Init(), InitController(), isCutAllowed(), OSelectionBrowseBox(), paste(), and SaveModified().
|
private |
Definition at line 64 of file SelectionBrowseBox.hxx.
Referenced by dispose(), GetController(), GetFunctionName(), initialize(), OSelectionBrowseBox(), SaveModified(), and setFunctionCell().
|
private |
Definition at line 66 of file SelectionBrowseBox.hxx.
Referenced by CellModified(), dispose(), GetCellContents(), GetController(), InitController(), OSelectionBrowseBox(), and SaveModified().
|
private |
Definition at line 65 of file SelectionBrowseBox.hxx.
Referenced by dispose(), GetController(), Init(), InitController(), OSelectionBrowseBox(), and SaveModified().
|
private |
Definition at line 61 of file SelectionBrowseBox.hxx.
Referenced by copy(), cut(), dispose(), GetController(), Init(), InitController(), isCutAllowed(), OSelectionBrowseBox(), paste(), SaveModified(), and setTextCellContext().
|
private |
Definition at line 62 of file SelectionBrowseBox.hxx.
Referenced by CellModified(), dispose(), GetController(), Init(), InitController(), OSelectionBrowseBox(), and SaveModified().
|
private |
Definition at line 57 of file SelectionBrowseBox.hxx.
Referenced by OSelectionBrowseBox(), startTimer(), and stopTimer().