merged tag ooo/OOO330_m14
[LibreOffice.git] / extensions / source / svg / svgprinter.hxx
blob743a86bc7a50dc65f36151461e8782bc193b7694
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef _SVGPRINTER_HXX
29 #define _SVGPRINTER_HXX
31 #include "svgcom.hxx"
33 // -------------
34 // - SVGWriter -
35 // -------------
37 class SVGPrinterExport;
39 class SVGPrinter : public NMSP_CPPU::OWeakObject, NMSP_SVG::XSVGPrinter
41 private:
43 REF( NMSP_LANG::XMultiServiceFactory ) mxFact;
44 SVGPrinterExport* mpWriter;
46 SVGPrinter();
48 public:
50 SVGPrinter( const REF( NMSP_LANG::XMultiServiceFactory )& rxMgr );
51 virtual ~SVGPrinter();
53 // XInterface
54 virtual ANY SAL_CALL queryInterface( const NMSP_UNO::Type & rType ) throw( NMSP_UNO::RuntimeException );
55 virtual void SAL_CALL acquire() throw();
56 virtual void SAL_CALL release() throw();
58 // XSVGPrinter
59 virtual sal_Bool SAL_CALL startJob( const REF( NMSP_SAX::XDocumentHandler )& rxHandler,
60 const SEQ( sal_Int8 )& rJobSetup,
61 const NMSP_RTL::OUString& rJobName,
62 sal_uInt32 nCopies, sal_Bool bCollate ) throw( NMSP_UNO::RuntimeException );
63 virtual void SAL_CALL printPage( const SEQ( sal_Int8 )& rPrintPage ) throw( NMSP_UNO::RuntimeException );
64 virtual void SAL_CALL endJob() throw( NMSP_UNO::RuntimeException );
67 #endif