/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_VBAHELPER_VBAAPPLICATIONBASE_HXX #define INCLUDED_VBAHELPER_VBAAPPLICATIONBASE_HXX #include #include #include #include #include #include #include #include #include #include #include #include namespace com { namespace sun { namespace star { namespace frame { class XModel; } namespace uno { class XComponentContext; } } } } typedef InheritedHelperInterfaceWeakImpl< ov::XApplicationBase > ApplicationBase_BASE; struct VbaApplicationBase_Impl; class VBAHELPER_DLLPUBLIC VbaApplicationBase : public ApplicationBase_BASE { std::unique_ptr m_pImpl; protected: VbaApplicationBase( const css::uno::Reference< css::uno::XComponentContext >& xContext ); virtual ~VbaApplicationBase() override; /// @throws css::uno::RuntimeException virtual css::uno::Reference< css::frame::XModel > getCurrentDocument() = 0; public: // XHelperInterface ( parent is itself ) virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent( ) override { return this; } virtual sal_Bool SAL_CALL getScreenUpdating() override; virtual void SAL_CALL setScreenUpdating(sal_Bool bUpdate) override; virtual sal_Bool SAL_CALL getDisplayStatusBar() override; virtual void SAL_CALL setDisplayStatusBar(sal_Bool bDisplayStatusBar) override; virtual sal_Bool SAL_CALL getInteractive() override; virtual void SAL_CALL setInteractive( sal_Bool bInteractive ) override; virtual sal_Bool SAL_CALL getVisible() override; virtual void SAL_CALL setVisible( sal_Bool bVisible ) override; virtual OUString SAL_CALL getCaption() override; virtual void SAL_CALL setCaption( const OUString& sCaption ) override; virtual void SAL_CALL OnKey( const OUString& Key, const css::uno::Any& Procedure ) override; virtual css::uno::Any SAL_CALL CommandBars( const css::uno::Any& aIndex ) override; virtual OUString SAL_CALL getVersion() override; virtual css::uno::Any SAL_CALL getVBE() override; 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; virtual void SAL_CALL OnTime( const css::uno::Any& aEarliestTime, const OUString& aFunction, const css::uno::Any& aLatestTime, const css::uno::Any& aSchedule ) override; virtual float SAL_CALL CentimetersToPoints( float Centimeters ) override; virtual void SAL_CALL Undo() override; virtual void SAL_CALL Quit() override; // XHelperInterface virtual OUString getServiceImplName() override; virtual css::uno::Sequence getServiceNames() override; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 4.0.6.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2023-05-05loplugin:unnecessarygetstrStephan Bergmann
2023-02-21qa: call ProcessEventsToIdle inside dispatchCommandXisco Fauli
2023-02-21tdf#153752: SbxObject::Execute: extra characters in Option Compatible modeMike Kaganski
2022-12-10Introduce CPPUNIT_PROPAGATE_EXCEPTIONS environment variableStephan Bergmann
2022-11-06tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macrojsala
2022-11-03swmodeltestbase: remove duplicated codeXisco Fauli
2022-10-11Deduplicate O(U)StringConcatenationMike Kaganski
2022-09-29split utl::TempFile into fast and named variantsNoel Grandin
2022-07-29Verify signing certificate cryptographically before use in testsMike Kaganski
2022-07-29Better valid certificate check, consider filter dataMike Kaganski
2022-04-29unotest: fix NSS initialization for CentOS7 system NSSMichael Stahl
2022-03-01Fix the test failing when invalid certificate is in cert storeMike Kaganski
2022-02-28Fix the tests failing when invalid certificate is in cert storeMike Kaganski
2021-12-03Fix --disable-scripting for DESKTOP buildJan-Marek Glogowski
2021-12-02PPTX export: handle theme colors from the doc model for shape textMiklos Vajna
2021-11-12Fix (mis-)uses of temporary O[U]StringLiteralStephan Bergmann
2021-10-18xmlsecurity: fix new tests on WNTMichael Stahl
2021-10-15test: upgrade test NSS database from dbm: to sql:Michael Stahl
2021-10-03A more lightweight O[U]StringConcatenationStephan Bergmann
2021-08-06make --disable-scripting compileCaolán McNamara
2021-07-21Avoid external processes picking up instdir/program/libnspr4.soStephan Bergmann
2021-04-21loplugin:stringadd replace OUStringLiteral temporaries with OUString::ConcatNoel Grandin
2021-04-19Updated README.md filesHossein
2021-04-01Exclude tests based on device color depth, not RDPMike Kaganski
2021-03-31This should be a static methodMike Kaganski
2021-03-30Exclude some tests in Windows RDP sessionMike Kaganski
2021-03-23tdf#124176 Use pragma once in u*Vincent LE GARREC
2020-12-29loplugin:stringviewparam: operator +Stephan Bergmann
2020-12-18throw exception in SvStream when reading past end of fileNoel
2020-12-11Adapt the remaining OUString functions to std string_viewStephan Bergmann
2020-11-18tdf#123936 Formatting files in module unotest with clang-formatPhilipp Hofer
2020-10-29python test shutdown robustnessNoel
2020-09-11Fix the minimal build-tools targetJan-Marek Glogowski
2020-08-11loplugin:flattenNoel Grandin
2020-06-19Move data for signing tests to test/Miklos Vajna
2020-05-06Move all public Java classes to libreoffice.jarSamuel Mehrbrodt
2020-04-09pyuno,*: kill Python 2 support with fireMichael Stahl
2020-02-06Fix mis-mergeStephan Bergmann
2020-02-04tdf#117331 Merge jurt and unoil into ridlSamuel Mehrbrodt
2020-02-03tdf#42949 Fix IWYU warnings in unotest/Gabor Kelemen
2020-01-31clang-tidy modernize-concat-nested-namespaceNoel Grandin
2020-01-17Clean up duplicated command dispatch test functionalityMiklos Vajna
2019-12-29Avoid crash in shutdown when accessing already destroyed BASIC_DLLMike Kaganski