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 
12 namespace 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 }
24 
26 {
29 }
30 
32 
34 }
35 
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const Color & GetTextColor() const
Definition: outdev.hxx:1110
vcl::RenderContext * operator->()
vcl::RenderContext & operator*()
ScopedVclPtr< VirtualDevice > m_pBuffer
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:304
VclPtr< vcl::Window > m_pWindow
Size GetOutputSizePixel() const
Definition: outdev.hxx:441
BufferDevice(const VclPtr< vcl::Window > &pWindow, vcl::RenderContext &rRenderContext)
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
virtual void DrawOutDev(const Point &rDestPt, const Size &rDestSize, const Point &rSrcPt, const Size &rSrcSize)
Definition: outdev.cxx:348
reference_type * get() const
Get the body.
Definition: vclptr.hxx:143
vcl::RenderContext & m_rRenderContext