diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-05-20 15:22:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-05-21 13:25:38 +0200 |
commit | 0677d46bcc56c1f6c27b9331662990b38fd452d6 (patch) | |
tree | e10c8fb1bc934a3d0868ae4e144ad3631b8c0938 /svx/source/inc | |
parent | 119b6876c92e4cdae44583c4b1b1419d3533e3ee (diff) |
FmXListBoxCell doesn't need to implement css::awt::XListBox
FmXListBoxCell implements css::awt::XListBox but none of that functionality is
needed locally where it is used to pick a value in a cell when edited
interactively.
As an XInterface a FmXListBoxCell does fall into the
script::XEventAttacherManager attach/detach sink-hole so its very difficult to
determine if it (and any of its siblings) really need to implement the amount
of uno interfaces they actually implement, so this is a little speculative.
See https://ask.libreoffice.org/en/question/152691/how-to-populate-combo-box-within-table-control-in-form/
for an example of the ComboBox interaction case which is similar to this ListBox case.
The exotic "multiselection" option definitely isn't shown as an option in the property browser
for a listbox column in the table control.
Change-Id: I7bdc351e615c9df708a30e4396f6f352fabaed36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94584
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/inc')
-rw-r--r-- | svx/source/inc/gridcell.hxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx index 360e6d83da8a..2e43144fcb1d 100644 --- a/svx/source/inc/gridcell.hxx +++ b/svx/source/inc/gridcell.hxx @@ -952,46 +952,16 @@ protected: }; -typedef ::cppu::ImplHelper1 < css::awt::XListBox - > FmXListBoxCell_Base; class FmXListBoxCell final :public FmXTextCell - ,public FmXListBoxCell_Base { public: FmXListBoxCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> pControl ); - DECLARE_UNO3_AGG_DEFAULTS(FmXListBoxCell, FmXTextCell) - 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; // OComponentHelper virtual void SAL_CALL disposing() override; -// css::awt::XListBox - 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; - private: virtual ~FmXListBoxCell() override; @@ -1002,8 +972,6 @@ private: ::comphelper::OInterfaceContainerHelper2 m_aItemListeners, m_aActionListeners; weld::ComboBox* m_pBox; - sal_uInt16 m_nLines; - bool m_bMulti; }; |