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

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

Detailed Description

Definition at line 26 of file vbalistcontrolhelper.hxx.

Constructor & Destructor Documentation

◆ ListControlHelper()

ListControlHelper::ListControlHelper ( css::uno::Reference< css::beans::XPropertySet xControl)
inlineexplicit

Definition at line 31 of file vbalistcontrolhelper.hxx.

Member Function Documentation

◆ AddItem()

void ListControlHelper::AddItem ( const css::uno::Any &  pvargItem,
const css::uno::Any &  pvargIndex 
)
Exceptions
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().

◆ Clear()

void ListControlHelper::Clear ( )
Exceptions
css::uno::RuntimeException

Definition at line 163 of file vbalistcontrolhelper.cxx.

References m_xProps.

Referenced by ScVbaComboBox::Clear(), ScVbaListBox::Clear(), removeItem(), and setRowSource().

◆ getListCount()

sal_Int32 ListControlHelper::getListCount ( )
Exceptions
css::uno::RuntimeException

Definition at line 178 of file vbalistcontrolhelper.cxx.

References m_xProps.

Referenced by ScVbaComboBox::getListCount(), and ScVbaListBox::getListCount().

◆ List()

uno::Any ListControlHelper::List ( const css::uno::Any &  pvargIndex,
const css::uno::Any &  pvarColumn 
)
Exceptions
css::uno::RuntimeException

Definition at line 186 of file vbalistcontrolhelper.cxx.

References m_xProps.

Referenced by ScVbaComboBox::List(), and ScVbaListBox::List().

◆ removeItem()

void ListControlHelper::removeItem ( const css::uno::Any &  index)
Exceptions
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().

◆ setRowSource()

void ListControlHelper::setRowSource ( std::u16string_view  _rowsource)
Exceptions
css::uno::RuntimeException

Definition at line 171 of file vbalistcontrolhelper.cxx.

References Clear().

Referenced by ScVbaComboBox::setRowSource(), and ScVbaListBox::setRowSource().

Member Data Documentation

◆ m_xProps

css::uno::Reference< css::beans::XPropertySet > ListControlHelper::m_xProps
private

Definition at line 28 of file vbalistcontrolhelper.hxx.

Referenced by AddItem(), Clear(), getListCount(), List(), and removeItem().


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