LibreOffice Module vbahelper (master) 1
vbaapplicationbase.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_VBAHELPER_VBAAPPLICATIONBASE_HXX
20#define INCLUDED_VBAHELPER_VBAAPPLICATIONBASE_HXX
21
22#include <exception>
23#include <memory>
24
25#include <com/sun/star/uno/Any.hxx>
26#include <com/sun/star/uno/Reference.hxx>
27#include <com/sun/star/uno/RuntimeException.hpp>
28#include <com/sun/star/uno/Sequence.hxx>
29#include <ooo/vba/XApplicationBase.hpp>
30#include <rtl/ustring.hxx>
31#include <sal/types.h>
32#include <vbahelper/vbadllapi.h>
35
36namespace com::sun::star {
37 namespace frame { class XModel; }
38 namespace uno { class XComponentContext; }
39}
40
42
44
46{
47 std::unique_ptr<VbaApplicationBase_Impl> m_pImpl;
48
49protected:
50 VbaApplicationBase( const css::uno::Reference< css::uno::XComponentContext >& xContext );
51 virtual ~VbaApplicationBase() override;
52
54 virtual css::uno::Reference< css::frame::XModel > getCurrentDocument() = 0;
55public:
56 // XHelperInterface ( parent is itself )
57 virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent( ) override { return this; }
58
59 virtual sal_Bool SAL_CALL getScreenUpdating() override;
60 virtual void SAL_CALL setScreenUpdating(sal_Bool bUpdate) override;
61 virtual sal_Bool SAL_CALL getDisplayStatusBar() override;
62 virtual void SAL_CALL setDisplayStatusBar(sal_Bool bDisplayStatusBar) override;
63 virtual sal_Bool SAL_CALL getInteractive() override;
64 virtual void SAL_CALL setInteractive( sal_Bool bInteractive ) override;
65 virtual sal_Bool SAL_CALL getVisible() override;
66 virtual void SAL_CALL setVisible( sal_Bool bVisible ) override;
67 virtual OUString SAL_CALL getCaption() override;
68 virtual void SAL_CALL setCaption( const OUString& sCaption ) override;
69 virtual void SAL_CALL OnKey( const OUString& Key, const css::uno::Any& Procedure ) override;
70 virtual css::uno::Any SAL_CALL CommandBars( const css::uno::Any& aIndex ) override;
71 virtual OUString SAL_CALL getVersion() override;
72 virtual css::uno::Any SAL_CALL getVBE() override;
73
74 virtual css::uno::Any SAL_CALL Run( const OUString& MacroName, const css::uno::Any& varg1, const css::uno::Any& varg2, const css::uno::Any& varg3, const css::uno::Any& varg4, const css::uno::Any& varg5, const css::uno::Any& varg6, const css::uno::Any& varg7, const css::uno::Any& varg8, const css::uno::Any& varg9, const css::uno::Any& varg10, const css::uno::Any& varg11, const css::uno::Any& varg12, const css::uno::Any& varg13, const css::uno::Any& varg14, const css::uno::Any& varg15, const css::uno::Any& varg16, const css::uno::Any& varg17, const css::uno::Any& varg18, const css::uno::Any& varg19, const css::uno::Any& varg20, const css::uno::Any& varg21, const css::uno::Any& varg22, const css::uno::Any& varg23, const css::uno::Any& varg24, const css::uno::Any& varg25, const css::uno::Any& varg26, const css::uno::Any& varg27, const css::uno::Any& varg28, const css::uno::Any& varg29, const css::uno::Any& varg30 ) override;
75 virtual void SAL_CALL OnTime( const css::uno::Any& aEarliestTime, const OUString& aFunction, const css::uno::Any& aLatestTime, const css::uno::Any& aSchedule ) override;
76 virtual void SAL_CALL Undo() override;
77 virtual void SAL_CALL Quit() override;
78
79 // XHelperInterface
80 virtual OUString getServiceImplName() override;
81 virtual css::uno::Sequence<OUString> getServiceNames() override;
82};
83#endif
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOKey Key
virtual css::uno::Sequence< OUString > getServiceNames()=0
virtual css::uno::Reference< css::frame::XModel > getCurrentDocument()=0
std::unique_ptr< VbaApplicationBase_Impl > m_pImpl
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent() override
Quit
unsigned char sal_Bool
InheritedHelperInterfaceWeakImpl< ov::XApplicationBase > ApplicationBase_BASE
#define VBAHELPER_DLLPUBLIC
Definition: vbadllapi.h:28