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

#include <gridcell.hxx>

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

Public Member Functions

 FmXEditCell (DbGridColumn *pColumn, std::unique_ptr< DbCellControl > pControl)
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &_rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL addTextListener (const css::uno::Reference< css::awt::XTextListener > &l) override
 
virtual void SAL_CALL removeTextListener (const css::uno::Reference< css::awt::XTextListener > &l) override
 
virtual void SAL_CALL setText (const OUString &aText) override
 
virtual void SAL_CALL insertText (const css::awt::Selection &Sel, const OUString &Text) override
 
virtual OUString SAL_CALL getText () override
 
virtual OUString SAL_CALL getSelectedText () override
 
virtual void SAL_CALL setSelection (const css::awt::Selection &aSelection) override
 
virtual css::awt::Selection SAL_CALL getSelection () override
 
virtual sal_Bool SAL_CALL isEditable () override
 
virtual void SAL_CALL setEditable (sal_Bool bEditable) override
 
virtual void SAL_CALL setMaxTextLen (sal_Int16 nLen) override
 
virtual sal_Int16 SAL_CALL getMaxTextLen () override
 
virtual void SAL_CALL addChangeListener (const css::uno::Reference< css::form::XChangeListener > &aListener) override
 
virtual void SAL_CALL removeChangeListener (const css::uno::Reference< css::form::XChangeListener > &aListener) override
 
- Public Member Functions inherited from FmXTextCell
 FmXTextCell (DbGridColumn *pColumn, std::unique_ptr< DbCellControl > pControl)
 
virtual void PaintFieldToCell (OutputDevice &rDev, const tools::Rectangle &rRect, const css::uno::Reference< css::sdb::XColumn > &xField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter) override
 
OUString GetText (const css::uno::Reference< css::sdb::XColumn > &_rxField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, Color **ppColor=nullptr)
 
- Public Member Functions inherited from FmXDataCell
 FmXDataCell (DbGridColumn *pColumn, std::unique_ptr< DbCellControl > pControl)
 
void UpdateFromField (const css::uno::Reference< css::sdb::XColumn > &xField, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter)
 
- Public Member Functions inherited from FmXGridCell
 FmXGridCell (DbGridColumn *pColumn, std::unique_ptr< DbCellControl > pControl)
 
void init ()
 
void SetTextLineColor ()
 
void SetTextLineColor (const Color &_rColor)
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL setContext (const css::uno::Reference< css::uno::XInterface > &) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getContext () override
 
virtual void SAL_CALL createPeer (const css::uno::Reference< css::awt::XToolkit > &, const css::uno::Reference< css::awt::XWindowPeer > &) override
 
virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL getPeer () override
 
virtual sal_Bool SAL_CALL setModel (const css::uno::Reference< css::awt::XControlModel > &) override
 
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel () override
 
virtual css::uno::Reference< css::awt::XView > SAL_CALL getView () override
 
virtual void SAL_CALL setDesignMode (sal_Bool) override
 
virtual sal_Bool SAL_CALL isDesignMode () override
 
virtual sal_Bool SAL_CALL isTransparent () override
 
virtual sal_Bool SAL_CALL getLock () override
 
virtual void SAL_CALL setLock (sal_Bool _bLock) override
 
virtual void SAL_CALL setPosSize (::sal_Int32 X,::sal_Int32 Y,::sal_Int32 Width,::sal_Int32 Height,::sal_Int16 Flags) override
 
virtual css::awt::Rectangle SAL_CALL getPosSize () override
 
virtual void SAL_CALL setVisible (sal_Bool Visible) override
 
virtual void SAL_CALL setEnable (sal_Bool Enable) override
 
virtual void SAL_CALL setFocus () override
 
virtual void SAL_CALL addWindowListener (const css::uno::Reference< css::awt::XWindowListener > &xListener) override
 
virtual void SAL_CALL removeWindowListener (const css::uno::Reference< css::awt::XWindowListener > &xListener) override
 
virtual void SAL_CALL addFocusListener (const css::uno::Reference< css::awt::XFocusListener > &xListener) override
 
virtual void SAL_CALL removeFocusListener (const css::uno::Reference< css::awt::XFocusListener > &xListener) override
 
virtual void SAL_CALL addKeyListener (const css::uno::Reference< css::awt::XKeyListener > &xListener) override
 
virtual void SAL_CALL removeKeyListener (const css::uno::Reference< css::awt::XKeyListener > &xListener) override
 
virtual void SAL_CALL addMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override
 
virtual void SAL_CALL removeMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override
 
virtual void SAL_CALL addMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
 
virtual void SAL_CALL removeMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
 
virtual void SAL_CALL addPaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override
 
virtual void SAL_CALL removePaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override
 
bool Commit ()
 
void ImplInitWindow (vcl::Window const &rParent, const InitWindowFacet _eInitWhat)
 
bool isAlignedController () const
 
void AlignControl (sal_Int16 nAlignment)
 
- Public Member Functions inherited from cppu::OComponentHelper
 OComponentHelper (::osl::Mutex &rMutex)
 
virtual ~OComponentHelper () SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 
- Public Member Functions inherited from cppu::ImplHelper2< class, class >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::ImplHelper1< class >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 

Private Member Functions

virtual ~FmXEditCell () override
 
virtual void onWindowEvent (const VclEventId _nEventId, const vcl::Window &_rWindow, const void *_pEventData) override
 
virtual void onFocusGained (const css::awt::FocusEvent &_rEvent) override
 
virtual void onFocusLost (const css::awt::FocusEvent &_rEvent) override
 
