diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-04-11 16:59:01 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-04-11 16:59:01 +0000 |
commit | 00f44b0017fa97dffde62734fb4a6b1b468f37ea (patch) | |
tree | 181e06b85a1232a8cba0477e40b97584ac1ebc97 /vcl/inc | |
parent | 1f44fc2c68997032c6f6b0a742e85f9eb17c90db (diff) |
INTEGRATION: CWS hedaburemove01 (1.1.2); FILE ADDED
2007/02/09 16:10:55 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/jobset.h | 95 | ||||
-rw-r--r-- | vcl/inc/vcl/jobset.hxx | 101 | ||||
-rw-r--r-- | vcl/inc/vcl/keycodes.hxx | 208 |
3 files changed, 404 insertions, 0 deletions
diff --git a/vcl/inc/vcl/jobset.h b/vcl/inc/vcl/jobset.h new file mode 100644 index 000000000000..6fa9032a23f4 --- /dev/null +++ b/vcl/inc/vcl/jobset.h @@ -0,0 +1,95 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: jobset.h,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 17:58:33 $ + * + * 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_JOBSET_H +#define _SV_JOBSET_H + +#ifndef _STRING_HXX +#include <tools/string.hxx> +#endif + +#ifndef _SV_SV_H +#include <vcl/sv.h> +#endif +#ifndef _SV_PRNTYPES_HXX +#include <vcl/prntypes.hxx> +#endif +#include <hash_map> +#ifndef _RTL_USTRING_ +#include <rtl/ustring.hxx> +#endif + +// ------------------ +// - JobSetup-Types - +// ------------------ + +// see com.sun.star.portal.client.JobSetupSystem.idl: +#define JOBSETUP_SYSTEM_DONTKNOW 0 +#define JOBSETUP_SYSTEM_WINDOWS 1 +#define JOBSETUP_SYSTEM_OS2 2 +#define JOBSETUP_SYSTEM_UNIX 3 +#define JOBSETUP_SYSTEM_MAC 4 +#define JOBSETUP_SYSTEM_JAVA 5 + +// ---------------- +// - ImplJobSetup - +// ---------------- + +struct ImplJobSetup +{ + USHORT mnRefCount; // RefCount (only independ data) + USHORT mnSystem; // Sytem - JOBSETUP_SYSTEM_xxxx + String maPrinterName; // Printer-Name + String maDriver; // Driver-Name + Orientation meOrientation; // Orientation + USHORT mnPaperBin; // Papierschacht + Paper mePaperFormat; // Papierformat + long mnPaperWidth; // Papierbreite in 100tel mm + long mnPaperHeight; // Papierhoehe in 100tel mm + ULONG mnDriverDataLen; // Laenge der systemabhaengigen Daten + BYTE* mpDriverData; // Systemabhaengige Daten die als Byte-Block rausgeschrieben werden + ::std::hash_map< ::rtl::OUString, ::rtl::OUString, ::rtl::OUStringHash > maValueMap; + + ImplJobSetup(); + ImplJobSetup( const ImplJobSetup& rJobSetup ); + ~ImplJobSetup(); +}; + +// Papierformat wird wenn PAPER_USER im unabhaengigen Teil automatisch aus +// Papierbreite/hoehe berechnet +// Papierbreite/hoehe wird wenn 0 im unabhaengigen Teil automatisch aus +// Papierformat berechnet, wenn dieses ungleich PAPER_USER ist + +#endif // _SV_JOBSET_H diff --git a/vcl/inc/vcl/jobset.hxx b/vcl/inc/vcl/jobset.hxx new file mode 100644 index 000000000000..155b2530d8d8 --- /dev/null +++ b/vcl/inc/vcl/jobset.hxx @@ -0,0 +1,101 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: jobset.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 17:58:42 $ + * + * 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_JOBSET_HXX +#define _SV_JOBSET_HXX + +#ifndef _TOOLS_STRING_HXX +#include <tools/string.hxx> +#endif +#ifndef _SV_SV_H +#include <vcl/sv.h> +#endif + +#ifndef _VCL_DLLAPI_H +#include <vcl/dllapi.h> +#endif + +#ifndef _SV_PRNTYPES_HXX +#include <vcl/prntypes.hxx> +#endif + +class SvStream; +struct ImplJobSetup; + +// ------------ +// - JobSetup - +// ------------ + +class VCL_DLLPUBLIC JobSetup +{ + friend class Printer; + +private: + ImplJobSetup* mpData; + +//#if 0 // _SOLAR__PRIVATE +public: + SAL_DLLPRIVATE ImplJobSetup* ImplGetData(); + SAL_DLLPRIVATE ImplJobSetup* ImplGetConstData(); + SAL_DLLPRIVATE const ImplJobSetup* ImplGetConstData() const; +//#endif + +public: + JobSetup(); + JobSetup( const JobSetup& rJob ); + ~JobSetup(); + + String GetPrinterName() const; + String GetDriverName() const; + + /* Get/SetValue are used to read/store additional + * Parameters in the job setup that may be used + * by the printer driver. One possible use are phone + * numbers for faxes (which disguise as printers) + */ + String GetValue( const String& rKey ) const; + void SetValue( const String& rKey, const String& rValue ); + + JobSetup& operator=( const JobSetup& rJob ); + + BOOL operator==( const JobSetup& rJobSetup ) const; + BOOL operator!=( const JobSetup& rJobSetup ) const + { return !(JobSetup::operator==( rJobSetup )); } + + friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup ); + friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup ); +}; + +#endif // _SV_JOBSET_HXX diff --git a/vcl/inc/vcl/keycodes.hxx b/vcl/inc/vcl/keycodes.hxx new file mode 100644 index 000000000000..55019a3782f0 --- /dev/null +++ b/vcl/inc/vcl/keycodes.hxx @@ -0,0 +1,208 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: keycodes.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 17:59:01 $ + * + * 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_KEYCODES_HXX +#define _SV_KEYCODES_HXX + +#ifndef _SV_SV_H +#include <vcl/sv.h> +#endif + +#ifndef _COM_SUN_STAR_AWT_KEY_HPP_ +#include <com/sun/star/awt/Key.hpp> +#endif +#ifndef _COM_SUN_STAR_AWT_KEYGROUP_HPP_ +#include <com/sun/star/awt/KeyGroup.hpp> +#endif + +// ----------------- +// - KeyCode-Types - +// ----------------- + +// By changes you must also change: rsc/vclrsc.hxx + +// Key-Gruppen +#define KEYGROUP_NUM ((USHORT)::com::sun::star::awt::KeyGroup::NUM) +#define KEYGROUP_ALPHA ((USHORT)::com::sun::star::awt::KeyGroup::ALPHA) +#define KEYGROUP_FKEYS ((USHORT)::com::sun::star::awt::KeyGroup::FKEYS) +#define KEYGROUP_CURSOR ((USHORT)::com::sun::star::awt::KeyGroup::CURSOR) +#define KEYGROUP_MISC ((USHORT)::com::sun::star::awt::KeyGroup::MISC) +#define KEYGROUP_TYPE ((USHORT)::com::sun::star::awt::KeyGroup::TYPE) + +// Key-Codes +#define KEY_0 ((USHORT)::com::sun::star::awt::Key::NUM0) +#define KEY_1 ((USHORT)::com::sun::star::awt::Key::NUM1) +#define KEY_2 ((USHORT)::com::sun::star::awt::Key::NUM2) +#define KEY_3 ((USHORT)::com::sun::star::awt::Key::NUM3) +#define KEY_4 ((USHORT)::com::sun::star::awt::Key::NUM4) +#define KEY_5 ((USHORT)::com::sun::star::awt::Key::NUM5) +#define KEY_6 ((USHORT)::com::sun::star::awt::Key::NUM6) +#define KEY_7 ((USHORT)::com::sun::star::awt::Key::NUM7) +#define KEY_8 ((USHORT)::com::sun::star::awt::Key::NUM8) +#define KEY_9 ((USHORT)::com::sun::star::awt::Key::NUM9) + +#define KEY_A ((USHORT)::com::sun::star::awt::Key::A) +#define KEY_B ((USHORT)::com::sun::star::awt::Key::B) +#define KEY_C ((USHORT)::com::sun::star::awt::Key::C) +#define KEY_D ((USHORT)::com::sun::star::awt::Key::D) +#define KEY_E ((USHORT)::com::sun::star::awt::Key::E) +#define KEY_F ((USHORT)::com::sun::star::awt::Key::F) +#define KEY_G ((USHORT)::com::sun::star::awt::Key::G) +#define KEY_H ((USHORT)::com::sun::star::awt::Key::H) +#define KEY_I ((USHORT)::com::sun::star::awt::Key::I) +#define KEY_J ((USHORT)::com::sun::star::awt::Key::J) +#define KEY_K ((USHORT)::com::sun::star::awt::Key::K) +#define KEY_L ((USHORT)::com::sun::star::awt::Key::L) +#define KEY_M ((USHORT)::com::sun::star::awt::Key::M) +#define KEY_N ((USHORT)::com::sun::star::awt::Key::N) +#define KEY_O ((USHORT)::com::sun::star::awt::Key::O) +#define KEY_P ((USHORT)::com::sun::star::awt::Key::P) +#define KEY_Q ((USHORT)::com::sun::star::awt::Key::Q) +#define KEY_R ((USHORT)::com::sun::star::awt::Key::R) +#define KEY_S ((USHORT)::com::sun::star::awt::Key::S) +#define KEY_T ((USHORT)::com::sun::star::awt::Key::T) +#define KEY_U ((USHORT)::com::sun::star::awt::Key::U) +#define KEY_V ((USHORT)::com::sun::star::awt::Key::V) +#define KEY_W ((USHORT)::com::sun::star::awt::Key::W) +#define KEY_X ((USHORT)::com::sun::star::awt::Key::X) +#define KEY_Y ((USHORT)::com::sun::star::awt::Key::Y) +#define KEY_Z ((USHORT)::com::sun::star::awt::Key::Z) + +#define KEY_F1 ((USHORT)::com::sun::star::awt::Key::F1) +#define KEY_F2 ((USHORT)::com::sun::star::awt::Key::F2) +#define KEY_F3 ((USHORT)::com::sun::star::awt::Key::F3) +#define KEY_F4 ((USHORT)::com::sun::star::awt::Key::F4) +#define KEY_F5 ((USHORT)::com::sun::star::awt::Key::F5) +#define KEY_F6 ((USHORT)::com::sun::star::awt::Key::F6) +#define KEY_F7 ((USHORT)::com::sun::star::awt::Key::F7) +#define KEY_F8 ((USHORT)::com::sun::star::awt::Key::F8) +#define KEY_F9 ((USHORT)::com::sun::star::awt::Key::F9) +#define KEY_F10 ((USHORT)::com::sun::star::awt::Key::F10) +#define KEY_F11 ((USHORT)::com::sun::star::awt::Key::F11) +#define KEY_F12 ((USHORT)::com::sun::star::awt::Key::F12) +#define KEY_F13 ((USHORT)::com::sun::star::awt::Key::F13) +#define KEY_F14 ((USHORT)::com::sun::star::awt::Key::F14) +#define KEY_F15 ((USHORT)::com::sun::star::awt::Key::F15) +#define KEY_F16 ((USHORT)::com::sun::star::awt::Key::F16) +#define KEY_F17 ((USHORT)::com::sun::star::awt::Key::F17) +#define KEY_F18 ((USHORT)::com::sun::star::awt::Key::F18) +#define KEY_F19 ((USHORT)::com::sun::star::awt::Key::F19) +#define KEY_F20 ((USHORT)::com::sun::star::awt::Key::F20) +#define KEY_F21 ((USHORT)::com::sun::star::awt::Key::F21) +#define KEY_F22 ((USHORT)::com::sun::star::awt::Key::F22) +#define KEY_F23 ((USHORT)::com::sun::star::awt::Key::F23) +#define KEY_F24 ((USHORT)::com::sun::star::awt::Key::F24) +#define KEY_F25 ((USHORT)::com::sun::star::awt::Key::F25) +#define KEY_F26 ((USHORT)::com::sun::star::awt::Key::F26) + +#define KEY_DOWN ((USHORT)::com::sun::star::awt::Key::DOWN) +#define KEY_UP ((USHORT)::com::sun::star::awt::Key::UP) +#define KEY_LEFT ((USHORT)::com::sun::star::awt::Key::LEFT) +#define KEY_RIGHT ((USHORT)::com::sun::star::awt::Key::RIGHT) +#define KEY_HOME ((USHORT)::com::sun::star::awt::Key::HOME) +#define KEY_END ((USHORT)::com::sun::star::awt::Key::END) +#define KEY_PAGEUP ((USHORT)::com::sun::star::awt::Key::PAGEUP) +#define KEY_PAGEDOWN ((USHORT)::com::sun::star::awt::Key::PAGEDOWN) + +#define KEY_RETURN ((USHORT)::com::sun::star::awt::Key::RETURN) +#define KEY_ESCAPE ((USHORT)::com::sun::star::awt::Key::ESCAPE) +#define KEY_TAB ((USHORT)::com::sun::star::awt::Key::TAB) +#define KEY_BACKSPACE ((USHORT)::com::sun::star::awt::Key::BACKSPACE) +#define KEY_SPACE ((USHORT)::com::sun::star::awt::Key::SPACE) +#define KEY_INSERT ((USHORT)::com::sun::star::awt::Key::INSERT) +#define KEY_DELETE ((USHORT)::com::sun::star::awt::Key::DELETE) + +#define KEY_ADD ((USHORT)::com::sun::star::awt::Key::ADD) +#define KEY_SUBTRACT ((USHORT)::com::sun::star::awt::Key::SUBTRACT) +#define KEY_MULTIPLY ((USHORT)::com::sun::star::awt::Key::MULTIPLY) +#define KEY_DIVIDE ((USHORT)::com::sun::star::awt::Key::DIVIDE) +#define KEY_POINT ((USHORT)::com::sun::star::awt::Key::POINT) +#define KEY_COMMA ((USHORT)::com::sun::star::awt::Key::COMMA) +#define KEY_LESS ((USHORT)::com::sun::star::awt::Key::LESS) +#define KEY_GREATER ((USHORT)::com::sun::star::awt::Key::GREATER) +#define KEY_EQUAL ((USHORT)::com::sun::star::awt::Key::EQUAL) + +#define KEY_OPEN ((USHORT)::com::sun::star::awt::Key::OPEN) +#define KEY_CUT ((USHORT)::com::sun::star::awt::Key::CUT) +#define KEY_COPY ((USHORT)::com::sun::star::awt::Key::COPY) +#define KEY_PASTE ((USHORT)::com::sun::star::awt::Key::PASTE) +#define KEY_UNDO ((USHORT)::com::sun::star::awt::Key::UNDO) +#define KEY_REPEAT ((USHORT)::com::sun::star::awt::Key::REPEAT) +#define KEY_FIND ((USHORT)::com::sun::star::awt::Key::FIND) +#define KEY_PROPERTIES ((USHORT)::com::sun::star::awt::Key::PROPERTIES) +#define KEY_FRONT ((USHORT)::com::sun::star::awt::Key::FRONT) +#define KEY_CONTEXTMENU ((USHORT)::com::sun::star::awt::Key::CONTEXTMENU) +#define KEY_MENU ((USHORT)::com::sun::star::awt::Key::MENU) +#define KEY_HELP ((USHORT)::com::sun::star::awt::Key::HELP) +#define KEY_HANGUL_HANJA ((USHORT)::com::sun::star::awt::Key::HANGUL_HANJA) +#define KEY_DECIMAL ((USHORT)::com::sun::star::awt::Key::DECIMAL) +#define KEY_TILDE ((USHORT)::com::sun::star::awt::Key::TILDE) +#define KEY_QUOTELEFT ((USHORT)::com::sun::star::awt::Key::QUOTELEFT) + +#define KEY_CODE ((USHORT)0x0FFF) + +// Modifier-Tasten +#define KEY_SHIFT ((USHORT)0x1000) +#define KEY_MOD1 ((USHORT)0x2000) +#define KEY_MOD2 ((USHORT)0x4000) +#ifdef MACOSX +#define KEY_MOD5 ((USHORT)0x8000) +#define KEY_MODTYPE ((USHORT)0xF000) +#else +#define KEY_MODTYPE ((USHORT)0x7000) +#define KEY_CONTROLMOD ((USHORT)0x8000) +#endif +#define KEY_ALLMODTYPE ((USHORT)0xF000) + +// extended Modifier-Keys (only used for modkey events) +#define MODKEY_LSHIFT 0x0001 +#define MODKEY_RSHIFT 0x0002 +#define MODKEY_LMOD1 0x0004 +#define MODKEY_RMOD1 0x0008 +#define MODKEY_LMOD2 0x0010 +#define MODKEY_RMOD2 0x0020 +#define MODKEY_SHIFT (MODKEY_LSHIFT|MODKEY_RSHIFT) +#define MODKEY_MOD1 (MODKEY_LMOD1|MODKEY_RMOD1) +#define MODKEY_MOD2 (MODKEY_LMOD2|MODKEY_RMOD2) + +// --------------- +// - Mouse-Types - +// --------------- + +#define MOUSE_LEFT ((USHORT)0x0001) +#define MOUSE_MIDDLE ((USHORT)0x0002) +#define MOUSE_RIGHT ((USHORT)0x0004) + +#endif // _SV_KEYCODES_HXX |