2008-06-18 03:11:27 -05:00
|
|
|
'**************************************************************************
|
2010-02-12 08:01:35 -06:00
|
|
|
' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
'
|
|
|
|
' Copyright 2000, 2010 Oracle and/or its affiliates.
|
|
|
|
'
|
|
|
|
' OpenOffice.org - a multi-platform office productivity suite
|
|
|
|
'
|
|
|
|
' This file is part of OpenOffice.org.
|
|
|
|
'
|
|
|
|
' 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.
|
|
|
|
'
|
|
|
|
' 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).
|
|
|
|
'
|
|
|
|
' 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.
|
|
|
|
'
|
2008-06-18 03:11:27 -05:00
|
|
|
'/************************************************************************
|
|
|
|
'*
|
2010-07-20 09:15:47 -05:00
|
|
|
'* owner : helge.delfs@oracle.com
|
2008-06-18 03:11:27 -05:00
|
|
|
'*
|
|
|
|
'* short description : Writer numbering test
|
|
|
|
'*
|
|
|
|
'\***********************************************************************
|
|
|
|
|
|
|
|
global TBOstringLocale(30) as string
|
|
|
|
global WriterFilterExtension(10) as string
|
|
|
|
|
|
|
|
sub main
|
|
|
|
Dim StartZeit
|
|
|
|
StartZeit = Now()
|
|
|
|
|
|
|
|
use "writer\tools\includes\w_tools.inc"
|
|
|
|
use "writer\tools\includes\w_tool5.inc"
|
|
|
|
use "writer\tools\includes\w_tool6.inc"
|
|
|
|
use "writer\tools\includes\w_tool7.inc"
|
|
|
|
use "writer\optional\includes\number\w_205_.inc"
|
|
|
|
use "writer\optional\includes\number\w_205a_.inc"
|
|
|
|
use "writer\optional\includes\number\w_206_.inc"
|
2008-11-03 02:30:57 -06:00
|
|
|
use "writer\optional\includes\number\w_207_.inc"
|
2008-06-18 03:11:27 -05:00
|
|
|
|
|
|
|
printlog Chr(13) + "Loading of Include - Files takes: " + Wielange ( StartZeit )
|
|
|
|
|
|
|
|
WriterFilterExtension() = hGetFilternameExtension ( "writer8" )
|
2008-11-03 02:30:57 -06:00
|
|
|
|
2008-06-18 03:11:27 -05:00
|
|
|
Call hStatusIn("writer","w_numbering.bas","Writer Numbering test")
|
|
|
|
Printlog ""
|
|
|
|
Printlog "----------------------------------------------------------"
|
|
|
|
Printlog "| Writer Numbering Test |"
|
|
|
|
Printlog "----------------------------------------------------------"
|
|
|
|
Printlog ""
|
|
|
|
Call w_205_
|
|
|
|
Call w_205a_
|
|
|
|
Call w_206_
|
|
|
|
Call w_207_
|
|
|
|
Call hStatusOut
|
|
|
|
|
|
|
|
Printlog "Duration: "+ WieLange ( StartZeit )
|
|
|
|
Printlog "Date: " + Date + " Time: " + Time
|
|
|
|
end sub
|
|
|
|
|
|
|
|
sub LoadIncludeFiles
|
|
|
|
use "global\system\includes\master.inc"
|
|
|
|
use "global\system\includes\gvariabl.inc"
|
2008-11-20 10:08:32 -06:00
|
|
|
use "global\tools\includes\optional\t_ui_filters.inc"
|
CWS-TOOLING: integrate CWS jskhgpilot5
2009-10-09 skotti #i105516# - Provided warnlog for not working extensible help (#i105760)
2009-10-09 skotti #i105516# - EditCopy called with no delay, hUseAsyncSlot() should fix this
2009-10-09 skotti #i105516# - fixed stupid error in iniinfo.inc (called IsMissing to check on a file instead of FileExists)
2009-10-09 skotti #i105516# - template tools - added checking for dialog
2009-10-09 skotti #i105516# - 2 cjk tests excluded, providing #i105756 as justification (qaerrorlog)
2009-10-09 skotti #i105516# - tModifyObjects: Add a WaitSlot
2009-10-09 skotti #i105516# - CJK test - number of entries has changed, fixed
2009-10-08 skotti Rebase to m61, resolving conflicts in g_option.inc, add g_option.inc to f_first.bas (the test for the OOo Improvement Program was removed from all files but is functional)
2009-10-08 skotti #i105516# - Just another attempt to fix w_numbering.bas
2009-10-08 skotti #i105516# - Added issue-IDs to f_basic_package_export_import.bas and subsequent include files.
2009-10-08 skotti #i105516# - StarOffice help topics updated. Need to do the same for OOo (better do it soon)
2009-10-08 skotti #i105516# - package export might result in zero size package, the test now handles this
2009-10-08 skotti #i105516# - Enhanced VBA import test to handle write protected files
2009-10-08 skotti #i105516# - Potentially fixed f_basic_library_export_import.bas
2009-10-08 skotti #i105516# - Fixing f_basic_vba-compat.bas (cont.)
2009-10-08 skotti #i105516# - Started fixing f_basic_vba-compat.bas
2009-10-08 skotti #i105516# - Help content changed again without notice
2009-10-07 skotti #i105516# - Really exclude the test
2009-10-07 skotti #i105516# - tModifyObjects is simplified and better documented, some more functions have been silenced, writer test (which is somewhat fuzzy) now closes all files at the end of the test
2009-10-07 skotti #i105516# - Testcase tToolsNumbering12 did not use any of the modern timing features which made the test inherently unstable. replaced sleep() statements
2009-10-07 skotti #i105516# - Trying a fix for extras-test (document corrupted warning)
2009-10-07 skotti #i105516# - Trying a fix for extras-test (document corrupted warning)
2009-10-07 skotti #i105516# - Fixed incorrect filtername in tToolsNumbering12, removed QAErrorlog
2009-10-07 skotti #i105516# - Fixed extension name for os2_x86.oxt.
2009-10-07 skotti #i105516# - Added warnlog for #i105670#
2009-10-07 skotti #i105516# - possible fix for warning in e_platforms.bas on MacOS X
2009-10-06 skotti #i105516# - someone allowed a ui relevant feature to slip in unnoticed. That is so stupid, that it could have been me. Adjusted test case to reflect the new - correct - behavior
2009-10-06 skotti #i105516# - fixing a few more test cases (module framework), switched off verbosity in global functions (not wanted for release), deprecate IsItLoaded (old function only used in one single spreadsheet test), fixed minor typo in hFileWait()
2009-10-05 skotti #i105516# - Removing all old style HTML documentation
2009-10-04 skotti #i105516# - Documentation fixes, cleanup
2009-10-02 skotti #i105516# - Documentation fixes, cleanup
2009-10-02 skotti #i105516# - Fixed header
2009-10-01 skotti #i105516# - Fixed usage tracking stuff, there has been a lot of trouble with changed behavior which was not communicated to QA. Attempts for a fix have been done in CWS jskhgpilot4 (which has been merged into this CWS already)
2009-10-01 skotti #i104246# - Toolbar stability and fix for e_update.bas on solaris - using .notExists()
2009-10-01 skotti #i104246# - Tried to enhance hWaitFOrObject() - better close the dialog if we run into the backup
2009-10-01 skotti #i104246# - Tried to enhance hWaitFOrObject() - works locally, distributing to all other machines
2009-10-01 skotti #i104246# - Tried to enhance hWaitFOrObject() - the function even had a logic-error which prevented it from working correctly (i think, going to test that)
2009-10-01 skotti #i104246# - Tried to enhance hWaitFOrObject() - the function even had a logic-error which prevented it from working correctly (i think, going to test that)
2009-09-30 skotti #i104246# - basic_dialog_i18n_import.inc now sports better warning message if the number of languages is incorrect
2009-09-30 skotti #i104246# - Added issue-id for crash on Solaris x86 (#i105476)
2009-09-30 skotti #i105407# Added new label to the list
2009-09-30 skotti #i104246# - Added a fallback method to the original one for finding the basis-directory on UNIX/Linux
2009-09-30 skotti #i104246# - reverted removal of iSection. I still have no idea what it does but without it the results are different but not better
2009-09-29 skotti #i104246# - The OOo Improvement Program tabpage is only visible if the BUILD_SPECIAL flag is given when building the Application. In the BUILD_SPECIAL section two files are created which will not be there otherwise. In master.inc we now test for the presence of one of the files. If found, we have the OOoImp-stuff installed and the global variable is set to TRUE. In order to find the file i had to fix the retrieval routine for the gOfficeBasisPath (which had a double gNetzOfficePath hidden in the variable sFile for all Unixes). The functin probably never worked, we were just lucky that it was only used in one place. Now - for some reason - we have warnings in the g_options_applications.inc test cases which need to be resolved. I reformatted the file (some indentions were broken) and removed duplicate variable initializations (this left unfinished, iSection should be removed from the control program and be inserted into the test cases themselves so currently the test results only deliver bogus).
2009-09-28 skotti #i104601 - Another problem found: After the fully automatic creation of the hid.lst we have lost the association to the TextImport dialog, reverting back to old name FilterAuswahl
2009-09-28 skotti Experiment: Completely remove hCloseAndLooseDocument
2009-09-28 skotti Experiment: Deprecate hCloseAndLooseDocument - it does nothing else than hCloseDocument
2009-09-28 skotti #i105407# - eliminated function hOpenFileAndIgnoreMacroWarning() as it already exists as a two step variant (hFileOpen+hAllowMacroExecution). Removed readme-file from framework/tools as the content was not up to date anymore
2009-09-28 skotti #i105407# - remove unused functions
2009-09-28 skotti #i104601#, #i105407# - small fixes
2009-10-15 10:41:19 -05:00
|
|
|
use "global/tools/includes/optional/t_listfuncs.inc"
|
|
|
|
use "global/tools/includes/optional/t_security_tools.inc"
|
2008-06-18 03:11:27 -05:00
|
|
|
Call GetUseFiles
|
2009-03-24 09:52:04 -05:00
|
|
|
gApplication = "WRITER"
|
2008-06-18 03:11:27 -05:00
|
|
|
end sub
|