2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-21 22:06:52 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
2010-02-12 15:01:35 +01:00
|
|
|
*
|
2012-11-21 22:06:52 +00:00
|
|
|
* 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/.
|
2010-02-12 15:01:35 +01:00
|
|
|
*
|
2012-11-21 22:06:52 +00:00
|
|
|
* This file incorporates work covered by the following license notice:
|
2010-02-12 15:01:35 +01:00
|
|
|
*
|
2012-11-21 22:06:52 +00:00
|
|
|
* 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 .
|
|
|
|
*/
|
2009-11-06 11:48:38 +01:00
|
|
|
|
2021-03-06 08:21:49 +01:00
|
|
|
#pragma once
|
2009-11-06 11:48:38 +01:00
|
|
|
|
|
|
|
#include <com/sun/star/frame/XModel.hpp>
|
2013-06-03 08:34:09 +02:00
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
2019-12-02 09:57:02 +02:00
|
|
|
#include <com/sun/star/ui/XImageManager.hpp>
|
2009-11-06 11:48:38 +01:00
|
|
|
|
|
|
|
#include <vcl/image.hxx>
|
|
|
|
|
2015-09-17 09:21:43 +01:00
|
|
|
#include <memory>
|
2009-11-06 11:48:38 +01:00
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2009-11-06 11:48:38 +01:00
|
|
|
namespace frm
|
|
|
|
{
|
|
|
|
|
2019-12-02 09:57:02 +02:00
|
|
|
class DocumentCommandImageProvider
|
2009-11-06 11:48:38 +01:00
|
|
|
{
|
|
|
|
public:
|
2019-12-02 09:57:02 +02:00
|
|
|
DocumentCommandImageProvider( const css::uno::Reference<css::uno::XComponentContext>& _rContext, const css::uno::Reference< css::frame::XModel >& _rxDocument );
|
2009-11-06 11:48:38 +01:00
|
|
|
|
2019-12-02 09:57:02 +02:00
|
|
|
std::vector<Image> getCommandImages( const css::uno::Sequence< OUString >& _rCommandURLs, bool _bLarge ) const;
|
2009-11-06 13:06:51 +01:00
|
|
|
|
2019-12-02 09:57:02 +02:00
|
|
|
private:
|
|
|
|
css::uno::Reference< css::ui::XImageManager > m_xDocumentImageManager;
|
|
|
|
css::uno::Reference< css::ui::XImageManager > m_xModuleImageManager;
|
|
|
|
};
|
2014-02-25 18:50:02 +01:00
|
|
|
|
|
|
|
|
2019-12-02 09:57:02 +02:00
|
|
|
typedef std::shared_ptr< const DocumentCommandImageProvider > PCommandImageProvider;
|
2009-11-06 11:48:38 +01:00
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2009-11-06 11:48:38 +01:00
|
|
|
} // namespace frm
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2009-11-06 11:48:38 +01:00
|
|
|
|
2010-10-27 12:45:03 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|