diff options
Diffstat (limited to 'automation/source/inc')
-rw-r--r-- | automation/source/inc/rcontrol.hxx | 78 | ||||
-rw-r--r-- | automation/source/inc/testapp.hxx | 70 |
2 files changed, 74 insertions, 74 deletions
diff --git a/automation/source/inc/rcontrol.hxx b/automation/source/inc/rcontrol.hxx index 14a26feded42..7e240c8caacf 100644 --- a/automation/source/inc/rcontrol.hxx +++ b/automation/source/inc/rcontrol.hxx @@ -40,7 +40,7 @@ #define UID_ACTIVE "UID_ACTIVE" #define SI_IPCCommandBlock 1 -#define SI_SocketCommandBlock SI_IPCCommandBlock // Zumindest erstmal +#define SI_SocketCommandBlock SI_IPCCommandBlock #define SI_DirectCommandBlock 2 #define SIControl 3 // remove after numeric HelpIDs are completely removed and no legacy testtool is used anymore #define SISlot 4 @@ -61,9 +61,9 @@ #define BinSbxValue 15 // Classes -// !!!Diese Defines duerfen niemals geaendert werden!!! +// !!!These defines may never be changed!!! #define C_NoType -1 -// Maximale 32 einfache Controls +// maximum of 32 easy controls #define C_TabControl 0 #define C_RadioButton 1 #define C_CheckBox 2 @@ -94,7 +94,7 @@ #define C_MenuButton 24 #define C_MoreButton 25 -// Maximale 7 Container +// maximum of 7 containers #define C_TabPage 32 #define C_ModalDlg 33 #define C_FloatWin 34 @@ -102,7 +102,7 @@ #define C_WorkWin 36 #define C_DockingWin 37 -// Diese Defines koennen geaendert werden +// These defines may be changed #define C_MessBox 40 #define C_InfoBox 41 #define C_WarningBox 42 @@ -126,8 +126,8 @@ #define C_Dialog 68 -#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_WITH_RETURN 0x0200 // the variable is saved until it gets its value +#define M_KEY_STRING 0x0400 // key orders are converted i.e. "<return><up>" #define M_SOFFICE 0x0800 // Command valid for Star/Open Office #define M_MOZILLA 0x1000 // Command valid for Mozilla // for MacroRecorder @@ -147,7 +147,7 @@ #define M_SetPage 31 #define M_Click 32 -#define M_Close 33 // Push Buttons on Dialog (Auch More Button) +#define M_Close 33 // Push Buttons on Dialog (also More Button) #define M_Cancel 34 #define M_OK 35 #define M_Help 36 @@ -202,7 +202,7 @@ #define M_Restore 85 // Window Control together with M_Maximize and M_Minimize -#define M_DisplayPercent 200 // Zum Anzeigen der Prozente des Windows +#define M_DisplayPercent 200 #define M_LAST_NO_RETURN 200 @@ -259,7 +259,7 @@ #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! +// This command is only used in the internal controller (sts library). They don't appear in the testtool! #define _M_IsEnabled ( M_WITH_RETURN | 50 ) #define M_GetFixedTextCount ( M_WITH_RETURN | 51 ) @@ -318,7 +318,7 @@ #error "Bereich �berschritten" #endif -// Befehle mit Returnwert +// commands with return value #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 ) @@ -374,30 +374,30 @@ #define RC_WaitSlot ( M_SOFFICE | M_WITH_RETURN | 44 ) // Flow Control -#define F_EndCommandBlock 101 // Initiiert R�ckmeldung des Status -#define F_Sequence 102 // �bergibt Sequence Nummer (1. in jedem Stream) +#define F_EndCommandBlock 101 // initializes the reply of the status +#define F_Sequence 102 // commits Sequence number (first in each stream) // Return codes -#define RET_Sequence 132 // �bergibt Sequence Nummer (1. in jedem Stream) -#define RET_Value 133 // �bergibt Return-wert -#define RET_WinInfo 134 // Information �ber aktuelles Fenster/Control -#define RET_ProfileInfo 135 // Profile Information -#define RET_DirectLoging 136 // Direktes �bertragen von Informationen in das Log -#define RET_MacroRecorder 137 // MakroRecorder Befehl �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 RET_Sequence 132 +#define RET_Value 133 +#define RET_WinInfo 134 +#define RET_ProfileInfo 135 +#define RET_DirectLoging 136 +#define RET_MacroRecorder 137 + +// Subcodes which are delivered to nUId +// for F_ProfileInfo +#define S_ProfileReset 201 // nNr1 = number of Borders + // Attention!! These defines must have numbers in a row!! #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. + // Attention end +#define S_ProfileTime 210 // nNr1 = remote time of the command +#define S_ProfileDump 211 // outputs the data -// f�r F_DirectLoging +// for F_DirectLoging #define S_AssertError 220 #define S_AssertWarning 221 #define S_AssertTrace 222 @@ -413,7 +413,7 @@ #define CONST_CTTableControl 106 #define CONST_CTUnknown 199 -// Konstanten f�r das ALignment des gesuchten Splitters +// constants for the ALignment of the requested splitter #define CONST_ALIGN_LEFT 120 #define CONST_ALIGN_TOP 121 #define CONST_ALIGN_RIGHT 122 @@ -440,31 +440,31 @@ #define CONST_WSAborted 702 #define CONST_WSFinished 703 -// Beschreibt die Parametertypen als Bitfeld Reihenfolge immer! -// wie hier Aufgelistet +// describes the parameter types as bitfield - always sequence! +// as listed here #define PARAM_NONE 0x0000 #define PARAM_UINT16_1 0x0001 #define PARAM_UINT16_2 0x0002 -#define PARAM_UINT16_3 0x0100 // Nicht in der Reihe!! -#define PARAM_UINT16_4 0x0200 // Nicht in der Reihe!! +#define PARAM_UINT16_3 0x0100 // not in the row!! +#define PARAM_UINT16_4 0x0200 // not in the row!! #define PARAM_UINT32_1 0x0004 #define PARAM_UINT32_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! +#define PARAM_SBXVALUE_1 0x0400 // going on with 0x0400 here!!! see above! -// Zus�tzliche Beschreibung!! wird auch mit dem Rest verodert -//#define PARAM_STR_RAW 0x8000 // Der Zeichensatz der Strings wird nicht konvertiert(f�r Fareastern) + +//#define PARAM_STR_RAW 0x8000 // the character set of the strings is not being converted (for 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 +#define ERR_NO_WIN 104 +#define ERR_NO_SID 105 +#define ERR_NO_FILE 106 #endif diff --git a/automation/source/inc/testapp.hxx b/automation/source/inc/testapp.hxx index 6b257e27b4a0..f77fb349516a 100644 --- a/automation/source/inc/testapp.hxx +++ b/automation/source/inc/testapp.hxx @@ -77,13 +77,13 @@ class TestToolObj: public SbxObject friend class TTBasic; friend class Controls; public: - TestToolObj( String aName, MyBasic* pBas ); // Pfade aus INI, IPC benutzen + TestToolObj( String aName, MyBasic* pBas ); // use paths from INI, IPC ~TestToolObj(); - void LoadIniFile(); // Laden der IniEinstellungen, die durch den ConfigDialog gendert werden knnen + void LoadIniFile(); // IniSetup can be changed with the ConfigDialog void DebugFindNoErrors( sal_Bool bDebugFindNoErrors ); private: - sal_Bool bWasPrecompilerError; // True wenn beim letzten Precompile ein Fehler auftrat + sal_Bool bWasPrecompilerError; sal_Bool CError( sal_uLong, const String&, xub_StrLen, xub_StrLen, xub_StrLen ); void CalcPosition( String const &aSource, xub_StrLen nPos, xub_StrLen &l, xub_StrLen &c ); xub_StrLen ImplSearch( const String &aSource, const xub_StrLen nStart, const xub_StrLen nEnd, const String &aSearch, const xub_StrLen nSearchStart = 0 ); @@ -92,12 +92,12 @@ private: public: String GetRevision(String const &aSourceIn); // find Revision in the sourcecode String PreCompile(String const &aSourceIn); // try catch; testcase endcase .. - sal_Bool WasPrecompilerError(); // True wenn beim letzten Precompile ein Fehler auftrat + sal_Bool WasPrecompilerError(); void SFX_NOTIFY( SfxBroadcaster&, const TypeId&, const SfxHint& rHint, const TypeId& ); virtual SbxVariable* Find( const String&, SbxClassType ); -// String aKeyPlusClasses; // Pfad fr keycodes & classes & res_type (Aus Configdatei) +// String aKeyPlusClasses; // path for keycodes & classes & res_type (from Configfile) DECL_LINK( ReturnResultsLink, CommunicationLink* ); - sal_Bool ReturnResults( SvStream *pIn ); // Rcklieferung des Antwortstreams ber IPC oder TCP/IP oder direkt + sal_Bool ReturnResults( SvStream *pIn ); // return of the reply stream over IPC or TCP/IP or directly void SetLogHdl( const Link& rLink ) { aLogHdl = rLink; } const Link& GetLogHdl() const { return aLogHdl; } @@ -117,41 +117,41 @@ public: SfxBroadcaster& GetTTBroadcaster(); private: - ImplTestToolObj *pImpl; // Alles was von der Implementation abhngt + ImplTestToolObj *pImpl; static const CErrors* GetFehlerListe() { return pFehlerListe; } sal_Bool bUseIPC; - Link aLogHdl; // Zum Logen der Fehlermeldungen im Testtool - Link aWinInfoHdl; // Anzeigen der Windows/Controls der zu testenden App - Link aModuleWinExistsHdl; // Prft ob das Modul schon im Editor geladen ist - Link aCErrorHdl; // Melden von Compilererror - Link aWriteStringHdl; // Schreiben von text (e.g. MakroRecorder) - sal_Bool bReturnOK; // Bricht WaitForAnswer ab - CRevNames *pShortNames; // Aktuell verwendete Controls, zur gewinnung des Namens aus Fehlermeldung - sal_uLong nSequence; // Sequence um Antwort und Anfrage zu syncronisieren - rtl::OString aNextReturnId; // Id des Returnwertes i.e. UId - void ReplaceNumbers(String &aText); // Zahlen im String mit speziellem Format in Namen umwandeln - - String aLastRecordedKontext;// Keeps the last kontext recorded by the Macro Recorder + Link aLogHdl; + Link aWinInfoHdl; + Link aModuleWinExistsHdl; + Link aCErrorHdl; + Link aWriteStringHdl; + sal_Bool bReturnOK; + CRevNames *pShortNames; + sal_uLong nSequence; + rtl::OString aNextReturnId; + void ReplaceNumbers(String &aText); + + String aLastRecordedKontext; #define FLAT sal_True - String ProgPath; // Dateiname der zu Testenden APP; Gesetzt ber Start - String aLogFileName; // Momentaner Logfilename (Wie Programmdatei aber mit .res) - sal_Bool IsBlock; // Innerhalb Begin/EndBlock - sal_Bool SingleCommandBlock; // Implizit um jedes kommando ein Begin/EndBlock + String ProgPath; + String aLogFileName; + sal_Bool IsBlock; + sal_Bool SingleCommandBlock; CmdStream *In; - void AddName(String &aBisher, String &aNeu ); // Name eventuell mit / anhngen - void AddToListByNr( CNames *&pControls, ControlItemUId *&pNewItem ); // + void AddName(String &aBisher, String &aNeu ); // maybe add name with / + void AddToListByNr( CNames *&pControls, ControlItemUId *&pNewItem ); CNames *m_pControls; - CNames *m_pNameKontext; // Zeigt auf den aktuellen Namenskontext, der ber 'Kontext' gesetzt wurde + CNames *m_pNameKontext; CNames *m_pSIds; - CNames *m_pReverseSlots; // Slots mit Kurznamen nach Nummer - CNames *m_pReverseControls; // Controls mit Kurznamen nach Nummer - CNames *m_pReverseControlsSon;// Controls mit Kurznamen nach Nummer nach Fenstern (Son) - CNames *m_pReverseUIds; // Langnamen nach Nummer + CNames *m_pReverseSlots; + CNames *m_pReverseControls; + CNames *m_pReverseControlsSon; + CNames *m_pReverseUIds; - sal_uInt16 nMyVar; // Wievielte Var aus Pool ist dran + sal_uInt16 nMyVar; void InitTestToolObj(); CommunicationManagerClientViaSocketTT *pCommunicationManager; @@ -176,9 +176,9 @@ private: sal_uInt16 nWindowHandlerCallLevel; sal_uInt16 nIdleCount; - // wenn DialogHandler gesetzt wird er im IdleHandler inkrementiert und - // in WaitForAnswer rckgesetzt. bersteigt er einen gewissen wert, gehe ich davon aus, - // da WaitForAnswer still ligt und rufe die DialogHander Sub im BASIC auf. + // If DialogHandler has been reset it is incremented in the IdleHandler and + // is reset in WaitForAnswer. If it exceed a certain value, I expect WaitFor Answer to + // stand still and call the DialogHander Sub in BASIC. void BeginBlock(); void EndBlock(); @@ -187,7 +187,7 @@ private: static ControlDefLoad const arR_Cmds[]; static CNames *pRCommands; - static CErrors *pFehlerListe; // Hier werden die Fehler des Testtools gespeichert + static CErrors *pFehlerListe; // the errors from the testtool are stored here }; |