Update ooo320-m1
[ooovba.git] / testautomation / writer / optional / w_search.bas
blob5720d69efa9c13e9866ae84ec408802cc9af9716
1 '**************************************************************************
2 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 '*
4 '* Copyright 2008 by Sun Microsystems, Inc.
5 '*
6 '* OpenOffice.org - a multi-platform office productivity suite
7 '*
8 '* $RCSfile: w_search.bas,v $
9 '*
10 '* $Revision: 1.1 $
12 '* last change: $Author: fredrikh $ $Date: 2008-06-18 09:11:26 $
14 '* This file is part of OpenOffice.org.
16 '* OpenOffice.org is free software: you can redistribute it and/or modify
17 '* it under the terms of the GNU Lesser General Public License version 3
18 '* only, as published by the Free Software Foundation.
20 '* OpenOffice.org is distributed in the hope that it will be useful,
21 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
22 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 '* GNU Lesser General Public License version 3 for more details
24 '* (a copy is included in the LICENSE file that accompanied this code).
26 '* You should have received a copy of the GNU Lesser General Public License
27 '* version 3 along with OpenOffice.org. If not, see
28 '* <http://www.openoffice.org/license.html>
29 '* for a copy of the LGPLv3 License.
31 '/************************************************************************
33 '* owner : helge.delfs@sun.com
35 '* short description : Search & Replace and testing of regular expressions
37 '\***********************************************************************
39 global Such_Text as string
40 global Vergleichstext as string
41 global Meldungs_Text as string
42 global dummy_Text as string
44 sub main
45 use "writer\optional\includes\regexp\regular.inc"
46 use "writer\optional\includes\regexp\search.inc"
48 Dim Start : Start = Now()
50 Call hStatusIn("writer","w_search.bas","Search & Replace")
51 printlog "** Search and Replace **"
52 Call search
53 printlog "** Regular expressions **"
54 Call regular
55 Call hStatusOut
57 printlog "Duration : " + Wielange ( Start )
58 end sub
60 sub LoadIncludeFiles
61 use "global\system\includes\master.inc"
62 use "global\system\includes\gvariabl.inc"
63 gApplication = "WRITER"
64 Call GetUseFiles
65 end sub