/* -*- 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/. */ #ifndef INCLUDED_VCL_COMMANDICONRESOLVER_HXX #define INCLUDED_VCL_COMMANDICONRESOLVER_HXX #include #include #include #include #include "ImageList.hxx" #include #include #include namespace vcl { class CommandImageResolver final { private: typedef std::unordered_map CommandToImageNameMap; CommandToImageNameMap m_aCommandToImageNameMap; std::vector m_aImageCommandNameVector; std::vector m_aImageNameVector; o3tl::enumarray> m_pImageList; OUString m_sIconTheme; ImageList* getImageList(ImageType nImageType); public: CommandImageResolver(); ~CommandImageResolver(); void registerCommands(css::uno::Sequence& aCommandSequence); Image getImageFromCommandURL(ImageType nImageType, const OUString& rCommandURL); std::vector& getCommandNames() { return m_aImageCommandNameVector; } bool hasImage(const OUString& rCommandURL); }; } // end namespace vcl #endif // INCLUDED_VCL_COMMANDICONRESOLVER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */