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
|
|
|
|
2013-11-05 02:31:05 +01:00
|
|
|
#ifndef INCLUDED_FORMS_SOURCE_INC_COMMANDIMAGEPROVIDER_HXX
|
|
|
|
#define INCLUDED_FORMS_SOURCE_INC_COMMANDIMAGEPROVIDER_HXX
|
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>
|
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
|
|
|
|
{
|
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2009-11-06 11:48:38 +01:00
|
|
|
//= ICommandImageProvider
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2015-10-21 14:46:13 +02:00
|
|
|
typedef ::std::vector< Image > CommandImages;
|
2009-11-06 11:48:38 +01:00
|
|
|
|
|
|
|
class SAL_NO_VTABLE ICommandImageProvider
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual CommandImages getCommandImages(
|
2015-10-21 14:46:13 +02:00
|
|
|
const css::uno::Sequence< OUString >& _rCommandURLs,
|
2010-11-22 17:55:31 -08:00
|
|
|
const bool _bLarge
|
2009-11-06 11:48:38 +01:00
|
|
|
) const = 0;
|
|
|
|
|
|
|
|
virtual ~ICommandImageProvider() { }
|
|
|
|
};
|
|
|
|
|
2015-09-17 09:21:43 +01:00
|
|
|
typedef std::shared_ptr< const ICommandImageProvider > PCommandImageProvider;
|
2009-11-06 13:06:51 +01:00
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2009-11-06 11:48:38 +01:00
|
|
|
//= factory
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2009-11-06 13:06:51 +01:00
|
|
|
PCommandImageProvider
|
2009-11-06 11:48:38 +01:00
|
|
|
createDocumentCommandImageProvider(
|
2013-06-03 08:34:09 +02:00
|
|
|
const css::uno::Reference<css::uno::XComponentContext>& _rContext,
|
2015-10-01 15:32:00 +02:00
|
|
|
const css::uno::Reference< css::frame::XModel >& _rxDocument
|
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
|
|
|
|
2013-11-05 02:31:05 +01:00
|
|
|
#endif // INCLUDED_FORMS_SOURCE_INC_COMMANDIMAGEPROVIDER_HXX
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|