LibreOffice Module svx (master) 1
Protected Member Functions | List of all members
DbLimitedLengthField Class Reference

a field which is bound to a column which supports the MaxTextLen property More...

#include <gridcell.hxx>

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

Protected Member Functions

 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 ()
 

Additional Inherited Members

- Public Member Functions inherited from DbCellControl
 DbCellControl (DbGridColumn &_rColumn)
 
virtual ~DbCellControl () override
 
svt::ControlBaseGetWindow () 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)
 
- Protected Attributes inherited from DbCellControl
DbGridColumnm_rColumn
 
VclPtr< svt::ControlBasem_pPainter
 
VclPtr< svt::ControlBasem_pWindow
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

a field which is bound to a column which supports the MaxTextLen property

Definition at line 348 of file gridcell.hxx.

Constructor & Destructor Documentation

◆ DbLimitedLengthField()

DbLimitedLengthField::DbLimitedLengthField ( DbGridColumn _rColumn)
protected

Definition at line 1003 of file gridcell.cxx.

References DbCellControl::doPropertyListening(), and FM_PROP_MAXTEXTLEN.

Member Function Documentation

◆ implAdjustGenericFieldSetting()

void DbLimitedLengthField::implAdjustGenericFieldSetting ( const css::uno::Reference< css::beans::XPropertySet > &  _rxModel)
overrideprotectedvirtual

Reimplemented from DbCellControl.

Definition at line 1010 of file gridcell.cxx.

References DBG_ASSERT, FM_PROP_MAXTEXTLEN, implSetMaxTextLen(), and DbCellControl::m_pWindow.

Referenced by DbTextField::Init(), and DbFormattedField::Init().

◆ implSetEffectiveMaxTextLen()

void DbLimitedLengthField::implSetEffectiveMaxTextLen ( sal_Int32  _nMaxLen)
protectedvirtual

Reimplemented in DbTextField.

Definition at line 1022 of file gridcell.cxx.

References DbCellControl::m_pPainter.

Referenced by implSetMaxTextLen().

◆ implSetMaxTextLen()

void DbLimitedLengthField::implSetMaxTextLen ( sal_Int16  _nMaxLen)
inlineprotected

Definition at line 360 of file gridcell.hxx.

References implSetEffectiveMaxTextLen().

Referenced by implAdjustGenericFieldSetting().


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