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

#include <gridcell.hxx>

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

Public Member Functions

 FmXListBoxCell (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 addItemListener (const css::uno::Reference< css::awt::XItemListener > &l) override
 
virtual void SAL_CALL removeItemListener (const css::uno::Reference< css::awt::XItemListener > &l) override
 
virtual void SAL_CALL addActionListener (const css::uno::Reference< css::awt::XActionListener > &l) override
 
virtual void SAL_CALL removeActionListener (const css::uno::Reference< css::awt::XActionListener > &l) override
 
virtual void SAL_CALL addItem (const OUString &aItem, sal_Int16 nPos) override
 
virtual void SAL_CALL addItems (const css::uno::Sequence< OUString > &aItems, sal_Int16 nPos) override
 
virtual void SAL_CALL removeItems (sal_Int16 nPos, sal_Int16 nCount) override
 
virtual sal_Int16 SAL_CALL getItemCount () override
 
virtual OUString SAL_CALL getItem (sal_Int16 nPos) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getItems () override
 
virtual sal_Int16 SAL_CALL getSelectedItemPos () override
 
virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSelectedItemsPos () override
 
virtual OUString SAL_CALL getSelectedItem () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSelectedItems () override
 
virtual void SAL_CALL selectItemPos (sal_Int16 nPos, sal_Bool bSelect) override
 
virtual void SAL_CALL selectItemsPos (const css::uno::Sequence< sal_Int16 > &aPositions, sal_Bool bSelect) override
 
virtual void SAL_CALL selectItem (const OUString &aItem, sal_Bool bSelect) override
 
virtual sal_Bool SAL_CALL isMutipleMode () override
 
virtual void SAL_CALL setMultipleMode (sal_Bool bMulti) override
 
virtual sal_Int16 SAL_CALL getDropDownLineCount () override
 
virtual void SAL_CALL setDropDownLineCount (sal_Int16 nLines) override
 
virtual void SAL_CALL makeVisible (sal_Int16 nEntry) 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, const Color **ppColor=nullptr)
 
- Public Member Functions inherited from FmXDataCell
 FmXDataCell (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)
 
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 ()
 
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
 

Private Member Functions

virtual ~FmXListBoxCell () override
 
 DECL_LINK (ChangedHdl, bool, void)
 
void OnDoubleClick ()
 

Private Attributes

::comphelper::OInterfaceContainerHelper3< css::awt::XItemListener > m_aItemListeners
 
::comphelper::OInterfaceContainerHelper3< css::awt::XActionListener > m_aActionListeners
 
VclPtr<::svt::ListBoxControlm_pBox
 
sal_uInt16 m_nLines
 
bool m_bMulti
 

Additional Inherited Members

- Protected Member Functions inherited from FmXDataCell
void UpdateFromColumn ()
 
- Protected Member Functions inherited from FmXGridCell
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 inherited from FmXTextCell
bool m_bIsMultiLineText
 
- 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 921 of file gridcell.hxx.

Constructor & Destructor Documentation

◆ FmXListBoxCell()

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

Definition at line 3979 of file gridcell.cxx.

References LINK, m_aMutex, and m_pBox.

◆ ~FmXListBoxCell()

FmXListBoxCell::~FmXListBoxCell ( )
overrideprivatevirtual

Definition at line 3990 of file gridcell.cxx.

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

Member Function Documentation

◆ addActionListener()

void SAL_CALL FmXListBoxCell::addActionListener ( const css::uno::Reference< css::awt::XActionListener > &  l)
overridevirtual

◆ addItem()

void SAL_CALL FmXListBoxCell::addItem ( const OUString &  aItem,
sal_Int16  nPos 
)
overridevirtual

Definition at line 4052 of file gridcell.cxx.

References weld::ComboBox::insert_text(), FmXGridCell::m_aMutex, m_pBox, and nPos.

◆ addItemListener()

void SAL_CALL FmXListBoxCell::addItemListener ( const css::uno::Reference< css::awt::XItemListener > &  l)
overridevirtual

Definition at line 4032 of file gridcell.cxx.

◆ addItems()

void SAL_CALL FmXListBoxCell::addItems ( const css::uno::Sequence< OUString > &  aItems,
sal_Int16  nPos 
)
overridevirtual

Definition at line 4062 of file gridcell.cxx.

References weld::ComboBox::insert_text(), FmXGridCell::m_aMutex, m_pBox, and nPos.

◆ DECL_LINK()

FmXListBoxCell::DECL_LINK ( ChangedHdl  ,
bool  ,
void   
)
private

◆ disposing()

void FmXListBoxCell::disposing ( )
overridevirtual

◆ getDropDownLineCount()

sal_Int16 SAL_CALL FmXListBoxCell::getDropDownLineCount ( )
overridevirtual

Definition at line 4252 of file gridcell.cxx.

References FmXGridCell::m_aMutex, and m_nLines.

