LibreOffice Module chart2 (master) 1
|
#include <DataBrowser.hxx>
Public Member Functions | |
DataBrowser (const css::uno::Reference< css::awt::XWindow > &rParent, weld::Container *pColumns, weld::Container *pColors) | |
virtual | ~DataBrowser () override |
virtual void | dispose () override |
virtual OUString | GetCellText (sal_Int32 nRow, sal_uInt16 nColId) const override |
GetCellText returns the text at the given position. More... | |
double | GetCellNumber (sal_Int32 nRow, sal_uInt16 nColumnId) const |
returns the number in the given cell. More... | |
bool | isDateTimeString (const OUString &aInputString, double &fOutDateTimeValue) |
virtual void | Resize () override |
void | SetReadOnly (bool bNewState) |
bool | IsReadOnly () const |
void | SetDataFromModel (const rtl::Reference<::chart::ChartModel > &xChartDoc) |
bool | MayInsertRow () const |
bool | MayInsertColumn () const |
bool | MayDeleteRow () const |
bool | MayDeleteColumn () const |
bool | MayMoveUpRows () const |
bool | MayMoveDownRows () const |
bool | MayMoveRightColumns () const |
bool | MayMoveLeftColumns () const |
void | InsertRow () |
void | InsertColumn () |
void | InsertTextColumn () |
void | RemoveRow () |
void | RemoveColumn () |
void | MoveUpRow () |
void | MoveDownRow () |
void | MoveLeftColumn () |
void | MoveRightColumn () |
void | SetCursorMovedHdl (const Link< DataBrowser *, void > &rLink) |
bool | EndEditing () |
confirms all pending changes to be ready to be closed More... | |
bool | CellContainsNumbers (sal_uInt16 nCol) const |
sal_uInt32 | GetNumberFormatKey (sal_uInt16 nCol) const |
bool | IsEnableItem () const |
bool | IsDataValid () const |
void | ShowWarningBox () |
bool | ShowQueryBox () |
void | RenewSeriesHeaders () |
void | RemoveColumn (sal_uInt16 nColumnId) |
virtual void | MouseButtonDown (const MouseEvent &rEvt) override |
virtual void | MouseButtonDown (const BrowserMouseEvent &rEvt) |
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 |
Protected Member Functions | |
virtual void | PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColumnId) const override |
virtual bool | SeekRow (sal_Int32 nRow) override |
virtual bool | IsTabAllowed (bool bForward) const 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 bool | SaveModified () override |
virtual void | CursorMoved () override |
virtual void | CellModified () override |
virtual void | ColumnResized (sal_uInt16 nColId) override |
virtual void | EndScroll () override |
virtual void | MouseButtonDown (const BrowserMouseEvent &rEvt) override |
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 () |
Private Types | |
typedef std::vector< std::shared_ptr< impl::SeriesHeader > > | tSeriesHeaderContainer |
Private Member Functions | |
void | clearHeaders () |
void | RenewTable () |
void | ImplAdjustHeaderControls () |
OUString | GetColString (sal_Int32 nColumnId) const |
DECL_LINK (SeriesHeaderGotFocus, impl::SeriesHeaderEdit &, void) | |
DECL_LINK (SeriesHeaderChanged, impl::SeriesHeaderEdit &, void) | |
DataBrowser (const DataBrowser &)=delete | |
Private Attributes | |
rtl::Reference<::chart::ChartModel > | m_xChartDoc |
std::unique_ptr< DataBrowserModel > | m_apDataBrowserModel |
tSeriesHeaderContainer | m_aSeriesHeaders |
std::shared_ptr< NumberFormatterWrapper > | m_spNumberFormatterWrapper |
sal_Int32 | m_nSeekRow |
the row that is currently painted More... | |
bool | m_bIsReadOnly |
bool | m_bDataValid |
VclPtr< svt::FormattedControl > | m_aNumberEditField |
VclPtr< svt::EditControl > | m_aTextEditField |
weld::Container * | m_pColumnsWin |
weld::Container * | m_pColorsWin |
::svt::CellControllerRef | m_rNumberEditController |
note: m_aNumberEditField must precede this member! More... | |
::svt::CellControllerRef | m_rTextEditController |
note: m_aTextEditField must precede this member! More... | |
Link< DataBrowser *, void > | m_aCursorMovedHdlLink |
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 |
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 54 of file DataBrowser.hxx.
|
private |
Definition at line 151 of file DataBrowser.hxx.
chart::DataBrowser::DataBrowser | ( | const css::uno::Reference< css::awt::XWindow > & | rParent, |
weld::Container * | pColumns, | ||
weld::Container * | pColors | ||
) |
Definition at line 473 of file DataBrowser.cxx.
References Create(), get(), HANDLE_COLUMN_TEXT, m_aNumberEditField, RenewTable(), Formatter::SetDefaultValue(), SMART_TAB_TRAVEL, Formatter::TreatAsNumber(), WB_BORDER, and WB_TABSTOP.
|
overridevirtual |
Definition at line 494 of file DataBrowser.cxx.
|
privatedelete |
bool chart::DataBrowser::CellContainsNumbers | ( | sal_uInt16 | nCol | ) | const |
Definition at line 1128 of file DataBrowser.cxx.
References m_apDataBrowserModel, and chart::DataBrowserModel::NUMBER.
Referenced by GetController().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 821 of file DataBrowser.cxx.
References IsDataValid(), m_aCursorMovedHdlLink, and m_bDataValid.
|
private |
Definition at line 587 of file DataBrowser.cxx.
References m_aSeriesHeaders.
Referenced by RenewSeriesHeaders(), and RenewTable().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1236 of file DataBrowser.cxx.
References BrowseBox::GetUpdateMode(), ImplAdjustHeaderControls(), and BrowseBox::SetUpdateMode().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 765 of file DataBrowser.cxx.
References BrowseBox::GetUpdateMode(), and m_aCursorMovedHdlLink.
|
private |
|
private |
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 499 of file DataBrowser.cxx.
References svt::EditBrowseBox::dispose(), VclPtr< class reference_type >::disposeAndClear(), m_aNumberEditField, m_aSeriesHeaders, and m_aTextEditField.
bool chart::DataBrowser::EndEditing | ( | ) |
confirms all pending changes to be ready to be closed
Definition at line 1222 of file DataBrowser.cxx.
References m_aSeriesHeaders, m_bDataValid, SaveModified(), and ShowQueryBox().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1246 of file DataBrowser.cxx.
References BrowseBox::GetUpdateMode(), RenewSeriesHeaders(), and BrowseBox::SetUpdateMode().
double chart::DataBrowser::GetCellNumber | ( | sal_Int32 | nRow, |
sal_uInt16 | nColumnId | ||
) | const |
returns the number in the given cell.
If a cell is empty or contains a string, the result will be Nan
Definition at line 734 of file DataBrowser.cxx.
References m_apDataBrowserModel.
Referenced by InitController().
|
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 674 of file DataBrowser.cxx.
References chart::DiagramHelper::getDateTimeInputNumberFormat(), GetNumberFormatKey(), m_apDataBrowserModel, m_spNumberFormatterWrapper, m_xChartDoc, chart::DataBrowserModel::NUMBER, chart::DataBrowserModel::TEXT, and chart::DataBrowserModel::TEXTORDATE.
Referenced by InitController(), and PaintCell().
|
private |
Definition at line 666 of file DataBrowser.cxx.
References m_apDataBrowserModel.
Referenced by RenewTable().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1084 of file DataBrowser.cxx.
References CellContainsNumbers(), tools::SvRef< typename T >::get(), GetNumberFormatKey(), m_aNumberEditField, m_bIsReadOnly, m_rNumberEditController, m_rTextEditController, Formatter::SetFormatKey(), and Formatter::UseInputStringForFormatting().
Referenced by SaveModified().
sal_uInt32 chart::DataBrowser::GetNumberFormatKey | ( | sal_uInt16 | nCol | ) | const |
Definition at line 1135 of file DataBrowser.cxx.
References m_apDataBrowserModel.
Referenced by GetCellText(), and GetController().
|
private |
Definition at line 1286 of file DataBrowser.cxx.
References BrowseBox::GetColumnCount(), BrowseBox::GetColumnWidth(), BrowseBox::GetFirstVisibleColNumber(), i, m_aSeriesHeaders, m_pColorsWin, m_pColumnsWin, and weld::Widget::set_margin_start().
Referenced by ColumnResized(), RenewSeriesHeaders(), RenewTable(), and Resize().
|
overrideprotectedvirtual |
Definition at line 1100 of file DataBrowser.cxx.
References Formatter::EnableNotANumber(), GetCellNumber(), GetCellText(), m_aNumberEditField, m_aTextEditField, m_rNumberEditController, m_rTextEditController, weld::Entry::select_region(), weld::Entry::set_text(), Formatter::SetTextValue(), and Formatter::SetValue().
void chart::DataBrowser::InsertColumn | ( | ) |
Definition at line 850 of file DataBrowser.cxx.
References BrowseBox::GetCurColumnId(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, m_aSeriesHeaders, RenewTable(), and SaveModified().
void chart::DataBrowser::InsertRow | ( | ) |
Definition at line 896 of file DataBrowser.cxx.
References BrowseBox::GetCurRow(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, RenewTable(), and SaveModified().
void chart::DataBrowser::InsertTextColumn | ( | ) |
Definition at line 865 of file DataBrowser.cxx.
References BrowseBox::GetCurColumnId(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, m_aSeriesHeaders, RenewTable(), and SaveModified().
bool chart::DataBrowser::IsDataValid | ( | ) | const |
Definition at line 797 of file DataBrowser.cxx.
References BrowseBox::GetCurColumnId(), m_aNumberEditField, m_apDataBrowserModel, m_spNumberFormatterWrapper, and chart::DataBrowserModel::NUMBER.
Referenced by CellModified().
bool chart::DataBrowser::isDateTimeString | ( | const OUString & | aInputString, |
double & | fOutDateTimeValue | ||
) |
Definition at line 1142 of file DataBrowser.cxx.
References SvNumberFormatter::GetType(), SvNumberFormatter::IsNumberFormat(), m_spNumberFormatterWrapper, and nType.
Referenced by SaveModified().
|
inline |
Definition at line 140 of file DataBrowser.hxx.
References m_bDataValid.
|
inline |
Definition at line 99 of file DataBrowser.hxx.
References m_bIsReadOnly.
Referenced by MayDeleteColumn(), MayDeleteRow(), MayInsertColumn(), MayInsertRow(), MayMoveDownRows(), MayMoveLeftColumns(), MayMoveRightColumns(), and MayMoveUpRows().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1061 of file DataBrowser.cxx.
References BrowseBox::GetColumnCount(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), BrowseBox::GetRowCount(), m_bDataValid, and ShowWarningBox().
bool chart::DataBrowser::MayDeleteColumn | ( | ) | const |
Definition at line 526 of file DataBrowser.cxx.
References BrowseBox::ColCount(), BrowseBox::GetCurColumnId(), IsReadOnly(), and m_aSeriesHeaders.
bool chart::DataBrowser::MayDeleteRow | ( | ) | const |
Definition at line 518 of file DataBrowser.cxx.
References BrowseBox::GetCurRow(), BrowseBox::GetRowCount(), IsReadOnly(), and m_aSeriesHeaders.
bool chart::DataBrowser::MayInsertColumn | ( | ) | const |
Definition at line 513 of file DataBrowser.cxx.
References IsReadOnly().
bool chart::DataBrowser::MayInsertRow | ( | ) | const |
Definition at line 507 of file DataBrowser.cxx.
References IsReadOnly(), and m_aSeriesHeaders.
bool chart::DataBrowser::MayMoveDownRows | ( | ) | const |
Definition at line 545 of file DataBrowser.cxx.
References BrowseBox::GetCurRow(), BrowseBox::GetRowCount(), IsReadOnly(), and m_aSeriesHeaders.
bool chart::DataBrowser::MayMoveLeftColumns | ( | ) | const |
Definition at line 553 of file DataBrowser.cxx.
References BrowseBox::ColCount(), BrowseBox::GetCurColumnId(), IsReadOnly(), m_apDataBrowserModel, m_aSeriesHeaders, and o3tl::make_unsigned().
bool chart::DataBrowser::MayMoveRightColumns | ( | ) | const |
Definition at line 570 of file DataBrowser.cxx.
References BrowseBox::ColCount(), BrowseBox::GetCurColumnId(), IsReadOnly(), m_apDataBrowserModel, m_aSeriesHeaders, and o3tl::make_unsigned().
bool chart::DataBrowser::MayMoveUpRows | ( | ) | const |
Definition at line 537 of file DataBrowser.cxx.
References BrowseBox::GetCurRow(), BrowseBox::GetRowCount(), IsReadOnly(), and m_aSeriesHeaders.
|
virtual |
Reimplemented from svt::EditBrowseBox.
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 773 of file DataBrowser.cxx.
References m_bDataValid, and ShowWarningBox().
|
virtual |
Reimplemented from svt::EditBrowseBox.
void chart::DataBrowser::MoveDownRow | ( | ) |
Definition at line 990 of file DataBrowser.cxx.
References BROWSER_CURSORDOWN, svt::EditBrowseBox::Dispatch(), BrowseBox::GetCurRow(), BrowseBox::GetRowCount(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, RenewTable(), and SaveModified().
void chart::DataBrowser::MoveLeftColumn | ( | ) |
Definition at line 927 of file DataBrowser.cxx.
References BROWSER_CURSORLEFT, BrowseBox::ColCount(), svt::EditBrowseBox::Dispatch(), BrowseBox::GetCurColumnId(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, m_aSeriesHeaders, RenewTable(), and SaveModified().
void chart::DataBrowser::MoveRightColumn | ( | ) |
Definition at line 948 of file DataBrowser.cxx.
References BROWSER_CURSORRIGHT, BrowseBox::ColCount(), svt::EditBrowseBox::Dispatch(), BrowseBox::GetCurColumnId(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, m_aSeriesHeaders, RenewTable(), and SaveModified().
void chart::DataBrowser::MoveUpRow | ( | ) |
Definition at line 969 of file DataBrowser.cxx.
References BROWSER_CURSORUP, svt::EditBrowseBox::Dispatch(), BrowseBox::GetCurRow(), BrowseBox::GetRowCount(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, RenewTable(), and SaveModified().
|
overrideprotectedvirtual |
Implements svt::EditBrowseBox.
Definition at line 1017 of file DataBrowser.cxx.
References Point::AdjustX(), tools::Rectangle::Bottom(), OutputDevice::DrawText(), GetCellText(), BrowseBox::GetDataWindow(), OutputDevice::GetTextColor(), Size::Height(), OutputDevice::IsClipRegion(), m_nSeekRow, tools::Rectangle::Right(), OutputDevice::SetClipRegion(), OutputDevice::SetTextColor(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), Size::Width(), Point::X(), and Point::Y().
void chart::DataBrowser::RemoveColumn | ( | ) |
Definition at line 880 of file DataBrowser.cxx.
References BrowseBox::GetCurColumnId(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, m_aSeriesHeaders, m_bDataValid, RenewTable(), and SaveModified().
void BrowseBox::RemoveColumn | ( | sal_uInt16 | nColumnId | ) |
void chart::DataBrowser::RemoveRow | ( | ) |
Definition at line 911 of file DataBrowser.cxx.
References BrowseBox::GetCurRow(), svt::EditBrowseBox::IsModified(), m_apDataBrowserModel, m_bDataValid, RenewTable(), and SaveModified().
void chart::DataBrowser::RenewSeriesHeaders | ( | ) |
Definition at line 1257 of file DataBrowser.cxx.
References clearHeaders(), ImplAdjustHeaderControls(), LINK, m_apDataBrowserModel, m_aSeriesHeaders, m_pColorsWin, and m_pColumnsWin.
Referenced by EndScroll().
|
private |
Definition at line 594 of file DataBrowser.cxx.
References svt::EditBrowseBox::ActivateCell(), clearHeaders(), BrowseBox::ColCount(), svt::EditBrowseBox::DeactivateCell(), GetColString(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), BrowseBox::GetDataWindow(), chart::impl::SeriesHeader::GetRelativeAppFontXPosForNameField(), BrowseBox::GetRowCount(), BrowseBox::GetUpdateMode(), BrowseBox::GoToColumnId(), BrowseBox::GoToRow(), ImplAdjustHeaderControls(), BrowseBox::InsertDataColumn(), BrowseBox::InsertHandleColumn(), svt::EditBrowseBox::IsModified(), LINK, m_apDataBrowserModel, m_aSeriesHeaders, m_pColorsWin, m_pColumnsWin, BrowseBox::RemoveColumns(), chart::replaceParamterInString(), BrowseBox::RowInserted(), BrowseBox::RowRemoved(), SaveModified(), chart::SchResId(), BrowseBox::SetUpdateMode(), and u.
Referenced by DataBrowser(), InsertColumn(), InsertRow(), InsertTextColumn(), MoveDownRow(), MoveLeftColumn(), MoveRightColumn(), MoveUpRow(), RemoveColumn(), RemoveRow(), and SetDataFromModel().
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 745 of file DataBrowser.cxx.
References BrowseBox::GetUpdateMode(), ImplAdjustHeaderControls(), svt::EditBrowseBox::Resize(), and BrowseBox::SetUpdateMode().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1154 of file DataBrowser.cxx.
References weld::Entry::get_text(), GetController(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), Formatter::GetValue(), isDateTimeString(), svt::EditBrowseBox::IsModified(), SvNumberFormatter::IsNumberFormat(), m_aNumberEditField, m_apDataBrowserModel, m_aTextEditField, m_spNumberFormatterWrapper, chart::DataBrowserModel::NUMBER, BrowseBox::RowModified(), svt::CellController::SaveValue(), chart::DataBrowserModel::TEXT, and chart::DataBrowserModel::TEXTORDATE.
Referenced by EndEditing(), InsertColumn(), InsertRow(), InsertTextColumn(), MoveDownRow(), MoveLeftColumn(), MoveRightColumn(), MoveUpRow(), RemoveColumn(), RemoveRow(), and RenewTable().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1048 of file DataBrowser.cxx.
References m_nSeekRow.
void chart::DataBrowser::SetCursorMovedHdl | ( | const Link< DataBrowser *, void > & | rLink | ) |
Definition at line 1011 of file DataBrowser.cxx.
References m_aCursorMovedHdlLink.
void chart::DataBrowser::SetDataFromModel | ( | const rtl::Reference<::chart::ChartModel > & | xChartDoc | ) |
Definition at line 827 of file DataBrowser.cxx.
References BrowseBox::GoToColumnId(), BrowseBox::GoToRow(), m_aNumberEditField, m_apDataBrowserModel, m_spNumberFormatterWrapper, m_xChartDoc, RenewTable(), and Formatter::SetFormatter().
void chart::DataBrowser::SetReadOnly | ( | bool | bNewState | ) |
Definition at line 755 of file DataBrowser.cxx.
References svt::EditBrowseBox::DeactivateCell(), and m_bIsReadOnly.
bool chart::DataBrowser::ShowQueryBox | ( | ) |
Definition at line 789 of file DataBrowser.cxx.
References Application::CreateMessageDialog(), GetFrameWeld(), RET_YES, and chart::SchResId().
Referenced by EndEditing().
void chart::DataBrowser::ShowWarningBox | ( | ) |
Definition at line 781 of file DataBrowser.cxx.
References Application::CreateMessageDialog(), GetFrameWeld(), and chart::SchResId().
Referenced by IsTabAllowed(), and MouseButtonDown().
|
private |
Definition at line 171 of file DataBrowser.hxx.
Referenced by CellModified(), CursorMoved(), and SetCursorMovedHdl().
|
private |
Definition at line 161 of file DataBrowser.hxx.
Referenced by DataBrowser(), dispose(), GetController(), InitController(), IsDataValid(), SaveModified(), and SetDataFromModel().
|
private |
Definition at line 149 of file DataBrowser.hxx.
Referenced by CellContainsNumbers(), GetCellNumber(), GetCellText(), GetColString(), GetNumberFormatKey(), InsertColumn(), InsertRow(), InsertTextColumn(), IsDataValid(), MayMoveLeftColumns(), MayMoveRightColumns(), MoveDownRow(), MoveLeftColumn(), MoveRightColumn(), MoveUpRow(), RemoveColumn(), RemoveRow(), RenewSeriesHeaders(), RenewTable(), SaveModified(), and SetDataFromModel().
|
private |
Definition at line 152 of file DataBrowser.hxx.
Referenced by clearHeaders(), dispose(), EndEditing(), ImplAdjustHeaderControls(), InsertColumn(), InsertTextColumn(), MayDeleteColumn(), MayDeleteRow(), MayInsertRow(), MayMoveDownRows(), MayMoveLeftColumns(), MayMoveRightColumns(), MayMoveUpRows(), MoveLeftColumn(), MoveRightColumn(), RemoveColumn(), RenewSeriesHeaders(), and RenewTable().
|
private |
Definition at line 162 of file DataBrowser.hxx.
Referenced by dispose(), InitController(), and SaveModified().
|
private |
Definition at line 159 of file DataBrowser.hxx.
Referenced by CellModified(), EndEditing(), IsEnableItem(), IsTabAllowed(), MouseButtonDown(), RemoveColumn(), and RemoveRow().
|
private |
Definition at line 158 of file DataBrowser.hxx.
Referenced by GetController(), IsReadOnly(), and SetReadOnly().
|
private |
the row that is currently painted
Definition at line 157 of file DataBrowser.hxx.
Referenced by PaintCell(), and SeekRow().
|
private |
Definition at line 164 of file DataBrowser.hxx.
Referenced by ImplAdjustHeaderControls(), RenewSeriesHeaders(), and RenewTable().
|
private |
Definition at line 163 of file DataBrowser.hxx.
Referenced by ImplAdjustHeaderControls(), RenewSeriesHeaders(), and RenewTable().
|
private |
note: m_aNumberEditField must precede this member!
Definition at line 167 of file DataBrowser.hxx.
Referenced by GetController(), and InitController().
|
private |
note: m_aTextEditField must precede this member!
Definition at line 169 of file DataBrowser.hxx.
Referenced by GetController(), and InitController().
|
private |
Definition at line 154 of file DataBrowser.hxx.
Referenced by GetCellText(), IsDataValid(), isDateTimeString(), SaveModified(), and SetDataFromModel().
|
private |
Definition at line 148 of file DataBrowser.hxx.
Referenced by GetCellText(), and SetDataFromModel().