2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2005-03-30 06:35:16 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 08:46:07 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2005-03-30 06:35:16 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2005-03-30 06:35:16 +00:00
|
|
|
*
|
2008-04-11 08:46:07 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2005-03-30 06:35:16 +00:00
|
|
|
*
|
2008-04-11 08:46:07 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2005-03-30 06:35:16 +00:00
|
|
|
*
|
2008-04-11 08:46:07 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2005-03-30 06:35:16 +00:00
|
|
|
*
|
2008-04-11 08:46:07 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2005-03-30 06:35:16 +00:00
|
|
|
*
|
2008-04-11 08:46:07 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2005-03-30 06:35:16 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _VCLCANVAS_CACHEDBITMAP_HXX
|
|
|
|
#define _VCLCANVAS_CACHEDBITMAP_HXX
|
|
|
|
|
2005-11-02 11:58:02 +00:00
|
|
|
#include <canvas/base/cachedprimitivebase.hxx>
|
2005-03-30 06:35:16 +00:00
|
|
|
|
2009-12-15 21:55:40 +01:00
|
|
|
#include <svtools/grfmgr.hxx>
|
2005-03-30 06:35:16 +00:00
|
|
|
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
/* Definition of CachedBitmap class */
|
|
|
|
|
|
|
|
namespace vclcanvas
|
|
|
|
{
|
|
|
|
typedef ::boost::shared_ptr< GraphicObject > GraphicObjectSharedPtr;
|
|
|
|
|
2005-11-02 11:58:02 +00:00
|
|
|
class CachedBitmap : public ::canvas::CachedPrimitiveBase
|
2005-03-30 06:35:16 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
/** Create an XCachedPrimitive for given GraphicObject
|
|
|
|
*/
|
2007-11-01 13:40:19 +00:00
|
|
|
CachedBitmap( const GraphicObjectSharedPtr& rGraphicObject,
|
|
|
|
const ::Point& rPoint,
|
|
|
|
const ::Size& rSize,
|
|
|
|
const GraphicAttr& rAttr,
|
|
|
|
const ::com::sun::star::rendering::ViewState& rUsedViewState,
|
|
|
|
const ::com::sun::star::rendering::RenderState& rUsedRenderState,
|
2005-03-30 06:35:16 +00:00
|
|
|
const ::com::sun::star::uno::Reference<
|
2007-11-01 13:40:19 +00:00
|
|
|
::com::sun::star::rendering::XCanvas >& rTarget );
|
2005-03-30 06:35:16 +00:00
|
|
|
|
|
|
|
/// Dispose all internal references
|
|
|
|
virtual void SAL_CALL disposing();
|
|
|
|
|
|
|
|
private:
|
2005-11-02 11:58:02 +00:00
|
|
|
virtual ::sal_Int8 doRedraw( const ::com::sun::star::rendering::ViewState& rNewState,
|
|
|
|
const ::com::sun::star::rendering::ViewState& rOldState,
|
|
|
|
const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::rendering::XCanvas >& rTargetCanvas,
|
|
|
|
bool bSameViewTransform );
|
|
|
|
|
2005-03-30 06:35:16 +00:00
|
|
|
|
|
|
|
GraphicObjectSharedPtr mpGraphicObject;
|
2007-11-01 13:40:19 +00:00
|
|
|
const ::com::sun::star::rendering::RenderState maRenderState;
|
2005-03-30 06:35:16 +00:00
|
|
|
const ::Point maPoint;
|
|
|
|
const ::Size maSize;
|
|
|
|
const GraphicAttr maAttributes;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _VCLCANVAS_CACHEDBITMAP_HXX */
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|