◆ getImplementationId()

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

Reimplemented from cppu::ImplHelper1< class Ifc1 >.

◆ getItem()

OUString SAL_CALL FmXListBoxCell::getItem ( sal_Int16  nPos)
overridevirtual

Definition at line 4098 of file gridcell.cxx.

References weld::ComboBox::get_text(), FmXGridCell::m_aMutex, m_pBox, and nPos.

◆ getItemCount()

sal_Int16 SAL_CALL FmXListBoxCell::getItemCount ( )
overridevirtual

Definition at line 4089 of file gridcell.cxx.

References weld::ComboBox::get_count(), FmXGridCell::m_aMutex, and m_pBox.

◆ getItems()

css::uno::Sequence< OUString > SAL_CALL FmXListBoxCell::getItems ( )
overridevirtual

◆ getSelectedItem()

OUString SAL_CALL FmXListBoxCell::getSelectedItem ( )
overridevirtual

◆ getSelectedItemPos()

sal_Int16 SAL_CALL FmXListBoxCell::getSelectedItemPos ( )
overridevirtual

◆ getSelectedItems()

css::uno::Sequence< OUString > SAL_CALL FmXListBoxCell::getSelectedItems ( )
overridevirtual

◆ getSelectedItemsPos()

Sequence< sal_Int16 > SAL_CALL FmXListBoxCell::getSelectedItemsPos ( )
overridevirtual

◆ getTypes()

Sequence< css::uno::Type > SAL_CALL FmXListBoxCell::getTypes ( )
overridevirtual

◆ isMutipleMode()

sal_Bool SAL_CALL FmXListBoxCell::isMutipleMode ( )
overridevirtual

Definition at line 4238 of file gridcell.cxx.

References FmXGridCell::m_aMutex, and m_bMulti.

◆ makeVisible()

void SAL_CALL FmXListBoxCell::makeVisible ( sal_Int16  nEntry)
overridevirtual

Definition at line 4265 of file gridcell.cxx.

◆ OnDoubleClick()

void FmXListBoxCell::OnDoubleClick ( )
private

◆ queryAggregation()

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

◆ removeActionListener()

void SAL_CALL FmXListBoxCell::removeActionListener ( const css::uno::Reference< css::awt::XActionListener > &  l)
overridevirtual

◆ removeItemListener()

void SAL_CALL FmXListBoxCell::removeItemListener ( const css::uno::Reference< css::awt::XItemListener > &  l)
overridevirtual

◆ removeItems()

void SAL_CALL FmXListBoxCell::removeItems ( sal_Int16  nPos,
sal_Int16  nCount 
)
overridevirtual

Definition at line 4078 of file gridcell.cxx.

References FmXGridCell::m_aMutex, m_pBox, n, nCount, nPos, and weld::ComboBox::remove().

◆ selectItem()

void SAL_CALL FmXListBoxCell::selectItem ( const OUString &  aItem,
sal_Bool  bSelect 
)
overridevirtual

◆ selectItemPos()

void SAL_CALL FmXListBoxCell::selectItemPos ( sal_Int16  nPos,
sal_Bool  bSelect 
)
overridevirtual

◆ selectItemsPos()

void SAL_CALL FmXListBoxCell::selectItemsPos ( const css::uno::Sequence< sal_Int16 > &  aPositions,
sal_Bool  bSelect 
)
overridevirtual

◆ setDropDownLineCount()

void SAL_CALL FmXListBoxCell::setDropDownLineCount ( sal_Int16  nLines)
overridevirtual

Definition at line 4258 of file gridcell.cxx.

References FmXGridCell::m_aMutex, and m_nLines.

◆ setMultipleMode()

void SAL_CALL FmXListBoxCell::setMultipleMode ( sal_Bool  bMulti)
overridevirtual

Definition at line 4245 of file gridcell.cxx.

References FmXGridCell::m_aMutex, and m_bMulti.

Member Data Documentation

◆ m_aActionListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XActionListener> FmXListBoxCell::m_aActionListeners
private

Definition at line 967 of file gridcell.hxx.

Referenced by addActionListener(), disposing(), OnDoubleClick(), and removeActionListener().

◆ m_aItemListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XItemListener> FmXListBoxCell::m_aItemListeners
private

Definition at line 966 of file gridcell.hxx.

Referenced by disposing(), and removeItemListener().

◆ m_bMulti

bool FmXListBoxCell::m_bMulti
private

Definition at line 970 of file gridcell.hxx.

Referenced by isMutipleMode(), and setMultipleMode().

◆ m_nLines

sal_uInt16 FmXListBoxCell::m_nLines
private

Definition at line 969 of file gridcell.hxx.

Referenced by getDropDownLineCount(), and setDropDownLineCount().

◆ m_pBox

VclPtr<::svt::ListBoxControl> FmXListBoxCell::m_pBox
private

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