LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
DbTextField Class Reference

#include <gridcell.hxx>

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

Public Member Functions

 DbTextField (DbGridColumn &_rColumn)
 
::svt::IEditImplementationGetEditImplementation ()
 
bool IsSimpleEdit () const
 
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
 
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
 
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 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)
 

Protected 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
 
- 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)
 
- 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 ()
 
virtual void _propertyChanged (const css::beans::PropertyChangeEvent &evt) override
 
- Protected Member Functions inherited from comphelper::OPropertyChangeListener
void disposeAdapter ()
 
void setAdapter (OPropertyChangeMultiplexer *_pAdapter)
 

Private Attributes

std::unique_ptr<::svt::IEditImplementationm_pEdit
 
std::unique_ptr<::svt::IEditImplementationm_pPainterImplementation
 
bool m_bIsSimpleEdit
 

Additional Inherited Members

- 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 380 of file gridcell.hxx.

Constructor & Destructor Documentation

DbTextField::~DbTextField ( )
overrideprotectedvirtual

Definition at line 1067 of file gridcell.cxx.

References m_pEdit, and m_pPainterImplementation.

DbTextField::DbTextField ( DbGridColumn _rColumn)

Definition at line 1060 of file gridcell.cxx.

Member Function Documentation

bool DbTextField::commitControl ( )
overrideprotectedvirtual

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 1205 of file gridcell.cxx.

References EDIT_NOLIMIT, FM_PROP_TEXT, DbGridColumn::getModel(), m_pEdit, DbCellControl::m_rColumn, and makeAny().

CellControllerRef DbTextField::CreateController ( ) const
overridevirtual

Implements DbCellControl.

Definition at line 1142 of file gridcell.cxx.

References m_pEdit.

::svt::IEditImplementation* DbTextField::GetEditImplementation ( )
inline

Definition at line 392 of file gridcell.hxx.

Referenced by FmXEditCell::FmXEditCell().

OUString DbTextField::GetFormatText ( const css::uno::Reference< css::sdb::XColumn > &  _rxField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter,
Color **  ppColor = nullptr 
)
overridevirtual

Implements DbCellControl.

Definition at line 1157 of file gridcell.cxx.

References DBG_UNHANDLED_EXCEPTION, and Exception.

Referenced by PaintFieldToCell(), and UpdateFromField().

void DbTextField::implSetEffectiveMaxTextLen ( sal_Int32  _nMaxLen)
overrideprotectedvirtual

Reimplemented from DbLimitedLengthField.

Definition at line 1223 of file gridcell.cxx.

References m_pEdit, and m_pPainterImplementation.

void DbTextField::Init ( vcl::Window rParent,
const css::uno::Reference< css::sdbc::XRowSet > &  xCursor 
)
overridevirtual
bool DbTextField::IsSimpleEdit ( ) const
inline

Definition at line 393 of file gridcell.hxx.

References m_bIsSimpleEdit.

Referenced by FmXEditCell::FmXEditCell().

void DbTextField::PaintFieldToCell ( OutputDevice _rDev,
const tools::Rectangle _rRect,
const css::uno::Reference< css::sdb::XColumn > &  _rxField,
const css::uno::Reference< css::util::XNumberFormatter > &  _rxFormatter 
)
overridevirtual

Reimplemented from DbCellControl.

Definition at line 1148 of file gridcell.cxx.

References GetFormatText(), m_pPainterImplementation, and DbCellControl::PaintFieldToCell().

void DbTextField::UpdateFromField ( const css::uno::Reference< css::sdb::XColumn > &  _rxField,
const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter 
)
overridevirtual

Implements DbCellControl.

Definition at line 1178 of file gridcell.cxx.

References GetFormatText(), m_pEdit, SELECTION_MAX, and SELECTION_MIN.

void DbTextField::updateFromModel ( css::uno::Reference< css::beans::XPropertySet >  _rxModel)
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

See also
commitControl

Implements DbCellControl.

Definition at line 1185 of file gridcell.cxx.

References EDIT_NOLIMIT, FM_PROP_TEXT, m_pEdit, DbCellControl::m_pWindow, SELECTION_MAX, and SELECTION_MIN.

Member Data Documentation

bool DbTextField::m_bIsSimpleEdit
private

Definition at line 384 of file gridcell.hxx.

Referenced by Init(), and IsSimpleEdit().

std::unique_ptr<::svt::IEditImplementation> DbTextField::m_pEdit
private
std::unique_ptr<::svt::IEditImplementation> DbTextField::m_pPainterImplementation
private

Definition at line 383 of file gridcell.hxx.

Referenced by implSetEffectiveMaxTextLen(), Init(), PaintFieldToCell(), and ~DbTextField().


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