forked from amazingfate/loongoffice
Conflicts: avmedia/inc/avmedia/mediaitem.hxx avmedia/prj/build.lst avmedia/source/framework/mediaitem.cxx avmedia/source/gstreamer/gstcommon.hxx avmedia/source/gstreamer/gstframegrabber.cxx avmedia/source/gstreamer/gstframegrabber.hxx avmedia/source/gstreamer/gstmanager.cxx avmedia/source/gstreamer/gstmanager.hxx avmedia/source/gstreamer/gstplayer.cxx avmedia/source/gstreamer/gstplayer.hxx avmedia/source/gstreamer/gstuno.cxx avmedia/source/gstreamer/gstwindow.cxx avmedia/source/gstreamer/gstwindow.hxx avmedia/source/gstreamer/makefile.mk avmedia/source/quicktime/quicktimeuno.cxx avmedia/source/viewer/mediawindow.cxx avmedia/source/viewer/mediawindow_impl.cxx avmedia/source/viewer/mediawindow_impl.hxx avmedia/source/viewer/mediawindowbase_impl.cxx avmedia/source/win/winuno.cxx basic/inc/basic/basmgr.hxx basic/inc/basic/mybasic.hxx basic/inc/basic/process.hxx basic/inc/basic/sbmeth.hxx basic/inc/basic/sbmod.hxx basic/inc/basic/sbxdef.hxx basic/inc/basic/sbxvar.hxx basic/source/app/app.cxx basic/source/app/app.hxx basic/source/app/appbased.cxx basic/source/app/appedit.cxx basic/source/app/appwin.cxx basic/source/app/appwin.hxx basic/source/app/brkpnts.cxx basic/source/app/brkpnts.hxx basic/source/app/dialogs.cxx basic/source/app/dialogs.hxx basic/source/app/msgedit.cxx basic/source/app/mybasic.cxx basic/source/app/process.cxx basic/source/app/processw.hxx basic/source/app/textedit.cxx basic/source/basmgr/basicmanagerrepository.cxx basic/source/basmgr/basmgr.cxx basic/source/classes/disas.cxx basic/source/classes/eventatt.cxx basic/source/classes/image.cxx basic/source/classes/sb.cxx basic/source/classes/sbunoobj.cxx basic/source/classes/sbxmod.cxx basic/source/comp/codegen.cxx basic/source/comp/dim.cxx basic/source/comp/exprgen.cxx basic/source/comp/exprnode.cxx basic/source/comp/exprtree.cxx basic/source/comp/sbcomp.cxx basic/source/inc/expr.hxx basic/source/inc/object.hxx basic/source/inc/sbunoobj.hxx basic/source/runtime/dllmgr-x86.cxx basic/source/runtime/iosys.cxx basic/source/runtime/makefile.mk basic/source/runtime/methods.cxx basic/source/runtime/methods1.cxx basic/source/runtime/runtime.cxx basic/source/runtime/stdobj.cxx basic/source/runtime/step0.cxx basic/source/runtime/step1.cxx basic/source/runtime/step2.cxx basic/source/sbx/sbxarray.cxx basic/source/sbx/sbxbase.cxx basic/source/sbx/sbxbool.cxx basic/source/sbx/sbxbyte.cxx basic/source/sbx/sbxcoll.cxx basic/source/sbx/sbxconv.hxx basic/source/sbx/sbxcurr.cxx basic/source/sbx/sbxexec.cxx basic/source/sbx/sbxint.cxx basic/source/sbx/sbxobj.cxx basic/source/sbx/sbxscan.cxx basic/source/sbx/sbxstr.cxx basic/source/sbx/sbxvals.cxx basic/source/sbx/sbxvalue.cxx basic/source/sbx/sbxvar.cxx basic/workben/mgrtest.cxx configmgr/prj/build.lst configmgr/source/access.cxx configmgr/source/configurationprovider.cxx configmgr/source/defaultprovider.cxx configmgr/source/pad.cxx configmgr/source/services.cxx configmgr/source/update.cxx configmgr/source/xmlreader.cxx configmgr/source/xmlreader.hxx connectivity/prj/build.lst connectivity/qa/complex/connectivity/TestCase.java connectivity/source/cpool/Zregistration.cxx connectivity/source/drivers/adabas/Bservices.cxx connectivity/source/drivers/ado/Aservices.cxx connectivity/source/drivers/calc/Cservices.cxx connectivity/source/drivers/calc/makefile.mk connectivity/source/drivers/dbase/DIndex.cxx connectivity/source/drivers/dbase/DIndexIter.cxx connectivity/source/drivers/dbase/DNoException.cxx connectivity/source/drivers/dbase/DTable.cxx connectivity/source/drivers/dbase/Dservices.cxx connectivity/source/drivers/dbase/dindexnode.cxx connectivity/source/drivers/evoab/LNoException.cxx connectivity/source/drivers/evoab/LServices.cxx connectivity/source/drivers/evoab2/NServices.cxx connectivity/source/drivers/file/FNoException.cxx connectivity/source/drivers/file/FPreparedStatement.cxx connectivity/source/drivers/file/FResultSet.cxx connectivity/source/drivers/file/FStatement.cxx connectivity/source/drivers/file/quotedstring.cxx connectivity/source/drivers/flat/ETable.cxx connectivity/source/drivers/flat/Eservices.cxx connectivity/source/drivers/hsqldb/Hservices.cxx connectivity/source/drivers/jdbc/jservices.cxx connectivity/source/drivers/kab/KServices.cxx connectivity/source/drivers/macab/MacabServices.cxx connectivity/source/drivers/mozab/MResultSet.cxx connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx connectivity/source/drivers/mysql/Yservices.cxx connectivity/source/drivers/odbc/OFunctions.cxx connectivity/source/drivers/odbc/oservices.cxx connectivity/source/inc/dbase/DIndexPage.hxx connectivity/source/inc/file/FTable.hxx connectivity/source/manager/mregistration.cxx connectivity/source/parse/PColumn.cxx desktop/prj/build.lst desktop/qa/deployment_misc/test_dp_version.cxx desktop/source/app/app.cxx desktop/source/app/appfirststart.cxx desktop/source/app/cmdlineargs.cxx desktop/source/app/cmdlineargs.hxx desktop/source/app/sofficemain.cxx desktop/source/deployment/gui/dp_gui.hrc desktop/source/deployment/gui/dp_gui_dialog2.cxx desktop/source/deployment/gui/dp_gui_dialog2.hxx desktop/source/deployment/gui/dp_gui_updatedialog.cxx desktop/source/deployment/gui/dp_gui_updatedialog.hxx desktop/source/deployment/manager/dp_extensionmanager.cxx desktop/source/deployment/manager/dp_extensionmanager.hxx desktop/source/deployment/misc/dp_misc.src desktop/source/deployment/registry/component/dp_component.cxx desktop/source/deployment/registry/configuration/dp_configuration.cxx desktop/source/deployment/registry/dp_backend.cxx desktop/source/deployment/registry/help/dp_help.cxx desktop/source/deployment/registry/script/dp_script.cxx desktop/source/migration/pages.cxx desktop/source/migration/pages.hxx desktop/source/migration/wizard.cxx desktop/source/migration/wizard.hrc desktop/source/migration/wizard.hxx desktop/source/migration/wizard.src desktop/source/pkgchk/unopkg/unopkg_shared.h desktop/source/so_comp/services.cxx desktop/source/splash/makefile.mk desktop/source/splash/services_spl.cxx desktop/source/splash/splash.cxx drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx editeng/inc/editeng/adjitem.hxx editeng/inc/editeng/bolnitem.hxx editeng/inc/editeng/borderline.hxx editeng/inc/editeng/boxitem.hxx editeng/inc/editeng/brkitem.hxx editeng/inc/editeng/brshitem.hxx editeng/inc/editeng/bulitem.hxx editeng/inc/editeng/charreliefitem.hxx editeng/inc/editeng/charrotateitem.hxx editeng/inc/editeng/charscaleitem.hxx editeng/inc/editeng/cmapitem.hxx editeng/inc/editeng/colritem.hxx editeng/inc/editeng/crsditem.hxx editeng/inc/editeng/editdata.hxx editeng/inc/editeng/editeng.hxx editeng/inc/editeng/editobj.hxx editeng/inc/editeng/editstat.hxx editeng/inc/editeng/editview.hxx editeng/inc/editeng/emphitem.hxx editeng/inc/editeng/escpitem.hxx editeng/inc/editeng/fhgtitem.hxx editeng/inc/editeng/flstitem.hxx editeng/inc/editeng/fontitem.hxx editeng/inc/editeng/frmdiritem.hxx editeng/inc/editeng/fwdtitem.hxx editeng/inc/editeng/hyznitem.hxx editeng/inc/editeng/kernitem.hxx editeng/inc/editeng/langitem.hxx editeng/inc/editeng/lrspitem.hxx editeng/inc/editeng/lspcitem.hxx editeng/inc/editeng/numitem.hxx editeng/inc/editeng/outliner.hxx editeng/inc/editeng/paravertalignitem.hxx editeng/inc/editeng/pmdlitem.hxx editeng/inc/editeng/postitem.hxx editeng/inc/editeng/protitem.hxx editeng/inc/editeng/shaditem.hxx editeng/inc/editeng/sizeitem.hxx editeng/inc/editeng/svxacorr.hxx editeng/inc/editeng/svxfont.hxx editeng/inc/editeng/svxrtf.hxx editeng/inc/editeng/swafopt.hxx editeng/inc/editeng/tstpitem.hxx editeng/inc/editeng/twolinesitem.hxx editeng/inc/editeng/txtrange.hxx editeng/inc/editeng/udlnitem.hxx editeng/inc/editeng/ulspitem.hxx editeng/inc/editeng/wghtitem.hxx editeng/inc/editeng/writingmodeitem.hxx editeng/inc/editeng/xmlcnitm.hxx editeng/inc/helpid.hrc editeng/inc/pch/precompiled_editeng.hxx editeng/source/editeng/editdbg.cxx editeng/source/editeng/editdoc.cxx editeng/source/editeng/editdoc.hxx editeng/source/editeng/editdoc2.cxx editeng/source/editeng/editeng.cxx editeng/source/editeng/editobj.cxx editeng/source/editeng/editobj2.hxx editeng/source/editeng/editsel.cxx editeng/source/editeng/editundo.cxx editeng/source/editeng/editundo.hxx editeng/source/editeng/editview.cxx editeng/source/editeng/edtspell.hxx editeng/source/editeng/eehtml.cxx editeng/source/editeng/eehtml.hxx editeng/source/editeng/eeobj.cxx editeng/source/editeng/eerdll.cxx editeng/source/editeng/eertfpar.cxx editeng/source/editeng/impedit.cxx editeng/source/editeng/impedit.hxx editeng/source/editeng/impedit2.cxx editeng/source/editeng/impedit3.cxx editeng/source/editeng/impedit4.cxx editeng/source/editeng/impedit5.cxx editeng/source/editeng/makefile.mk editeng/source/items/bulitem.cxx editeng/source/items/charhiddenitem.cxx editeng/source/items/flditem.cxx editeng/source/items/frmitems.cxx editeng/source/items/makefile.mk editeng/source/items/numitem.cxx editeng/source/items/paraitem.cxx editeng/source/items/svxfont.cxx editeng/source/items/textitem.cxx editeng/source/items/writingmodeitem.cxx editeng/source/items/xmlcnitm.cxx editeng/source/misc/SvXMLAutoCorrectImport.cxx editeng/source/misc/svxacorr.cxx editeng/source/misc/txtrange.cxx editeng/source/misc/unolingu.cxx editeng/source/outliner/outleeng.cxx editeng/source/outliner/outliner.cxx editeng/source/outliner/outlundo.hxx editeng/source/outliner/outlvw.cxx editeng/source/outliner/paralist.cxx editeng/source/outliner/paralist.hxx editeng/source/rtf/rtfgrf.cxx editeng/source/rtf/rtfitem.cxx editeng/source/rtf/svxrtf.cxx editeng/source/uno/unoipset.cxx editeng/util/makefile.mk embeddedobj/prj/build.lst embeddedobj/source/commonembedding/miscobj.cxx eventattacher/prj/build.lst fileaccess/source/FileAccess.cxx formula/inc/formula/FormulaCompiler.hxx formula/inc/formula/token.hxx formula/inc/formula/tokenarray.hxx formula/source/core/api/FormulaCompiler.cxx formula/source/core/api/token.cxx formula/source/ui/dlg/FormulaHelper.cxx formula/source/ui/dlg/formula.cxx formula/source/ui/dlg/parawin.cxx formula/source/ui/dlg/structpg.cxx fpicker/prj/d.lst fpicker/source/aqua/FPentry.cxx fpicker/source/office/OfficeControlAccess.cxx fpicker/source/office/iodlg.cxx fpicker/source/office/iodlg.hxx fpicker/source/office/iodlg.src fpicker/source/office/iodlgimp.cxx fpicker/source/unx/gnome/FPentry.cxx fpicker/source/unx/gnome/SalGtkFilePicker.cxx fpicker/source/unx/gnome/SalGtkPicker.cxx fpicker/source/unx/kde4/KDE4FPEntry.cxx fpicker/source/win32/filepicker/FPentry.cxx framework/AllLangResTarget_fwe.mk framework/inc/dispatch/interaction.hxx framework/inc/framework/addonmenu.hxx framework/inc/framework/addonsoptions.hxx framework/inc/framework/bmkmenu.hxx framework/inc/framework/imageproducer.hxx framework/inc/framework/sfxhelperfunctions.hxx framework/inc/framework/statusbarconfiguration.hxx framework/inc/framework/titlehelper.hxx framework/inc/framework/toolboxconfiguration.hxx framework/inc/threadhelp/lockhelper.hxx framework/inc/xml/eventsdocumenthandler.hxx framework/inc/xml/statusbardocumenthandler.hxx framework/inc/xml/toolboxconfiguration.hxx framework/inc/xml/toolboxconfigurationdefines.hxx framework/inc/xml/toolboxdocumenthandler.hxx framework/prj/build.lst framework/qa/complex/ModuleManager/makefile.mk framework/qa/complex/accelerators/makefile.mk framework/qa/complex/framework/recovery/makefile.mk framework/qa/complex/imageManager/_XInitialization.java framework/source/classes/menumanager.cxx framework/source/dispatch/interaction.cxx framework/source/fwe/classes/bmkmenu.cxx framework/source/fwe/helper/actiontriggerhelper.cxx framework/source/fwe/helper/imageproducer.cxx framework/source/fwe/xml/menuconfiguration.cxx framework/source/fwe/xml/toolboxdocumenthandler.cxx framework/source/helper/uiconfigelementwrapperbase.cxx framework/source/helper/uielementwrapperbase.cxx framework/source/inc/pattern/window.hxx framework/source/jobs/jobdata.cxx framework/source/layoutmanager/layoutmanager.cxx framework/source/layoutmanager/panel.hxx framework/source/loadenv/loadenv.cxx framework/source/register/registerservices.cxx framework/source/services/menudocumenthandler.cxx framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx framework/source/uiconfiguration/uiconfigurationmanager.cxx framework/source/uiconfiguration/uiconfigurationmanagerimpl.cxx framework/source/uielement/addonstoolbarmanager.cxx framework/source/uielement/controlmenucontroller.cxx framework/source/uielement/fontsizemenucontroller.cxx framework/source/uielement/imagebuttontoolbarcontroller.cxx framework/source/uielement/macrosmenucontroller.cxx framework/source/uielement/menubarmanager.cxx framework/source/uielement/newmenucontroller.cxx framework/source/uielement/togglebuttontoolbarcontroller.cxx framework/source/uielement/toolbarmanager.cxx framework/source/uielement/toolbarsmenucontroller.cxx framework/test/makefile.mk framework/test/threadtest/makefile.mk framework/test/typecfg/makefile.mk framework/util/guiapps/makefile.mk framework/util/makefile.mk idl/inc/bastype.hxx idl/inc/hash.hxx idl/inc/lex.hxx idl/inc/module.hxx idl/inc/object.hxx idl/inc/slot.hxx idl/inc/types.hxx idl/source/cmptools/hash.cxx idl/source/cmptools/lex.cxx idl/source/objects/basobj.cxx idl/source/objects/bastype.cxx idl/source/objects/module.cxx idl/source/objects/object.cxx idl/source/objects/slot.cxx idl/source/objects/types.cxx idl/source/prj/command.cxx idl/source/prj/database.cxx idl/source/prj/globals.cxx idl/source/prj/svidl.cxx linguistic/inc/linguistic/misc.hxx linguistic/prj/build.lst linguistic/source/convdic.cxx linguistic/source/convdiclist.cxx linguistic/source/dicimp.cxx linguistic/source/dlistimp.cxx linguistic/source/gciterator.cxx linguistic/source/iprcache.cxx linguistic/source/lngopt.cxx linguistic/source/lngprophelp.cxx linguistic/source/lngsvcmgr.cxx linguistic/source/lngsvcmgr.hxx linguistic/source/misc2.cxx linguistic/workben/sprophelp.cxx officecfg/registry/data/org/openoffice/VCL.xcu officecfg/util/makefile.mk oovbaapi/ooo/vba/XApplicationBase.idl oovbaapi/ooo/vba/XVBAAppService.idl oovbaapi/ooo/vba/XVBADocService.idl oovbaapi/ooo/vba/excel/XApplication.idl oovbaapi/ooo/vba/excel/XRange.idl oovbaapi/ooo/vba/excel/XWorkbook.idl oovbaapi/ooo/vba/excel/XWorksheet.idl oovbaapi/ooo/vba/word/XApplication.idl oovbaapi/ooo/vba/word/XGlobals.idl oovbaapi/ooo/vba/word/XTableOfContents.idl readlicense_oo/prj/build.lst scripting/prj/build.lst scripting/prj/d.lst scripting/source/basprov/basprov.cxx scripting/source/basprov/basscript.cxx scripting/source/basprov/basscript.hxx scripting/source/dlgprov/dlgprov.cxx scripting/source/inc/util/util.hxx scripting/source/protocolhandler/scripthandler.cxx scripting/source/provider/ProviderCache.cxx scripting/source/pyprov/makefile.mk scripting/source/runtimemgr/ScriptNameResolverImpl.cxx scripting/source/runtimemgr/ScriptRuntimeManager.cxx scripting/source/runtimemgr/StorageBridge.cxx scripting/source/storage/ScriptMetadataImporter.cxx scripting/source/storage/ScriptSecurityManager.cxx scripting/source/storage/ScriptStorage.cxx scripting/source/storage/ScriptStorageManager.cxx sfx2/inc/about.hxx sfx2/inc/brokenpackageint.hxx sfx2/inc/docvor.hxx sfx2/inc/pch/precompiled_sfx2.hxx sfx2/inc/sfx2/app.hxx sfx2/inc/sfx2/basmgr.hxx sfx2/inc/sfx2/bindings.hxx sfx2/inc/sfx2/childwin.hxx sfx2/inc/sfx2/ctrlitem.hxx sfx2/inc/sfx2/dinfdlg.hxx sfx2/inc/sfx2/dispatch.hxx sfx2/inc/sfx2/docfilt.hxx sfx2/inc/sfx2/evntconf.hxx sfx2/inc/sfx2/fcontnr.hxx sfx2/inc/sfx2/frame.hxx sfx2/inc/sfx2/imagemgr.hxx sfx2/inc/sfx2/imgmgr.hxx sfx2/inc/sfx2/linksrc.hxx sfx2/inc/sfx2/macrconf.hxx sfx2/inc/sfx2/macropg.hxx sfx2/inc/sfx2/mnuitem.hxx sfx2/inc/sfx2/mnumgr.hxx sfx2/inc/sfx2/module.hxx sfx2/inc/sfx2/msg.hxx sfx2/inc/sfx2/objsh.hxx sfx2/inc/sfx2/passwd.hxx sfx2/inc/sfx2/prnmon.hxx sfx2/inc/sfx2/request.hxx sfx2/inc/sfx2/sfx.hrc sfx2/inc/sfx2/sfxbasemodel.hxx sfx2/inc/sfx2/sfxhtml.hxx sfx2/inc/sfx2/sfxresid.hxx sfx2/inc/sfx2/sfxsids.hrc sfx2/inc/sfx2/sfxuno.hxx sfx2/inc/sfx2/shell.hxx sfx2/inc/sfx2/stbitem.hxx sfx2/inc/sfx2/styfitem.hxx sfx2/inc/sfx2/tabdlg.hxx sfx2/inc/sfx2/tbxctrl.hxx sfx2/inc/sfx2/tplpitem.hxx sfx2/inc/sfx2/viewfrm.hxx sfx2/inc/sfx2/viewsh.hxx sfx2/inc/sfxbasic.hxx sfx2/inc/sorgitm.hxx sfx2/prj/build.lst sfx2/qa/complex/docinfo/makefile.mk sfx2/qa/cppunit/makefile.mk sfx2/sdi/makefile.mk sfx2/source/appl/app.cxx sfx2/source/appl/app.hrc sfx2/source/appl/app.src sfx2/source/appl/appbas.cxx sfx2/source/appl/appcfg.cxx sfx2/source/appl/appchild.cxx sfx2/source/appl/appmain.cxx sfx2/source/appl/appmisc.cxx sfx2/source/appl/appopen.cxx sfx2/source/appl/appquit.cxx sfx2/source/appl/appserv.cxx sfx2/source/appl/appuno.cxx sfx2/source/appl/childwin.cxx sfx2/source/appl/fileobj.cxx sfx2/source/appl/helpinterceptor.cxx sfx2/source/appl/imagemgr.cxx sfx2/source/appl/impldde.cxx sfx2/source/appl/impldde.hxx sfx2/source/appl/linkmgr2.cxx sfx2/source/appl/lnkbase2.cxx sfx2/source/appl/makefile.mk sfx2/source/appl/module.cxx sfx2/source/appl/newhelp.cxx sfx2/source/appl/opengrf.cxx sfx2/source/appl/sfxdll.cxx sfx2/source/appl/sfxhelp.cxx sfx2/source/appl/shutdownicon.cxx sfx2/source/appl/shutdowniconunx.cxx sfx2/source/appl/workwin.cxx sfx2/source/bastyp/fltfnc.cxx sfx2/source/bastyp/frmhtml.cxx sfx2/source/bastyp/frmhtmlw.cxx sfx2/source/bastyp/helper.cxx sfx2/source/bastyp/minarray.cxx sfx2/source/bastyp/progress.cxx sfx2/source/bastyp/sfxhtml.cxx sfx2/source/config/evntconf.cxx sfx2/source/control/bindings.cxx sfx2/source/control/ctrlitem.cxx sfx2/source/control/dispatch.cxx sfx2/source/control/macrconf.cxx sfx2/source/control/macro.cxx sfx2/source/control/makefile.mk sfx2/source/control/minfitem.cxx sfx2/source/control/msg.cxx sfx2/source/control/msgpool.cxx sfx2/source/control/objface.cxx sfx2/source/control/request.cxx sfx2/source/control/shell.cxx sfx2/source/control/sorgitm.cxx sfx2/source/dialog/about.cxx sfx2/source/dialog/basedlgs.cxx sfx2/source/dialog/dinfdlg.cxx sfx2/source/dialog/dinfedt.cxx sfx2/source/dialog/dockwin.cxx sfx2/source/dialog/filedlghelper.cxx sfx2/source/dialog/mailmodel.cxx sfx2/source/dialog/mailmodelapi.cxx sfx2/source/dialog/makefile.mk sfx2/source/dialog/mgetempl.cxx sfx2/source/dialog/passwd.cxx sfx2/source/dialog/passwd.hrc sfx2/source/dialog/printopt.cxx sfx2/source/dialog/securitypage.cxx sfx2/source/dialog/splitwin.cxx sfx2/source/dialog/styfitem.cxx sfx2/source/dialog/tabdlg.cxx sfx2/source/dialog/taskpane.cxx sfx2/source/dialog/templdlg.cxx sfx2/source/dialog/tplpitem.cxx sfx2/source/dialog/versdlg.cxx sfx2/source/doc/QuerySaveDocument.cxx sfx2/source/doc/SfxDocumentMetaData.cxx sfx2/source/doc/applet.cxx sfx2/source/doc/doc.hrc sfx2/source/doc/doc.src sfx2/source/doc/docfile.cxx sfx2/source/doc/docinf.cxx sfx2/source/doc/doctempl.cxx sfx2/source/doc/doctemplates.cxx sfx2/source/doc/docvor.cxx sfx2/source/doc/guisaveas.cxx sfx2/source/doc/makefile.mk sfx2/source/doc/objcont.cxx sfx2/source/doc/objitem.cxx sfx2/source/doc/objmisc.cxx sfx2/source/doc/objserv.cxx sfx2/source/doc/printhelper.cxx sfx2/source/doc/sfxacldetect.cxx sfx2/source/doc/sfxbasemodel.cxx sfx2/source/inc/applet.hxx sfx2/source/inc/fltoptint.hxx sfx2/source/inc/sfxlocal.hrc sfx2/source/inc/virtmenu.hxx sfx2/source/inc/workwin.hxx sfx2/source/menu/mnuitem.cxx sfx2/source/menu/objmnctl.cxx sfx2/source/menu/virtmenu.cxx sfx2/source/notify/eventsupplier.cxx sfx2/source/notify/makefile.mk sfx2/source/toolbox/imgmgr.cxx sfx2/source/toolbox/tbxitem.cxx sfx2/source/view/frame.cxx sfx2/source/view/orgmgr.cxx sfx2/source/view/printer.cxx sfx2/source/view/prnmon.cxx sfx2/source/view/viewfrm.cxx sfx2/source/view/viewprn.cxx sfx2/source/view/viewsh.cxx sfx2/util/makefile.mk sfx2/workben/custompanel/makefile.mk shell/source/backends/desktopbe/desktopbackend.cxx shell/source/backends/gconfbe/gconfbackend.cxx shell/source/backends/kde4be/kde4backend.cxx shell/source/backends/kdebe/kdebackend.cxx shell/source/win32/SysShentry.cxx shell/source/win32/shlxthandler/propsheets/propsheets.cxx shell/source/win32/simplemail/smplmailentry.cxx svx/inc/float3d.hrc svx/inc/fmhelp.hrc svx/inc/globlmn_tmpl.hrc svx/inc/helpid.hrc svx/inc/pch/precompiled_svx.hxx svx/inc/sjctrl.hxx svx/inc/srchitem.hxx svx/inc/svdibrow.hxx svx/inc/svx/SmartTagItem.hxx svx/inc/svx/algitem.hxx svx/inc/svx/camera3d.hxx svx/inc/svx/chrtitem.hxx svx/inc/svx/clipfmtitem.hxx svx/inc/svx/ctredlin.hxx svx/inc/svx/dbtoolsclient.hxx svx/inc/svx/deflt3d.hxx svx/inc/svx/dialogs.hrc svx/inc/svx/drawitem.hxx svx/inc/svx/e3ditem.hxx svx/inc/svx/extrud3d.hxx svx/inc/svx/flagsdef.hxx svx/inc/svx/float3d.hxx svx/inc/svx/frmsel.hxx svx/inc/svx/gallery.hxx svx/inc/svx/gallery1.hxx svx/inc/svx/galtheme.hxx svx/inc/svx/grfcrop.hxx svx/inc/svx/hdft.hxx svx/inc/svx/hlnkitem.hxx svx/inc/svx/hyprlink.hxx svx/inc/svx/itemwin.hxx svx/inc/svx/lathe3d.hxx svx/inc/svx/linkwarn.hxx svx/inc/svx/modctrl.hxx svx/inc/svx/msdffdef.hxx svx/inc/svx/obj3d.hxx svx/inc/svx/optgenrl.hxx svx/inc/svx/optgrid.hxx svx/inc/svx/pageitem.hxx svx/inc/svx/paraprev.hxx svx/inc/svx/postattr.hxx svx/inc/svx/rotmodit.hxx svx/inc/svx/ruler.hxx svx/inc/svx/rulritem.hxx svx/inc/svx/scene3d.hxx svx/inc/svx/sdasaitm.hxx svx/inc/svx/sdasitm.hxx svx/inc/svx/sdggaitm.hxx svx/inc/svx/sdmetitm.hxx svx/inc/svx/sdtaaitm.hxx svx/inc/svx/sdtaditm.hxx svx/inc/svx/sdtaitm.hxx svx/inc/svx/sdtakitm.hxx svx/inc/svx/sdtfchim.hxx svx/inc/svx/sdtfsitm.hxx svx/inc/svx/srchdlg.hxx svx/inc/svx/svddrag.hxx svx/inc/svx/svdetc.hxx svx/inc/svx/svdglue.hxx svx/inc/svx/svdhlpln.hxx svx/inc/svx/svdlayer.hxx svx/inc/svx/svdmark.hxx svx/inc/svx/svdmodel.hxx svx/inc/svx/svdoashp.hxx svx/inc/svx/svdobj.hxx svx/inc/svx/svdocirc.hxx svx/inc/svx/svdoedge.hxx svx/inc/svx/svdogrp.hxx svx/inc/svx/svdomeas.hxx svx/inc/svx/svdoole2.hxx svx/inc/svx/svdorect.hxx svx/inc/svx/svdotable.hxx svx/inc/svx/svdotext.hxx svx/inc/svx/svdovirt.hxx svx/inc/svx/svdpage.hxx svx/inc/svx/svdsnpv.hxx svx/inc/svx/svdtrans.hxx svx/inc/svx/svdundo.hxx svx/inc/svx/svimbase.hxx svx/inc/svx/svx3ditems.hxx svx/inc/svx/svxdlg.hxx svx/inc/svx/sxcikitm.hxx svx/inc/svx/sxekitm.hxx svx/inc/svx/sxelditm.hxx svx/inc/svx/sxenditm.hxx svx/inc/svx/sxmkitm.hxx svx/inc/svx/sxmtpitm.hxx svx/inc/svx/sxmuitm.hxx svx/inc/svx/tabarea.hxx svx/inc/svx/tabline.hxx svx/inc/svx/unoprov.hxx svx/inc/svx/viewlayoutitem.hxx svx/inc/svx/xbitmap.hxx svx/inc/svx/xbtmpit.hxx svx/inc/svx/xcolit.hxx svx/inc/svx/xfillit0.hxx svx/inc/svx/xflclit.hxx svx/inc/svx/xflftrit.hxx svx/inc/svx/xflgrit.hxx svx/inc/svx/xflhtit.hxx svx/inc/svx/xftadit.hxx svx/inc/svx/xftsfit.hxx svx/inc/svx/xftshit.hxx svx/inc/svx/xlineit0.hxx svx/inc/svx/xlinjoit.hxx svx/inc/svx/xlnclit.hxx svx/inc/svx/xlndsit.hxx svx/inc/svx/xlnedcit.hxx svx/inc/svx/xlnedit.hxx svx/inc/svx/xlnedwit.hxx svx/inc/svx/xlnstcit.hxx svx/inc/svx/xlnstit.hxx svx/inc/svx/xlnstwit.hxx svx/inc/svx/xlnwtit.hxx svx/inc/svx/xtextit0.hxx svx/inc/svx/zoomitem.hxx svx/inc/svx/zoomslideritem.hxx svx/inc/xpolyimp.hxx svx/inc/zoom_def.hxx svx/prj/d.lst svx/source/accessibility/AccessibleShape.cxx svx/source/accessibility/DescriptionGenerator.cxx svx/source/customshapes/EnhancedCustomShapeEngine.cxx svx/source/customshapes/EnhancedCustomShapeFontWork.cxx svx/source/dialog/_bmpmask.cxx svx/source/dialog/_contdlg.cxx svx/source/dialog/connctrl.cxx svx/source/dialog/contwnd.cxx svx/source/dialog/ctredlin.cxx svx/source/dialog/ctredlin.hrc svx/source/dialog/ctredlin.src svx/source/dialog/dialcontrol.cxx svx/source/dialog/dlgctrl.cxx svx/source/dialog/docrecovery.cxx svx/source/dialog/fntctrl.cxx svx/source/dialog/fontwork.cxx svx/source/dialog/frmsel.cxx svx/source/dialog/graphctl.cxx svx/source/dialog/grfflt.cxx svx/source/dialog/hdft.cxx svx/source/dialog/hyperdlg.cxx svx/source/dialog/hyprdlg.hxx svx/source/dialog/hyprlink.cxx svx/source/dialog/hyprlink.hxx svx/source/dialog/hyprlink.src svx/source/dialog/imapdlg.cxx svx/source/dialog/imapwnd.cxx svx/source/dialog/linkwarn.hrc svx/source/dialog/makefile.mk svx/source/dialog/optgrid.cxx svx/source/dialog/orienthelper.cxx svx/source/dialog/pagectrl.cxx svx/source/dialog/prtqry.cxx svx/source/dialog/rlrcitem.cxx svx/source/dialog/rubydialog.cxx svx/source/dialog/rulritem.cxx svx/source/dialog/simptabl.cxx svx/source/dialog/srchdlg.cxx svx/source/dialog/svxbmpnumvalueset.cxx svx/source/dialog/svxruler.cxx svx/source/dialog/swframeexample.cxx svx/source/engine3d/float3d.cxx svx/source/engine3d/float3d.src svx/source/engine3d/svx3ditems.cxx svx/source/fmcomp/gridctrl.cxx svx/source/fmcomp/trace.cxx svx/source/form/ParseContext.cxx svx/source/form/datanavi.cxx svx/source/form/filtnav.cxx svx/source/form/fmexch.cxx svx/source/form/fmexpl.cxx svx/source/form/fmobjfac.cxx svx/source/form/fmpage.cxx svx/source/form/fmshell.cxx svx/source/form/fmshimp.cxx svx/source/form/fmsrcimp.cxx svx/source/form/fmvwimp.cxx svx/source/form/makefile.mk svx/source/form/tabwin.cxx svx/source/form/tbxform.cxx svx/source/form/typemap.cxx svx/source/gallery2/galbrws1.cxx svx/source/gallery2/galbrws2.cxx svx/source/gallery2/galexpl.cxx svx/source/gallery2/gallery1.cxx svx/source/gallery2/galtheme.cxx svx/source/gallery2/makefile.mk svx/source/gengal/gengal.cxx svx/source/gengal/makefile.mk svx/source/inc/fmgroup.hxx svx/source/intro/about_ooo.hrc svx/source/intro/iso.src svx/source/intro/ooo.src svx/source/items/SmartTagItem.cxx svx/source/items/algitem.cxx svx/source/items/chrtitem.cxx svx/source/items/clipfmtitem.cxx svx/source/items/customshapeitem.cxx svx/source/items/drawitem.cxx svx/source/items/e3ditem.cxx svx/source/items/grfitem.cxx svx/source/items/hlnkitem.cxx svx/source/items/makefile.mk svx/source/items/pageitem.cxx svx/source/items/rotmodit.cxx svx/source/items/viewlayoutitem.cxx svx/source/items/zoomitem.cxx svx/source/items/zoomslideritem.cxx svx/source/src/app.hrc svx/source/stbctrls/makefile.mk svx/source/stbctrls/modctrl.cxx svx/source/stbctrls/xmlsecctrl.cxx svx/source/stbctrls/zoomctrl.cxx svx/source/svdraw/clonelist.cxx svx/source/svdraw/svdattr.cxx svx/source/svdraw/svdcrtv.cxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdedtv2.cxx svx/source/svdraw/svdedxv.cxx svx/source/svdraw/svdetc.cxx svx/source/svdraw/svdfmtf.cxx svx/source/svdraw/svdfmtf.hxx svx/source/svdraw/svdglue.cxx svx/source/svdraw/svdhdl.cxx svx/source/svdraw/svdhlpln.cxx svx/source/svdraw/svdibrow.cxx svx/source/svdraw/svdlayer.cxx svx/source/svdraw/svdmodel.cxx svx/source/svdraw/svdoashp.cxx svx/source/svdraw/svdobj.cxx svx/source/svdraw/svdocapt.cxx svx/source/svdraw/svdocirc.cxx svx/source/svdraw/svdoedge.cxx svx/source/svdraw/svdograf.cxx svx/source/svdraw/svdogrp.cxx svx/source/svdraw/svdomeas.cxx svx/source/svdraw/svdomedia.cxx svx/source/svdraw/svdopath.cxx svx/source/svdraw/svdotext.cxx svx/source/svdraw/svdotxdr.cxx svx/source/svdraw/svdotxed.cxx svx/source/svdraw/svdotxfl.cxx svx/source/svdraw/svdotxln.cxx svx/source/svdraw/svdotxtr.cxx svx/source/svdraw/svdoutl.cxx svx/source/svdraw/svdpage.cxx svx/source/svdraw/svdpagv.cxx svx/source/svdraw/svdpntv.cxx svx/source/svdraw/svdpoev.cxx svx/source/svdraw/svdsnpv.cxx svx/source/svdraw/svdstr.src svx/source/svdraw/svdtrans.cxx svx/source/svdraw/svdundo.cxx svx/source/svdraw/svdview.cxx svx/source/svdraw/svdxcgv.cxx svx/source/table/svdotable.cxx svx/source/tbxctrls/colorwindow.hxx svx/source/tbxctrls/extrusioncontrols.cxx svx/source/tbxctrls/fillctrl.cxx svx/source/tbxctrls/grafctrl.cxx svx/source/tbxctrls/itemwin.cxx svx/source/tbxctrls/layctrl.cxx svx/source/tbxctrls/lboxctrl.cxx svx/source/tbxctrls/linectrl.cxx svx/source/tbxctrls/tbcontrl.cxx svx/source/tbxctrls/verttexttbxctrl.cxx svx/source/unodraw/unomod.cxx svx/source/unodraw/unopage.cxx svx/source/unodraw/unoprov.cxx svx/source/unodraw/unoshape.cxx svx/source/unodraw/unoshtxt.cxx svx/source/xml/xmlxtexp.cxx svx/source/xoutdev/_xpoly.cxx svx/source/xoutdev/xattr.cxx svx/source/xoutdev/xattr2.cxx svx/source/xoutdev/xattrbmp.cxx svx/source/xoutdev/xtabcolr.cxx svx/util/makefile.mk svx/workben/edittest.cxx sysui/desktop/productversion.mk ucb/prj/build.lst ucb/source/cacher/cacheserv.cxx ucb/source/core/ucb1.component ucb/source/core/ucbserv.cxx ucb/source/core/ucbstore.cxx ucb/source/core/ucbstore.hxx ucb/source/sorter/sortmain.cxx ucb/source/ucp/file/prov.cxx ucb/source/ucp/file/shell.cxx ucb/source/ucp/ftp/ftpservices.cxx ucb/source/ucp/gio/gio_provider.cxx ucb/source/ucp/gvfs/gvfs_provider.cxx ucb/source/ucp/hierarchy/hierarchyservices.cxx ucb/source/ucp/odma/odma_lib.cxx ucb/source/ucp/odma/odma_services.cxx ucb/source/ucp/package/pkgservices.cxx ucb/source/ucp/tdoc/tdoc_services.cxx ucb/source/ucp/webdav/ContentProperties.cxx ucb/source/ucp/webdav/NeonHeadRequest.cxx ucb/source/ucp/webdav/webdavcontent.cxx ucb/source/ucp/webdav/webdavservices.cxx uui/source/iahndl.cxx uui/source/iahndl.hxx uui/source/loginerr.hxx uui/source/nameclashdlg.hxx uui/source/passcrtdlg.cxx uui/source/passworddlg.cxx uui/source/passworddlg.hxx uui/source/services.cxx vbahelper/inc/vbahelper/vbahelper.hxx vbahelper/prj/build.lst vbahelper/prj/d.lst vbahelper/source/msforms/makefile.mk vbahelper/source/msforms/vbauserform.cxx vbahelper/source/vbahelper/makefile.mk vbahelper/source/vbahelper/vbaapplicationbase.cxx vbahelper/source/vbahelper/vbacommandbarcontrol.cxx vbahelper/source/vbahelper/vbadocumentbase.cxx vbahelper/source/vbahelper/vbadocumentsbase.cxx vbahelper/source/vbahelper/vbahelper.cxx vbahelper/util/makefile.mk xmlhelp/source/cxxhelp/provider/databases.cxx xmlhelp/source/cxxhelp/provider/services.cxx xmlhelp/source/treeview/tvfactory.cxx xmloff/JunitTest_xmloff_unoapi.mk xmloff/inc/functional.hxx xmloff/inc/xmloff/formlayerexport.hxx xmloff/inc/xmloff/formlayerimport.hxx xmloff/inc/xmloff/functional.hxx xmloff/inc/xmloff/shapeimport.hxx xmloff/inc/xmloff/xmlcnitm.hxx xmloff/inc/xmloff/xmlnumfi.hxx xmloff/prj/build.lst xmloff/source/chart/SchXMLChartContext.cxx xmloff/source/chart/SchXMLExport.cxx xmloff/source/chart/SchXMLImport.cxx xmloff/source/chart/SchXMLLegendContext.hxx xmloff/source/chart/SchXMLPlotAreaContext.cxx xmloff/source/core/xmluconv.cxx xmloff/source/draw/sdxmlexp.cxx xmloff/source/draw/shapeexport4.cxx xmloff/source/draw/ximp3dobject.cxx xmloff/source/draw/ximp3dscene.cxx xmloff/source/forms/formlayerexport.cxx xmloff/source/forms/formlayerimport.cxx xmloff/source/forms/handler/vcl_time_handler.hxx xmloff/source/forms/layerimport.cxx xmloff/source/forms/layerimport.hxx xmloff/source/forms/property_meta_data.hxx xmloff/source/style/PageHeaderFooterContext.cxx xmloff/source/style/PageMasterStyleMap.cxx xmloff/source/style/prstylei.cxx xmloff/source/style/xmlimppr.cxx xmloff/source/style/xmlnumfi.cxx xmloff/source/style/xmlstyle.cxx xmloff/source/table/tabledesignsimporter.cxx xmloff/source/text/XMLTextNumRuleInfo.cxx xmloff/source/text/XMLTextShapeStyleContext.cxx xmloff/source/text/txtstyle.cxx xmloff/source/transform/ChartOOoTContext.cxx xmloff/source/transform/EventOOoTContext.cxx xmloff/source/transform/TransformerBase.cxx xmloff/util/makefile.mk xmlscript/util/xcr.component
1083 lines
55 KiB
QBasic
Executable File
1083 lines
55 KiB
QBasic
Executable File
Sub Main
|
|
' Oeffnen der LOG-Datei
|
|
' Es gibt 2 Moeglichgkeiten, diesen Test zu absolvieren.
|
|
' 1) Ausgabe von Informationen in MessageBoxen
|
|
' 2) Ausgabe von Informationen in einer LOG-Datei
|
|
'
|
|
' Die Methoden OpenLOG, CloseLOG, Message, ErrorMessage und InfoMessage beruecksichtigen das automatisch!
|
|
' Zum Umschalten zwischen den beiden Zustaenden genuegt es, eine der folgenden
|
|
' zwei Programmzeilen zu aktivieren ...
|
|
|
|
'bLOGOn = cOn
|
|
bLOGOn = cOff
|
|
|
|
'bShowErrorsOnly = cOn
|
|
bShowErrorsOnly = cOff
|
|
|
|
OpenLOG ( cTestPath + "TestDocumentProperties.log" )
|
|
InfoMessage ( "Test DocumentProperties ... [start]" )
|
|
|
|
' Service besorgen
|
|
InfoMessage ( "Service besorgen ... [start]" )
|
|
aDocumentProperties = createUnoService ( "com.sun.star.document.DocumentProperties" )
|
|
|
|
' Erfolg abtesten
|
|
if ( isnull ( aDocumentProperties ) ) then
|
|
ErrorMessage ( "Service konnte nicht instanziiert werden!" )
|
|
exit sub
|
|
else
|
|
InfoMessage ( "Service erfolgreich instanziiert ..." )
|
|
InfoMessage ( "Service besorgen ... [ende]" )
|
|
end if
|
|
|
|
' Unterstuetzte Schnittstellen, Methoden und Properties anzeigen
|
|
' Achtung: Methoden und Properties koennen nicht angezeigt werden ...
|
|
' neues Uno <-> Basic !?
|
|
msgbox aDocumentProperties.dbg_supportedInterfaces
|
|
'msgbox aDocumentProperties.dbg_methods
|
|
'msgbox aDocumentProperties.dbg_properties
|
|
|
|
' Testen des Services unter normalen Bedingungen (also wie vorgesehen)
|
|
bState = Test_NormalUse ( aDocumentProperties )
|
|
' Fehlerstatus abfragen
|
|
if ( bState = cError ) then
|
|
ErrorMessage ( "Der Service arbeitet unter normalen Bedingungen nicht korrekt!" )
|
|
end if
|
|
|
|
bState = Test_ErrorUse ( aDocumentProperties )
|
|
' Fehlerstatus abfragen
|
|
if ( bState = cError ) then
|
|
ErrorMessage ( "Der Service verhaelt sich in Fehlersituationen nicht korrekt!" )
|
|
end if
|
|
|
|
' Schliessen der Error-Logdatei
|
|
InfoMessage ( "Test DocumentProperties ... [ende]" )
|
|
CloseLOG
|
|
End Sub
|
|
|
|
'*****************************************************************************************************************
|
|
' Testfunktionen
|
|
'*****************************************************************************************************************
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Testmethode: Testet den Service unter normalen Bedingungen
|
|
'
|
|
' Returnwert cOK bedeutet, dass sich das Objekt normal verhaelt ...
|
|
' Returnwert cError bedeutet, dass sich das ein Fehler aufgetreten ist ...
|
|
'----------------------------------------------------------------------------
|
|
Function Test_NormalUse ( aDocumentProperties ) as Boolean
|
|
|
|
' Zunaechst wird vom Erfolg des Test ausgegangen.
|
|
' Sollte einer der Detail-Tests fehlschlagen, dann wird dieser Wert
|
|
' zurueckgesetzt. Damit wird dann angezeigt, dass mindestens ein
|
|
' Einzeltest nicht korrekt funktionierte.
|
|
|
|
Test_NormalUse = cOK
|
|
|
|
bState = Test_NormalUse_XPropertySet ( aDocumentProperties )
|
|
if ( bState = cError ) then
|
|
Test_NormalUse = cError
|
|
end if
|
|
|
|
bState = Test_NormalUse_XNameContainer ( aDocumentProperties )
|
|
if ( bState = cError ) then
|
|
Test_NormalUse = cError
|
|
end if
|
|
|
|
bState = Test_NormalUse_XPersist ( aDocumentProperties )
|
|
if ( bState = cError ) then
|
|
Test_NormalUse = cError
|
|
end if
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Testmethode: Testet den Service unter Randbedingungen und provoziert Fehlerzustaende
|
|
'
|
|
' Returnwert cOK bedeutet, dass das Objekt damit keine Probleme hat ...
|
|
' Returnwert cError bedeutet, dass das Objekt noch nicht robust genug ist ...
|
|
'----------------------------------------------------------------------------
|
|
Function Test_ErrorUse ( aDocumentProperties ) as Boolean
|
|
|
|
Test_ErrorUse = cOK
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Testmethode: Testen des unterstuetzten Interfaces "XPropertySet" unter normalen Bedingungen
|
|
'
|
|
' Returnwert = cOK ; wenn der Test erfolgreich war
|
|
' Returnwert = cError ; wenn sich das Objekt nicht korrekt verhalten hat
|
|
'----------------------------------------------------------------------------
|
|
Function Test_NormalUse_XPropertySet ( aDocumentProperties ) as Boolean
|
|
|
|
' Einschalten der Fehlerbehandlung, um Exceptions oder aehnliches abzufangen!
|
|
on Error goto Test_NormalUse_XPropertySet_Error
|
|
|
|
InfoMessage ( "Test_NormalUse_XPropertySet ... [start]" )
|
|
|
|
' 1) Test der Funktion "getPropertySetInfo()"
|
|
' Da diese Funktion keine Parameter besitzt und zudem eine "get"-Methode
|
|
' darstellt, wird sie durch Basic automatisch als "Property" behandelt!
|
|
' Daher schreibt man nicht "getPropertySetInfo()" sondern nur "PropertySetInfo".
|
|
|
|
' Besorgen der Info
|
|
PropertySetInfo = aDocumentProperties.PropertySetInfo
|
|
' Und abtesten auf Gueltigkeit
|
|
if ( isnull (PropertySetInfo) ) then
|
|
ErrorMessage ( "getPropertySetInfo() ... Error (Keine Info bestimmbar!)" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
end if
|
|
|
|
' Hier fehlt noch der Test der InfoStruktur! (Laesst sich unter Basic irgendwie NICHT testen!!!???)
|
|
' ...
|
|
|
|
InfoMessage ( "getPropertySetInfo() ... OK" )
|
|
|
|
' 2) getPropertyValue() & setPropertyValue ()
|
|
' In diesem Service sind mehrere Properties bereits definiert und vorbelegt.
|
|
' Zum Test werden repraesentativ einige davon verwendet. Naemlich je eine
|
|
' der verschiedenen Datentypen!
|
|
' Das sind im folgenden: OWString, sal_Bool, sal_Int16, sal_uInt16, sal_Int32, DateTime, Sequence< sal_Int8 >
|
|
' Achtung! sal_uInt16 kann in Basic so nicht dargestellt werden. Daher wird ein normaler
|
|
' Integer-Wert angenommen - Bedingung ist, das hier im Test der Wertebereich nicht
|
|
' ueberschritten wird!
|
|
' Es wird versucht den Standardwert dieser zu ermitteln und zu merken;
|
|
' dann einen neuen Wert zu setzen; sowie diesen wiederum zu lesen und mit den
|
|
' vorherigen Werten zu vergleichen!
|
|
|
|
' Zunaechst werden die Standardwerte dieser Properties besorgt ...
|
|
sDefaultValue_OWString$ = aDocumentProperties.getPropertyValue ( "Author" )
|
|
bDefaultValue_sal_Bool = aDocumentProperties.getPropertyValue ( "AutoloadEnabled" )
|
|
nDefaultValue_sal_Int16% = aDocumentProperties.getPropertyValue ( "EditingCycles" )
|
|
nDefaultValue_sal_uInt16% = aDocumentProperties.getPropertyValue ( "Priority" )
|
|
nDefaultValue_sal_Int32& = aDocumentProperties.getPropertyValue ( "EditingDuration" )
|
|
aDefaultValue_DateTime = aDocumentProperties.getPropertyValue ( "ModifyDate" )
|
|
' aDefaultValue_ByteSequence = aDocumentProperties.getPropertyValue ( "ExtraData" )
|
|
aDefaultValue_ByteSequence = aDocumentProperties.ExtraData
|
|
|
|
' ... dann die Werte zur Kontrolle ausgeben.
|
|
ShowProperties ( aDocumentProperties )
|
|
|
|
InfoMessage ( "getPropertyValue() ... OK" )
|
|
|
|
' Jetzt werden neue Werte vereinbart ...
|
|
' Diese werden so gewaehlt, das sie garantiert von den Standardwerten verschieden sind!
|
|
' Dazu werden die alten auf Wert abgefragt und entsprechend die neuen gesetzt.
|
|
sNewValue_OWString$ = sDefaultValue_OWString$ + "NeuerWert"
|
|
bNewValue_sal_Bool = not bDefaultValue_sal_Bool
|
|
nNewValue_sal_Int16% = nDefaultValue_sal_Int16% + 1
|
|
if ( nDefaultValue_sal_uInt16% = 1 ) then
|
|
nNewValue_sal_uInt16% = 2
|
|
else
|
|
nNewValue_sal_uInt16% = 1
|
|
end if
|
|
nNewValue_sal_Int32& = nDefaultValue_sal_Int32& + 1
|
|
|
|
aNewValue_DateTime = aDefaultValue_DateTime
|
|
aNewValue_DateTime.HundredthSeconds = aDefaultValue_DateTime.HundredthSeconds + 1
|
|
aNewValue_DateTime.Seconds = aDefaultValue_DateTime.Seconds + 1
|
|
aNewValue_DateTime.Minutes = aDefaultValue_DateTime.Minutes + 1
|
|
aNewValue_DateTime.Hours = aDefaultValue_DateTime.Hours + 1
|
|
aNewValue_DateTime.Day = aDefaultValue_DateTime.Day + 1
|
|
aNewValue_DateTime.Month = aDefaultValue_DateTime.Month + 1
|
|
aNewValue_DateTime.Year = aDefaultValue_DateTime.Year + 1
|
|
|
|
aNewValue_ByteSequence = aDefaultValue_ByteSequence
|
|
nElementCount% = UBound ( aDefaultValue_ByteSequence )
|
|
' for nCounter%=0 to nElementCount% step 1
|
|
' aNewValue_ByteSequence(nCounter%) = ( aDefaultValue_ByteSequence(nCounter%) + 1 )
|
|
' next nCounter%
|
|
|
|
' Anschliessend muessen diese neuen Werte gesetzt werden.
|
|
aDocumentProperties.setPropertyValue ( "Author" , sNewValue_OWString$ )
|
|
aDocumentProperties.setPropertyValue ( "AutoloadEnabled", bNewValue_sal_Bool )
|
|
aDocumentProperties.setPropertyValue ( "EditingCycles" , nNewValue_sal_Int16% )
|
|
aDocumentProperties.setPropertyValue ( "Priority" , nNewValue_sal_uInt16% )
|
|
aDocumentProperties.setPropertyValue ( "EditingDuration", nNewValue_sal_Int32& )
|
|
aDocumentProperties.setPropertyValue ( "ModifyDate" , aNewValue_DateTime )
|
|
' aDocumentProperties.setPropertyValue ( "ExtraData" , aNewValue_ByteSequence )
|
|
aDocumentProperties.ExtraData = aNewValue_ByteSequence
|
|
|
|
' Dann lassen wir sie uns ausgeben, um sie mit den vorherigen vergleichen zu koennen.
|
|
' (Das geht natuerlich nur, wenn "bLOGOn=cOn" ist - also eine LOG-Datei geschrieben wird!)
|
|
ShowProperties ( aDocumentProperties )
|
|
|
|
' Nun werden die Properties wieder gelesen ...
|
|
sLastValue_OWString$ = aDocumentProperties.getPropertyValue ( "Author" )
|
|
bLastValue_sal_Bool = aDocumentProperties.getPropertyValue ( "AutoloadEnabled" )
|
|
nLastValue_sal_Int16% = aDocumentProperties.getPropertyValue ( "EditingCycles" )
|
|
nLastValue_sal_uInt16% = aDocumentProperties.getPropertyValue ( "Priority" )
|
|
nLastValue_sal_Int32& = aDocumentProperties.getPropertyValue ( "EditingDuration" )
|
|
aLastValue_DateTime = aDocumentProperties.getPropertyValue ( "ModifyDate" )
|
|
aLastValue_ByteSequence = aDocumentProperties.getPropertyValue ( "ExtraData" )
|
|
|
|
' ... und mit den vorher als zu setzend bestimmte Werte vergleichen!
|
|
' Es duerfen KEINE Unterschiede auftreten, da sonst "setPropertyValue()" nicht korrekt funktioniert hat!
|
|
|
|
if ( CompareOWString ( sNewValue_OWString$, sLastValue_OWString$ ) = cDifferent ) then
|
|
ErrorMessage ( "setPropertyValue() ... Fehler [OWString fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareBool ( bNewValue_sal_Bool, bLastValue_sal_Bool ) = cDifferent ) then
|
|
ErrorMessage ( "setPropertyValue() ... Fehler [sal_Bool fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareInt16 ( nNewValue_sal_Int16%, nLastValue_sal_Int16% ) = cDifferent ) then
|
|
ErrorMessage ( "setPropertyValue() ... Fehler [sal_Int16 fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareInt16 ( nNewValue_sal_uInt16%, nLastValue_sal_uInt16% ) = cDifferent ) then
|
|
ErrorMessage ( "setPropertyValue() ... Fehler [sal_uInt16 fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareInt32 ( nNewValue_sal_Int32&, nLastValue_sal_Int32& ) = cDifferent ) then
|
|
ErrorMessage ( "setPropertyValue() ... Fehler [sal_Int32 fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareDateTime ( aNewValue_DateTime, aLastValue_DateTime ) = cDifferent ) then
|
|
ErrorMessage ( "setPropertyValue() ... Fehler [DateTime fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareByteSequence ( aNewValue_ByteSequence, aLastValue_ByteSequence ) = cDifferent ) then
|
|
ErrorMessage ( "setPropertyValue() ... Fehler [ByteSequence fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
end if
|
|
|
|
InfoMessage ( "setPropertyValue() ... OK" )
|
|
|
|
' Nun wird noch mit den zuerst ermittelten Default-Werten verglichen!
|
|
' Hier MUESSEN Unterschiede auftreten, da sonst "get-" UND "setPropertyValue()" nicht korrekt funktioniert haben!
|
|
|
|
if ( CompareOWString ( sDefaultValue_OWString$, sLastValue_OWString$ ) = cEqual ) then
|
|
ErrorMessage ( "Zusammenspiel set & getPropertyValue() ... Fehler [OWString fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareBool ( bDefaultValue_sal_Bool, bLastValue_sal_Bool ) = cEqual ) then
|
|
ErrorMessage ( "Zusammenspiel set & getPropertyValue() ... Fehler [sal_Bool fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareInt16 ( nDefaultValue_sal_Int16%, nLastValue_sal_Int16% ) = cEqual ) then
|
|
ErrorMessage ( "Zusammenspiel set & getPropertyValue() ... Fehler [sal_Int16 fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareInt16 ( nDefaultValue_sal_uInt16%, nLastValue_sal_uInt16% ) = cEqual ) then
|
|
ErrorMessage ( "Zusammenspiel set & getPropertyValue() ... Fehler [sal_uInt16 fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareInt32 ( nDefaultValue_sal_Int32&, nLastValue_sal_Int32& ) = cEqual ) then
|
|
ErrorMessage ( "Zusammenspiel set & getPropertyValue() ... Fehler [sal_Int32 fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
elseif ( CompareDateTime ( aDefaultValue_DateTime, aLastValue_DateTime ) = cEqual ) then
|
|
ErrorMessage ( "Zusammenspiel set & getPropertyValue() ... Fehler [DateTime fehlerhaft]" )
|
|
goto Test_NormalUse_XPropertySet_Error
|
|
' elseif ( CompareByteSequence ( aDefaultValue_ByteSequence, aLastValue_ByteSequence ) = cEqual ) then
|
|
' ErrorMessage ( "Zusammenspiel set & getPropertyValue() ... Fehler [ByteSequence fehlerhaft]" )
|
|
' goto Test_NormalUse_XPropertySet_Error
|
|
end if
|
|
|
|
InfoMessage ( "Zusammenspiel set & getPropertyValue() ... OK" )
|
|
|
|
' Der Test war erfolgreich! Meldung ausgeben und zurueck zm Aufrufer.
|
|
' Ausschalten der Fehlerbehandlung
|
|
on Error goto 0
|
|
' Meldung ausgeben
|
|
InfoMessage ( "Test_NormalUse_XPropertySet ... [ende]" )
|
|
' Status setzen
|
|
Test_NormalUse_XPropertySet = cOK
|
|
' Und Funktion beenden
|
|
Exit Function
|
|
|
|
' Es ist ein unerwartete Fehler aufgetreten! (Exception ...)
|
|
' Meldung ausgeben und mit Fehler zurueckkehren.
|
|
Test_NormalUse_XPropertySet_Error:
|
|
' Ausschalten der Fehlerbehandlung
|
|
on Error goto 0
|
|
' Meldung ausgeben
|
|
ErrorMessage ( "Test_NormalUse_XPropertySet ... [Error]" )
|
|
' und Fehlerstatus setzen
|
|
Test_NormalUse_XPropertySet = cError
|
|
' Abbruch der Funktion erzwingen!
|
|
Exit Function
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Testmethode: Testen des unterstuetzten Interfaces "XNameContainer" unter normalen Bedingungen
|
|
'
|
|
' Returnwert = cOK ; wenn sich das Objekt korrekt verhalten hat
|
|
' Returnwert = cError ; wenn das Objekt noch nicht robust genug ist
|
|
'----------------------------------------------------------------------------
|
|
Function Test_NormalUse_XNameContainer ( aDocumentProperties ) as Boolean
|
|
|
|
' Einschalten der Fehlerbehandlung, um Exceptions oder aehnliches abzufangen!
|
|
on Error goto Test_NormalUse_XNameContainer_Error
|
|
|
|
InfoMessage ( "Test_NormalUse_XNameContainer ... [start]" )
|
|
|
|
' Da das Initialisieren im Konstruktor des Objektes und das Aufraeumen im Destruktor
|
|
' automatisch geschieht und diese Methode pro Programmablauf nur einmal verwendet wird,
|
|
' darf sich kein Element schon im NameContainer befinden!
|
|
' Wenn doch, ist das ein Fehler!
|
|
if ( aDocumentProperties.hasElements () = TRUE ) then
|
|
ErrorMessage ( "Der NameConatiner sollte eigentlich leer sein, enthaelt initial aber schon Elemente!?" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
end if
|
|
|
|
' Zunaechst werden mehrere Elemente in den NameContainer eingefuegt.
|
|
sItemName_1$ = "Item 1"
|
|
sItemName_2$ = "Item 2"
|
|
sItemName_3$ = "Item 3"
|
|
sItemName_4$ = "Item 4"
|
|
sItemName_5$ = "Item 5"
|
|
|
|
sFirstValue_1$ = "Value 1"
|
|
sFirstValue_2$ = "Value 2"
|
|
sFirstValue_3$ = "Value 3"
|
|
sFirstValue_4$ = "Value 4"
|
|
sFirstValue_5$ = "Value 5"
|
|
|
|
aDocumentProperties.insertByName ( sItemName_1$, sFirstValue_1$ )
|
|
aDocumentProperties.insertByName ( sItemName_2$, sFirstValue_2$ )
|
|
aDocumentProperties.insertByName ( sItemName_3$, sFirstValue_3$ )
|
|
aDocumentProperties.insertByName ( sItemName_4$, sFirstValue_4$ )
|
|
aDocumentProperties.insertByName ( sItemName_5$, sFirstValue_5$ )
|
|
|
|
' Zur Kontrolle die Werte ausgeben. (Nur wichtig, wenn geloggt wird!)
|
|
' Dabei wird die Methode "getElementNames()" gleich implizit mitgetestet!
|
|
ShowNameContainer ( aDocumentProperties )
|
|
|
|
' Aber auch die Anzahl kontrollieren.
|
|
' (Hier wird eine eigene BASIC-Hilfsfunktion verwendet! keine Interface-Methode)
|
|
if ( getNameContainerCount ( aDocumentProperties ) <> 5 ) then
|
|
ErrorMessage ( "insertByName() ... Fehler (Der NameConatiner enthaelt nicht die eingefuegten 5 Elemente!)" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
end if
|
|
|
|
' Nun noch feststellen, ob die 5 denn auch tatsaechlich vorhanden sind.
|
|
if ( aDocumentProperties.hasByName ( sItemName_1$ ) = FALSE ) then
|
|
ErrorMessage ( "hasByName() ... Fehler [Element 1 nicht vorhanden!?]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( aDocumentProperties.hasByName ( sItemName_2$ ) = FALSE ) then
|
|
ErrorMessage ( "hasByName() ... Fehler [Element 2 nicht vorhanden!?]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( aDocumentProperties.hasByName ( sItemName_3$ ) = FALSE ) then
|
|
ErrorMessage ( "hasByName() ... Fehler [Element 3 nicht vorhanden!?]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( aDocumentProperties.hasByName ( sItemName_4$ ) = FALSE ) then
|
|
ErrorMessage ( "hasByName() ... Fehler [Element 4 nicht vorhanden!?]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( aDocumentProperties.hasByName ( sItemName_5$ ) = FALSE ) then
|
|
ErrorMessage ( "hasByName() ... Fehler [Element 5 nicht vorhanden!?]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
end if
|
|
|
|
' Dann die Werte wieder auslesen.
|
|
sCompareValue_1$ = aDocumentProperties.getByName ( sItemName_1$ )
|
|
sCompareValue_2$ = aDocumentProperties.getByName ( sItemName_2$ )
|
|
sCompareValue_3$ = aDocumentProperties.getByName ( sItemName_3$ )
|
|
sCompareValue_4$ = aDocumentProperties.getByName ( sItemName_4$ )
|
|
sCompareValue_5$ = aDocumentProperties.getByName ( sItemName_5$ )
|
|
|
|
' Zum Vergleich die Werte ausgeben. (Nur wichtig, wenn geloggt wird!)
|
|
ShowNameContainer ( aDocumentProperties )
|
|
|
|
' Dann die Werte automatisch vergleichen!
|
|
if ( CompareOWString ( sFirstValue_1$, sCompareValue_1$ ) = cDifferent ) then
|
|
ErrorMessage ( "getByName() ... Fehler [Element 1 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( CompareOWString ( sFirstValue_2$, sCompareValue_2$ ) = cDifferent ) then
|
|
ErrorMessage ( "getByName() ... Fehler [Element 2 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( CompareOWString ( sFirstValue_3$, sCompareValue_3$ ) = cDifferent ) then
|
|
ErrorMessage ( "getByName() ... Fehler [Element 3 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( CompareOWString ( sFirstValue_4$, sCompareValue_4$ ) = cDifferent ) then
|
|
ErrorMessage ( "getByName() ... Fehler [Element 4 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( CompareOWString ( sFirstValue_5$, sCompareValue_5$ ) = cDifferent ) then
|
|
ErrorMessage ( "getByName() ... Fehler [Element 5 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
end if
|
|
|
|
InfoMessage ( "getByName() ... OK" )
|
|
|
|
' Jetzt wird versucht einige der Elemente in ihrem Wert zu veraendern.
|
|
sNewValue_1$ = "NewValue 1"
|
|
sNewValue_2$ = "NewValue 2"
|
|
sNewValue_3$ = "NewValue 3"
|
|
sNewValue_4$ = "NewValue 4"
|
|
sNewValue_5$ = "NewValue 5"
|
|
|
|
aDocumentProperties.replaceByName ( sItemName_1$, sNewValue_1$ )
|
|
aDocumentProperties.replaceByName ( sItemName_2$, sNewValue_2$ )
|
|
aDocumentProperties.replaceByName ( sItemName_3$, sNewValue_3$ )
|
|
aDocumentProperties.replaceByName ( sItemName_4$, sNewValue_4$ )
|
|
aDocumentProperties.replaceByName ( sItemName_5$, sNewValue_5$ )
|
|
|
|
' Zur Kontrolle die Werte ausgeben. (Nur wichtig, wenn geloggt wird!)
|
|
ShowNameContainer ( aDocumentProperties )
|
|
|
|
' Dann die Werte wieder auslesen.
|
|
sCompareValue_1$ = aDocumentProperties.getByName ( sItemName_1$ )
|
|
sCompareValue_2$ = aDocumentProperties.getByName ( sItemName_2$ )
|
|
sCompareValue_3$ = aDocumentProperties.getByName ( sItemName_3$ )
|
|
sCompareValue_4$ = aDocumentProperties.getByName ( sItemName_4$ )
|
|
sCompareValue_5$ = aDocumentProperties.getByName ( sItemName_5$ )
|
|
|
|
' Zum Vergleich die Werte ausgeben. (Nur wichtig, wenn geloggt wird!)
|
|
ShowNameContainer ( aDocumentProperties )
|
|
|
|
' Dann die Werte automatisch vergleichen!
|
|
if ( CompareOWString ( sNewValue_1$, sCompareValue_1$ ) = cDifferent ) then
|
|
ErrorMessage ( "replaceByName() ... Fehler [Element 1 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( CompareOWString ( sNewValue_2$, sCompareValue_2$ ) = cDifferent ) then
|
|
ErrorMessage ( "replaceByName() ... Fehler [Element 2 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( CompareOWString ( sNewValue_3$, sCompareValue_3$ ) = cDifferent ) then
|
|
ErrorMessage ( "replaceByName() ... Fehler [Element 3 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( CompareOWString ( sNewValue_4$, sCompareValue_4$ ) = cDifferent ) then
|
|
ErrorMessage ( "replaceByName() ... Fehler [Element 4 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( CompareOWString ( sNewValue_5$, sCompareValue_5$ ) = cDifferent ) then
|
|
ErrorMessage ( "replaceByName() ... Fehler [Element 5 fehlerhaft]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
end if
|
|
|
|
InfoMessage ( "replaceByName() ... OK" )
|
|
|
|
' Hier sollen einige der 5 Eintraege geloescht werden.
|
|
aDocumentProperties.removeByName ( sItemName_1$ )
|
|
aDocumentProperties.removeByName ( sItemName_3$ )
|
|
|
|
' Dann wieder die Anzahl kontrollieren.
|
|
' (Hier wird eine eigene BASIC-Hilfsfunktion verwendet! keine Interface-Methode)
|
|
if ( getNameContainerCount ( aDocumentProperties ) <> 3 ) then
|
|
ErrorMessage ( "removeByName() ... Fehler (Der NameConatiner enthaelt nicht die erwarteten 3 Elemente!)" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
end if
|
|
|
|
' Nun noch feststellen, ob die restlichen 3 denn auch tatsaechlich die richtigen sind.
|
|
if ( aDocumentProperties.hasByName ( sItemName_2$ ) = FALSE ) then
|
|
ErrorMessage ( "removeByName() ... Fehler [Element 2 nicht vorhanden!?]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( aDocumentProperties.hasByName ( sItemName_4$ ) = FALSE ) then
|
|
ErrorMessage ( "removeByName() ... Fehler [Element 4 nicht vorhanden!?]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
elseif ( aDocumentProperties.hasByName ( sItemName_5$ ) = FALSE ) then
|
|
ErrorMessage ( "removeByName() ... Fehler [Element 5 nicht vorhanden!?]" )
|
|
goto Test_NormalUse_XNameContainer_Error
|
|
end if
|
|
|
|
' Zur Kontrolle die Werte nochmals ausgeben. (Nur wichtig, wenn geloggt wird!)
|
|
ShowNameContainer ( aDocumentProperties )
|
|
|
|
InfoMessage ( "removeByName() ... OK" )
|
|
|
|
' Der Test war erfolgreich! Meldung ausgeben und zurueck zm Aufrufer.
|
|
' Ausschalten der Fehlerbehandlung
|
|
on Error goto 0
|
|
' Meldung ausgeben
|
|
InfoMessage ( "Test_NormalUse_XNameContainer ... [ende]" )
|
|
' Status setzen
|
|
Test_NormalUse_XNameContainer = cOK
|
|
' Und Funktion beenden
|
|
Exit Function
|
|
|
|
' Es ist ein unerwartete Fehler aufgetreten! (Exception ...)
|
|
' Meldung ausgeben und mit Fehler zurueckkehren.
|
|
Test_NormalUse_XNameContainer_Error:
|
|
' Ausschalten der Fehlerbehandlung
|
|
on Error goto 0
|
|
' Meldung ausgeben
|
|
ErrorMessage ( "Test_NormalUse_XNameContainer ... [Error]" )
|
|
' und Fehlerstatus setzen
|
|
Test_NormalUse_XNameContainer = cError
|
|
' Abbruch der Funktion erzwingen!
|
|
Exit Function
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Testmethode: Testen des unterstuetzten Interfaces "XPersist" unter normalen Bedingungen
|
|
'
|
|
' Returnwert = cOK ; wenn der Test erfolgreich war
|
|
' Returnwert = cError ; wenn sich das Objekt nicht korrekt verhalten hat
|
|
'----------------------------------------------------------------------------
|
|
Function Test_NormalUse_XPersist ( aDocumentProperties ) as Boolean
|
|
|
|
' Einschalten der Fehlerbehandlung, um Exceptions oder aehnliches abzufangen!
|
|
on Error goto Test_NormalUse_XPersist_Error
|
|
|
|
InfoMessage ( "Test_NormalUse_XPersist ... [start]" )
|
|
|
|
' Laden der Properties aus einer Datei
|
|
aDocumentProperties.read ( cTestPath + "TestDebug_in.sdw" )
|
|
|
|
' Zur Kontrolle anzeigen
|
|
ShowProperties ( aDocumentProperties )
|
|
|
|
' Speichern der Properties in einer neuen Datei
|
|
aDocumentProperties.write ( cTestPath + "TestDebug_Out.sdw" )
|
|
aDocumentProperties.read ( cTestPath + "TestDebug_Out.sdw" )
|
|
|
|
' Zur Kontrolle anzeigen
|
|
ShowProperties ( aDocumentProperties )
|
|
|
|
' Der Test war erfolgreich! Meldung ausgeben und zurueck zm Aufrufer.
|
|
' Ausschalten der Fehlerbehandlung
|
|
on Error goto 0
|
|
' Meldung ausgeben
|
|
InfoMessage ( "Test_NormalUse_XPersist ... [ende]" )
|
|
' Status setzen
|
|
Test_NormalUse_XPersist = cOK
|
|
' Und Funktion beenden
|
|
Exit Function
|
|
|
|
' Es ist ein unerwartete Fehler aufgetreten! (Exception ...)
|
|
' Meldung ausgeben und mit Fehler zurueckkehren.
|
|
Test_NormalUse_XPersist_Error:
|
|
' Ausschalten der Fehlerbehandlung
|
|
on Error goto 0
|
|
' Meldung ausgeben
|
|
ErrorMessage ( "Test_NormalUse_XPersist ... [Error]" )
|
|
' und Fehlerstatus setzen
|
|
Test_NormalUse_XPersist = cError
|
|
' Abbruch der Funktion erzwingen!
|
|
Exit Function
|
|
|
|
End Function
|
|
|
|
'*****************************************************************************************************************
|
|
' Hilfsfunktionen und -methoden
|
|
'*****************************************************************************************************************
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsmethode: Oeffnet die LOG-Datei.
|
|
'----------------------------------------------------------------------------
|
|
Sub OpenLOG ( sFileName$ )
|
|
if ( bLOGOn = cOn ) then
|
|
sLOGFileName$ = sFileName$
|
|
nLOGFileHandle% = FreeFile
|
|
open sLOGFileName$ for output as nLOGFileHandle%
|
|
end if
|
|
End Sub
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsmethode: Schliesst die LOG-Datei.
|
|
'----------------------------------------------------------------------------
|
|
Sub CloseLOG
|
|
if ( bLOGOn = cOn ) then
|
|
close #nLOGFileHandle%
|
|
end if
|
|
End Sub
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsmethode: Gibt einen Text in einer LOG-Datei aus.
|
|
'----------------------------------------------------------------------------
|
|
Sub WriteLOG ( sMessage$ )
|
|
if ( bLOGOn = cOn ) then
|
|
Write #nLOGFileHandle% sMessage$
|
|
end if
|
|
End Sub
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsmethode: Gibt eine MessageBox mit Fehlertext, Zeilennummer und Warnschild aus.
|
|
'----------------------------------------------------------------------------
|
|
Sub ErrorMessage ( sMessage$ )
|
|
' Entweder in die LOG-Datei schreiben oder eine MessageBox anzeigen.
|
|
if ( bLOGOn = cOn ) then
|
|
WriteLOG ( sMessage$ )
|
|
else
|
|
MsgBox ( sMessage$, 16 )
|
|
end if
|
|
End Sub
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsmethode: Gibt eine Hinweisbox aus.
|
|
'----------------------------------------------------------------------------
|
|
Sub InfoMessage ( sMessage$ )
|
|
' Nur was anzeigen, wenn Nutzer es wuenscht!
|
|
if ( bShowErrorsOnly = cOff ) then
|
|
' Ansonsten wird entweder in die LOG-Datei geschrieben oder eine MessageBox angezeigt.
|
|
if ( bLOGOn = cOn ) then
|
|
WriteLOG ( sMessage$ )
|
|
else
|
|
MsgBox ( sMessage$, 64 )
|
|
end if
|
|
end if
|
|
End Sub
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Vergleicht zwei OWString-Werte
|
|
'
|
|
' Returnwert = cEqual ; wenn Werte identisch sind
|
|
' Returnwert = cDifferent ; wenn Werte verschieden sind
|
|
'----------------------------------------------------------------------------
|
|
Function CompareOWString ( sOWString_1$, sOWString_2$ ) as Boolean
|
|
|
|
if ( sOWString_1$ = sOWString_2$ ) then
|
|
CompareOWString = cEqual
|
|
else
|
|
CompareOWString = cDifferent
|
|
end if
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Vergleicht zwei DateTime-Strukturen
|
|
'
|
|
' Returnwert = cEqual ; wenn Werte identisch sind
|
|
' Returnwert = cDifferent ; wenn Werte verschieden sind
|
|
'----------------------------------------------------------------------------
|
|
Function CompareDateTime ( aDateTime_1, aDateTime_2 ) as Boolean
|
|
|
|
if ( aDateTime_1.Day = aDateTime_2.Day and aDateTime_1.Month = aDateTime_2.Month and aDateTime_1.Year = aDateTime_2.Year and aDateTime_1.Hours = aDateTime_1.Hours and aDateTime_1.Minutes = aDateTime_1.Minutes and aDateTime_1.Seconds = aDateTime_1.Seconds and aDateTime_1.HundredthSeconds = aDateTime_1.HundredthSeconds ) then
|
|
CompareDateTime = cEqual
|
|
else
|
|
CompareDateTime = cDifferent
|
|
end if
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Vergleicht zwei ByteSequence's
|
|
'
|
|
' Returnwert = cEqual ; wenn Werte identisch sind
|
|
' Returnwert = cDifferent ; wenn Werte verschieden sind
|
|
'----------------------------------------------------------------------------
|
|
Function CompareByteSequence ( seqByteSequence_1, seqByteSequence_2 ) as Boolean
|
|
|
|
' Wenn beide leer sind, sind sie auch identisch !
|
|
' Dieser Test mit "IsArray" ist noetig, da bei einem leeren Array die
|
|
' Funktion "UBound" einen Fehler produziert!
|
|
if ( IsArray ( seqByteSequence_1 ) = FALSE and IsArray ( seqByteSequence_2 ) = FALSE ) then
|
|
CompareByteSequence = cEqual
|
|
Exit Function
|
|
end if
|
|
|
|
' Wenn jedoch nur eine leer ist, dann sind sie nicht identisch.
|
|
if ( IsArray ( seqByteSequence_1 ) = FALSE ) or ( IsArray ( seqByteSequence_2 ) = FALSE ) then
|
|
CompareByteSequence = cDifferent
|
|
Exit Function
|
|
end if
|
|
|
|
' Besorgen der Anzahl der Elemente der Sequences
|
|
nElementCount_1% = UBound ( seqByteSequence_1 )
|
|
nElementCount_2% = UBound ( seqByteSequence_2 )
|
|
|
|
' Wenn diese Anzahl schon verschieden ist, dann ...
|
|
if ( nElementCount_1% <> nElementCount_2% ) then
|
|
' ... sind die Sequences wohl verschieden.
|
|
CompareByteSequence = cDifferent
|
|
' Die Element brauchen dann nicht mehr verglichen zu werden.
|
|
Exit Function
|
|
end if
|
|
|
|
' Ansonsten werden die Elemente einzeln miteinander verglichen.
|
|
for nCounter%=0 to nElementCount_1% step 1
|
|
' Wenn auch nur ein paar davon verschieden ist, dann ...
|
|
if ( nElementCount_1%(nCounter%) <> nElementCount_2%(nCounter%) ) then
|
|
' ... kann der Vergleich abgebrochen werden!
|
|
CompareByteSequence = cDifferent
|
|
Exit Function
|
|
end if
|
|
next nCounter%
|
|
|
|
' Wenn man bis hier gekommen ist, dann sind die Sequences identisch.
|
|
CompareByteSequence = cEqual
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Vergleicht zwei Int16-Werte
|
|
'
|
|
' Returnwert = cEqual ; wenn Werte identisch sind
|
|
' Returnwert = cDifferent ; wenn Werte verschieden sind
|
|
'----------------------------------------------------------------------------
|
|
Function CompareInt16 ( nInt16_1%, nInt16_2% ) as Boolean
|
|
|
|
if ( nInt16_1% = nInt16_2% ) then
|
|
CompareInt16 = cEqual
|
|
else
|
|
CompareInt16 = cDifferent
|
|
end if
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Vergleicht zwei Int32-Werte
|
|
'
|
|
' Returnwert = cEqual ; wenn Werte identisch sind
|
|
' Returnwert = cDifferent ; wenn Werte verschieden sind
|
|
'----------------------------------------------------------------------------
|
|
Function CompareInt32 ( nInt32_1&, nInt32_2& ) as Boolean
|
|
|
|
if ( nInt32_1& = nInt32_2& ) then
|
|
CompareInt32 = cEqual
|
|
else
|
|
CompareInt32 = cDifferent
|
|
end if
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Vergleicht zwei Bool-Werte
|
|
'
|
|
' Returnwert = cEqual ; wenn Werte identisch sind
|
|
' Returnwert = cDifferent ; wenn Werte verschieden sind
|
|
'----------------------------------------------------------------------------
|
|
Function CompareBool ( bBool_1, bBool_2 ) as Boolean
|
|
|
|
if ( bBool_1 = bBool_2 ) then
|
|
CompareBool = cEqual
|
|
else
|
|
CompareBool = cDifferent
|
|
end if
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Vergleicht die Properties zweier Objekte um Unterschiede festzustellen.
|
|
'
|
|
' Returnwert = cEqual ; wenn Objekte von den Properties her identisch sind
|
|
' Returnwert = cDifferent ; wenn Objekte von den Properties her verschieden sind
|
|
'----------------------------------------------------------------------------
|
|
Function CompareDocumentProperties ( aDocumentProperties_1, aDocumentProperties_2 ) as Boolean
|
|
|
|
' Besorgen der Werte und zwischenspeichern (bezogen auf Objekt 1)
|
|
sAuthor_1$ = aDocumentProperties_1.getPropertyValue ( "Author" )
|
|
bAutoloadEnabled_1 = aDocumentProperties_1.getPropertyValue ( "AutoloadEnabled" )
|
|
nAutoloadSecs_1% = aDocumentProperties_1.getPropertyValue ( "AutoloadSecs" )
|
|
sAutoLoadURL_1$ = aDocumentProperties_1.getPropertyValue ( "AutoloadURL" )
|
|
sBliendCopiesTo_1$ = aDocumentProperties_1.getPropertyValue ( "BlindCopiesTo" )
|
|
sCopiesTo_1$ = aDocumentProperties_1.getPropertyValue ( "CopiesTo" )
|
|
aCreationDate_1 = aDocumentProperties_1.getPropertyValue ( "CreationDate" )
|
|
sDefaultTarget_1$ = aDocumentProperties_1.getPropertyValue ( "DefaultTarget" )
|
|
sDescription_1$ = aDocumentProperties_1.getPropertyValue ( "Description" )
|
|
nEditingCycles_1% = aDocumentProperties_1.getPropertyValue ( "EditingCycles" )
|
|
nEditingDuration_1& = aDocumentProperties_1.getPropertyValue ( "EditingDuration" )
|
|
seqExtraData_1 = aDocumentProperties_1.getPropertyValue ( "ExtraData" )
|
|
sInReplyTo_1$ = aDocumentProperties_1.getPropertyValue ( "InReplyTo" )
|
|
bIsEncrypted_1 = aDocumentProperties_1.getPropertyValue ( "IsEncrypted" )
|
|
sKeywords_1$ = aDocumentProperties_1.getPropertyValue ( "Keywords" )
|
|
sMIMEType_1$ = aDocumentProperties_1.getPropertyValue ( "MIMEType" )
|
|
sModifiedBy_1$ = aDocumentProperties_1.getPropertyValue ( "ModifiedBy" )
|
|
aModifyDate_1 = aDocumentProperties_1.getPropertyValue ( "ModifyDate" )
|
|
sNewsgroups_1$ = aDocumentProperties_1.getPropertyValue ( "Newsgroups" )
|
|
sOriginal_1$ = aDocumentProperties_1.getPropertyValue ( "Original" )
|
|
bPortableGraphics_1 = aDocumentProperties_1.getPropertyValue ( "PortableGraphics" )
|
|
aPrintDate_1 = aDocumentProperties_1.getPropertyValue ( "PrintDate" )
|
|
sPrintedBy_1$ = aDocumentProperties_1.getPropertyValue ( "PrintedBy" )
|
|
nPriority_1% = aDocumentProperties_1.getPropertyValue ( "Priority" )
|
|
bQueryTemplate_1 = aDocumentProperties_1.getPropertyValue ( "QueryTemplate" )
|
|
sRecipient_1$ = aDocumentProperties_1.getPropertyValue ( "Recipient" )
|
|
sReferences_1$ = aDocumentProperties_1.getPropertyValue ( "References" )
|
|
sReplyTo_1$ = aDocumentProperties_1.getPropertyValue ( "ReplyTo" )
|
|
bSaveGraphicsCompressed_1 = aDocumentProperties_1.getPropertyValue ( "SaveGraphicsCompressed" )
|
|
bSaveOriginalGraphics_1 = aDocumentProperties_1.getPropertyValue ( "SaveOriginalGraphics" )
|
|
bSaveVersionOnClose_1 = aDocumentProperties_1.getPropertyValue ( "SaveVersionOnClose" )
|
|
sTemplate_1$ = aDocumentProperties_1.getPropertyValue ( "Template" )
|
|
bTemplateConfig_1 = aDocumentProperties_1.getPropertyValue ( "TemplateConfig" )
|
|
aTemplateDate_1 = aDocumentProperties_1.getPropertyValue ( "TemplateDate" )
|
|
sTemplateFileName_1$ = aDocumentProperties_1.getPropertyValue ( "TemplateFileName" )
|
|
sTheme_1$ = aDocumentProperties_1.getPropertyValue ( "Theme" )
|
|
sTitle_1$ = aDocumentProperties_1.getPropertyValue ( "Title" )
|
|
bUserData_1 = aDocumentProperties_1.getPropertyValue ( "UserData" )
|
|
|
|
' Besorgen der Werte und zwischenspeichern (bezogen auf Objekt 2)
|
|
sAuthor_2$ = aDocumentProperties_2.getPropertyValue ( "Author" )
|
|
bAutoloadEnabled_2 = aDocumentProperties_2.getPropertyValue ( "AutoloadEnabled" )
|
|
nAutoloadSecs_2% = aDocumentProperties_2.getPropertyValue ( "AutoloadSecs" )
|
|
sAutoLoadURL_2$ = aDocumentProperties_2.getPropertyValue ( "AutoloadURL" )
|
|
sBliendCopiesTo_2$ = aDocumentProperties_2.getPropertyValue ( "BlindCopiesTo" )
|
|
sCopiesTo_2$ = aDocumentProperties_2.getPropertyValue ( "CopiesTo" )
|
|
aCreationDate_2 = aDocumentProperties_2.getPropertyValue ( "CreationDate" )
|
|
sDefaultTarget_2$ = aDocumentProperties_2.getPropertyValue ( "DefaultTarget" )
|
|
sDescription_2$ = aDocumentProperties_2.getPropertyValue ( "Description" )
|
|
nEditingCycles_2% = aDocumentProperties_2.getPropertyValue ( "EditingCycles" )
|
|
nEditingDuration_2& = aDocumentProperties_2.getPropertyValue ( "EditingDuration" )
|
|
seqExtraData_2 = aDocumentProperties_2.getPropertyValue ( "ExtraData" )
|
|
sInReplyTo_2$ = aDocumentProperties_2.getPropertyValue ( "InReplyTo" )
|
|
bIsEncrypted_2 = aDocumentProperties_2.getPropertyValue ( "IsEncrypted" )
|
|
sKeywords_2$ = aDocumentProperties_2.getPropertyValue ( "Keywords" )
|
|
sMIMEType_2$ = aDocumentProperties_2.getPropertyValue ( "MIMEType" )
|
|
sModifiedBy_2$ = aDocumentProperties_2.getPropertyValue ( "ModifiedBy" )
|
|
aModifyDate_2 = aDocumentProperties_2.getPropertyValue ( "ModifyDate" )
|
|
sNewsgroups_2$ = aDocumentProperties_2.getPropertyValue ( "Newsgroups" )
|
|
sOriginal_2$ = aDocumentProperties_2.getPropertyValue ( "Original" )
|
|
bPortableGraphics_2 = aDocumentProperties_2.getPropertyValue ( "PortableGraphics" )
|
|
aPrintDate_2 = aDocumentProperties_2.getPropertyValue ( "PrintDate" )
|
|
sPrintedBy_2$ = aDocumentProperties_2.getPropertyValue ( "PrintedBy" )
|
|
nPriority_2% = aDocumentProperties_2.getPropertyValue ( "Priority" )
|
|
bQueryTemplate_2 = aDocumentProperties_2.getPropertyValue ( "QueryTemplate" )
|
|
sRecipient_2$ = aDocumentProperties_2.getPropertyValue ( "Recipient" )
|
|
sReferences_2$ = aDocumentProperties_2.getPropertyValue ( "References" )
|
|
sReplyTo_2$ = aDocumentProperties_2.getPropertyValue ( "ReplyTo" )
|
|
bSaveGraphicsCompressed_2 = aDocumentProperties_2.getPropertyValue ( "SaveGraphicsCompressed" )
|
|
bSaveOriginalGraphics_2 = aDocumentProperties_2.getPropertyValue ( "SaveOriginalGraphics" )
|
|
bSaveVersionOnClose_2 = aDocumentProperties_2.getPropertyValue ( "SaveVersionOnClose" )
|
|
sTemplate_2$ = aDocumentProperties_2.getPropertyValue ( "Template" )
|
|
bTemplateConfig_2 = aDocumentProperties_2.getPropertyValue ( "TemplateConfig" )
|
|
aTemplateDate_2 = aDocumentProperties_2.getPropertyValue ( "TemplateDate" )
|
|
sTemplateFileName_2$ = aDocumentProperties_2.getPropertyValue ( "TemplateFileName" )
|
|
sTheme_2$ = aDocumentProperties_2.getPropertyValue ( "Theme" )
|
|
sTitle_2$ = aDocumentProperties_2.getPropertyValue ( "Title" )
|
|
bUserData_2 = aDocumentProperties_2.getPropertyValue ( "UserData" )
|
|
|
|
' Als erwarteten Zielwert schon mal "Properties identisch" annehmen!!!
|
|
' F�r den Fall, das nur eine diesen Anspruch nicht erf�llt, wird der Wert einfach zur�ckgesetzt.
|
|
' Von da bleibt der neue Wert bestehen und zeigt an, da� sich mindestens eine Property ge�ndert hat!
|
|
CompareDocumentProperties = cEqual
|
|
|
|
' Dann die Werte vergleichen
|
|
if ( CompareOWString ( sAuthor_1$, sAuthor_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bAutoloadEnabled_1, bAutoloadEnabled_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareInt16 ( nAutoloadSecs_1%, nAutoloadSecs_2% ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sAutoLoadURL_1$, sAutoLoadURL_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sBliendCopiesTo_1$, sBliendCopiesTo_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sCopiesTo_1$, sCopiesTo_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareDateTime ( aCreationDate_1, aCreationDate_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sDefaultTarget_1$, sDefaultTarget_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sDescription_1$, sDescription_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareInt16 ( nEditingCycles_1%, nEditingCycles_2% ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareInt32 ( nEditingDuration_1&, nEditingDuration_2& ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareByteSequence( seqExtraData_1, seqExtraData_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sInReplyTo_1$, sInReplyTo_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bIsEncrypted_1, bIsEncrypted_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sKeywords_1$, sKeywords_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sMIMEType_1$, sMIMEType_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sModifiedBy_1$, sModifiedBy_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareDateTime ( aModifyDate_1, aModifyDate_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sNewsgroups_1$, sNewsgroups_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sOriginal_1$, sOriginal_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bPortableGraphics_1, bPortableGraphics_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareDateTime ( aPrintDate_1, aPrintDate_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sPrintedBy_1$, sPrintedBy_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareInt16 ( nPriority_1%, nPriority_2% ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bQueryTemplate_1, bQueryTemplate_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sRecipient_1$, sRecipient_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sReferences_1$, sReferences_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sReplyTo_1$, sReplyTo_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bSaveGraphicsCompressed_1, bSaveGraphicsCompressed_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bSaveOriginalGraphics_1, bSaveOriginalGraphics_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bSaveVersionOnClose_1, bSaveVersionOnClose_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sTemplate_1$, sTemplate_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bTemplateConfig_1, bTemplateConfig_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareDateTime ( aTemplateDate_1, aTemplateDate_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sTemplateFileName_1$, sTemplateFileName_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sTheme_1$, sTheme_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareOWString ( sTitle_1$, sTitle_2$ ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
elseif ( CompareBool ( bUserData_1, bUserData_2 ) = cDifferent ) then
|
|
CompareDocumentProperties = cDifferent
|
|
end if
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Wandelt eine Struktur des Types DateTime in einen formatierten String um
|
|
'----------------------------------------------------------------------------
|
|
Function DateTime2String ( aDateTime ) as String
|
|
|
|
stempString$ = ""
|
|
stempString$ = stempString$ + aDateTime.Day + "."
|
|
stempString$ = stempString$ + aDateTime.Month + "."
|
|
stempString$ = stempString$ + aDateTime.Year + " - "
|
|
stempString$ = stempString$ + aDateTime.Hours + ":"
|
|
stempString$ = stempString$ + aDateTime.Minutes + ":"
|
|
stempString$ = stempString$ + aDateTime.Seconds + ":"
|
|
stempString$ = stempString$ + aDateTime.HundredthSeconds + " Uhr"
|
|
|
|
DateTime2String = stempString$
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Wandelt eine Sequence von Bytes in einen formatierten String um
|
|
'----------------------------------------------------------------------------
|
|
Function ByteSequence2String ( seqByteSequence ) as String
|
|
|
|
nElementCount% = UBound ( seqByteSequence() )
|
|
|
|
if ( nElementCount% < 1 ) then
|
|
stempString$ = "leer"
|
|
else
|
|
stempString$ = "{"
|
|
for nCounter%=0 to nElementCount% step 1
|
|
stempString$ = stempString$ + seqByteSequence(nCounter%)
|
|
next nCounter%
|
|
stempString$ = stempString$ + "}"
|
|
end if
|
|
|
|
ByteSequence2String = stempString$
|
|
|
|
End Function
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsmethode: Zeigt die aktuellen Werte ALLER Properties an
|
|
'----------------------------------------------------------------------------
|
|
Sub ShowProperties ( aDocumentProperties )
|
|
|
|
' Besorgen der Werte und zwischenspeichern
|
|
sAuthor$ = aDocumentProperties.getPropertyValue ( "Author" )
|
|
bAutoloadEnabled = aDocumentProperties.getPropertyValue ( "AutoloadEnabled" )
|
|
nAutoloadSecs% = aDocumentProperties.getPropertyValue ( "AutoloadSecs" )
|
|
sAutoLoadURL$ = aDocumentProperties.getPropertyValue ( "AutoloadURL" )
|
|
sBliendCopiesTo$ = aDocumentProperties.getPropertyValue ( "BlindCopiesTo" )
|
|
sCopiesTo$ = aDocumentProperties.getPropertyValue ( "CopiesTo" )
|
|
dCreationDate = aDocumentProperties.getPropertyValue ( "CreationDate" )
|
|
sDefaultTarget$ = aDocumentProperties.getPropertyValue ( "DefaultTarget" )
|
|
sDescription$ = aDocumentProperties.getPropertyValue ( "Description" )
|
|
nEditingCycles% = aDocumentProperties.getPropertyValue ( "EditingCycles" )
|
|
nEditingDuration& = aDocumentProperties.getPropertyValue ( "EditingDuration" )
|
|
seqExtraData = aDocumentProperties.getPropertyValue ( "ExtraData" )
|
|
sInReplyTo$ = aDocumentProperties.getPropertyValue ( "InReplyTo" )
|
|
bIsEncrypted = aDocumentProperties.getPropertyValue ( "IsEncrypted" )
|
|
sKeywords$ = aDocumentProperties.getPropertyValue ( "Keywords" )
|
|
sMIMEType$ = aDocumentProperties.getPropertyValue ( "MIMEType" )
|
|
sModifiedBy$ = aDocumentProperties.getPropertyValue ( "ModifiedBy" )
|
|
dModifyDate = aDocumentProperties.getPropertyValue ( "ModifyDate" )
|
|
sNewsgroups$ = aDocumentProperties.getPropertyValue ( "Newsgroups" )
|
|
sOriginal$ = aDocumentProperties.getPropertyValue ( "Original" )
|
|
bPortableGraphics = aDocumentProperties.getPropertyValue ( "PortableGraphics" )
|
|
dPrintDate = aDocumentProperties.getPropertyValue ( "PrintDate" )
|
|
sPrintedBy$ = aDocumentProperties.getPropertyValue ( "PrintedBy" )
|
|
nPriority% = aDocumentProperties.getPropertyValue ( "Priority" )
|
|
bQueryTemplate = aDocumentProperties.getPropertyValue ( "QueryTemplate" )
|
|
sRecipient$ = aDocumentProperties.getPropertyValue ( "Recipient" )
|
|
sReferences$ = aDocumentProperties.getPropertyValue ( "References" )
|
|
sReplyTo$ = aDocumentProperties.getPropertyValue ( "ReplyTo" )
|
|
bSaveGraphicsCompressed = aDocumentProperties.getPropertyValue ( "SaveGraphicsCompressed" )
|
|
bSaveOriginalGraphics = aDocumentProperties.getPropertyValue ( "SaveOriginalGraphics" )
|
|
bSaveVersionOnClose = aDocumentProperties.getPropertyValue ( "SaveVersionOnClose" )
|
|
sTemplate$ = aDocumentProperties.getPropertyValue ( "Template" )
|
|
bTemplateConfig = aDocumentProperties.getPropertyValue ( "TemplateConfig" )
|
|
dTemplateDate = aDocumentProperties.getPropertyValue ( "TemplateDate" )
|
|
sTemplateFileName$ = aDocumentProperties.getPropertyValue ( "TemplateFileName" )
|
|
sTheme$ = aDocumentProperties.getPropertyValue ( "Theme" )
|
|
sTitle$ = aDocumentProperties.getPropertyValue ( "Title" )
|
|
bUserData = aDocumentProperties.getPropertyValue ( "UserData" )
|
|
|
|
' Eine Zeichenkette zusammenbasteln, welche die Werte formatiert darstellt.
|
|
sOutLine$ = "[OWString]" + chr$(9) + "Author" + chr$(9) + "= {" + chr$(9) + sAuthor$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "AutoloadEnabled" + chr$(9) + "= {" + chr$(9) + bAutoloadEnabled + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Int16]" + chr$(9) + "AutoloadSecs" + chr$(9) + "= {" + chr$(9) + nAutoloadSecs% + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "AutoLoadURL" + chr$(9) + "= {" + chr$(9) + sAutoLoadURL$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "BliendCopiesTo" + chr$(9) + "= {" + chr$(9) + sBliendCopiesTo$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "CopiesTo" + chr$(9) + "= {" + chr$(9) + sCopiesTo$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[DateTime]" + chr$(9) + "CreationDate" + chr$(9) + "= {" + chr$(9) + DateTime2String(dCreationDate) + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "DefaultTarget" + chr$(9) + "= {" + chr$(9) + sDefaultTarget$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "Description" + chr$(9) + "= {" + chr$(9) + sDescription$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Int16]" + chr$(9) + "EditingCycles" + chr$(9) + "= {" + chr$(9) + nEditingCycles% + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Int32]" + chr$(9) + "EditingDuration" + chr$(9) + "= {" + chr$(9) + nEditingDuration& + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[Sequence<Byte>]" + chr$(9) + "ExtraData" + chr$(9) + "= {" + chr$(9) + ByteSequence2String(seqExtraData) + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "InReplyTo" + chr$(9) + "= {" + chr$(9) + sInReplyTo$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "IsEncrypted" + chr$(9) + "= {" + chr$(9) + bIsEncrypted + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "Keywords" + chr$(9) + "= {" + chr$(9) + sKeywords$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "MIMEType" + chr$(9) + "= {" + chr$(9) + sMIMEType$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "ModifiedBy" + chr$(9) + "= {" + chr$(9) + sModifiedBy$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[DateTime]" + chr$(9) + "ModifyDate" + chr$(9) + "= {" + chr$(9) + DateTime2String(dModifyDate) + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "Newsgroups" + chr$(9) + "= {" + chr$(9) + sNewsgroups$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "Original" + chr$(9) + "= {" + chr$(9) + sOriginal$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "PortableGraphics" + chr$(9) + "= {" + chr$(9) + bPortableGraphics + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[DateTime]" + chr$(9) + "PrintDate" + chr$(9) + "= {" + chr$(9) + DateTime2String(dPrintDate) + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "PrintedBy" + chr$(9) + "= {" + chr$(9) + sPrintedBy$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Int16]" + chr$(9) + "Priority" + chr$(9) + "= {" + chr$(9) + nPriority% + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "QueryTemplate" + chr$(9) + "= {" + chr$(9) + bQueryTemplate + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "Recipient" + chr$(9) + "= {" + chr$(9) + sRecipient$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "References" + chr$(9) + "= {" + chr$(9) + sReferences$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "ReplyTo" + chr$(9) + "= {" + chr$(9) + sReplyTo$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "SaveGraphicsCompressed" + chr$(9) + "= {" + chr$(9) + bSaveGraphicsCompressed + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "SaveOriginalGraphics" + chr$(9) + "= {" + chr$(9) + bSaveOriginalGraphics + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "SaveVersionOnClose" + chr$(9) + "= {" + chr$(9) + bSaveVersionOnClose + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "Template" + chr$(9) + "= {" + chr$(9) + sTemplate$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "TemplateConfig" + chr$(9) + "= {" + chr$(9) + bTemplateConfig + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[DateTime]" + chr$(9) + "TemplateDate" + chr$(9) + "= {" + chr$(9) + DateTime2String(dTemplateDate) + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "TemplateFileName" + chr$(9) + "= {" + chr$(9) + sTemplateFileName$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "Theme" + chr$(9) + "= {" + chr$(9) + sTheme$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[OWString]" + chr$(9) + "Title" + chr$(9) + "= {" + chr$(9) + sTitle$ + "}" + chr$(13)
|
|
sOutLine$ = sOutLine$ + "[sal_Bool]" + chr$(9) + "UserData" + chr$(9) + "= {" + chr$(9) + bUserData + "}"
|
|
|
|
' Ausgabe der formatierten Zeichenkette
|
|
InfoMessage ( sOutLine$ )
|
|
End Sub
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsmethode: Zeigt die aktuellen Elemente des NameContainers an.
|
|
'----------------------------------------------------------------------------
|
|
Sub ShowNameContainer ( aDocumentProperties )
|
|
|
|
if ( aDocumentProperties.hasElements () = FALSE ) then
|
|
InfoMessage ( "Keine Elemente im NameContainer enthalten." )
|
|
Exit Sub
|
|
end if
|
|
|
|
aNameField = aDocumentProperties.getElementNames ()
|
|
if ( IsArray ( aNameField ) = FALSE ) then
|
|
ErrorMessage ( "getElementNames() .... Fehler (Es konnte keine Sequence bestimmt werden!)" )
|
|
Exit Sub
|
|
end if
|
|
nElementCount% = UBound ( aNameField () )
|
|
|
|
stempString$ = ""
|
|
for nCounter%=0 to nElementCount% step 1
|
|
stempString$ = "[" + nCounter% + "]"
|
|
stempString$ = stempString$ + chr$(9) + aNameField(nCounter%)
|
|
stempString$ = stempString$ + chr$(9) + "="
|
|
stempString$ = stempString$ + chr$(9) + aDocumentProperties.getByName ( aNameField(nCounter%) )
|
|
stempString$ = stempString$ + chr$(13)
|
|
next nCounter%
|
|
|
|
InfoMessage ( stempString$ )
|
|
|
|
End Sub
|
|
|
|
'----------------------------------------------------------------------------
|
|
' Hilfsfunktion: Ermittelt die Anzahl der im NameContainer enthaltenen Elemente.
|
|
'
|
|
' Returnwert = Anzahl der Elemente
|
|
'----------------------------------------------------------------------------
|
|
Function getNameContainerCount ( aDocumentProperties ) as Long
|
|
|
|
if ( aDocumentProperties.hasElements () = FALSE ) then
|
|
getNameContainerCount = 0
|
|
Exit Function
|
|
end if
|
|
|
|
aNameField = aDocumentProperties.getElementNames ()
|
|
nElementCount% = UBound ( aNameField () )
|
|
|
|
' Da die Zaehlung bei 0 beginnt, und der ermittelte Wert die obere Grenze darstellt,
|
|
' muss hier eine 1 draufgeschlagen werden.
|
|
getNameContainerCount = nElementCount% + 1
|
|
|
|
End Function |