office-gobmx/automation/source/inc/rcontrol.hxx

497 lines
18 KiB
C++
Raw Normal View History

2002-11-18 04:19:28 -06:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2002-11-18 04:19:28 -06:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2002-11-18 04:19:28 -06:00
*
* OpenOffice.org - a multi-platform office productivity suite
2002-11-18 04:19:28 -06:00
*
* This file is part of OpenOffice.org.
2002-11-18 04:19:28 -06:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2002-11-18 04:19:28 -06:00
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2002-11-18 04:19:28 -06:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2002-11-18 04:19:28 -06:00
*
************************************************************************/
/*************************************************************************
*
* ATTENTION
* This file is intended to work inside and outside the StarOffice environment.
* Only adaption of file commtypes.hxx should be necessary. Else it is a bug!
*
************************************************************************/
#ifndef _RCONTROL_HXX
#define _RCONTROL_HXX
#define UID_ACTIVE 0
#define SI_IPCCommandBlock 1
#define SI_SocketCommandBlock SI_IPCCommandBlock // Zumindest erstmal
#define SI_DirectCommandBlock 2
#define SIControl 3
#define SISlot 4
#define SIFlow 5
#define SICommand 6
#define SIUnoSlot 7
#define SIStringControl 8
#define SIReturnBlock 11
#define SIReturn 12
#define SIReturnError 13
// Typisierung im Stream
#define BinUSHORT 11
#define BinULONG 14
#define BinString 12
#define BinBool 13
#define BinSbxValue 15
// Classes
// !!!Diese Defines duerfen niemals geaendert werden!!!
#define C_NoType -1
// Maximale 32 einfache Controls
#define C_TabControl 0
#define C_RadioButton 1
#define C_CheckBox 2
#define C_TriStateBox 3
#define C_Edit 4
#define C_MultiLineEdit 5
#define C_MultiListBox 6
#define C_ListBox 7
#define C_ComboBox 8
#define C_PushButton 9
#define C_SpinField 10
#define C_PatternField 11
#define C_NumericField 12
#define C_MetricField 13
#define C_CurrencyField 14
#define C_DateField 15
#define C_TimeField 16
#define C_ImageRadioButton 17
#define C_NumericBox 18
#define C_MetricBox 19
#define C_CurrencyBox 20
#define C_DateBox 21
#define C_TimeBox 22
#define C_ImageButton 23
#define C_MenuButton 24
#define C_MoreButton 25
// Maximale 7 Container
#define C_TabPage 32
#define C_ModalDlg 33
2002-11-18 04:19:28 -06:00
#define C_FloatWin 34
#define C_ModelessDlg 35
#define C_WorkWin 36
#define C_DockingWin 37
// Diese Defines koennen geaendert werden
#define C_MessBox 40
#define C_InfoBox 41
#define C_WarningBox 42
#define C_ErrorBox 43
#define C_QueryBox 44
#define C_TabDlg 45
#define C_SingleTabDlg 46
#define C_Window 47
#define C_PatternBox 60
#define C_ToolBox 61
#define C_ValueSet 62
#define C_Control 63
#define C_TreeListBox 64 // Hurray the TreeListBox finally got its own Window Type
2002-11-18 04:19:28 -06:00
#define C_OkButton 65
#define C_CancelButton 66
#define C_ButtonDialog 67
2002-11-18 04:19:28 -06:00
#define C_Dialog 68
2002-11-18 04:19:28 -06:00
#define M_WITH_RETURN 0x0200 // Die Variable wird zum Aufnehmen des Wertes gespeichert
#define M_KEY_STRING 0x0400 // Key Befehle werden umgewandelt i.e. "<return><up>"
#define M_SOFFICE 0x0800 // Command valid for Star/Open Office
#define M_MOZILLA 0x1000 // Command valid for Mozilla
// for MacroRecorder
#define M_RET_NUM_CONTROL 0x2000 // decode ULong as Control (For Tabpages, Toolboxes, ... )
// Methoden
#define M_Select 21
#define M_SetNoSelection 22
#define M_SetText 23
#define M_More 24
#define M_Less 25
#define M_ToMin 26
#define M_ToMax 27
#define M_Check 28
#define M_UnCheck 29
#define M_TriState 30
#define M_SetPage 31
#define M_Click 32
#define M_Close 33 // Push Buttons on Dialog (Auch More Button)
#define M_Cancel 34
#define M_OK 35
#define M_Help 36
#define M_Default 37 // Push defaultbutton on Dialog
#define M_Yes 38
#define M_No 39
#define M_Repeat 40
#define M_Open 41
#define M_Pick 42
#define M_Move 43
#define M_Size 44
#define M_Minimize 45
#define M_Maximize 46
#define M_Dock 47
#define M_Undock 48
#define M_TypeKeys ( M_KEY_STRING | 50 )
#define M_MouseDown 51
#define M_MouseUp 52
#define M_MouseMove 53
#define M_MouseDoubleClick 54
#define M_SnapShot 55
#define M_SetNextToolBox 56
#define M_OpenContextMenu 57
#define M_MultiSelect 58
// Filedialog
#define M_SetPath 60
#define M_SetCurFilter 61
// Printdialog
#define M_SetPrinter 70
#define M_CheckRange 71
#define M_SetRangeText 72
#define M_SetFirstPage 73
#define M_SetLastPage 74
#define M_CheckCollate 75
#define M_SetPageId 76
#define M_SetPageNr 77
#define M_AnimateMouse 78
#define M_TearOff 79
#define M_FadeIn 80
#define M_FadeOut 81
#define M_Pin 82
#define M_UseMenu 83 // Use the menu of the next possible parent of given Window
#define M_OpenMenu 84 // MenuButtons and Menus in ToolBoxes
#define M_Restore 85 // Window Control together with M_Maximize and M_Minimize
2002-11-18 04:19:28 -06:00
#define M_DisplayPercent 200 // Zum Anzeigen der Prozente des Windows
#define M_LAST_NO_RETURN 200
#if ( M_LAST_NO_RETURN >= M_WITH_RETURN )
#error "Bereich <20>berschritten"
#endif
#define M_Exists ( M_WITH_RETURN | 1 )
#define M_NotExists ( M_WITH_RETURN | 2 )
#define M_IsEnabled ( M_WITH_RETURN | 3 )
#define M_IsVisible ( M_WITH_RETURN | 4 )
#define M_IsWritable ( M_WITH_RETURN | 5 )
#define M_GetPage ( M_WITH_RETURN | 6 )
#define M_IsChecked ( M_WITH_RETURN | 7 )
#define M_IsTristate ( M_WITH_RETURN | 8 )
#define M_GetState ( M_WITH_RETURN | 9 )
#define M_GetText ( M_WITH_RETURN | 10 )
#define M_GetSelCount ( M_WITH_RETURN | 11 )
#define M_GetSelIndex ( M_WITH_RETURN | 12 )
#define M_GetSelText ( M_WITH_RETURN | 13 )
#define M_GetItemCount ( M_WITH_RETURN | 14 )
#define M_GetItemText ( M_WITH_RETURN | 15 )
#define M_IsOpen ( M_WITH_RETURN | 16 )
#define M_Caption ( M_WITH_RETURN | 17 )
#define M_IsMax ( M_WITH_RETURN | 18 )
#define M_IsDocked ( M_WITH_RETURN | 19 )
#define M_GetRT ( M_WITH_RETURN | 20 )
#define M_GetPageId ( M_WITH_RETURN | 21 )
#define M_GetPageCount ( M_WITH_RETURN | 22 )
#define M_GetPosX ( M_WITH_RETURN | 23 )
#define M_GetPosY ( M_WITH_RETURN | 24 )
#define M_GetSizeX ( M_WITH_RETURN | 25 )
#define M_GetSizeY ( M_WITH_RETURN | 26 )
#define M_GetNextToolBox ( M_WITH_RETURN | 27 )
#define M_GetButtonCount ( M_WITH_RETURN | 28 )
#define M_GetButtonId ( M_WITH_RETURN | 29 )
#define M_IsFadeIn ( M_WITH_RETURN | 30 )
#define M_IsPin ( M_WITH_RETURN | 31 )
// Statusbar
#define M_StatusGetText ( M_WITH_RETURN | 32 )
#define M_StatusIsProgress ( M_WITH_RETURN | 33 )
#define M_StatusGetItemCount ( M_WITH_RETURN | 34 )
#define M_StatusGetItemId ( M_WITH_RETURN | 35 )
//
#define M_GetMouseStyle ( M_WITH_RETURN | 36 )
// support for Messagebox with checkbox
#define M_GetCheckBoxText ( M_WITH_RETURN | 37 )
// Scrollbars
#define M_HasScrollBar ( M_WITH_RETURN | 38 )
#define M_IsScrollBarEnabled ( M_WITH_RETURN | 39 )
// Dieser befehl wird nur intern im Controller (sts library) verwendet. Sie tauchen nicht im Testtool auf!
#define _M_IsEnabled ( M_WITH_RETURN | 50 )
#define M_GetFixedTextCount ( M_WITH_RETURN | 51 )
#define M_GetFixedText ( M_WITH_RETURN | 52 )
#define M_IsMin ( M_WITH_RETURN | 53 )
#define M_IsRestore ( M_WITH_RETURN | 54 )
2002-11-18 04:19:28 -06:00
#define M_GetItemType ( M_WITH_RETURN | 55 )
// Commands for (Edit)BrowseBox
#define M_GetColumnCount ( M_WITH_RETURN | 56 )
#define M_GetRowCount ( M_WITH_RETURN | 57 )
#define M_IsEditing ( M_WITH_RETURN | 58 )
2002-11-18 04:19:28 -06:00
#define M_IsItemEnabled ( M_WITH_RETURN | 59 )
2002-11-18 04:19:28 -06:00
//#define M_SOFFICE 0x0800 // Command valid for Star/Open Office
//#define M_MOZILLA 0x1000 // Command valid for Mozilla
// RemoteCommands
#define RC_AppAbort ( M_SOFFICE | M_MOZILLA | 1 )
#define RC_SetClipboard ( M_SOFFICE | M_MOZILLA | 2 )
#define RC_NoDebug ( M_SOFFICE | M_MOZILLA | 3 )
#define RC_Debug ( M_SOFFICE | M_MOZILLA | 4 )
#define RC_GPF ( M_SOFFICE | M_MOZILLA | 5 )
#define RC_DisplayHid ( M_SOFFICE | M_MOZILLA | 6 )
#define RC_AppDelay ( M_SOFFICE | M_MOZILLA | 7 )
#define RC_UseBindings ( M_SOFFICE | 8 )
#define RC_Profile ( M_SOFFICE | M_MOZILLA | 9 )
// (Popup)Menu
#define RC_MenuSelect ( M_SOFFICE | M_MOZILLA | 10 )
2010-04-09 07:11:22 -05:00
#define RC_SetControlType ( M_SOFFICE | 11 ) // deprecated since RTTI
2002-11-18 04:19:28 -06:00
// RemoteFileAccess
#define RC_Kill ( M_SOFFICE | 12 )
#define RC_RmDir ( M_SOFFICE | 13 )
#define RC_MkDir ( M_SOFFICE | 14 )
#define RC_FileCopy ( M_SOFFICE | 15 )
#define RC_Name ( M_SOFFICE | 16 )
#define RC_CaptureAssertions (M_SOFFICE | M_MOZILLA | 17 )
#define RC_Assert ( M_SOFFICE | M_MOZILLA | 18 )
#define RC_MenuOpen ( M_SOFFICE | M_MOZILLA | 19 )
#define RC_TypeKeysDelay ( M_SOFFICE | M_MOZILLA | 20 )
#define RC_ShowBar ( M_MOZILLA | 21 )
#define RC_LoadURL ( M_MOZILLA | 22 )
#define RC_CloseSysDialog ( M_SOFFICE | 23 )
#define RC_SAXRelease ( M_SOFFICE | 24 )
#define RC_RecordMacro ( M_SOFFICE | 25 )
#define RC_ActivateDocument ( M_SOFFICE | 26 )
#define RC_CatchGPF ( M_SOFFICE | 27 )
#define _RC_LAST_NO_RETURN 27
2002-11-18 04:19:28 -06:00
#if ( _RC_LAST_NO_RETURN >= M_WITH_RETURN )
#error "Bereich <20>berschritten"
#endif
// Befehle mit Returnwert
#define RC_GetClipboard ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 1 )
#define RC_WinTree ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 2 )
#define RC_ResetApplication ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 3 )
#define RC_GetNextCloseWindow ( M_SOFFICE | M_WITH_RETURN | 4 )
#define RC_ApplicationBusy ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 5 )
// (Popup)Menu
#define RC_MenuGetItemCount ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 6 )
#define RC_MenuGetItemId ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 7 )
#define RC_MenuGetItemPos ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 8 )
#define RC_MenuIsSeperator ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 9 )
#define RC_MenuIsItemChecked ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 10 )
#define RC_MenuIsItemEnabled ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 11 )
#define RC_MenuGetItemText ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 12 )
// RemoteFileAccess
#define RC_Dir ( M_SOFFICE | M_WITH_RETURN | 18 )
#define RC_FileLen ( M_SOFFICE | M_WITH_RETURN | 19 )
#define RC_FileDateTime ( M_SOFFICE | M_WITH_RETURN | 20 )
#define RC_Translate ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 21 )
#define RC_GetMouseStyle ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 22 )
#define RC_UnpackStorage ( M_SOFFICE | M_WITH_RETURN | 23 )
#define RC_IsBarVisible ( M_MOZILLA | M_WITH_RETURN | 24 )
#define RC_MenuGetItemCommand ( M_SOFFICE | M_MOZILLA | M_WITH_RETURN | 25 )
#define RC_ExistsSysDialog ( M_SOFFICE | M_WITH_RETURN | 26 )
#define RC_SAXCheckWellformed ( M_SOFFICE | M_WITH_RETURN | 27 )
#define RC_SAXReadFile ( M_SOFFICE | M_WITH_RETURN | 28 )
#define RC_SAXGetNodeType ( M_SOFFICE | M_WITH_RETURN | 29 )
#define RC_SAXGetElementName ( M_SOFFICE | M_WITH_RETURN | 30 )
#define RC_SAXGetChars ( M_SOFFICE | M_WITH_RETURN | 31 )
#define RC_SAXGetChildCount ( M_SOFFICE | M_WITH_RETURN | 32 )
#define RC_SAXGetAttributeCount ( M_SOFFICE | M_WITH_RETURN | 33 )
#define RC_SAXGetAttributeName ( M_SOFFICE | M_WITH_RETURN | 34 )
#define RC_SAXGetAttributeValue ( M_SOFFICE | M_WITH_RETURN | 35 )
#define RC_SAXSeekElement ( M_SOFFICE | M_WITH_RETURN | 36 )
#define RC_SAXHasElement ( M_SOFFICE | M_WITH_RETURN | 37 )
#define RC_SAXGetElementPath ( M_SOFFICE | M_WITH_RETURN | 38 )
#define RC_GetDocumentCount ( M_SOFFICE | M_WITH_RETURN | 39 )
#define RC_GetSystemLanguage ( M_SOFFICE | M_WITH_RETURN | 40 )
2002-11-18 04:19:28 -06:00
#define RC_IsProduct ( M_SOFFICE | M_WITH_RETURN | 41 )
#define RC_MenuHasSubMenu ( M_SOFFICE | M_WITH_RETURN | 42 )
#define RC_UsePostEvents ( M_SOFFICE | M_WITH_RETURN | 43 )
#define RC_WaitSlot ( M_SOFFICE | M_WITH_RETURN | 44 )
2002-11-18 04:19:28 -06:00
// Flow Control
#define F_EndCommandBlock 101 // Initiiert R<>ckmeldung des Status
#define F_Sequence 102 // <20>bergibt Sequence Nummer (1. in jedem Stream)
// Return codes
#define RET_Sequence 132 // <20>bergibt Sequence Nummer (1. in jedem Stream)
#define RET_Value 133 // <20>bergibt Return-wert
#define RET_WinInfo 134 // Information <20>ber aktuelles Fenster/Control
#define RET_ProfileInfo 135 // Profile Information
#define RET_DirectLoging 136 // Direktes <20>bertragen von Informationen in das Log
#define RET_MacroRecorder 137 // MakroRecorder Befehl <20>bertragen
// Subcodes die in nUId geliefert werden
// f<>r F_ProfileInfo
#define S_ProfileReset 201 // nNr1 = Anzahl Borders
// Achtung!! Diese Defines m<>ssen aufeinanderfolgende Nummern haben!!
#define S_ProfileBorder1 202 // nNr1 = Border1 in ms
#define S_ProfileBorder2 203 // nNr1 = Border2 in ms
#define S_ProfileBorder3 204 // nNr1 = Border3 in ms
#define S_ProfileBorder4 205 // nNr1 = Border4 in ms
// Achtung Ende
#define S_ProfileTime 210 // nNr1 = remote Zeit des Befehls
#define S_ProfileDump 211 // Gibt die daten aus.
// f<>r F_DirectLoging
#define S_AssertError 220
#define S_AssertWarning 221
#define S_AssertTrace 222
#define S_QAError 223
2002-11-18 04:19:28 -06:00
2010-04-09 07:11:22 -05:00
// Constants which are available in VCLTestTool scripts
2002-11-18 04:19:28 -06:00
2010-04-09 07:11:22 -05:00
// Different types of controls recognized via RTTI
2002-11-18 04:19:28 -06:00
#define CONST_CTBrowseBox 100
#define CONST_CTValueSet 103
#define CONST_CTORoadmap 104
#define CONST_CTIExtensionListBox 105
2010-04-09 07:11:22 -05:00
#define CONST_CTTableControl 106
#define CONST_CTUnknown 199
2002-11-18 04:19:28 -06:00
// Konstanten f<>r das ALignment des gesuchten Splitters
#define CONST_ALIGN_LEFT 120
#define CONST_ALIGN_TOP 121
#define CONST_ALIGN_RIGHT 122
#define CONST_ALIGN_BOTTOM 123
/// What dialog to use in RC_CloseSysDialog or RC_ExistsSysDialog
#define CONST_FilePicker 301
#define CONST_FolderPicker 302
/// NodeTypes of the SAX Parser
#define CONST_NodeTypeCharacter 555
#define CONST_NodeTypeElement 556
#define CONST_NodeTypeComment 557
/// ItemTypes for TreeListBox and maybe others
#define CONST_ItemTypeText 602
#define CONST_ItemTypeBMP 601
#define CONST_ItemTypeCheckbox 600
#define CONST_ItemTypeContextBMP 603
#define CONST_ItemTypeUnknown 604
/// Return values for WaitSlot
#define CONST_WSTimeout 701
#define CONST_WSAborted 702
#define CONST_WSFinished 703
2002-11-18 04:19:28 -06:00
// Beschreibt die Parametertypen als Bitfeld Reihenfolge immer!
// wie hier Aufgelistet
#define PARAM_NONE 0x0000
#define PARAM_USHORT_1 0x0001
#define PARAM_USHORT_2 0x0002
#define PARAM_USHORT_3 0x0100 // Nicht in der Reihe!!
#define PARAM_USHORT_4 0x0200 // Nicht in der Reihe!!
#define PARAM_ULONG_1 0x0004
#define PARAM_ULONG_2 0x0008
#define PARAM_STR_1 0x0010
#define PARAM_STR_2 0x0020
#define PARAM_BOOL_1 0x0040
#define PARAM_BOOL_2 0x0080
#define PARAM_SBXVALUE_1 0x0400 // hier mit 0x0400 Weiter!!! Siehe Oben!
// Zus<75>tzliche Beschreibung!! wird auch mit dem Rest verodert
//#define PARAM_STR_RAW 0x8000 // Der Zeichensatz der Strings wird nicht konvertiert(f<>r Fareastern)
#define ERR_SEND_TIMEOUT 100
#define ERR_EXEC_TIMEOUT 101
#define ERR_RESTART_FAIL 102
#define ERR_RESTART 103
#define ERR_NO_WIN 104 // Keine *.Win Dateien gefunden
#define ERR_NO_SID 105 // Keine *.Sid Dateien gefunden
#define ERR_NO_FILE 106 // Datei nicht gefunden
#endif