LibreOffice Module vcl (master) 1
bufferdevice.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#include "bufferdevice.hxx"
11
12namespace vcl
13{
15 : m_pBuffer(VclPtr<VirtualDevice>::Create(rRenderContext))
16 , m_pWindow(pWindow)
17 , m_rRenderContext(rRenderContext)
18{
19 m_pBuffer->SetOutputSizePixel(pWindow->GetOutputSizePixel(), false);
20 m_pBuffer->SetTextColor(rRenderContext.GetTextColor());
21 m_pBuffer->DrawOutDev(Point(0, 0), pWindow->GetOutputSizePixel(), Point(0, 0),
22 pWindow->GetOutputSizePixel(), rRenderContext);
23 m_pBuffer->EnableRTL(rRenderContext.IsRTLEnabled());
24}
25
27{
28 if (m_bDisposed)
29 {
30 return;
31 }
32
35 m_bDisposed = true;
36}
37
39
41
43}
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:170
virtual void DrawOutDev(const Point &rDestPt, const Size &rDestSize, const Point &rSrcPt, const Size &rSrcSize)
Definition: outdev.cxx:417
bool IsRTLEnabled() const
Definition: outdev.hxx:1269
const Color & GetTextColor() const
Definition: outdev.hxx:1003
reference_type * get() const
Get the body.
Definition: vclptr.hxx:143
vcl::RenderContext & operator*()
VclPtr< vcl::Window > m_pWindow
BufferDevice(const VclPtr< vcl::Window > &pWindow, vcl::RenderContext &rRenderContext)
ScopedVclPtr< VirtualDevice > m_pBuffer
vcl::RenderContext * operator->()
vcl::RenderContext & m_rRenderContext
Size GetOutputSizePixel() const
Definition: window3.cxx:89
sal_uInt8 m_pBuffer[RTL_DIGEST_LENGTH_SHA1]
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)