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

#include <gridcell.hxx>

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

Public Member Functions

 FmXGridCell (DbGridColumn *pColumn, std::unique_ptr< DbCellControl > pControl)
 
void init ()
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &_rType) override
 
void SetTextLineColor ()
 
void SetTextLineColor (const Color &_rColor)
 
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 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_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE=0
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual void SAL_CALL dispose () SAL_OVERRIDE
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
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
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
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 Ifc1, class Ifc2 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Protected Member Functions

virtual ~FmXGridCell () override
 
virtual void onFocusGained (const css::awt::FocusEvent &_rEvent)
 
virtual void onFocusLost (const css::awt::FocusEvent &_rEvent)
 
virtual void SAL_CALL disposing ()
 
- 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 Ifc1, class Ifc2 >
 ~ImplHelper2 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 

Protected Attributes

::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
 

Private Member Functions

svt::ControlBasegetEventWindow () const
 
 DECL_LINK (OnFocusGained, LinkParamNone *, void)
 
 DECL_LINK (OnFocusLost, LinkParamNone *, void)
 
 DECL_LINK (OnMousePress, const MouseEvent &, void)
 
 DECL_LINK (OnMouseRelease, const MouseEvent &, void)
 
 DECL_LINK (OnMouseMove, const MouseEvent &, void)
 
 DECL_LINK (OnKeyInput, const KeyEvent &, void)
 
 DECL_LINK (OnKeyRelease, const KeyEvent &, void)
 

Private Attributes

::comphelper::OInterfaceContainerHelper3< css::awt::XWindowListener > m_aWindowListeners
 
::comphelper::OInterfaceContainerHelper3< css::awt::XFocusListener > m_aFocusListeners
 
::comphelper::OInterfaceContainerHelper3< css::awt::XKeyListener > m_aKeyListeners
 
::comphelper::OInterfaceContainerHelper3< css::awt::XMouseListener > m_aMouseListeners
 
::comphelper::OInterfaceContainerHelper3< css::awt::XMouseMotionListener > m_aMouseMotionListeners
 

Detailed Description

Definition at line 679 of file gridcell.hxx.

Constructor & Destructor Documentation

◆ ~FmXGridCell()

FmXGridCell::~FmXGridCell ( )
overrideprotectedvirtual

Definition at line 3224 of file gridcell.cxx.

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

◆ FmXGridCell()

FmXGridCell::FmXGridCell ( DbGridColumn pColumn,
std::unique_ptr< DbCellControl pControl 
)

Definition at line 3190 of file gridcell.cxx.

References m_aMutex.

Member Function Documentation

◆ addEventListener()

virtual void SAL_CALL FmXGridCell::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
inlineoverridevirtual

Reimplemented from cppu::OComponentHelper.

Definition at line 717 of file gridcell.hxx.

◆ addFocusListener()

void SAL_CALL FmXGridCell::addFocusListener ( const css::uno::Reference< css::awt::XFocusListener > &  xListener)
overridevirtual

◆ addKeyListener()

void SAL_CALL FmXGridCell::addKeyListener ( const css::uno::Reference< css::awt::XKeyListener > &  xListener)
overridevirtual

◆ addMouseListener()

void SAL_CALL FmXGridCell::addMouseListener ( const css::uno::Reference< css::awt::XMouseListener > &  xListener)
overridevirtual

◆ addMouseMotionListener()

void SAL_CALL FmXGridCell::addMouseMotionListener ( const css::uno::Reference< css::awt::XMouseMotionListener > &  xListener)
overridevirtual

◆ addPaintListener()

void SAL_CALL FmXGridCell::addPaintListener ( const css::uno::Reference< css::awt::XPaintListener > &  xListener)
overridevirtual

Definition at line 3435 of file gridcell.cxx.

◆ addWindowListener()

void SAL_CALL FmXGridCell::addWindowListener ( const css::uno::Reference< css::awt::XWindowListener > &  xListener)
overridevirtual

◆ AlignControl()

void FmXGridCell::AlignControl ( sal_Int16  nAlignment)
inline

Definition at line 761 of file gridcell.hxx.

References m_pCellControl.

◆ Commit()

bool FmXGridCell::Commit ( )
inline

Definition at line 756 of file gridcell.hxx.

References m_pCellControl.

◆ createPeer()

virtual void SAL_CALL FmXGridCell::createPeer ( const css::uno::Reference< css::awt::XToolkit > &  ,
const css::uno::Reference< css::awt::XWindowPeer > &   
)
inlineoverridevirtual

Definition at line 723 of file gridcell.hxx.

