LibreOffice Module sw (master) 1
vbaglobals.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAGLOBALS_HXX
20#define INCLUDED_SW_SOURCE_UI_VBA_VBAGLOBALS_HXX
21
22#include <com/sun/star/uno/XComponentContext.hpp>
23#include <ooo/vba/word/XGlobals.hpp>
24#include <ooo/vba/word/XApplication.hpp>
25#include <ooo/vba/word/XSystem.hpp>
26#include <ooo/vba/word/XOptions.hpp>
27#include <ooo/vba/word/XSelection.hpp>
30
31typedef ::cppu::ImplInheritanceHelper<VbaGlobalsBase, ov::word::XGlobals> SwVbaGlobals_BASE;
32
34{
35private:
36 css::uno::Reference<ooo::vba::word::XApplication> mxApplication;
37
39 css::uno::Reference<ooo::vba::word::XApplication> const& getApplication();
40
41public:
42 SwVbaGlobals(css::uno::Sequence<css::uno::Any> const& aArgs,
43 css::uno::Reference<css::uno::XComponentContext> const& rxContext);
44 virtual ~SwVbaGlobals() override;
45
46 // XGlobals
47 virtual OUString SAL_CALL getName() override;
48 virtual css::uno::Reference<ooo::vba::word::XSystem> SAL_CALL getSystem() override;
49 virtual css::uno::Reference<ov::word::XDocument> SAL_CALL getActiveDocument() override;
50 virtual css::uno::Reference<ov::word::XWindow> SAL_CALL getActiveWindow() override;
51 virtual css::uno::Reference<ooo::vba::word::XOptions> SAL_CALL getOptions() override;
52 virtual css::uno::Reference<ooo::vba::word::XSelection> SAL_CALL getSelection() override;
53 virtual css::uno::Reference<ooo::vba::word::XGlobals> SAL_CALL getWord() override;
54 virtual css::uno::Reference<ooo::vba::word::XWordBasic> SAL_CALL getWordBasic() override;
55 virtual css::uno::Any SAL_CALL CommandBars(const css::uno::Any& aIndex) override;
56 virtual css::uno::Any SAL_CALL Documents(const css::uno::Any& aIndex) override;
57 virtual css::uno::Any SAL_CALL Addins(const css::uno::Any& aIndex) override;
58 virtual css::uno::Any SAL_CALL Dialogs(const css::uno::Any& aIndex) override;
59 virtual css::uno::Any SAL_CALL ListGalleries(const css::uno::Any& aIndex) override;
60 virtual float SAL_CALL CentimetersToPoints(float Centimeters) override;
61 virtual float SAL_CALL PointsToCentimeters(float Points) override;
62 virtual float SAL_CALL PixelsToPoints(float Pixels, ::sal_Bool fVertical) override;
63 virtual float SAL_CALL PointsToPixels(float Pixels, ::sal_Bool fVertical) override;
64 virtual float SAL_CALL InchesToPoints(float Inches) override;
65 virtual float SAL_CALL PointsToInches(float Points) override;
66 virtual float SAL_CALL MillimetersToPoints(float Millimeters) override;
67 virtual float SAL_CALL PointsToMillimeters(float Points) override;
68 virtual float SAL_CALL PicasToPoints(float Picas) override;
69 virtual float SAL_CALL PointsToPicas(float Points) override;
70
71 // XMultiServiceFactory
72 virtual css::uno::Sequence<OUString> SAL_CALL getAvailableServiceNames() override;
73
74 // XHelperInterface
75 virtual OUString getServiceImplName() override;
76 virtual css::uno::Sequence<OUString> getServiceNames() override;
77};
78#endif // INCLUDED_SW_SOURCE_UI_VBA_VBAGLOBALS_HXX
79
80/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual float SAL_CALL PicasToPoints(float Picas) override
Definition: vbaglobals.cxx:183
virtual float SAL_CALL PointsToPicas(float Points) override
Definition: vbaglobals.cxx:188
virtual css::uno::Reference< ooo::vba::word::XSelection > SAL_CALL getSelection() override
Definition: vbaglobals.cxx:125
virtual ~SwVbaGlobals() override
Definition: vbaglobals.cxx:47
virtual float SAL_CALL PointsToMillimeters(float Points) override
Definition: vbaglobals.cxx:178
virtual css::uno::Any SAL_CALL CommandBars(const css::uno::Any &aIndex) override
Definition: vbaglobals.cxx:95
SwVbaGlobals(css::uno::Sequence< css::uno::Any > const &aArgs, css::uno::Reference< css::uno::XComponentContext > const &rxContext)
Definition: vbaglobals.cxx:32
virtual OUString SAL_CALL getName() override
Definition: vbaglobals.cxx:83
virtual css::uno::Any SAL_CALL Documents(const css::uno::Any &aIndex) override
Definition: vbaglobals.cxx:101
virtual float SAL_CALL PointsToInches(float Points) override
Definition: vbaglobals.cxx:168
css::uno::Reference< ooo::vba::word::XApplication > mxApplication
Definition: vbaglobals.hxx:36
virtual OUString getServiceImplName() override
Definition: vbaglobals.cxx:194
virtual css::uno::Any SAL_CALL Dialogs(const css::uno::Any &aIndex) override
Definition: vbaglobals.cxx:113
virtual css::uno::Reference< ooo::vba::word::XGlobals > SAL_CALL getWord() override
Definition: vbaglobals.cxx:130
virtual float SAL_CALL PixelsToPoints(float Pixels, ::sal_Bool fVertical) override
Definition: vbaglobals.cxx:153
virtual float SAL_CALL PointsToPixels(float Pixels, ::sal_Bool fVertical) override
Definition: vbaglobals.cxx:158
css::uno::Reference< ooo::vba::word::XApplication > const & getApplication()
Definition: vbaglobals.cxx:55
virtual css::uno::Any SAL_CALL Addins(const css::uno::Any &aIndex) override
Definition: vbaglobals.cxx:107
virtual css::uno::Reference< ooo::vba::word::XWordBasic > SAL_CALL getWordBasic() override
Definition: vbaglobals.cxx:135
virtual float SAL_CALL MillimetersToPoints(float Millimeters) override
Definition: vbaglobals.cxx:173
virtual css::uno::Reference< ooo::vba::word::XSystem > SAL_CALL getSystem() override
Definition: vbaglobals.cxx:65
virtual css::uno::Reference< ov::word::XWindow > SAL_CALL getActiveWindow() override
Definition: vbaglobals.cxx:77
virtual float SAL_CALL InchesToPoints(float Inches) override
Definition: vbaglobals.cxx:163
virtual css::uno::Reference< ov::word::XDocument > SAL_CALL getActiveDocument() override
Definition: vbaglobals.cxx:71
virtual float SAL_CALL CentimetersToPoints(float Centimeters) override
Definition: vbaglobals.cxx:143
virtual css::uno::Reference< ooo::vba::word::XOptions > SAL_CALL getOptions() override
Definition: vbaglobals.cxx:89
virtual css::uno::Any SAL_CALL ListGalleries(const css::uno::Any &aIndex) override
Definition: vbaglobals.cxx:119
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override
Definition: vbaglobals.cxx:206
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbaglobals.cxx:200
virtual float SAL_CALL PointsToCentimeters(float Points) override
Definition: vbaglobals.cxx:148
std::vector< Point > Points
unsigned char sal_Bool
::cppu::ImplInheritanceHelper< VbaGlobalsBase, ov::word::XGlobals > SwVbaGlobals_BASE
Definition: vbaglobals.hxx:31