LibreOffice Module svx (master) 1
|
#include <gridcell.hxx>
Public Member Functions | |
DbFormattedField (DbGridColumn &_rColumn) | |
virtual | ~DbFormattedField () override |
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 |
Public Member Functions inherited from DbCellControl | |
DbCellControl (DbGridColumn &_rColumn) | |
virtual | ~DbCellControl () override |
svt::ControlBase & | GetWindow () const |
bool | isAlignedController () const |
void | AlignControl (sal_Int16 nAlignment) |
void | SetTextLineColor () |
void | SetTextLineColor (const Color &_rColor) |
virtual void | Init (BrowserDataWin &rParent, const css::uno::Reference< css::sdbc::XRowSet > &xCursor) |
virtual ::svt::CellControllerRef | CreateController () const =0 |
bool | Commit () |
virtual OUString | GetFormatText (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, const Color **ppColor=nullptr)=0 |
virtual void | Update () |
virtual void | UpdateFromField (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter)=0 |
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 |
Public Member Functions inherited from comphelper::OPropertyChangeListener | |
OPropertyChangeListener (::osl::Mutex &_rMutex) | |
virtual | ~OPropertyChangeListener () |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &_rEvent)=0 |
virtual void | _disposing (const css::lang::EventObject &_rSource) |
Private Member Functions | |
virtual bool | commitControl () override |
commits the content of the control (e.g. More... | |
virtual void | updateFromModel (css::uno::Reference< css::beans::XPropertySet > _rxModel) override |
updates the current content of the control (e.g. More... | |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &evt) override |
Private Attributes | |
css::uno::Reference< css::util::XNumberFormatsSupplier > | m_xSupplier |
Additional Inherited Members | |
Protected Member Functions inherited from DbLimitedLengthField | |
DbLimitedLengthField (DbGridColumn &_rColumn) | |
virtual void | implAdjustGenericFieldSetting (const css::uno::Reference< css::beans::XPropertySet > &_rxModel) override |
void | implSetMaxTextLen (sal_Int16 _nMaxLen) |
virtual void | implSetEffectiveMaxTextLen (sal_Int32 _nMaxLen) |
Protected Member Functions inherited from DbCellControl | |
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) |
virtual void | implAdjustGenericFieldSetting (const css::uno::Reference< css::beans::XPropertySet > &_rxModel) |
void | implValuePropertyChanged () |
void | invalidatedController () |
virtual bool | commitControl ()=0 |
commits the content of the control (e.g. More... | |
virtual void | updateFromModel (css::uno::Reference< css::beans::XPropertySet > _rxModel)=0 |
updates the current content of the control (e.g. More... | |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &evt) override |
Protected Member Functions inherited from comphelper::OPropertyChangeListener | |
void | disposeAdapter () |
Protected Attributes inherited from DbCellControl | |
DbGridColumn & | m_rColumn |
VclPtr< svt::ControlBase > | m_pPainter |
VclPtr< svt::ControlBase > | m_pWindow |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 399 of file gridcell.hxx.
DbFormattedField::DbFormattedField | ( | DbGridColumn & | _rColumn | ) |
Definition at line 1214 of file gridcell.cxx.
References DbCellControl::doPropertyListening(), and FM_PROP_FORMATKEY.
|
overridevirtual |
Definition at line 1221 of file gridcell.cxx.
|
overrideprivatevirtual |
Reimplemented from DbCellControl.
Definition at line 1439 of file gridcell.cxx.
References DbCellControl::_propertyChanged(), DBG_ASSERT, FM_PROP_FORMATKEY, VclPtr< class reference_type >::get(), DbCellControl::m_pPainter, and DbCellControl::m_pWindow.
|
overrideprivatevirtual |
commits the content of the control (e.g.
the text of an edit field) into the column model (e.g. the "Text" property of the model).
To be overwritten in derived classes.
Implements DbCellControl.
Definition at line 1573 of file gridcell.cxx.
References Any, FM_PROP_EFFECTIVE_VALUE, VclPtr< class reference_type >::get(), weld::Entry::get_text(), DbGridColumn::getModel(), Formatter::GetTextValue(), Formatter::GetValue(), DbGridColumn::IsNumeric(), DbCellControl::m_pWindow, and DbCellControl::m_rColumn.
|
overridevirtual |
Implements DbCellControl.
Definition at line 1434 of file gridcell.cxx.
References VclPtr< class reference_type >::get(), and DbCellControl::m_pWindow.
|
overridevirtual |
Implements DbCellControl.
Definition at line 1457 of file gridcell.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, VclPtr< class reference_type >::get(), Formatter::GetLastOutputColor(), DbGridControl::getNullDate(), DbGridColumn::GetParent(), getValue(), DbGridColumn::IsNumeric(), DbCellControl::m_pPainter, DbCellControl::m_rColumn, Formatter::SetTextFormatted(), and Formatter::SetValue().
|
overridevirtual |
Reimplemented from DbCellControl.
Definition at line 1225 of file gridcell.cxx.
References Any, weld::EntryFormatter::ClearMaxValue(), weld::EntryFormatter::ClearMinValue(), VclPtr< class reference_type >::Create(), DBG_ASSERT, FM_PROP_EFFECTIVE_DEFAULT, FM_PROP_EFFECTIVE_MAX, FM_PROP_EFFECTIVE_MIN, FM_PROP_FORMATKEY, FM_PROP_FORMATSSUPPLIER, VclPtr< class reference_type >::get(), getConnection(), weld::EntryFormatter::GetEntrySelectionOptions(), DbGridColumn::GetField(), DbGridColumn::getModel(), getNumberFormats(), SvNumberFormatsSupplierObj::GetNumberFormatter(), SvNumberFormatter::GetOutputString(), DbLimitedLengthField::implAdjustGenericFieldSetting(), DbCellControl::Init(), SvNumberFormatter::IsNumberFormat(), DbGridColumn::IsNumeric(), DbCellControl::m_pPainter, DbCellControl::m_pWindow, DbCellControl::m_rColumn, m_xSupplier, SAL_INFO, DbGridColumn::SetAlignmentFromModel(), Formatter::SetDefaultText(), Formatter::SetDefaultValue(), weld::EntryFormatter::SetEntrySelectionOptions(), Formatter::SetFormatKey(), Formatter::SetFormatter(), weld::EntryFormatter::SetMaxValue(), weld::EntryFormatter::SetMinValue(), Formatter::SetStrictFormat(), Formatter::StandardFormatter(), and Formatter::TreatAsNumber().
|
overridevirtual |
Implements DbCellControl.
Definition at line 1507 of file gridcell.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, VclPtr< class reference_type >::get(), DbGridControl::getNullDate(), DbGridColumn::GetParent(), getValue(), DbGridColumn::IsNumeric(), DbCellControl::m_pWindow, DbCellControl::m_rColumn, weld::Entry::select_region(), weld::Entry::set_text(), Formatter::SetTextFormatted(), and Formatter::SetValue().
|
overrideprivatevirtual |
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.
@precond NULL != _rxModel @precond NULL != m_pWindow
Implements DbCellControl.
Definition at line 1549 of file gridcell.cxx.
References Any, FM_PROP_EFFECTIVE_VALUE, VclPtr< class reference_type >::get(), DbCellControl::m_pWindow, weld::Entry::select_region(), Formatter::SetTextFormatted(), and Formatter::SetValue().
|
private |
Definition at line 418 of file gridcell.hxx.
Referenced by Init().