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 .
19 #ifndef __com_sun_star_awt_XPrinter_idl__
20 #define __com_sun_star_awt_XPrinter_idl__
22 #include
<com
/sun
/star
/awt
/XPrinterPropertySet.idl
>
24 #include
<com
/sun
/star
/awt
/PrinterException.idl
>
26 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
28 #include
<com
/sun
/star
/awt
/XDevice.idl
>
32 module com
{ module sun
{ module star
{ module awt
{
35 /** represents a virtual printer.
37 <p>All properties are vetoable properties.
38 If you change the properties between a call to
39 com::sun::star::awt::XPrinter::startPage() and a call
40 to com::sun::star::awt::XPrinter::endPage(),
41 a com::sun::star::beans::PropertyVetoException is
44 published
interface XPrinter
: com
::sun
::star
::awt
::XPrinterPropertySet
47 /** puts the job into the printer spooler.
49 <p>This call may block the thread. So release all resources
50 (mutex, semaphore, etc.) before this call.</p>
52 boolean start
( [in] string nJobName
,
54 [in] boolean nCollate
)
55 raises
( com
::sun
::star
::awt
::PrinterException
,
56 com
::sun
::star
::lang
::IllegalArgumentException
);
59 /** notifies the printer spooler that the job is done and printing
65 raises
( com
::sun
::star
::awt
::PrinterException
);
68 /** stops the current print job.
71 com::sun::star::awt::XPrinter::end()
72 is called beforehand, then this call does nothing. If you call
73 com::sun::star::awt::XPrinter::terminate()
74 in or before the call to
75 com::sun::star::awt::XPrinter::start(),
76 com::sun::star::awt::XPrinter::terminate()
77 returns `FALSE`. This call must not block the thread.</p>
84 /** begins with a new page.
86 com
::sun
::star
::awt
::XDevice startPage
()
87 raises
( com
::sun
::star
::awt
::PrinterException
);
90 /** ends the current page.
93 raises
( com
::sun
::star
::awt
::PrinterException
);
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */