android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / ui / vba / vbaglobals.hxx
blobc1713502dfa4af16389ce2978a6bfc4a44df6df1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAGLOBALS_HXX
20 #define INCLUDED_SW_SOURCE_UI_VBA_VBAGLOBALS_HXX
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>
28 #include <cppuhelper/implbase.hxx>
29 #include <vbahelper/vbaglobalbase.hxx>
31 typedef ::cppu::ImplInheritanceHelper<VbaGlobalsBase, ov::word::XGlobals> SwVbaGlobals_BASE;
33 class SwVbaGlobals : public SwVbaGlobals_BASE
35 private:
36 css::uno::Reference<ooo::vba::word::XApplication> mxApplication;
38 /// @throws css::uno::RuntimeException
39 css::uno::Reference<ooo::vba::word::XApplication> const& getApplication();
41 public:
42 SwVbaGlobals(css::uno::Sequence<css::uno::Any> const& aArgs,
43 css::uno::Reference<css::uno::XComponentContext> const& rxContext);
44 virtual ~SwVbaGlobals() override;
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;
71 // XMultiServiceFactory
72 virtual css::uno::Sequence<OUString> SAL_CALL getAvailableServiceNames() override;
74 // XHelperInterface
75 virtual OUString getServiceImplName() override;
76 virtual css::uno::Sequence<OUString> getServiceNames() override;
78 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBAGLOBALS_HXX
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */