Revert "Related tdf#158739: blacklist Nvidia RTX 4050 for Skia hardware"
[LibreOffice.git] / basctl / source / basicide / basdoc.hxx
blobbb847a0a9b1a0a425cbd5e510d38f225b6e8bf4c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <sfx2/docfac.hxx>
23 #include <svx/ifaceids.hxx>
24 #include <vcl/vclptr.hxx>
25 #include <sfx2/printer.hxx>
26 #include <sfx2/objsh.hxx>
28 namespace basctl
31 class DocShell: public SfxObjectShell
33 ScopedVclPtr<SfxPrinter> pPrinter;
35 protected:
36 virtual void Draw( OutputDevice *, const JobSetup & rSetup,
37 sal_uInt16 nAspect, bool bOutputForScreen ) override;
38 virtual void FillClass( SvGlobalName * pClassName,
39 SotClipboardFormatId * pFormat,
40 OUString * pFullTypeName,
41 sal_Int32 nVersion,
42 bool bTemplate = false ) const override;
44 public:
46 SFX_DECL_OBJECTFACTORY();
47 SFX_DECL_INTERFACE( SVX_INTERFACE_BASIDE_DOCSH )
49 private:
50 /// SfxInterface initializer.
51 static void InitInterface_Impl();
53 public:
54 DocShell();
55 virtual ~DocShell() override;
57 SfxPrinter* GetPrinter( bool bCreate );
58 void SetPrinter( SfxPrinter* pPrinter );
61 } // namespace basctl
63 // This typedef helps baside.sdi,
64 // because I don't know how to use nested names in it.
65 typedef basctl::DocShell basctl_DocShell;
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */