LibreOffice Module svx (master) 1
|
#include <gridcell.hxx>
Public Member Functions | |
DbTextField (DbGridColumn &_rColumn) | |
::svt::IEditImplementation * | GetEditImplementation () |
bool | IsMultiLineEdit () const |
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 |
virtual void | PaintFieldToCell (OutputDevice &_rDev, const tools::Rectangle &_rRect, const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &_rxFormatter) 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 | ~DbTextField () override |
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 | implSetEffectiveMaxTextLen (sal_Int32 _nMaxLen) override |
Private Attributes | |
std::unique_ptr<::svt::IEditImplementation > | m_pEdit |
std::unique_ptr<::svt::IEditImplementation > | m_pPainterImplementation |
bool | m_bIsMultiLineEdit |
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 368 of file gridcell.hxx.
|
overrideprivatevirtual |
Definition at line 1035 of file gridcell.cxx.
References m_pEdit, and m_pPainterImplementation.
DbTextField::DbTextField | ( | DbGridColumn & | _rColumn | ) |
Definition at line 1029 of file gridcell.cxx.
|
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 1189 of file gridcell.cxx.
References Any, FM_PROP_TEXT, DbGridColumn::getModel(), m_pEdit, and DbCellControl::m_rColumn.
|
overridevirtual |
|
inline |
Definition at line 379 of file gridcell.hxx.
References m_pEdit.
Referenced by FmXEditCell::FmXEditCell().
|
overridevirtual |
Implements DbCellControl.
Definition at line 1145 of file gridcell.cxx.
References DBG_UNHANDLED_EXCEPTION, and Exception.
Referenced by PaintFieldToCell(), and UpdateFromField().
|
overrideprivatevirtual |
Reimplemented from DbLimitedLengthField.
Definition at line 1206 of file gridcell.cxx.
References m_pEdit, and m_pPainterImplementation.
|
overridevirtual |
Reimplemented from DbCellControl.
Definition at line 1041 of file gridcell.cxx.
References VclPtr< class reference_type >::Create(), Exception, FM_PROP_MULTILINE, DbGridColumn::getModel(), StyleSettings::GetSelectionOptions(), AllSettings::GetStyleSettings(), DbLimitedLengthField::implAdjustGenericFieldSetting(), DbCellControl::Init(), m_bIsMultiLineEdit, m_pEdit, DbCellControl::m_pPainter, m_pPainterImplementation, DbCellControl::m_pWindow, DbCellControl::m_rColumn, DbGridColumn::SetAlignmentFromModel(), StyleSettings::SetSelectionOptions(), AllSettings::SetStyleSettings(), TOOLS_WARN_EXCEPTION, and xModel.
|
inline |
Definition at line 380 of file gridcell.hxx.
References m_bIsMultiLineEdit.
Referenced by FmXEditCell::FmXEditCell().
|
overridevirtual |
Reimplemented from DbCellControl.
Definition at line 1137 of file gridcell.cxx.
References GetFormatText(), m_pPainterImplementation, and DbCellControl::PaintFieldToCell().
|
overridevirtual |
Implements DbCellControl.
Definition at line 1165 of file gridcell.cxx.
References GetFormatText(), m_pEdit, SELECTION_MAX, and SELECTION_MIN.
|
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 1171 of file gridcell.cxx.
References FM_PROP_TEXT, m_pEdit, DbCellControl::m_pWindow, SELECTION_MAX, SELECTION_MIN, and u.
|
private |
Definition at line 372 of file gridcell.hxx.
Referenced by Init(), and IsMultiLineEdit().
|
private |
Definition at line 370 of file gridcell.hxx.
Referenced by commitControl(), CreateController(), GetEditImplementation(), implSetEffectiveMaxTextLen(), Init(), UpdateFromField(), updateFromModel(), and ~DbTextField().
|
private |
Definition at line 371 of file gridcell.hxx.
Referenced by implSetEffectiveMaxTextLen(), Init(), PaintFieldToCell(), and ~DbTextField().