◆ DECL_LINK() [1/7]

FmXGridCell::DECL_LINK ( OnFocusGained  ,
LinkParamNone ,
void   
)
private

◆ DECL_LINK() [2/7]

FmXGridCell::DECL_LINK ( OnFocusLost  ,
LinkParamNone ,
void   
)
private

◆ DECL_LINK() [3/7]

FmXGridCell::DECL_LINK ( OnKeyInput  ,
const KeyEvent ,
void   
)
private

◆ DECL_LINK() [4/7]

FmXGridCell::DECL_LINK ( OnKeyRelease  ,
const KeyEvent ,
void   
)
private

◆ DECL_LINK() [5/7]

FmXGridCell::DECL_LINK ( OnMouseMove  ,
const MouseEvent ,
void   
)
private

◆ DECL_LINK() [6/7]

FmXGridCell::DECL_LINK ( OnMousePress  ,
const MouseEvent ,
void   
)
private

◆ DECL_LINK() [7/7]

FmXGridCell::DECL_LINK ( OnMouseRelease  ,
const MouseEvent ,
void   
)
private

◆ dispose()

virtual void SAL_CALL FmXGridCell::dispose ( void  )
inlineoverridevirtual

◆ disposing()

void FmXGridCell::disposing ( )
overridevirtual

◆ getContext()

Reference< XInterface > FmXGridCell::getContext ( )
overridevirtual

Definition at line 3297 of file gridcell.cxx.

◆ getEventWindow()

svt::ControlBase * FmXGridCell::getEventWindow ( ) const
private

Definition at line 3217 of file gridcell.cxx.

References m_pCellControl.

Referenced by init().

◆ getImplementationId()

virtual css::uno::Sequence< sal_Int8 > SAL_CALL FmXGridCell::getImplementationId ( )
overridevirtual

◆ getLock()

sal_Bool FmXGridCell::getLock ( )
overridevirtual

Definition at line 3311 of file gridcell.cxx.

References checkDisposed(), DbGridColumn::isLocked(), and m_pColumn.

Referenced by setLock().

◆ getModel()

Reference< css::awt::XControlModel > FmXGridCell::getModel ( )
overridevirtual

Definition at line 3303 of file gridcell.cxx.

References checkDisposed(), DbGridColumn::getModel(), and m_pColumn.

◆ getPeer()

virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL FmXGridCell::getPeer ( )
inlineoverridevirtual

Definition at line 725 of file gridcell.hxx.

◆ getPosSize()

awt::Rectangle SAL_CALL FmXGridCell::getPosSize ( )
overridevirtual

Definition at line 3338 of file gridcell.cxx.

◆ getTypes()

Sequence< Type > SAL_CALL FmXGridCell::getTypes ( )
overridevirtual

◆ getView()

virtual css::uno::Reference< css::awt::XView > SAL_CALL FmXGridCell::getView ( )
inlineoverridevirtual

Definition at line 728 of file gridcell.hxx.

◆ ImplInitWindow()

void FmXGridCell::ImplInitWindow ( vcl::Window const &  rParent,
const InitWindowFacet  _eInitWhat 
)
inline

Definition at line 757 of file gridcell.hxx.

References m_pCellControl.

◆ init()

void FmXGridCell::init ( )

◆ isAlignedController()

bool FmXGridCell::isAlignedController ( ) const
inline

Definition at line 760 of file gridcell.hxx.

References m_pCellControl.

◆ isDesignMode()

virtual sal_Bool SAL_CALL FmXGridCell::isDesignMode ( )
inlineoverridevirtual

Definition at line 730 of file gridcell.hxx.

◆ isTransparent()

virtual sal_Bool SAL_CALL FmXGridCell::isTransparent ( )
inlineoverridevirtual

Definition at line 731 of file gridcell.hxx.

◆ onFocusGained()

void FmXGridCell::onFocusGained ( const css::awt::FocusEvent &  _rEvent)
protectedvirtual

◆ onFocusLost()

void FmXGridCell::onFocusLost ( const css::awt::FocusEvent &  _rEvent)
protectedvirtual

◆ queryAggregation()

Any SAL_CALL FmXGridCell::queryAggregation ( const css::uno::Type &  _rType)
overridevirtual

◆ removeEventListener()

virtual void SAL_CALL FmXGridCell::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
inlineoverridevirtual

Reimplemented from cppu::OComponentHelper.

Definition at line 718 of file gridcell.hxx.

◆ removeFocusListener()

void SAL_CALL FmXGridCell::removeFocusListener ( const css::uno::Reference< css::awt::XFocusListener > &  xListener)
overridevirtual

