LibreOffice Module svx (master)
1
|
#include <gridcell.hxx>
Public Member Functions | |
DbPatternField (DbGridColumn &_rColumn, const css::uno::Reference< css::uno::XComponentContext > &_rContext) | |
virtual void | Init (BrowserDataWin &rParent, const css::uno::Reference< css::sdbc::XRowSet > &xCursor) override |
virtual OUString | GetFormatText (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, const Color **ppColor=nullptr) override |
virtual void | UpdateFromField (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) override |
virtual ::svt::CellControllerRef | CreateController () const override |
![]() | |
DbCellControl (DbGridColumn &_rColumn) | |
virtual | ~DbCellControl () override |
vcl::Window & | GetWindow () const |
bool | isAlignedController () const |
void | AlignControl (sal_Int16 nAlignment) |
void | SetTextLineColor () |
void | SetTextLineColor (const Color &_rColor) |
bool | Commit () |
virtual void | Update () |
virtual void | PaintFieldToCell (OutputDevice &rDev, const tools::Rectangle &rRect, const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) |
virtual void | PaintCell (OutputDevice &_rDev, const tools::Rectangle &_rRect) |
void | ImplInitWindow (vcl::Window const &rParent, const InitWindowFacet _eInitWhat) |
double | GetValue (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) const |
![]() | |
OPropertyChangeListener (::osl::Mutex &_rMutex) | |
virtual | ~OPropertyChangeListener () |
virtual void | _disposing (const css::lang::EventObject &_rSource) |
Protected Member Functions | |
virtual bool | commitControl () override |
DbCellControl. More... | |
virtual void | updateFromModel (css::uno::Reference< css::beans::XPropertySet > _rxModel) override |
updates the current content of the control (e.g. More... | |
virtual void | implAdjustGenericFieldSetting (const css::uno::Reference< css::beans::XPropertySet > &_rxModel) override |
![]() | |
const css::uno::Reference< css::sdbc::XRowSet > & | getCursor () const |
bool | isTransparent () const |
void | setTransparent (bool _bSet) |
void | setAlignedController (bool _bAlign) |
bool | isValuePropertyLocked () const |
determined whether or not the value property is locked More... | |
void | lockValueProperty () |
locks the listening at the value property. More... | |
void | unlockValueProperty () |
unlocks the listening at the value property More... | |
void | doPropertyListening (const OUString &_rPropertyName) |
void | implValuePropertyChanged () |
void | invalidatedController () |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &evt) override |
![]() | |
void | disposeAdapter () |
void | setAdapter (OPropertyChangeMultiplexer *_pAdapter) |
Private Member Functions | |
OUString | impl_formatText (const OUString &_rText) |
Private Attributes | |
::std::unique_ptr< ::dbtools::FormattedColumnValue > | m_pValueFormatter |
::std::unique_ptr< ::dbtools::FormattedColumnValue > | m_pPaintFormatter |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
Additional Inherited Members | |
![]() | |
DbGridColumn & | m_rColumn |
VclPtr< vcl::Window > | m_pPainter |
VclPtr< vcl::Window > | m_pWindow |
![]() | |
::osl::Mutex | m_aMutex |
Definition at line 507 of file gridcell.hxx.
DbPatternField::DbPatternField | ( | DbGridColumn & | _rColumn, |
const css::uno::Reference< css::uno::XComponentContext > & | _rContext | ||
) |
Definition at line 1716 of file gridcell.cxx.
References DbCellControl::doPropertyListening(), FM_PROP_EDITMASK, FM_PROP_LITERALMASK, FM_PROP_STRICTFORMAT, and m_xContext.
|
overrideprotectedvirtual |
Implements DbCellControl.
Definition at line 1818 of file gridcell.cxx.
References FM_PROP_TEXT, VclPtr< vcl::Window >::get(), weld::Entry::get_text(), DbGridColumn::getModel(), DbCellControl::m_pWindow, DbCellControl::m_rColumn, and makeAny().
|
overridevirtual |
Implements DbCellControl.
Definition at line 1764 of file gridcell.cxx.
References VclPtr< vcl::Window >::get(), and DbCellControl::m_pWindow.
|
overridevirtual |
Implements DbCellControl.
Definition at line 1777 of file gridcell.cxx.
References DbCellControl::getCursor(), DbGridColumn::GetField(), impl_formatText(), m_pPaintFormatter, m_pValueFormatter, DbCellControl::m_rColumn, and m_xContext.
Referenced by UpdateFromField().
|
private |
Definition at line 1769 of file gridcell.cxx.
References VclPtr< vcl::Window >::get(), weld::Entry::get_text(), weld::PatternFormatter::get_widget(), DbCellControl::m_pPainter, weld::PatternFormatter::ReformatAll(), and weld::Entry::set_text().
Referenced by GetFormatText(), and updateFromModel().
|
overrideprotectedvirtual |
Reimplemented from DbCellControl.
Definition at line 1725 of file gridcell.cxx.
References DBG_ASSERT, FM_PROP_EDITMASK, FM_PROP_LITERALMASK, FM_PROP_STRICTFORMAT, VclPtr< vcl::Window >::get(), DbCellControl::m_pPainter, DbCellControl::m_pWindow, OUStringToOString(), weld::PatternFormatter::SetMask(), and weld::PatternFormatter::SetStrictFormat().
Referenced by Init().
|
overridevirtual |
Reimplemented from DbCellControl.
Definition at line 1751 of file gridcell.cxx.
References VclPtr< reference_type >::Create(), DbGridColumn::getModel(), implAdjustGenericFieldSetting(), DbCellControl::Init(), DbCellControl::m_pPainter, DbCellControl::m_pWindow, DbCellControl::m_rColumn, DbGridColumn::SetAlignmentFromModel(), and xModel.
|
overridevirtual |
Implements DbCellControl.
Definition at line 1799 of file gridcell.cxx.
References VclPtr< vcl::Window >::get(), GetFormatText(), DbCellControl::m_pWindow, weld::Entry::select_region(), and weld::Entry::set_text().
|
overrideprotectedvirtual |
updates the current content of the control (e.g.
the text of an edit field) from the column model (e.g. the "Text" property of the model).
To be overwritten in derived classes.
NULL != _rxModel NULL != m_pWindow
Implements DbCellControl.
Definition at line 1806 of file gridcell.cxx.
References FM_PROP_TEXT, VclPtr< vcl::Window >::get(), impl_formatText(), DbCellControl::m_pWindow, weld::Entry::select_region(), and weld::Entry::set_text().
|
private |
Definition at line 528 of file gridcell.hxx.
Referenced by GetFormatText().
|
private |
Definition at line 527 of file gridcell.hxx.
Referenced by GetFormatText().
|
private |
Definition at line 529 of file gridcell.hxx.
Referenced by GetFormatText().