1 '**************************************************************************
2 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 '* Copyright 2008 by Sun Microsystems, Inc.
6 '* OpenOffice.org - a multi-platform office productivity suite
8 '* $RCSfile: declare.bas,v $
12 '* last change: $Author: jsi $ $Date: 2008-06-13 10:27:06 $
14 '* This file is part of OpenOffice.org.
16 '* OpenOffice.org is free software: you can redistribute it and/or modify
17 '* it under the terms of the GNU Lesser General Public License version 3
18 '* only, as published by the Free Software Foundation.
20 '* OpenOffice.org is distributed in the hope that it will be useful,
21 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
22 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 '* GNU Lesser General Public License version 3 for more details
24 '* (a copy is included in the LICENSE file that accompanied this code).
26 '* You should have received a copy of the GNU Lesser General Public License
27 '* version 3 along with OpenOffice.org. If not, see
28 '* <http://www.openoffice.org/license.html>
29 '* for a copy of the LGPLv3 License.
31 '/************************************************************************
33 '* owner : thorsten.bosbach@sun.com
35 '* short description : To get Help ID's from the office
37 '\*************************************************************************************
39 Ich_Moechte_Help_IDs_haben
40 ' Ich_Moechte_Die_Position_Und_Groesse_Eines_Dialoges_Haben ( ChaosDokument )
42 ' ! set the proper Kontext for teh Application in the subroutine !
43 ' Ich_Moechte_Die_Mausposition_Herausbekommen
47 sub Ich_Moechte_Help_IDs_haben
52 sub Ich_Moechte_Die_Position_Und_Groesse_Eines_Dialoges_Haben ( window
)
53 '/// Get Size an Position from dialogs ///'
55 Dim Px
: Dim Py
: Dim Sx
: Dim Sy
62 print
"x: " + Px
+ " y: " + Py
+ " x-: " + Sx
+ " y-: " + Sy
66 sub Ich_Moechte_Die_Mausposition_Herausbekommen
67 '/// Get Mouse Position ///'
69 ' Kontext "DocumentWriter"
70 ' DocumentWriter.DisplayPercent
73 ' Kontext "DocumentCalc"
74 ' DocumentCalc.DisplayPercent
77 ' Kontext "DocumentDraw"
78 ' DocumentDraw.DisplayPercent
81 ' Kontext "DocumentChart"
82 ' DocumentChart.DisplayPercent
86 use
"global\system\includes\declare.inc"
87 use
"global\system\includes\gvariabl.inc"