LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DbFormattedField Class Referencefinal

#include <gridcell.hxx>

Inheritance diagram for DbFormattedField:
[legend]
Collaboration diagram for DbFormattedField:
[legend]

Public Member Functions

 DbFormattedField (DbGridColumn &_rColumn)
 
virtual ~DbFormattedField () override
 
virtual void Init (vcl::Window &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, 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
 
vcl::WindowGetWindow () 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
 
- Public Member Functions inherited from comphelper::OPropertyChangeListener
 OPropertyChangeListener (::osl::Mutex &_rMutex)
 
virtual ~OPropertyChangeListener ()
 
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)
 
void implValuePropertyChanged ()
 
void invalidatedController ()
 
- Protected Member Functions inherited from comphelper::OPropertyChangeListener
void disposeAdapter ()
 
void setAdapter (OPropertyChangeMultiplexer *_pAdapter)
 
- Protected Attributes inherited from DbCellControl
DbGridColumnm_rColumn
 
VclPtr< vcl::Windowm_pPainter
 
VclPtr< vcl::Windowm_pWindow
 
- Protected Attributes inherited from FmMutexHelper
::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 412 of file gridcell.hxx.

Constructor & Destructor Documentation

DbFormattedField::DbFormattedField ( DbGridColumn _rColumn)

Definition at line 1231 of file gridcell.cxx.

References DbCellControl::doPropertyListening(), and FM_PROP_FORMATKEY.

DbFormattedField::~DbFormattedField ( )
overridevirtual

Definition at line 1239 of file gridcell.cxx.

Member Function Documentation

void DbFormattedField::_propertyChanged ( const css::beans::PropertyChangeEvent &  evt)
overrideprivatevirtual
bool DbFormattedField::commitControl ( )
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.

See also
updateFromModel

Implements DbCellControl.

Definition at line 1584 of file gridcell.cxx.

References Any, DBG_ASSERT, FM_PROP_EFFECTIVE_VALUE, VclPtr< vcl::Window >::get(), DbGridColumn::getModel(), Edit::GetText(), FormattedField::GetTextValue(), FormattedField::GetValue(), DbGridColumn::IsNumeric(), DbCellControl::m_pWindow, and DbCellControl::m_rColumn.

CellControllerRef DbFormattedField::CreateController ( ) const
overridevirtual

Implements DbCellControl.

Definition at line 1450 of file gridcell.cxx.

References VclPtr< vcl::Window >::get(), and DbCellControl::m_pWindow.

OUString DbFormattedField::GetFormatText ( const css::uno::Reference< css::sdb::XColumn > &  _rxField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter,
Color **  ppColor = nullptr 
)
overridevirtual
void DbFormattedField::Init ( vcl::Window rParent,
const css::uno::Reference< css::sdbc::XRowSet > &  xCursor 
)
overridevirtual
void DbFormattedField::UpdateFromField ( const css::uno::Reference< css::sdb::XColumn > &  _rxField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
)
overridevirtual
void DbFormattedField::updateFromModel ( css::uno::Reference< css::beans::XPropertySet >  _rxModel)
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.

NULL != _rxModel NULL != m_pWindow

See also
commitControl

Implements DbCellControl.

Definition at line 1562 of file gridcell.cxx.

References Any, FM_PROP_EFFECTIVE_VALUE, VclPtr< vcl::Window >::get(), DbCellControl::m_pWindow, SELECTION_MAX, and SELECTION_MIN.

Member Data Documentation

css::uno::Reference< css::util::XNumberFormatsSupplier > DbFormattedField::m_xSupplier
private

Definition at line 431 of file gridcell.hxx.

Referenced by Init().


The documentation for this class was generated from the following files: