/* -*- 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_COMPHELPER_INTERACTION_HXX #define INCLUDED_COMPHELPER_INTERACTION_HXX #include #include #include #include #include #include #include #include namespace comphelper { //= OInteraction /** template for instantiating concrete interaction handlers

the template argument must be an interface derived from XInteractionContinuation */ template class OInteraction : public ::cppu::WeakImplHelper< INTERACTION > { public: OInteraction() : m_bSelected(false) {} /// determines whether or not this handler was selected bool wasSelected() const { return m_bSelected; } // XInteractionContinuation virtual void SAL_CALL select() override; private: bool m_bSelected : 1; /// indicates if the select event occurred }; template void SAL_CALL OInteraction< INTERACTION >::select( ) { m_bSelected = true; } //= OInteractionApprove typedef OInteraction< css::task::XInteractionApprove > OInteractionApprove; //= OInteractionDisapprove typedef OInteraction< css::task::XInteractionDisapprove > OInteractionDisapprove; //= OInteractionAbort typedef OInteraction< css::task::XInteractionAbort > OInteractionAbort; //= OInteractionRetry typedef OInteraction< css::task::XInteractionRetry > OInteractionRetry; //= OInteractionRequest typedef ::cppu::WeakImplHelper < css::task::XInteractionRequest > OInteractionRequest_Base; /** implements an interaction request (com.sun.star.task::XInteractionRequest)

at run time, you can freely add any interaction continuation objects */ class COMPHELPER_DLLPUBLIC OInteractionRequest final : public OInteractionRequest_Base { css::uno::Any const m_aRequest; /// the request we represent std::vector< css::uno::Reference< css::task::XInteractionContinuation > > m_aContinuations; /// all registered continuations public: OInteractionRequest(css::uno::Any aRequestDescription); OInteractionRequest(css::uno::Any aRequestDescription, std::vector>&& rContinuations); /// add a new continuation void addContinuation(const css::uno::Reference< css::task::XInteractionContinuation >& _rxContinuation); // XInteractionRequest virtual css::uno::Any SAL_CALL getRequest( ) override; virtual css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > SAL_CALL getContinuations( ) override; }; } // namespace comphelper #endif // INCLUDED_COMPHELPER_INTERACTION_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ro/collabora/cp-6.0'>distro/collabora/cp-6.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff

path: root/scp2/inc
AgeCommit message (Expand)Author
2020-09-12Try fix multiple assignments of gidsMike Kaganski
2019-03-08Related tdf#111344: fix Bad token \text/x-ms-iqyJulien Nabet
2017-08-29remove some unused macro definitionsNoel Grandin
2017-07-21migrate to boost::gettextCaolán McNamara
2017-06-06scp2: package 64-bit MSVC runtimes for explorer extensionsMichael Stahl
2017-06-02scp2: remove all ComponentConditions that test Windows versionsMichael Stahl
2017-06-02scp2: move fonts to AutoInstallMichael Stahl
2017-06-02scp2: replace PACKAGE_FILELIST_DIR macro with SDK_PACKAGE_FILELISTMichael Stahl
2017-05-15tdf#100837: advertise app URL capabilitiesMike Kaganski
2017-05-02tdf#106359: missing leading dotMike Kaganski
2017-04-25tdf#106359: register text/x-ms-iqy MediaType default extensionMike Kaganski
2017-04-06tdf#106359: register .iqy in MSI and treat them as templatesMike Kaganski
2016-11-30tdf#90753: Autoinstall sdk packagesMatúš Kukan
2016-10-18tdf#100837: Register new URI handlers with installerMike Kaganski
2016-06-23tdf#97872 File association in Windows registryskswales
2016-04-22Fix typosAndrea Gelmini
2015-07-27inline a bunch of use-once macrosNoel Grandin
2015-07-27remove some unused definesNoel Grandin
2015-06-22scp2: add AutoInstall support for executables with COMPONENTCONDITIONMichael Stahl
2014-12-03Fold URE: WindowsStephan Bergmann
2014-12-01Fold URE: Linux ure/share/misc/* -> program/Stephan Bergmann
2014-11-28Fold URE: Linux ure/share/java/* -> program/classes/Stephan Bergmann
2014-11-28Fold URE: Linux ure/lib/* -> program/Stephan Bergmann
2014-11-28Fold URE: Linux ure/bin/* -> program/Stephan Bergmann
2014-10-29scp2: remove EXENAMEMichael Stahl
2014-09-28Fix 64914e407ccac9 - #endif/#else mixupChris Sherlock
2014-09-27vs2012 express support.Norbert Thiebaud
2014-09-25scp2: remove some very SPECIAL unused macrosMichael Stahl
2014-09-09Make the "Mac-like" or "canonical" app bundle structure always used on OS XTor Lillqvist
2014-08-17remove executable bitsThomas Arnhold
2014-08-15Fixes for the ENABLE_MACOSX_MACLIKE_APP_STRUCTURE caseTor Lillqvist
2014-08-02scp2: remove unused STD_LIB_FILE etc. macrosMichael Stahl
2014-08-02scp2: move winexplorerext libs to AutoInstallMichael Stahl
2014-07-03fdo#77057 quick fix: do not touch KindMap for alien file typesAndras Timar
2014-05-27scp: remove unused STD_JAR_FILE, JARFILENAMEMichael Stahl