/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #pragma once #include #include #include #include #include #include class VCL_DLLPUBLIC SalYieldMutex : public comphelper::SolarMutex { public: SalYieldMutex(); virtual ~SalYieldMutex() override; }; /* * Abstract generic class to build vclplugin's instance classes from */ class GenPspGraphics; namespace vcl::font { class PhysicalFontCollection; } class VCL_DLLPUBLIC SalGenericInstance : public SalInstance { protected: bool mbPrinterInit; public: SalGenericInstance( std::unique_ptr pMutex ) : SalInstance(std::move(pMutex)), mbPrinterInit(false) {} virtual ~SalGenericInstance() override; // Printing virtual SalInfoPrinter* CreateInfoPrinter ( SalPrinterQueueInfo* pQueueInfo, ImplJobSetup* pSetupData ) override; virtual void DestroyInfoPrinter ( SalInfoPrinter* pPrinter ) override; virtual std::unique_ptr CreatePrinter ( SalInfoPrinter* pInfoPrinter ) override; virtual void GetPrinterQueueInfo ( ImplPrnQueueList* pList ) override; virtual void GetPrinterQueueState ( SalPrinterQueueInfo* pInfo ) override; virtual OUString GetDefaultPrinter() override; virtual void PostPrintersChanged() = 0; virtual void updatePrinterUpdate() override; virtual void jobEndedPrinterUpdate() override; bool isPrinterInit() const { return mbPrinterInit; } virtual std::unique_ptr CreatePrintGraphics() = 0; virtual OUString getOSVersion() override; // prolly belongs somewhere else ... just a font help static void RegisterFontSubstitutors( vcl::font::PhysicalFontCollection* pFontCollection ); protected: static void configurePspInfoPrinter( PspSalInfoPrinter* pInfoPrinter, SalPrinterQueueInfo const * pQueueInfo, ImplJobSetup* pSetupData ); }; inline SalGenericInstance *GetGenericInstance() { return static_cast(GetSalInstance()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ion> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-05-28new clang plugin: loopvartoosmallNoel Grandin
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
2015-04-09loplugin:salboolNoel Grandin
2015-04-09fix windows and android buildsNoel Grandin
2015-04-09fix android buildNoel Grandin
2015-04-09convert RTReferenceType to scoped enumNoel Grandin
2015-04-09convert RTMethodMode to scoped enumNoel Grandin
2015-04-09convert RT_ACCESS fields to scoped enumNoel Grandin
2015-04-09convert RegError to scoped enumNoel Grandin
2015-04-09convert RegValueType to scoped enumNoel Grandin
2015-04-09remove reg keytype constants and related codeNoel Grandin
2015-04-09convert REG_ constants to scoped enumNoel Grandin
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
2015-03-27loplugin:staticfunctionNoel Grandin
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
2015-03-19loplugin:constantfunction: registryNoel Grandin
2015-02-23remove unnecessary parenthesis in return statementsNoel Grandin
2015-02-07loplugin:deletedspecialStephan Bergmann
2015-01-28Some more loplugin:cstylecast clean-upStephan Bergmann
2015-01-25loplugin:unreffunStephan Bergmann
2015-01-25coverity#1266504 Useless callCaolán McNamara
2015-01-20Some more loplugin:cstylecast: registryStephan Bergmann
2015-01-05Some loplugin:revisibility clean-upStephan Bergmann
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
2014-12-19fdo#39440 reduce scope of local variablesMichael Weghorn
2014-11-24Bin commented-out unreachable 'break' statementsTor Lillqvist
2014-11-21Silence unhelpful cid#1215304 untrusted loop bound warningsStephan Bergmann
2014-11-18Fix memchr checksStephan Bergmann
2014-11-17Remove dead codeStephan Bergmann
2014-11-17cid#1213388 etc.: Make reflread.cxx more robustStephan Bergmann
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
2014-11-05markup with event type not checker typeCaolán McNamara
2014-11-01coverity#1213373 Use of untrusted scalar valueCaolán McNamara
2014-10-29untaint registry dataCaolán McNamara
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin
2014-09-30registry: std::auto_ptr -> std::unique_ptrStephan Bergmann
2014-09-25coverity#705672 Resource leakCaolán McNamara
2014-09-17Translate German comments.Michael Meeks