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
|
|
|
|
|
|
|
#ifndef COMMANDIMAGEPROVIDER_HXX
|
|
|
|
#define COMMANDIMAGEPROVIDER_HXX
|
|
|
|
|
|
|
|
#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>
|
|
|
|
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
|
|
|
|
//........................................................................
|
|
|
|
namespace frm
|
|
|
|
{
|
|
|
|
//........................................................................
|
|
|
|
|
|
|
|
//=====================================================================
|
|
|
|
//= ICommandImageProvider
|
|
|
|
//=====================================================================
|
2013-04-07 12:06:47 +02:00
|
|
|
typedef OUString CommandURL;
|
2009-11-06 11:48:38 +01:00
|
|
|
typedef ::com::sun::star::uno::Sequence< CommandURL > CommandURLs;
|
|
|
|
typedef ::std::vector< Image > CommandImages;
|
|
|
|
|
|
|
|
class SAL_NO_VTABLE ICommandImageProvider
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual CommandImages getCommandImages(
|
|
|
|
const CommandURLs& _rCommandURLs,
|
2010-11-22 17:55:31 -08:00
|
|
|
const bool _bLarge
|
2009-11-06 11:48:38 +01:00
|
|
|
) const = 0;
|
|
|
|
|
|
|
|
virtual ~ICommandImageProvider() { }
|
|
|
|
};
|
|
|
|
|
2009-11-06 13:06:51 +01:00
|
|
|
typedef ::boost::shared_ptr< const ICommandImageProvider > PCommandImageProvider;
|
|
|
|
|
2009-11-06 11:48:38 +01:00
|
|
|
//=====================================================================
|
|
|
|
//= factory
|
|
|
|
//=====================================================================
|
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,
|
2009-11-06 11:48:38 +01:00
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& _rxDocument
|
|
|
|
);
|
|
|
|
|
|
|
|
//........................................................................
|
|
|
|
} // namespace frm
|
|
|
|
//........................................................................
|
|
|
|
|
|
|
|
#endif // COMMANDIMAGEPROVIDER_HXX
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|