LibreOffice Module svx (master) 1
|
#include <gridcell.hxx>
Public Member Functions | |
DbComboBox (DbGridColumn &_rColumn) | |
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 |
void | SetList (const css::uno::Any &rItems) |
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 | implAdjustGenericFieldSetting (const css::uno::Reference< css::beans::XPropertySet > &_rxModel) override |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &evt) override |
Additional Inherited Members | |
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 443 of file gridcell.hxx.
DbComboBox::DbComboBox | ( | DbGridColumn & | _rColumn | ) |
Definition at line 2456 of file gridcell.cxx.
References DbCellControl::doPropertyListening(), FM_PROP_LINECOUNT, FM_PROP_STRINGITEMLIST, and DbCellControl::setAlignedController().
|
overrideprivatevirtual |
Reimplemented from DbCellControl.
Definition at line 2465 of file gridcell.cxx.
References DbCellControl::_propertyChanged(), FM_PROP_STRINGITEMLIST, and SetList().
|
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 2558 of file gridcell.cxx.
References Any, FM_PROP_TEXT, VclPtr< class reference_type >::get(), weld::ComboBox::get_active_text(), ComboBoxControl::get_widget(), DbGridColumn::getModel(), DbCellControl::m_pWindow, and DbCellControl::m_rColumn.
|
overridevirtual |
Implements DbCellControl.
Definition at line 2521 of file gridcell.cxx.
References VclPtr< class reference_type >::get(), and DbCellControl::m_pWindow.
|
overridevirtual |
Implements DbCellControl.
Definition at line 2526 of file gridcell.cxx.
References dbtools::FormattedColumnValue::getFormattedValue().
Referenced by UpdateFromField().
|
overrideprivatevirtual |
Reimplemented from DbCellControl.
Definition at line 2494 of file gridcell.cxx.
Referenced by Init().
|
overridevirtual |
Reimplemented from DbCellControl.
Definition at line 2499 of file gridcell.cxx.
References VclPtr< class reference_type >::Create(), FM_PROP_STRINGITEMLIST, DbGridColumn::getModel(), StyleSettings::GetSelectionOptions(), AllSettings::GetStyleSettings(), implAdjustGenericFieldSetting(), DbCellControl::Init(), DbCellControl::m_pWindow, DbCellControl::m_rColumn, DbGridColumn::SetAlignmentFromModel(), SetList(), StyleSettings::SetSelectionOptions(), AllSettings::SetStyleSettings(), and xModel.
void DbComboBox::SetList | ( | const css::uno::Any & | rItems | ) |
Definition at line 2477 of file gridcell.cxx.
References weld::ComboBox::append_text(), weld::ComboBox::clear(), VclPtr< class reference_type >::get(), ComboBoxControl::get_widget(), DbCellControl::invalidatedController(), and DbCellControl::m_pWindow.
Referenced by _propertyChanged(), and Init().
|
overridevirtual |
Implements DbCellControl.
Definition at line 2534 of file gridcell.cxx.
References VclPtr< class reference_type >::get(), ComboBoxControl::get_widget(), GetFormatText(), DbCellControl::m_pWindow, and weld::ComboBox::set_entry_text().
|
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 2540 of file gridcell.cxx.
References FM_PROP_TEXT, VclPtr< class reference_type >::get(), weld::ComboBox::get_active_text(), ComboBoxControl::get_widget(), DbCellControl::m_pWindow, weld::ComboBox::select_entry_region(), and weld::ComboBox::set_entry_text().