/* -*- 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_SD_SOURCE_UI_UNOIDL_UNOCPRES_HXX #define INCLUDED_SD_SOURCE_UI_UNOIDL_UNOCPRES_HXX #include #include #include #include #include #include #include #include #include #include #include #include #include class SdCustomShow; class SdXCustomPresentation : public ::cppu::WeakImplHelper< css::container::XIndexContainer, css::container::XNamed, css::lang::XUnoTunnel, css::lang::XComponent, css::lang::XServiceInfo > { private: SdCustomShow* mpSdCustomShow; SdXImpressDocument* mpModel; // for xComponent ::osl::Mutex aDisposeContainerMutex; ::comphelper::OInterfaceContainerHelper2 aDisposeListeners; bool bDisposing; public: SdXCustomPresentation() throw(); explicit SdXCustomPresentation( SdCustomShow* mpSdCustomShow ) throw(); virtual ~SdXCustomPresentation() throw() override; // internal SdCustomShow* GetSdCustomShow() const throw() { return mpSdCustomShow; } void SetSdCustomShow( SdCustomShow* pShow ) throw() { mpSdCustomShow = pShow; } SdXImpressDocument* GetModel() const throw() { return mpModel; } // uno helper UNO3_GETIMPLEMENTATION_DECL(SdXCustomPresentation) // XServiceInfo virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; // XIndexContainer virtual void SAL_CALL insertByIndex( sal_Int32 Index, const css::uno::Any& Element ) override; virtual void SAL_CALL removeByIndex( sal_Int32 Index ) override; // XIndexReplace virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const css::uno::Any& Element ) override; // XElementAccess virtual css::uno::Type SAL_CALL getElementType() override; virtual sal_Bool SAL_CALL hasElements() override; // XIndexAccess virtual sal_Int32 SAL_CALL getCount() override ; virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override; // XNamed virtual OUString SAL_CALL getName( ) override; virtual void SAL_CALL setName( const OUString& aName ) override; // XComponent virtual void SAL_CALL dispose( ) override; virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override; virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override; }; class SdXCustomPresentationAccess : public ::cppu::WeakImplHelper< css::container::XNameContainer, css::lang::XSingleServiceFactory, css::lang::XServiceInfo > { private: SdXImpressDocument& mrModel; // intern inline SdCustomShowList* GetCustomShowList() const throw(); SdCustomShow * getSdCustomShow( const OUString& Name ) const throw(); public: explicit SdXCustomPresentationAccess(SdXImpressDocument& rMyModel) throw(); virtual ~SdXCustomPresentationAccess() throw() override; // XServiceInfo virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; // XSingleServiceFactory virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( ) override; virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const css::uno::Sequence< css::uno::Any >& aArguments ) override; // XNameContainer virtual void SAL_CALL insertByName( const OUString& aName, const css::uno::Any& aElement ) override; virtual void SAL_CALL removeByName( const OUString& Name ) override; // XNameReplace virtual void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement ) override; // XNameAccess virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override; virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override; virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override; // XElementAccess virtual css::uno::Type SAL_CALL getElementType() override; virtual sal_Bool SAL_CALL hasElements() override; }; inline SdCustomShowList* SdXCustomPresentationAccess::GetCustomShowList() const throw() { if(mrModel.GetDoc()) return mrModel.GetDoc()->GetCustomShowList(); else return nullptr; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ion value='distro/lhm/libreoffice-6-4+backports'>distro/lhm/libreoffice-6-4+backports LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
4c6b29'>find symbols that can be private
AgeCommit message (Expand)Author
2021-09-06remove unnecessary settings.xml from autotextJustin Luth
Noel Grandin
2019-10-30loplugin:finalclasses sot..svlNoel Grandin
2019-10-17ofz#18280 remove LinkedFile supportCaolán McNamara
2019-04-27clenup storinfo.hxxTomaž Vajngerl
2019-04-26cleanup files in SOT, not changeTomaž Vajngerl
2019-04-26tdf#118977 support PDF documents as a clipboard formatTomaž Vajngerl
2018-12-05remove unused SotExchangeActionFlags enum valuesNoel Grandin
2018-11-07tdf#120657 Pie chart saved as DOC doesn't preview in MSONoel Grandin
2018-11-05tdf#42949 Fix IWYU warnings in include/sot/*Gabor Kelemen
2018-07-12return SvMemoryStream by std::unique_ptrNoel Grandin
2018-01-15Remove unused EXCHG_OUT_ACTION_*Stephan Bergmann
2018-01-12More loplugin:cstylecast: sotStephan Bergmann
2017-12-20sal_uLong->sal_uInt32 in SotClipboardFormatIdNoel Grandin
2017-11-13SotClipboardFormatId::STRING_TSVC "Unformatted text [TSV-Calc]", tdf#113571Eike Rathke
2017-11-02improve constparam lopluginNoel Grandin
2017-09-11long->sal_Int32 in various Get/SetVersionNoel Grandin
2017-09-04New loplugin:dyncastvisibilityStephan Bergmann
2017-08-07EditEngine: Removing BIN format from sotVarun Dhall
2017-07-17loplugin:constparams in i18nutil,sotNoel Grandin
2017-06-21convert ErrCode to strong typedefNoel Grandin
2017-06-07EditEngine Exporting flat XML from actual clipboardVarun Dhall
2017-06-06tdf#39468 Translate German comments and dbg strings (leftovers in h.. to i..)Johnny_M
2017-06-06replace SVSTREAM_OK with ERRCODE_NONENoel Grandin
2017-05-30teach redundantcast plugin about functional castsNoel Grandin
2017-04-27tools: move errcode.hxx to the vcl moduleChris Sherlock
2017-01-09defaults are good enoughCaolán McNamara
2017-01-09Related: coverity#1371305 unnecessary inheritenceCaolán McNamara
2017-01-09tdf#101828 handle rtf/richtext correctlyOliver Specht
2016-11-21loplugin:countusersofdefaultparams in include/sot..svlNoel Grandin
2016-11-09make comphelper::containerToSequence a little smarterNoel Grandin
2016-09-30loplugin:constantparamNoel Grandin
2016-09-19loplugin:unusedenumvaluesNoel Grandin
2016-09-15replace sal_Size with std::size_t (or sal_uInt64 for SvStream pos)Michael Stahl
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2016-09-09loplugin:constantparam in sot..svlNoel Grandin
2016-08-27put StreamMode masks in scope of enum classJochen Nitschke