2010-10-14 01:27:31 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2004-11-26 10:08:48 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 03:45:25 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-11-26 10:08:48 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-11-26 10:08:48 -06:00
|
|
|
*
|
2008-04-11 03:45:25 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-11-26 10:08:48 -06:00
|
|
|
*
|
2008-04-11 03:45:25 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-11-26 10:08:48 -06:00
|
|
|
*
|
2008-04-11 03:45:25 -05: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.
|
2004-11-26 10:08:48 -06:00
|
|
|
*
|
2008-04-11 03:45:25 -05: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).
|
2004-11-26 10:08:48 -06:00
|
|
|
*
|
2008-04-11 03:45:25 -05: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.
|
2004-11-26 10:08:48 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _VCLCANVAS_BACKBUFFER_HXX_
|
|
|
|
#define _VCLCANVAS_BACKBUFFER_HXX_
|
|
|
|
|
|
|
|
#include <vcl/virdev.hxx>
|
|
|
|
|
|
|
|
#include <canvas/vclwrapper.hxx>
|
|
|
|
#include "outdevprovider.hxx"
|
|
|
|
|
2005-11-02 05:57:06 -06:00
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
|
2004-11-26 10:08:48 -06:00
|
|
|
|
|
|
|
namespace vclcanvas
|
|
|
|
{
|
2005-11-02 05:57:06 -06:00
|
|
|
/// Background buffer abstraction
|
2004-11-26 10:08:48 -06:00
|
|
|
class BackBuffer : public OutDevProvider
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/** Create a backbuffer for given reference device
|
|
|
|
|
|
|
|
@param bMonochromeBuffer
|
|
|
|
When false, default depth of reference device is
|
|
|
|
chosen. When true, the buffer will be monochrome, i.e. one
|
|
|
|
bit deep.
|
|
|
|
*/
|
|
|
|
BackBuffer( const OutputDevice& rRefDevice,
|
2005-11-02 05:57:06 -06:00
|
|
|
bool bMonochromeBuffer=false );
|
2004-11-26 10:08:48 -06:00
|
|
|
|
2005-11-02 05:57:06 -06:00
|
|
|
virtual OutputDevice& getOutDev();
|
|
|
|
virtual const OutputDevice& getOutDev() const;
|
2004-11-26 10:08:48 -06:00
|
|
|
|
2004-12-02 05:41:49 -06:00
|
|
|
void setSize( const ::Size& rNewSize );
|
|
|
|
|
2004-11-26 10:08:48 -06:00
|
|
|
private:
|
|
|
|
::canvas::vcltools::VCLObject<VirtualDevice> maVDev;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef ::boost::shared_ptr< BackBuffer > BackBufferSharedPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* #ifndef _VCLCANVAS_BACKBUFFER_HXX_ */
|
2010-10-14 01:27:31 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|