1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
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>
31 class DocShell
: public SfxObjectShell
33 ScopedVclPtr
<SfxPrinter
> pPrinter
;
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
,
42 bool bTemplate
= false ) const override
;
46 SFX_DECL_OBJECTFACTORY();
47 SFX_DECL_INTERFACE( SVX_INTERFACE_BASIDE_DOCSH
)
50 /// SfxInterface initializer.
51 static void InitInterface_Impl();
55 virtual ~DocShell() override
;
57 SfxPrinter
* GetPrinter( bool bCreate
);
58 void SetPrinter( SfxPrinter
* pPrinter
);
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: */