diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-04-11 17:04:07 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-04-11 17:04:07 +0000 |
commit | 6841308ade811d29f26ad60510ac90a73d0a766c (patch) | |
tree | 5ee88af26d52287b7a4f75a7dee696daa028a2df /vcl/inc | |
parent | a02e8af56ba44e9bb3ba2c6e995a23745ee629a0 (diff) |
INTEGRATION: CWS hedaburemove01 (1.1.2); FILE ADDED
2007/02/09 16:11:02 vg 1.1.2.1: #72503# get rid of hedabu procedure: Moving headers to vcl/inc/vcl and correspondent necessary changes
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/vcl/prndlg.hxx | 58 | ||||
-rw-r--r-- | vcl/inc/vcl/prntypes.hxx | 132 |
2 files changed, 190 insertions, 0 deletions
diff --git a/vcl/inc/vcl/prndlg.hxx b/vcl/inc/vcl/prndlg.hxx new file mode 100644 index 000000000000..723bcfa39746 --- /dev/null +++ b/vcl/inc/vcl/prndlg.hxx @@ -0,0 +1,58 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: prndlg.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 18:03:58 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _SV_PRNDLG_HXX +#define _SV_PRNDLG_HXX + +#ifndef _VCL_DLLAPI_H +#include <vcl/dllapi.h> +#endif + +#include <vcl/dialog.hxx> + +class Printer; + +class VCL_DLLPUBLIC SystemDialog : public ModalDialog +{ +public: + SystemDialog( Window* pParent, WinBits nWinStyle ) : + ModalDialog( pParent, nWinStyle ) {} + SystemDialog( Window* pParent, const ResId& rResId ) : + ModalDialog( pParent, rResId ) {} + + virtual short Execute() { return 0; } +}; + +#endif // _SV_PRNDLG_HXX diff --git a/vcl/inc/vcl/prntypes.hxx b/vcl/inc/vcl/prntypes.hxx new file mode 100644 index 000000000000..545664e10393 --- /dev/null +++ b/vcl/inc/vcl/prntypes.hxx @@ -0,0 +1,132 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: prntypes.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 18:04:07 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _SV_PRNTYPES_HXX +#define _SV_PRNTYPES_HXX + +#ifndef _STRING_HXX +#include <tools/string.hxx> +#endif + +#ifndef _SV_SV_H +#include <vcl/sv.h> +#endif + +// --------------- +// - Duplex Mode - +// --------------- + +enum DuplexMode { DUPLEX_UNKNOWN, DUPLEX_OFF, DUPLEX_ON }; + +// --------------- +// - Orientation - +// --------------- + +enum Orientation { ORIENTATION_PORTRAIT, ORIENTATION_LANDSCAPE }; + +// --------- +// - Paper - +// --------- + +typedef USHORT Paper; +#define PAPER_A3 ((Paper)0) +#define PAPER_A4 ((Paper)1) +#define PAPER_A5 ((Paper)2) +#define PAPER_B4 ((Paper)3) +#define PAPER_B5 ((Paper)4) +#define PAPER_LETTER ((Paper)5) +#define PAPER_LEGAL ((Paper)6) +#define PAPER_TABLOID ((Paper)7) +#define PAPER_USER ((Paper)8) + +namespace vcl +{ +struct PaperInfo +{ + String m_aPaperName; // user readable name of paper + unsigned long m_nPaperWidth; // width in mm + unsigned long m_nPaperHeight; // height in mm + + PaperInfo() : m_nPaperWidth( 0 ), m_nPaperHeight( 0 ) {} +}; +} + +// ------------------- +// - QueueInfo-Types - +// ------------------- + +#define QUEUE_STATUS_READY ((ULONG)0x00000001) +#define QUEUE_STATUS_PAUSED ((ULONG)0x00000002) +#define QUEUE_STATUS_PENDING_DELETION ((ULONG)0x00000004) +#define QUEUE_STATUS_BUSY ((ULONG)0x00000008) +#define QUEUE_STATUS_INITIALIZING ((ULONG)0x00000010) +#define QUEUE_STATUS_WAITING ((ULONG)0x00000020) +#define QUEUE_STATUS_WARMING_UP ((ULONG)0x00000040) +#define QUEUE_STATUS_PROCESSING ((ULONG)0x00000080) +#define QUEUE_STATUS_PRINTING ((ULONG)0x00000100) +#define QUEUE_STATUS_OFFLINE ((ULONG)0x00000200) +#define QUEUE_STATUS_ERROR ((ULONG)0x00000400) +#define QUEUE_STATUS_SERVER_UNKNOWN ((ULONG)0x00000800) +#define QUEUE_STATUS_PAPER_JAM ((ULONG)0x00001000) +#define QUEUE_STATUS_PAPER_OUT ((ULONG)0x00002000) +#define QUEUE_STATUS_MANUAL_FEED ((ULONG)0x00004000) +#define QUEUE_STATUS_PAPER_PROBLEM ((ULONG)0x00008000) +#define QUEUE_STATUS_IO_ACTIVE ((ULONG)0x00010000) +#define QUEUE_STATUS_OUTPUT_BIN_FULL ((ULONG)0x00020000) +#define QUEUE_STATUS_TONER_LOW ((ULONG)0x00040000) +#define QUEUE_STATUS_NO_TONER ((ULONG)0x00080000) +#define QUEUE_STATUS_PAGE_PUNT ((ULONG)0x00100000) +#define QUEUE_STATUS_USER_INTERVENTION ((ULONG)0x00200000) +#define QUEUE_STATUS_OUT_OF_MEMORY ((ULONG)0x00400000) +#define QUEUE_STATUS_DOOR_OPEN ((ULONG)0x00800000) +#define QUEUE_STATUS_POWER_SAVE ((ULONG)0x01000000) + +#define QUEUE_JOBS_DONTKNOW ((ULONG)0xFFFFFFFF) + +// ----------------- +// - Printer-Types - +// ----------------- + +#define PRINTER_CAPABILITIES_SUPPORTDIALOG ((USHORT)1) +#define PRINTER_CAPABILITIES_COPIES ((USHORT)2) +#define PRINTER_CAPABILITIES_COLLATECOPIES ((USHORT)3) +#define PRINTER_CAPABILITIES_SETORIENTATION ((USHORT)4) +#define PRINTER_CAPABILITIES_SETPAPERBIN ((USHORT)5) +#define PRINTER_CAPABILITIES_SETPAPERSIZE ((USHORT)6) +#define PRINTER_CAPABILITIES_SETPAPER ((USHORT)7) +#define PRINTER_CAPABILITIES_FAX ((USHORT)8) +#define PRINTER_CAPABILITIES_PDF ((USHORT)9) + +#endif // _SV_PRNTYPES_HXX |