Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / view / PrintableState.idl
blob5c11751dd6a7c2b70bb4d85f4b3413d62e4ef75c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PrintableState.idl,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_view_PrintableState_idl__
31 #define __com_sun_star_view_PrintableState_idl__
34 //=============================================================================
36 module com { module sun { module star { module view {
38 //=============================================================================
40 /** specifies the print progress of an <type>XPrintable</type>.
42 <p>Printing consists of two abstract phases: rendering the document
43 for the printer and then sending it to the printer (spooling).
44 <type>PrintableState</type> describes which phase is currently
45 progressing or has failed.</p>
47 @see PrintableStateEvent
49 published enum PrintableState
51 /** printing (rendering the document) has begun
53 JOB_STARTED,
55 /** printing (rendering the document) has finished, spooling has begun
57 JOB_COMPLETED,
59 /** spooling has finished successfully. This is the only state
60 that can be considered as "success" for a print job.
62 JOB_SPOOLED,
64 /** printing was aborted (e.g., by the user) while either printing or spooling.
66 JOB_ABORTED,
68 /** printing ran into an error.
70 JOB_FAILED,
72 /** the document could be printed but not spooled.
74 JOB_SPOOLING_FAILED
75 };
77 //=============================================================================
79 }; }; }; };
81 #endif