void onTextChanged ()
 

Private Attributes

OUString m_sValueOnEnter
 
::comphelper::OInterfaceContainerHelper2 m_aTextListeners
 
::comphelper::OInterfaceContainerHelper2 m_aChangeListeners
 
::svt::IEditImplementationm_pEditImplementation
 
bool m_bOwnEditImplementation
 

Additional Inherited Members

- Protected Member Functions inherited from FmXDataCell
void UpdateFromColumn ()
 
- Protected Member Functions inherited from FmXGridCell
virtual ~FmXGridCell () override
 
virtual vcl::WindowgetEventWindow () const
 
- Protected Member Functions inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject () SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Member Functions inherited from cppu::ImplHelper2< class, class >
 ~ImplHelper2 ()
 
- Protected Member Functions inherited from cppu::ImplHelper1< class >
 ~ImplHelper1 ()
 
- Protected Attributes inherited from FmXTextCell
bool m_bFastPaint
 determines whether the text of this cell can be painted directly, without using the painter control More...
 
- Protected Attributes inherited from FmXGridCell
::osl::Mutex m_aMutex
 
DbGridColumnm_pColumn
 
std::unique_ptr< DbCellControlm_pCellControl
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 857 of file gridcell.hxx.

Constructor & Destructor Documentation

FmXEditCell::FmXEditCell ( DbGridColumn pColumn,
std::unique_ptr< DbCellControl pControl 
)
FmXEditCell::~FmXEditCell ( )
overrideprivatevirtual

Definition at line 3588 of file gridcell.cxx.

References cppu::OComponentHelper::acquire(), and FmXGridCell::dispose().

Member Function Documentation

void SAL_CALL FmXEditCell::addChangeListener ( const css::uno::Reference< css::form::XChangeListener > &  aListener)
overridevirtual
void SAL_CALL FmXEditCell::addTextListener ( const css::uno::Reference< css::awt::XTextListener > &  l)
overridevirtual

Definition at line 3640 of file gridcell.cxx.

void FmXEditCell::disposing ( )
overridevirtual
virtual css::uno::Sequence< sal_Int8 > SAL_CALL FmXEditCell::getImplementationId ( )
overridevirtual

Reimplemented from cppu::ImplHelper2< class, class >.

sal_Int16 SAL_CALL FmXEditCell::getMaxTextLen ( )
overridevirtual
OUString SAL_CALL FmXEditCell::getSelectedText ( )
overridevirtual
css::awt::Selection SAL_CALL FmXEditCell::getSelection ( )
overridevirtual
OUString SAL_CALL FmXEditCell::getText ( )
overridevirtual
Sequence< css::uno::Type > SAL_CALL FmXEditCell::getTypes ( )
overridevirtual
void SAL_CALL FmXEditCell::insertText ( const css::awt::Selection &  Sel,
const OUString &  Text 
)
overridevirtual
sal_Bool SAL_CALL FmXEditCell::isEditable ( )
overridevirtual
void FmXEditCell::onFocusGained ( const css::awt::FocusEvent &  _rEvent)
overrideprivatevirtual

Reimplemented from FmXGridCell.

Definition at line 3792 of file gridcell.cxx.

References getText(), m_sValueOnEnter, and FmXGridCell::onFocusGained().

void FmXEditCell::onFocusLost ( const css::awt::FocusEvent &  _rEvent)
overrideprivatevirtual
void FmXEditCell::onTextChanged ( )
private

Definition at line 3784 of file gridcell.cxx.

References m_aTextListeners, and comphelper::OInterfaceContainerHelper2::notifyEach().

Referenced by onWindowEvent(), and setText().

void FmXEditCell::onWindowEvent ( const VclEventId  _nEventId,
const vcl::Window _rWindow,
const void _pEventData 
)
overrideprivatevirtual
Any SAL_CALL FmXEditCell::queryAggregation ( const css::uno::Type &  _rType)
overridevirtual
void SAL_CALL FmXEditCell::removeChangeListener ( const css::uno::Reference< css::form::XChangeListener > &  aListener)
overridevirtual
void SAL_CALL FmXEditCell::removeTextListener ( const css::uno::Reference< css::awt::XTextListener > &  l)
overridevirtual
void SAL_CALL FmXEditCell::setEditable ( sal_Bool  bEditable)
overridevirtual
void SAL_CALL FmXEditCell::setMaxTextLen ( sal_Int16  nLen)
overridevirtual
void SAL_CALL FmXEditCell::setSelection ( const css::awt::Selection &  aSelection)
overridevirtual
void SAL_CALL FmXEditCell::setText ( const OUString &  aText)
overridevirtual

Member Data Documentation

::comphelper::OInterfaceContainerHelper2 FmXEditCell::m_aChangeListeners
private

Definition at line 903 of file gridcell.hxx.

Referenced by addChangeListener(), disposing(), onFocusLost(), and removeChangeListener().

::comphelper::OInterfaceContainerHelper2 FmXEditCell::m_aTextListeners
private

Definition at line 902 of file gridcell.hxx.

Referenced by disposing(), onTextChanged(), onWindowEvent(), and removeTextListener().

bool FmXEditCell::m_bOwnEditImplementation
private

Definition at line 905 of file gridcell.hxx.

Referenced by disposing(), and FmXEditCell().

::svt::IEditImplementation* FmXEditCell::m_pEditImplementation
private
OUString FmXEditCell::m_sValueOnEnter
private

Definition at line 901 of file gridcell.hxx.

Referenced by onFocusGained(), and onFocusLost().


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