19#ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAAPPLICATION_HXX
20#define INCLUDED_SW_SOURCE_UI_VBA_VBAAPPLICATION_HXX
24#include <ooo/vba/XSink.hpp>
25#include <ooo/vba/XSinkCaller.hpp>
26#include <ooo/vba/word/XApplication.hpp>
27#include <ooo/vba/word/XDocument.hpp>
28#include <ooo/vba/word/XWindow.hpp>
29#include <ooo/vba/word/XSystem.hpp>
30#include <ooo/vba/word/XOptions.hpp>
31#include <ooo/vba/word/XSelection.hpp>
38typedef cppu::ImplInheritanceHelper< VbaApplicationBase, ooo::vba::word::XApplication, ooo::vba::XSinkCaller >
SwVbaApplication_BASE;
50 std::vector<css::uno::Reference< ooo::vba::XSink >>
mvSinks;
53 explicit SwVbaApplication( css::uno::Reference< css::uno::XComponentContext >& xContext );
56 sal_uInt32
AddSink(
const css::uno::Reference< ooo::vba::XSink >& xSink );
60 css::uno::Reference< css::uno::XComponentContext >
const &
getContext()
const;
63 virtual OUString SAL_CALL
getName()
override;
64 virtual css::uno::Reference< ooo::vba::word::XSystem > SAL_CALL
getSystem()
override;
65 virtual css::uno::Reference< ov::word::XDocument > SAL_CALL
getActiveDocument()
override;
66 virtual css::uno::Reference< ov::word::XWindow > SAL_CALL
getActiveWindow()
override;
67 virtual css::uno::Reference< ooo::vba::word::XOptions > SAL_CALL
getOptions()
override;
68 virtual css::uno::Reference< ooo::vba::word::XSelection > SAL_CALL
getSelection()
override;
69 virtual css::uno::Reference< ooo::vba::word::XWordBasic > SAL_CALL
getWordBasic()
override;
70 virtual css::uno::Any SAL_CALL
CommandBars(
const css::uno::Any& aIndex )
override;
71 virtual css::uno::Any SAL_CALL
Documents(
const css::uno::Any& aIndex )
override;
72 virtual css::uno::Any SAL_CALL
Addins(
const css::uno::Any& aIndex )
override;
73 virtual css::uno::Any SAL_CALL
Dialogs(
const css::uno::Any& aIndex )
override;
74 virtual css::uno::Any SAL_CALL
ListGalleries(
const css::uno::Any& aIndex )
override;
80 virtual void SAL_CALL
setWindowState( sal_Int32 _windowstate )
override;
81 virtual sal_Int32 SAL_CALL
getWidth()
override;
82 virtual void SAL_CALL
setWidth( sal_Int32 _width )
override;
83 virtual sal_Int32 SAL_CALL
getHeight()
override;
84 virtual void SAL_CALL
setHeight( sal_Int32 _height )
override;
85 virtual sal_Int32 SAL_CALL
getLeft()
override;
86 virtual void SAL_CALL
setLeft( sal_Int32 _left )
override;
87 virtual sal_Int32 SAL_CALL
getTop()
override;
88 virtual void SAL_CALL
setTop( sal_Int32 _top )
override;
90 virtual void SAL_CALL
setStatusBar(
const OUString& _statusbar )
override;
101 virtual float SAL_CALL
PicasToPoints(
float Picas )
override;
106 virtual void SAL_CALL
ShowMe()
override;
107 virtual void SAL_CALL
Resize( sal_Int32 Width, sal_Int32 Height )
override;
108 virtual void SAL_CALL
Move( sal_Int32 Left, sal_Int32 Top )
override;
111 virtual OUString SAL_CALL
getIID()
override;
123 virtual void SAL_CALL
CallSinks(
const OUString& Method, css::uno::Sequence< css::uno::Any >& Arguments )
override;
virtual void SAL_CALL setHeight(sal_Int32 _height) override
virtual OUString SAL_CALL getName() override
virtual css::uno::Any SAL_CALL ListGalleries(const css::uno::Any &aIndex) override
virtual OUString getServiceImplName() override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual sal_Int32 SAL_CALL getHeight() override
virtual void SAL_CALL CallSinks(const OUString &Method, css::uno::Sequence< css::uno::Any > &Arguments) override
virtual css::uno::Reference< ooo::vba::word::XSystem > SAL_CALL getSystem() override
virtual sal_Int32 SAL_CALL getLeft() override
virtual css::uno::Any SAL_CALL Addins(const css::uno::Any &aIndex) override
virtual float SAL_CALL CentimetersToPoints(float Centimeters) override
virtual void SAL_CALL setEnableCancelKey(sal_Int32 _enableCancelKey) override
sal_uInt32 AddSink(const css::uno::Reference< ooo::vba::XSink > &xSink)
virtual sal_Int32 SAL_CALL getTop() override
virtual sal_Bool SAL_CALL getDisplayAutoCompleteTips() override
virtual css::uno::Reference< ov::word::XWindow > SAL_CALL getActiveWindow() override
virtual sal_Int32 SAL_CALL getEnableCancelKey() override
std::vector< css::uno::Reference< ooo::vba::XSink > > mvSinks
virtual OUString SAL_CALL GetIIDForClassItselfNotCoclass() override
virtual css::uno::Reference< ooo::vba::word::XOptions > SAL_CALL getOptions() override
virtual float SAL_CALL PointsToPixels(float Pixels, ::sal_Bool fVertical) override
virtual css::uno::Any SAL_CALL Documents(const css::uno::Any &aIndex) override
virtual OUString SAL_CALL getStatusBar() override
virtual void SAL_CALL setLeft(sal_Int32 _left) override
void RemoveSink(sal_uInt32 nNumber)
virtual sal_Int32 SAL_CALL getWindowState() override
virtual OUString SAL_CALL getIID() override
virtual float SAL_CALL PointsToMillimeters(float Points) override
virtual void SAL_CALL Resize(sal_Int32 Width, sal_Int32 Height) override
virtual void SAL_CALL ShowMe() override
virtual css::uno::Reference< ooo::vba::word::XSelection > SAL_CALL getSelection() override
css::uno::Reference< css::uno::XComponentContext > const & getContext() const
virtual float SAL_CALL InchesToPoints(float Inches) override
virtual float SAL_CALL PointsToInches(float Points) override
virtual float SAL_CALL PointsToCentimeters(float Points) override
virtual void SAL_CALL setCustomizationContext(const css::uno::Any &_customizationcontext) override
virtual css::uno::Reference< ov::XConnectionPoint > SAL_CALL FindConnectionPoint() override
virtual void SAL_CALL Move(sal_Int32 Left, sal_Int32 Top) override
virtual float SAL_CALL PointsToPicas(float Points) override
virtual void SAL_CALL setDisplayAutoCompleteTips(sal_Bool _displayAutoCompleteTips) override
virtual float SAL_CALL MillimetersToPoints(float Millimeters) override
virtual ov::TypeAndIID SAL_CALL GetConnectionPoint() override
virtual css::uno::Any SAL_CALL Dialogs(const css::uno::Any &aIndex) override
virtual ~SwVbaApplication() override
rtl::Reference< SwVbaWindow > getActiveSwVbaWindow()
virtual sal_Int32 SAL_CALL getWidth() override
virtual float SAL_CALL PixelsToPoints(float Pixels, ::sal_Bool fVertical) override
virtual css::uno::Any SAL_CALL CommandBars(const css::uno::Any &aIndex) override
virtual css::uno::Reference< css::frame::XModel > getCurrentDocument() override
SwVbaApplication(css::uno::Reference< css::uno::XComponentContext > &xContext)
virtual css::uno::Reference< ooo::vba::word::XWordBasic > SAL_CALL getWordBasic() override
virtual void SAL_CALL setTop(sal_Int32 _top) override
virtual float SAL_CALL PicasToPoints(float Picas) override
virtual css::uno::Reference< ov::word::XDocument > SAL_CALL getActiveDocument() override
virtual void SAL_CALL setStatusBar(const OUString &_statusbar) override
virtual css::uno::Any SAL_CALL getCustomizationContext() override
virtual void SAL_CALL setWidth(sal_Int32 _width) override
virtual void SAL_CALL setWindowState(sal_Int32 _windowstate) override
std::vector< Point > Points
cppu::ImplInheritanceHelper< VbaApplicationBase, ooo::vba::word::XApplication, ooo::vba::XSinkCaller > SwVbaApplication_BASE