LibreOffice Module basctl (master) 1
basdoc.hxx
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 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
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>
27
28namespace basctl
29{
30
32{
34
35protected:
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;
43
44public:
45
47 SFX_DECL_INTERFACE( SVX_INTERFACE_BASIDE_DOCSH )
48
49private:
51 static void InitInterface_Impl();
52
53public:
54 DocShell();
55 virtual ~DocShell() override;
56
57 SfxPrinter* GetPrinter( bool bCreate );
59};
60
61} // namespace basctl
62
63// This typedef helps baside.sdi,
64// because I don't know how to use nested names in it.
66
67/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
basctl::DocShell basctl_DocShell
Definition: basdoc.hxx:65
ScopedVclPtr< SfxPrinter > pPrinter
Definition: basdoc.hxx:33
static void InitInterface_Impl()
SfxInterface initializer.
SfxPrinter * GetPrinter(bool bCreate)
Definition: basdoc.cxx:62
void SetPrinter(SfxPrinter *pPrinter)
Definition: basdoc.cxx:72
virtual void FillClass(SvGlobalName *pClassName, SotClipboardFormatId *pFormat, OUString *pFullTypeName, sal_Int32 nVersion, bool bTemplate=false) const override
Definition: basdoc.cxx:80
virtual ~DocShell() override
Definition: basdoc.cxx:57
virtual void Draw(OutputDevice *, const JobSetup &rSetup, sal_uInt16 nAspect, bool bOutputForScreen) override
Definition: basdoc.cxx:85
SotClipboardFormatId
#define SFX_DECL_INTERFACE(nId)