LibreOffice Module vbahelper (master) 1
|
#include <vbacontrol.hxx>
Public Member Functions | |
ScVbaControl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::uno::XInterface > xControl, css::uno::Reference< css::frame::XModel > xModel, std::unique_ptr< ov::AbstractGeometryAttributes > pHelper) | |
virtual | ~ScVbaControl () override |
void | setGeometryHelper (std::unique_ptr< ov::AbstractGeometryAttributes > pHelper) |
void | setLibraryAndCodeName (const OUString &sLibCodeName) |
virtual sal_Bool SAL_CALL | getEnabled () override |
virtual void SAL_CALL | setEnabled (sal_Bool _enabled) override |
virtual sal_Bool SAL_CALL | getVisible () override |
virtual void SAL_CALL | setVisible (sal_Bool _visible) override |
virtual double SAL_CALL | getHeight () override |
virtual void SAL_CALL | setHeight (double _height) override |
virtual double SAL_CALL | getWidth () override |
virtual void SAL_CALL | setWidth (double _width) override |
virtual double SAL_CALL | getLeft () override |
virtual void SAL_CALL | setLeft (double _left) override |
virtual double SAL_CALL | getTop () override |
virtual void SAL_CALL | setTop (double _top) override |
virtual void SAL_CALL | SetFocus () override |
virtual void SAL_CALL | Move (double Left, double Top, const css::uno::Any &Width, const css::uno::Any &Height) override |
virtual void SAL_CALL | fireEvent (const css::script::ScriptEvent &evt) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getObject () override |
virtual OUString SAL_CALL | getControlSource () override |
virtual void SAL_CALL | setControlSource (const OUString &_controlsource) override |
virtual OUString SAL_CALL | getRowSource () override |
virtual void SAL_CALL | setRowSource (const OUString &_rowsource) override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &_name) override |
virtual OUString SAL_CALL | getControlTipText () override |
virtual void SAL_CALL | setControlTipText (const OUString &) override |
virtual OUString SAL_CALL | getTag () override |
virtual void SAL_CALL | setTag (const OUString &aTag) override |
virtual sal_Int32 SAL_CALL | getTabIndex () override |
virtual void SAL_CALL | setTabIndex (sal_Int32 nTabIndex) override |
virtual ::sal_Int32 SAL_CALL | getMousePointer () override |
virtual void SAL_CALL | setMousePointer (::sal_Int32 _mousepointer) override |
void | removeResource () |
virtual ::sal_Int32 SAL_CALL | getForeColor () |
virtual OUString | getServiceImplName () override |
virtual css::uno::Sequence< OUString > | getServiceNames () override |
sal_Int32 | getBackColor () |
void | setBackColor (sal_Int32 nBackColor) |
bool | getAutoSize () const |
void | setAutoSize (bool bAutoSize) |
bool | getLocked () |
void | setLocked (bool bAutoSize) |
Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< Ifc > | |
InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
Public Member Functions inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > > | |
InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext) | |
virtual OUString | getServiceImplName ()=0 |
virtual css::uno::Sequence< OUString > | getServiceNames ()=0 |
virtual ::sal_Int32 SAL_CALL | getCreator () override |
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL | getParent () override |
virtual css::uno::Any SAL_CALL | Application () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Protected Member Functions | |
css::uno::Reference< css::awt::XVclWindowPeer > | getWindowPeer () |
void | fireChangeEvent () |
void | fireClickEvent () |
Protected Attributes | |
OUString | m_aControlTag |
OUString | m_sLibraryAndCodeName |
std::unique_ptr< ov::AbstractGeometryAttributes > | mpGeometryHelper |
css::uno::Reference< css::beans::XPropertySet > | m_xProps |
css::uno::Reference< css::uno::XInterface > | m_xControl |
css::uno::Reference< css::frame::XModel > | m_xModel |
Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > > | |
css::uno::WeakReference< ov::XHelperInterface > | mxParent |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
Private Attributes | |
css::uno::Reference< css::lang::XEventListener > | m_xEventListener |
css::uno::Reference< css::awt::XControl > | m_xEmptyFormControl |
Definition at line 36 of file vbacontrol.hxx.
ScVbaControl::ScVbaControl | ( | const css::uno::Reference< ov::XHelperInterface > & | xParent, |
const css::uno::Reference< css::uno::XComponentContext > & | xContext, | ||
css::uno::Reference< css::uno::XInterface > | xControl, | ||
css::uno::Reference< css::frame::XModel > | xModel, | ||
std::unique_ptr< ov::AbstractGeometryAttributes > | pHelper | ||
) |
Definition at line 133 of file vbacontrol.cxx.
References m_xControl, m_xControl, m_xEmptyFormControl, m_xEventListener, m_xModel, m_xProps, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, setGeometryHelper(), and xModel.
|
overridevirtual |
Definition at line 159 of file vbacontrol.cxx.
References m_xControl, and m_xEventListener.
|
protected |
Definition at line 563 of file vbacontrol.cxx.
References fireEvent(), and cppu::UnoType< typename T >::get().
|
protected |
Definition at line 572 of file vbacontrol.cxx.
References fireEvent(), and cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 510 of file vbacontrol.cxx.
References m_sLibraryAndCodeName, m_xControl, m_xEmptyFormControl, m_xModel, and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
Referenced by fireChangeEvent(), and fireClickEvent().
bool ScVbaControl::getAutoSize | ( | ) | const |
css::uno::RuntimeException |
Definition at line 726 of file vbacontrol.cxx.
References SdrObject::getSdrObjectFromXShape(), SdrObject::IsResizeProtect(), and m_xControl.
Referenced by VbaButton::getAutoSize(), ScVbaCheckbox::getAutoSize(), ScVbaComboBox::getAutoSize(), ScVbaLabel::getAutoSize(), ScVbaTextBox::getAutoSize(), and ScVbaToggleButton::getAutoSize().
sal_Int32 ScVbaControl::getBackColor | ( | ) |
css::uno::RuntimeException |
Definition at line 708 of file vbacontrol.cxx.
References m_xProps.
Referenced by VbaButton::getBackColor(), ScVbaCheckbox::getBackColor(), ScVbaComboBox::getBackColor(), ScVbaImage::getBackColor(), ScVbaLabel::getBackColor(), ScVbaTextBox::getBackColor(), and ScVbaToggleButton::getBackColor().
|
overridevirtual |
Definition at line 297 of file vbacontrol.cxx.
References m_xModel, and m_xProps.
Referenced by ScVbaComboBox::getLinkedCell().
|
overridevirtual |
Definition at line 409 of file vbacontrol.cxx.
|
overridevirtual |
Definition at line 183 of file vbacontrol.cxx.
References m_xProps.
sal_Int32 SAL_CALL ScVbaControl::getForeColor | ( | ) |
css::uno::RuntimeException |
Definition at line 432 of file vbacontrol.cxx.
References m_xProps, and ooo::vba::OORGBToXLRGB().
Referenced by VbaButton::getForeColor().
|
overridevirtual |
Definition at line 226 of file vbacontrol.cxx.
References mpGeometryHelper.
|
overridevirtual |
Definition at line 245 of file vbacontrol.cxx.
References mpGeometryHelper.
bool ScVbaControl::getLocked | ( | ) |
css::uno::RuntimeException |
Definition at line 745 of file vbacontrol.cxx.
References m_xProps.
Referenced by VbaButton::getLocked(), ScVbaCheckbox::getLocked(), ScVbaComboBox::getLocked(), ScVbaTextBox::getLocked(), and ScVbaToggleButton::getLocked().
|
override |
Definition at line 499 of file vbacontrol.cxx.
References VCLUnoHelper::getMousePointer(), getWindowPeer(), and lcl_loPointerToMsoPointer().
|
overridevirtual |
Definition at line 394 of file vbacontrol.cxx.
|
overridevirtual |
Definition at line 269 of file vbacontrol.cxx.
|
overridevirtual |
Definition at line 363 of file vbacontrol.cxx.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 695 of file vbacontrol.cxx.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 701 of file vbacontrol.cxx.
|
overridevirtual |
Definition at line 581 of file vbacontrol.cxx.
|
overridevirtual |
Definition at line 422 of file vbacontrol.cxx.
References m_aControlTag.
|
overridevirtual |
Definition at line 257 of file vbacontrol.cxx.
References mpGeometryHelper.
|
overridevirtual |
Definition at line 198 of file vbacontrol.cxx.
References bVisible, m_xControl, and m_xProps.
|
overridevirtual |
Definition at line 235 of file vbacontrol.cxx.
References mpGeometryHelper.
|
protected |
css::uno::RuntimeException |
Definition at line 69 of file vbacontrol.cxx.
References m_xControl, and m_xModel.
Referenced by getMousePointer(), and setMousePointer().
|
overridevirtual |
Definition at line 281 of file vbacontrol.cxx.
References Height, Left, setHeight(), setLeft(), setTop(), setWidth(), Top, and Width.
void ScVbaControl::removeResource | ( | ) |
css::uno::RuntimeException |
Definition at line 174 of file vbacontrol.cxx.
References m_xControl, m_xEventListener, and m_xProps.
void ScVbaControl::setAutoSize | ( | bool | bAutoSize | ) |
css::uno::RuntimeException |
Definition at line 737 of file vbacontrol.cxx.
References SdrObject::getSdrObjectFromXShape(), m_xControl, and SdrObject::SetResizeProtect().
Referenced by VbaButton::setAutoSize(), ScVbaCheckbox::setAutoSize(), ScVbaComboBox::setAutoSize(), ScVbaLabel::setAutoSize(), ScVbaTextBox::setAutoSize(), and ScVbaToggleButton::setAutoSize().
void ScVbaControl::setBackColor | ( | sal_Int32 | nBackColor | ) |
css::uno::RuntimeException |
Definition at line 715 of file vbacontrol.cxx.
References col, m_xProps, nSysCols, SAL_N_ELEMENTS, and ooo::vba::XLRGBToOORGB().
Referenced by VbaButton::setBackColor(), ScVbaCheckbox::setBackColor(), ScVbaComboBox::setBackColor(), ScVbaImage::setBackColor(), ScVbaLabel::setBackColor(), ScVbaTextBox::setBackColor(), and ScVbaToggleButton::setBackColor().
|
overridevirtual |
Definition at line 324 of file vbacontrol.cxx.
References svt::BindableControlHelper::ApplyListSourceAndBindableData(), index, m_xModel, and m_xProps.
Referenced by ScVbaComboBox::setLinkedCell().
|
overridevirtual |
Definition at line 417 of file vbacontrol.cxx.
References m_xProps.
|
overridevirtual |
Definition at line 191 of file vbacontrol.cxx.
|
overridevirtual |
Definition at line 275 of file vbacontrol.cxx.
References m_xControl.
void ScVbaControl::setGeometryHelper | ( | std::unique_ptr< ov::AbstractGeometryAttributes > | pHelper | ) |
Definition at line 169 of file vbacontrol.cxx.
References mpGeometryHelper.
Referenced by ScVbaControl().
|
overridevirtual |
|
overridevirtual |
|
inline |
Definition at line 64 of file vbacontrol.hxx.
References m_sLibraryAndCodeName.
Referenced by ScVbaUserForm::getValue().
void ScVbaControl::setLocked | ( | bool | bAutoSize | ) |
css::uno::RuntimeException |
Definition at line 752 of file vbacontrol.cxx.
References m_xProps.
Referenced by VbaButton::setLocked(), ScVbaCheckbox::setLocked(), ScVbaComboBox::setLocked(), ScVbaTextBox::setLocked(), and ScVbaToggleButton::setLocked().
|
overridevirtual |
Definition at line 505 of file vbacontrol.cxx.
References getWindowPeer(), lcl_msoPointerToLOPointer(), and VCLUnoHelper::setMousePointer().
|
overridevirtual |
Definition at line 403 of file vbacontrol.cxx.
References m_xProps.
|
overridevirtual |
Definition at line 388 of file vbacontrol.cxx.
References svt::BindableControlHelper::ApplyListSourceAndBindableData(), m_xModel, and m_xProps.
Referenced by ScVbaComboBox::setRowSource(), and ScVbaListBox::setRowSource().
|
overridevirtual |
Definition at line 586 of file vbacontrol.cxx.
|
overridevirtual |
Definition at line 427 of file vbacontrol.cxx.
References m_aControlTag.
|
overridevirtual |
|
overridevirtual |
Definition at line 215 of file vbacontrol.cxx.
References bVisible, m_xControl, and m_xProps.
|
overridevirtual |
|
protected |
Definition at line 44 of file vbacontrol.hxx.
|
protected |
Definition at line 46 of file vbacontrol.hxx.
Referenced by fireEvent(), and setLibraryAndCodeName().
|
protected |
Definition at line 49 of file vbacontrol.hxx.
Referenced by fireEvent(), getAutoSize(), getVisible(), getWindowPeer(), removeResource(), ScVbaControl(), setAutoSize(), SetFocus(), setVisible(), and ~ScVbaControl().
|
private |
Definition at line 40 of file vbacontrol.hxx.
Referenced by fireEvent(), and ScVbaControl().
|
private |
Definition at line 39 of file vbacontrol.hxx.
Referenced by removeResource(), ScVbaControl(), and ~ScVbaControl().
|
protected |
Definition at line 50 of file vbacontrol.hxx.
Referenced by fireEvent(), getControlSource(), getRowSource(), getWindowPeer(), setControlSource(), and setRowSource().
|
protected |
Definition at line 48 of file vbacontrol.hxx.
Referenced by getBackColor(), getControlSource(), getControlTipText(), getEnabled(), getForeColor(), getLocked(), getName(), getRowSource(), getVisible(), removeResource(), ScVbaControl(), setBackColor(), setControlSource(), setControlTipText(), setEnabled(), setLocked(), setName(), setRowSource(), and setVisible().
|
protected |
Definition at line 47 of file vbacontrol.hxx.
Referenced by getHeight(), getLeft(), getTop(), getWidth(), setGeometryHelper(), setHeight(), setLeft(), setTop(), and setWidth().