23#include <com/sun/star/beans/PropertyValue.hpp>
24#include <com/sun/star/frame/XModel.hpp>
34 SAL_INFO(
"sw.vba",
"SwVbaGlobals::SwVbaGlobals()");
35 uno::Sequence< beans::PropertyValue > aInitArgs( aArgs.hasElements() ? 2 : 1 );
36 auto pInitArgs = aInitArgs.getArray();
37 pInitArgs[ 0 ].Name =
"Application";
39 if ( aArgs.hasElements() )
41 pInitArgs[ 1 ].Name =
"WordDocumentContext";
42 pInitArgs[ 1 ].Value <<= getXSomethingFromArgs< frame::XModel >( aArgs, 0 );
49 SAL_INFO(
"sw.vba",
"SwVbaGlobals::~SwVbaGlobals");
54uno::Reference<word::XApplication >
const &
57 SAL_INFO(
"sw.vba",
"In SwVbaGlobals::getApplication");
64uno::Reference<word::XSystem > SAL_CALL
70uno::Reference< word::XDocument > SAL_CALL
76uno::Reference< word::XWindow > SAL_CALL
88uno::Reference<word::XOptions > SAL_CALL
124uno::Reference<word::XSelection > SAL_CALL
132 return uno::Reference<word::XGlobals>(
this);
139 uno::Reference<word::XWordBasic> xWB(
new SwWordBasic(pVbaApp));
196 return "SwVbaGlobals";
199uno::Sequence< OUString >
202 return {
"ooo.vba.word.Globals" };
205uno::Sequence< OUString >
209 SwVbaGlobals_BASE::getAvailableServiceNames(),
210 uno::Sequence<OUString>{
"ooo.vba.word.Document",
213 "com.sun.star.script.vba.VBATextEventProcessor" });
217extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
219 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& args)
FILE * init(int, char **)
virtual float SAL_CALL PicasToPoints(float Picas) override
virtual float SAL_CALL PointsToPicas(float Points) override
virtual css::uno::Reference< ooo::vba::word::XSelection > SAL_CALL getSelection() override
virtual ~SwVbaGlobals() override
virtual float SAL_CALL PointsToMillimeters(float Points) override
virtual css::uno::Any SAL_CALL CommandBars(const css::uno::Any &aIndex) override
SwVbaGlobals(css::uno::Sequence< css::uno::Any > const &aArgs, css::uno::Reference< css::uno::XComponentContext > const &rxContext)
virtual OUString SAL_CALL getName() override
virtual css::uno::Any SAL_CALL Documents(const css::uno::Any &aIndex) override
virtual float SAL_CALL PointsToInches(float Points) override
css::uno::Reference< ooo::vba::word::XApplication > mxApplication
virtual OUString getServiceImplName() override
virtual css::uno::Any SAL_CALL Dialogs(const css::uno::Any &aIndex) override
virtual css::uno::Reference< ooo::vba::word::XGlobals > SAL_CALL getWord() override
virtual float SAL_CALL PixelsToPoints(float Pixels, ::sal_Bool fVertical) override
virtual float SAL_CALL PointsToPixels(float Pixels, ::sal_Bool fVertical) override
css::uno::Reference< ooo::vba::word::XApplication > const & getApplication()
virtual css::uno::Any SAL_CALL Addins(const css::uno::Any &aIndex) override
virtual css::uno::Reference< ooo::vba::word::XWordBasic > SAL_CALL getWordBasic() override
virtual float SAL_CALL MillimetersToPoints(float Millimeters) override
virtual css::uno::Reference< ooo::vba::word::XSystem > SAL_CALL getSystem() override
virtual css::uno::Reference< ov::word::XWindow > SAL_CALL getActiveWindow() override
virtual float SAL_CALL InchesToPoints(float Inches) override
virtual css::uno::Reference< ov::word::XDocument > SAL_CALL getActiveDocument() override
virtual float SAL_CALL CentimetersToPoints(float Centimeters) override
virtual css::uno::Reference< ooo::vba::word::XOptions > SAL_CALL getOptions() override
virtual css::uno::Any SAL_CALL ListGalleries(const css::uno::Any &aIndex) override
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual float SAL_CALL PointsToCentimeters(float Points) override
This is a representation of the WordBasic statements and functions that were available in Word versio...
std::deque< AttacherIndex_Impl > aIndex
#define SAL_INFO(area, stream)
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
std::vector< Point > Points
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * Writer_SwVbaGlobals_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &args)
::cppu::ImplInheritanceHelper< VbaGlobalsBase, ov::word::XGlobals > SwVbaGlobals_BASE