|
LibreOffice Module vbahelper (master) 1
|
#include <vbalistcontrolhelper.hxx>
Public Member Functions | |
| ListControlHelper (css::uno::Reference< css::beans::XPropertySet > xControl) | |
| void | AddItem (const css::uno::Any &pvargItem, const css::uno::Any &pvargIndex) |
| void | removeItem (const css::uno::Any &index) |
| void | setRowSource (std::u16string_view _rowsource) |
| ::sal_Int32 | getListCount () |
| css::uno::Any | List (const css::uno::Any &pvargIndex, const css::uno::Any &pvarColumn) |
| void | Clear () |
Private Attributes | |
| css::uno::Reference< css::beans::XPropertySet > | m_xProps |
Definition at line 26 of file vbalistcontrolhelper.hxx.
|
inlineexplicit |
Definition at line 31 of file vbalistcontrolhelper.hxx.
| void ListControlHelper::AddItem | ( | const css::uno::Any & | pvargItem, |
| const css::uno::Any & | pvargIndex | ||
| ) |
| css::uno::RuntimeException |
Definition at line 91 of file vbalistcontrolhelper.cxx.
References ooo::vba::getAnyAsString(), uno::Any::hasValue(), m_xProps, and nIndex.
Referenced by ScVbaComboBox::AddItem(), and ScVbaListBox::AddItem().
| void ListControlHelper::Clear | ( | ) |
| css::uno::RuntimeException |
Definition at line 163 of file vbalistcontrolhelper.cxx.
References m_xProps.
Referenced by ScVbaComboBox::Clear(), ScVbaListBox::Clear(), removeItem(), and setRowSource().
| sal_Int32 ListControlHelper::getListCount | ( | ) |
| css::uno::RuntimeException |
Definition at line 178 of file vbalistcontrolhelper.cxx.
References m_xProps.
Referenced by ScVbaComboBox::getListCount(), and ScVbaListBox::getListCount().
| uno::Any ListControlHelper::List | ( | const css::uno::Any & | pvargIndex, |
| const css::uno::Any & | pvarColumn | ||
| ) |
| css::uno::RuntimeException |
Definition at line 186 of file vbalistcontrolhelper.cxx.
References m_xProps.
Referenced by ScVbaComboBox::List(), and ScVbaListBox::List().
| void ListControlHelper::removeItem | ( | const css::uno::Any & | index | ) |
| css::uno::RuntimeException |
Definition at line 137 of file vbalistcontrolhelper.cxx.
References Clear(), index, m_xProps, nIndex, and comphelper::removeElementAt().
Referenced by ScVbaComboBox::removeItem(), and ScVbaListBox::removeItem().
| void ListControlHelper::setRowSource | ( | std::u16string_view | _rowsource | ) |
| css::uno::RuntimeException |
Definition at line 171 of file vbalistcontrolhelper.cxx.
References Clear().
Referenced by ScVbaComboBox::setRowSource(), and ScVbaListBox::setRowSource().
|
private |
Definition at line 28 of file vbalistcontrolhelper.hxx.
Referenced by AddItem(), Clear(), getListCount(), List(), and removeItem().