◆ removeKeyListener()

void SAL_CALL FmXGridCell::removeKeyListener ( const css::uno::Reference< css::awt::XKeyListener > &  xListener)
overridevirtual

◆ removeMouseListener()

void SAL_CALL FmXGridCell::removeMouseListener ( const css::uno::Reference< css::awt::XMouseListener > &  xListener)
overridevirtual

◆ removeMouseMotionListener()

void SAL_CALL FmXGridCell::removeMouseMotionListener ( const css::uno::Reference< css::awt::XMouseMotionListener > &  xListener)
overridevirtual

◆ removePaintListener()

void SAL_CALL FmXGridCell::removePaintListener ( const css::uno::Reference< css::awt::XPaintListener > &  xListener)
overridevirtual

Definition at line 3440 of file gridcell.cxx.

◆ removeWindowListener()

void SAL_CALL FmXGridCell::removeWindowListener ( const css::uno::Reference< css::awt::XWindowListener > &  xListener)
overridevirtual

◆ setContext()

virtual void SAL_CALL FmXGridCell::setContext ( const css::uno::Reference< css::uno::XInterface > &  )
inlineoverridevirtual

Definition at line 721 of file gridcell.hxx.

◆ setDesignMode()

virtual void SAL_CALL FmXGridCell::setDesignMode ( sal_Bool  )
inlineoverridevirtual

Definition at line 729 of file gridcell.hxx.

◆ setEnable()

void SAL_CALL FmXGridCell::setEnable ( sal_Bool  Enable)
overridevirtual

Definition at line 3352 of file gridcell.cxx.

◆ setFocus()

void SAL_CALL FmXGridCell::setFocus ( )
overridevirtual

Definition at line 3359 of file gridcell.cxx.

◆ setLock()

void FmXGridCell::setLock ( sal_Bool  _bLock)
overridevirtual

Definition at line 3318 of file gridcell.cxx.

References checkDisposed(), getLock(), m_aMutex, m_pColumn, and DbGridColumn::setLock().

◆ setModel()

virtual sal_Bool SAL_CALL FmXGridCell::setModel ( const css::uno::Reference< css::awt::XControlModel > &  )
inlineoverridevirtual

Definition at line 726 of file gridcell.hxx.

◆ setPosSize()

void SAL_CALL FmXGridCell::setPosSize ( ::sal_Int32  X,
::sal_Int32  Y,
::sal_Int32  Width,
::sal_Int32  Height,
::sal_Int16  Flags 
)
overridevirtual

Definition at line 3331 of file gridcell.cxx.

◆ SetTextLineColor() [1/2]

void FmXGridCell::SetTextLineColor ( )

Definition at line 3234 of file gridcell.cxx.

References m_pCellControl.

Referenced by FmXGridPeer::setProperty().

◆ SetTextLineColor() [2/2]

void FmXGridCell::SetTextLineColor ( const Color _rColor)

Definition at line 3240 of file gridcell.cxx.

References m_pCellControl.

◆ setVisible()

void SAL_CALL FmXGridCell::setVisible ( sal_Bool  Visible)
overridevirtual

Definition at line 3345 of file gridcell.cxx.

Member Data Documentation

◆ m_aFocusListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XFocusListener> FmXGridCell::m_aFocusListeners
private

Definition at line 690 of file gridcell.hxx.

Referenced by addFocusListener(), onFocusGained(), onFocusLost(), and removeFocusListener().

◆ m_aKeyListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XKeyListener> FmXGridCell::m_aKeyListeners
private

Definition at line 691 of file gridcell.hxx.

Referenced by addKeyListener(), and removeKeyListener().

◆ m_aMouseListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XMouseListener> FmXGridCell::m_aMouseListeners
private

Definition at line 692 of file gridcell.hxx.

Referenced by addMouseListener(), and removeMouseListener().

◆ m_aMouseMotionListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XMouseMotionListener> FmXGridCell::m_aMouseMotionListeners
private

Definition at line 693 of file gridcell.hxx.

Referenced by addMouseMotionListener(), and removeMouseMotionListener().

◆ m_aMutex

::osl::Mutex FmXGridCell::m_aMutex
protected

◆ m_aWindowListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XWindowListener> FmXGridCell::m_aWindowListeners
private

Definition at line 689 of file gridcell.hxx.

Referenced by addWindowListener(), and removeWindowListener().

◆ m_pCellControl

std::unique_ptr<DbCellControl> FmXGridCell::m_pCellControl
protected

◆ m_pColumn

DbGridColumn* FmXGridCell::m_pColumn
protected

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