2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 20:25:33 +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 .
|
|
|
|
*/
|
2007-04-11 17:09:49 +00:00
|
|
|
|
2013-10-28 04:06:23 +01:00
|
|
|
#ifndef INCLUDED_VCL_INC_SALVD_HXX
|
|
|
|
#define INCLUDED_VCL_INC_SALVD_HXX
|
2007-04-11 17:09:49 +00:00
|
|
|
|
2012-06-11 20:02:11 +03:00
|
|
|
#include <basebmp/bitmapdevice.hxx>
|
2014-01-29 23:15:33 -02:00
|
|
|
#include <vcl/dllapi.h>
|
2014-11-29 22:14:36 +00:00
|
|
|
#include <salgeom.hxx>
|
2007-04-11 17:09:49 +00:00
|
|
|
|
|
|
|
class SalGraphics;
|
|
|
|
|
2010-12-08 13:53:30 +01:00
|
|
|
class VCL_PLUGIN_PUBLIC SalVirtualDevice
|
2014-11-29 22:14:36 +00:00
|
|
|
: public SalGeometryProvider
|
2007-04-11 17:09:49 +00:00
|
|
|
{
|
2013-12-12 23:43:36 +02:00
|
|
|
public:
|
2007-04-11 17:09:49 +00:00
|
|
|
SalVirtualDevice() {}
|
|
|
|
virtual ~SalVirtualDevice();
|
|
|
|
|
2014-11-29 22:14:36 +00:00
|
|
|
// SalGeometryProvider
|
|
|
|
virtual bool IsOffScreen() const SAL_OVERRIDE { return true; }
|
|
|
|
|
2007-04-11 17:09:49 +00:00
|
|
|
// SalGraphics or NULL, but two Graphics for all SalVirtualDevices
|
|
|
|
// must be returned
|
2014-02-15 19:51:04 +11:00
|
|
|
virtual SalGraphics* AcquireGraphics() = 0;
|
2013-03-18 12:26:53 +02:00
|
|
|
virtual void ReleaseGraphics( SalGraphics* pGraphics ) = 0;
|
2007-04-11 17:09:49 +00:00
|
|
|
|
2012-06-11 20:02:11 +03:00
|
|
|
// Set new size, without saving the old contents
|
2014-09-13 10:43:46 +10:00
|
|
|
virtual bool SetSize( long nNewDX, long nNewDY ) = 0;
|
2012-06-11 20:02:11 +03:00
|
|
|
|
|
|
|
// Set new size using a buffer at the given address
|
2014-09-13 10:43:46 +10:00
|
|
|
virtual bool SetSizeUsingBuffer( long nNewDX, long nNewDY,
|
|
|
|
const basebmp::RawMemorySharedArray & /* pBuffer */,
|
|
|
|
const bool /* bTopDown */
|
|
|
|
)
|
2013-03-18 12:26:53 +02:00
|
|
|
{
|
2014-05-25 16:40:47 +01:00
|
|
|
// Only the headless virtual device has an implementation that uses
|
|
|
|
// pBuffer (and bTopDown).
|
2013-03-18 12:26:53 +02:00
|
|
|
return SetSize( nNewDX, nNewDY );
|
|
|
|
}
|
2007-04-11 17:09:49 +00:00
|
|
|
};
|
|
|
|
|
2013-10-28 04:06:23 +01:00
|
|
|
#endif // INCLUDED_VCL_INC_SALVD_HXX
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|