/* -*- 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_SELECTIONMULTIPLEX_HXX #define INCLUDED_COMPHELPER_SELECTIONMULTIPLEX_HXX #include #include #include #include #include namespace com::sun::star::view { class XSelectionSupplier; } //= selection helper classes namespace comphelper { //= OSelectionChangeListener /// simple listener adapter for selections class UNLESS_MERGELIBS_MORE(COMPHELPER_DLLPUBLIC) OSelectionChangeListener { friend class OSelectionChangeMultiplexer; public: virtual ~OSelectionChangeListener(); /// @throws css::uno::RuntimeException virtual void _selectionChanged( const css::lang::EventObject& aEvent ) = 0; /// @throws css::uno::RuntimeException virtual void _disposing(const css::lang::EventObject& _rSource); }; //= OSelectionChangeMultiplexer /// multiplexer for selection changes class UNLESS_MERGELIBS_MORE(COMPHELPER_DLLPUBLIC) OSelectionChangeMultiplexer final : public cppu::WeakImplHelper< css::view::XSelectionChangeListener> { friend class OSelectionChangeListener; css::uno::Reference< css::view::XSelectionSupplier> m_xSet; OSelectionChangeListener* m_pListener; sal_Int32 m_nLockCount; OSelectionChangeMultiplexer(const OSelectionChangeMultiplexer&) = delete; OSelectionChangeMultiplexer& operator=(const OSelectionChangeMultiplexer&) = delete; virtual ~OSelectionChangeMultiplexer() override; public: OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const css::uno::Reference< css::view::XSelectionSupplier>& _rxSet); // XEventListener virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override; // XSelectionChangeListener virtual void SAL_CALL selectionChanged( const css::lang::EventObject& aEvent ) override; /// incremental lock void lock(); /// incremental unlock void unlock(); /// get the lock count sal_Int32 locked() const { return m_nLockCount; } void dispose(); }; } // namespace comphelper #endif // INCLUDED_COMPHELPER_SELECTIONMULTIPLEX_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ e='distro/collabora/co-24.04.9'>distro/collabora/co-24.04.9 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2022-06-13Drop obsolete preprocessor directives from UNOIDL filesStephan Bergmann
2022-05-18clang-tidy modernize-pass-by-value in codemakerNoel Grandin
2022-04-29Revert "use more string_view in codemaker"Noel Grandin
2022-04-27use more string_view in codemakerNoel Grandin
2022-04-22address review comments on "use more string in unoidl.."Noel Grandin
2022-04-21use more string_view in unoidl,codemakerNoel Grandin
2022-04-17loplugin:stringviewparam convert methods using copy()Noel Grandin
2022-04-10loplugin:stringview check for getToken and trimNoel Grandin
2022-04-09add a more complete o3tl::getTokenNoel Grandin
2022-04-02loplugin:stringviewparam convert methods using indexOfNoel Grandin
2022-03-04cid#1500511 silence Resource leakCaolán McNamara
2022-02-08Extend loplugin:stringview to O[U]StringBuffer::toStringStephan Bergmann
2022-02-06tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macroVaibhavMalik4187
2022-01-23Improve DBG_UNHANDLED_EXCEPTION output a bitStephan Bergmann
2021-12-21loplugin:flatten in canvas..cuiNoel Grandin
2021-10-29Prepare for removal of non-const operator[] from Sequence in codemakerMike Kaganski
2021-10-14Use more appropriate type for OString-length related variableStephan Bergmann
2021-06-26codemaker : remove useless includesArnaud Versini
2021-05-18Use implicit conversion from OStringBuffer to std::string_viewStephan Bergmann
2021-05-14Improve loplugin:stringviewStephan Bergmann
2021-05-02throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewriteStephan Bergmann
2021-04-30throw() -> noexcept, part 1/3: Manual scaffoldingStephan Bergmann
2021-04-29cid#1473812 Untrusted value as argumentCaolán McNamara
2021-04-21loplugin:stringadd replace OUStringLiteral temporaries with OUString::ConcatNoel Grandin
2021-04-07Updated README.md files to represent current code / use Markdown formatHossein
2021-03-24Using .md extension/Markdown syntax for modules READMEHossein
2021-02-12fix fuzzer buildCaolán McNamara
2021-01-29loplugin:stringviewparam extend to new..Noel
2020-12-29loplugin:stringviewparam: operator +Stephan Bergmann
2020-12-11Adapt the remaining OUString functions to std string_viewStephan Bergmann
2020-11-13tdf#123936 Formatting files in module codemaker with clang-formatPhilipp Hofer
2020-11-11loplugin:stringviewNoel
2020-09-04tdf#124176 Use #pragma once in codemakerGeorge Bateman
2020-09-02Turn OStringLiteral into a consteval'ed, static-refcound rtl_StringStephan Bergmann
2020-08-30Goodbye O[U]StringView, welcome O[U]String::ConcatStephan Bergmann
2020-05-19Fix the Clang check for using <experimental/source_location>Stephan Bergmann
2020-05-18use std::experimental::source_location in uno::ExceptionNoel Grandin
2020-05-08compact namespace in canvas..cuiNoel Grandin
2020-04-18loplugin:flatten in codemakerNoel Grandin
2020-03-02ofz#20976 build-failureCaolán McNamara
2020-03-02Revert "ofz#20976 build-failure"Caolán McNamara
2020-03-02ofz#20976 build-failureCaolán McNamara
2020-01-15clang-tidy modernize-concat-nested-namespace in codemaker..configmgrNoel Grandin
2019-12-18sal_Char->char in canvas..codemakerNoel Grandin