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 #include <vcl/svapp.hxx>
20 #include "salprn.hxx"
21 #include "quartz/salgdi.h"
22 #include "headless/svpinst.hxx"
23 #include "unx/fontmanager.hxx"
24 #include "unx/gendata.hxx"
25 
26 class GlyphCache
27 {
28 };
29 
CreatePrinter(SalInfoPrinter *)30 std::unique_ptr<SalPrinter> SvpSalInstance::CreatePrinter( SalInfoPrinter* /* pInfoPrinter */ )
31 {
32     return nullptr;
33 }
34 
GetDefaultPrinter()35 OUString SvpSalInstance::GetDefaultPrinter()
36 {
37     return OUString();
38 }
39 
CreatePrintGraphics()40 std::unique_ptr<GenPspGraphics> SvpSalInstance::CreatePrintGraphics()
41 {
42     return nullptr;
43 }
44 
PostPrintersChanged()45 void SvpSalInstance::PostPrintersChanged()
46 {
47 }
48 
CreateInfoPrinter(SalPrinterQueueInfo *,ImplJobSetup *)49 SalInfoPrinter* SvpSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* /* pQueueInfo */,
50                                                    ImplJobSetup*        /* pJobSetup */ )
51 {
52     return NULL;
53 }
54 
DestroyInfoPrinter(SalInfoPrinter * pPrinter)55 void SvpSalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
56 {
57     delete pPrinter;
58 }
59 
GetPrinterQueueInfo(ImplPrnQueueList *)60 void SvpSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* /* pList */ )
61 {
62 }
63 
GetPrinterQueueState(SalPrinterQueueInfo *)64 void SvpSalInstance::GetPrinterQueueState( SalPrinterQueueInfo* /* pInfo */ )
65 {
66 }
67 
CreatePrinter(SalInfoPrinter *)68 std::unique_ptr<SalPrinter> SalGenericInstance::CreatePrinter( SalInfoPrinter* /* pInfoPrinter */ )
69 {
70     return nullptr;
71 }
72 
GetDefaultPrinter()73 OUString SalGenericInstance::GetDefaultPrinter()
74 {
75     return OUString();
76 }
77 
PostPrintersChanged()78 void SalGenericInstance::PostPrintersChanged()
79 {
80 }
81 
CreateInfoPrinter(SalPrinterQueueInfo *,ImplJobSetup *)82 SalInfoPrinter* SalGenericInstance::CreateInfoPrinter( SalPrinterQueueInfo* /* pQueueInfo */,
83                                                        ImplJobSetup*        /* pJobSetup */ )
84 {
85     return NULL;
86 }
87 
DestroyInfoPrinter(SalInfoPrinter * pPrinter)88 void SalGenericInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
89 {
90     delete pPrinter;
91 }
92 
GetPrinterQueueInfo(ImplPrnQueueList *)93 void SalGenericInstance::GetPrinterQueueInfo( ImplPrnQueueList* /* pList */ )
94 {
95 }
96 
GetPrinterQueueState(SalPrinterQueueInfo *)97 void SalGenericInstance::GetPrinterQueueState( SalPrinterQueueInfo* /* pInfo */ )
98 {
99 }
100 
updatePrinterUpdate()101 void SalGenericInstance::updatePrinterUpdate()
102 {
103 }
104 
jobStartedPrinterUpdate()105 void SalGenericInstance::jobStartedPrinterUpdate()
106 {
107 }
108 
jobEndedPrinterUpdate()109 void SalGenericInstance::jobEndedPrinterUpdate()
110 {
111 }
112 
drawEPS(long,long,long,long,void *,sal_uInt32)113 bool AquaSalGraphics::drawEPS( long, long, long, long, void*, sal_uInt32 )
114 {
115     return false;
116 }
117 
118 using namespace psp;
119 
GenericUnixSalData(GenericUnixSalDataType const t,SalInstance * const pInstance)120 GenericUnixSalData::GenericUnixSalData(GenericUnixSalDataType const t, SalInstance *const pInstance)
121     : m_eType(t)
122     , m_pDisplay(nullptr)
123     , m_pGlyphCache(new GlyphCache)
124     , m_pPrintFontManager(nullptr)
125 {
126     m_pInstance = pInstance;
127     SetSalData(this);
128 }
129 
~GenericUnixSalData()130 GenericUnixSalData::~GenericUnixSalData()
131 {
132 }
133 
~PrintFontManager()134 PrintFontManager::~PrintFontManager()
135 {
136 }
137 
138 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
139