/* -*- 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_FRAMEWORK_INC_UICONFIGURATION_GRAPHICNAMEACCESS_HXX #define INCLUDED_FRAMEWORK_INC_UICONFIGURATION_GRAPHICNAMEACCESS_HXX #include #include #include #include namespace framework { class GraphicNameAccess final : public ::cppu::WeakImplHelper< css::container::XNameAccess > { public: GraphicNameAccess(); virtual ~GraphicNameAccess() override; void addElement( const OUString& rName, const css::uno::Reference< css::graphic::XGraphic >& rElement ); // 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 sal_Bool SAL_CALL hasElements() override; virtual css::uno::Type SAL_CALL getElementType( ) override; private: typedef std::unordered_map> NameGraphicHashMap; NameGraphicHashMap m_aNameToElementMap; css::uno::Sequence< OUString > m_aSeq; }; } #endif // INCLUDED_FRAMEWORK_INC_UICONFIGURATION_GRAPHICNAMEACCESS_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ora/co-2021'>distro/collabora/co-2021 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2023-11-19Extended loplugin:ostr: openclStephan Bergmann
2023-04-10Drop SvStream::WriteCharPtrMike Kaganski
2023-02-03Use raw string literal in opencl to keep PMD static analyser happyIlmari Lauhakangas
2021-10-20loplugin:indentation check for indent inside blockNoel Grandin
2021-08-18loplugin:constparamsNoel Grandin
2021-04-27use more string_view in tools/streamNoel Grandin
2020-12-29loplugin:stringviewparam: operator +Stephan Bergmann
2020-11-11convert more long -> tools::LongNoel
2020-07-10replace usage of whitelist with allowlistThorsten Behrens
2020-07-10replace usage of blacklist with denylistThorsten Behrens
2020-01-28New loplugin:unsignedcompareStephan Bergmann
2019-12-11pickBestDevice return is ignoredCaolán McNamara
2019-08-20loplugin:constvars in i18npool..openclNoel Grandin
2019-07-23Fix typosAndrea Gelmini
2019-05-29tdf#42949 Fix IWYU warnings in opencl/Gabor Kelemen