2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2013-11-05 02:25:45 +01:00
|
|
|
#ifndef INCLUDED_FRAMEWORK_INC_CLASSES_IMAGEWRAPPER_HXX
|
|
|
|
#define INCLUDED_FRAMEWORK_INC_CLASSES_IMAGEWRAPPER_HXX
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/awt/XBitmap.hpp>
|
|
|
|
#include <com/sun/star/lang/XUnoTunnel.hpp>
|
|
|
|
#include <com/sun/star/lang/XTypeProvider.hpp>
|
2015-08-14 10:23:57 +09:00
|
|
|
#include <cppuhelper/implbase.hxx>
|
2001-12-04 06:49:07 +00:00
|
|
|
#include <vcl/image.hxx>
|
2010-04-19 19:05:02 +02:00
|
|
|
#include <framework/fwedllapi.h>
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
namespace framework
|
|
|
|
{
|
|
|
|
|
2014-03-18 14:21:34 +01:00
|
|
|
class FWE_DLLPUBLIC ImageWrapper :
|
2015-10-13 16:59:57 +02:00
|
|
|
public ::cppu::WeakImplHelper< css::awt::XBitmap,
|
|
|
|
css::lang::XUnoTunnel >
|
2001-12-04 06:49:07 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ImageWrapper( const Image& aImage );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~ImageWrapper() override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
const Image& GetImage() const
|
|
|
|
{
|
|
|
|
return m_aImage;
|
|
|
|
}
|
|
|
|
|
2015-10-13 16:59:57 +02:00
|
|
|
static css::uno::Sequence< sal_Int8 > GetUnoTunnelId();
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XBitmap
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::awt::Size SAL_CALL getSize() override;
|
|
|
|
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getDIB() override;
|
|
|
|
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getMaskDIB() override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XUnoTunnel
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Image m_aImage;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-11-05 02:25:45 +01:00
|
|
|
#endif // INCLUDED_FRAMEWORK_INC_CLASSES_IMAGEWRAPPER_HXX
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|