List Info

Thread: css.awt.SystemPointer: undocumented values




css.awt.SystemPointer: undocumented values
user name
2007-10-12 11:20:16
Hello people,

this time, I think this an issue (may be "type:defect,
component: api, 
subcomponent: code [IDL source files]"):

Both the online API refrecence and the IDL file in the
source code 
(offapi/com/sun/star/awt) for the constants group
com.sun.star.awt.SystemPointer references up to 72
constants:

FROM com.sun.star.awt.SystemPointer.ARROW ( = 0 )
TO com.sun.star.awt.SystemPointer.CHAIN_NOTALLOWED ( = 71 )


Playing around with it [1], you can realize that we can
count up to 94 
(from 0 to 93), this at least on Windows (to try in other OS
I will have 
to boot my PC...).


For example, what we can call
com.sun.star.awt.SystemPointer.PIVOT_DEL 
(= 87) - regarding source/vcl/win/source/src/pivotdel.cur  -
is a mouse 
pointer for Calc's data pilot NOT documented [2].




[1] The following is a very simple implementation of
XMouseListener that 
increments the value of the constant everytime the mouse
enters a control:

         private int mousePointer = 0;
         //...
         public void mouseEntered(MouseEvent oEvent){
             System.out.println("Mouse entered!
Constant value= " + 
mousePointer);
             changeMousePointer( mousePointer++,
oEvent.Source );
         }

         public void mouseExited(MouseEvent oEvent) {
             changeMousePointer(SystemPointer.ARROW,
oEvent.Source );
         }

         private void changeMousePointer(
                 int aSystemPointer,
                 Object aControl){
             try {
                 XControl xControl = (XControl)
UnoRuntime.queryInterface(
                         XControl.class, aControl);
                 XWindowPeer xWinPeer = xControl.getPeer();
                 Object pointer;
                 pointer = xMCF.createInstanceWithContext(
                        
"com.sun.star.awt.Pointer", xCtxt);
                 com.sun.star.awt.XPointer xPointer = 
(com.sun.star.awt.XPointer)
                     UnoRuntime.queryInterface(
                         com.sun.star.awt.XPointer.class,
pointer);
                 xPointer.setType( aSystemPointer );
                 xWinPeer.setPointer(xPointer);

             } catch (com.sun.star.uno.Exception ex) {
                 ex.printStackTrace();
             }
         }

************************************************************
***********

[2] Alphabetic list of document ones:

com.sun.star.awt.SystemPointer.ARROW = 0
com.sun.star.awt.SystemPointer.CHAIN = 70
com.sun.star.awt.SystemPointer.CHAIN_NOTALLOWED = 71
com.sun.star.awt.SystemPointer.CHART = 65
com.sun.star.awt.SystemPointer.COPYDATA = 41
com.sun.star.awt.SystemPointer.COPYDATALINK = 44
com.sun.star.awt.SystemPointer.COPYFILE = 46
com.sun.star.awt.SystemPointer.COPYFILELINK = 49
com.sun.star.awt.SystemPointer.COPYFILES = 51
com.sun.star.awt.SystemPointer.CROOK = 36
com.sun.star.awt.SystemPointer.CROP = 37
com.sun.star.awt.SystemPointer.CROSS = 5
com.sun.star.awt.SystemPointer.DETECTIVE = 66
com.sun.star.awt.SystemPointer.DRAW_ARC = 57
com.sun.star.awt.SystemPointer.DRAW_BEZIER = 56
com.sun.star.awt.SystemPointer.DRAW_CAPTION = 64
com.sun.star.awt.SystemPointer.DRAW_CIRCLECUT = 59
com.sun.star.awt.SystemPointer.DRAW_CONNECT = 62
com.sun.star.awt.SystemPointer.DRAW_ELLIPSE = 60
com.sun.star.awt.SystemPointer.DRAW_FREEHAND = 61
com.sun.star.awt.SystemPointer.DRAW_LINE = 53
com.sun.star.awt.SystemPointer.DRAW_PIE = 58
com.sun.star.awt.SystemPointer.DRAW_POLYGON = 55
com.sun.star.awt.SystemPointer.DRAW_RECT = 54
com.sun.star.awt.SystemPointer.DRAW_TEXT = 63
com.sun.star.awt.SystemPointer.ESIZE = 10
com.sun.star.awt.SystemPointer.FILL = 31
com.sun.star.awt.SystemPointer.HAND = 27
com.sun.star.awt.SystemPointer.HELP = 4
com.sun.star.awt.SystemPointer.HSHEAR = 33
com.sun.star.awt.SystemPointer.HSIZEBAR = 25
com.sun.star.awt.SystemPointer.HSPLIT = 23
com.sun.star.awt.SystemPointer.INVISIBLE = 1
com.sun.star.awt.SystemPointer.LINKDATA = 42
com.sun.star.awt.SystemPointer.LINKFILE = 47
com.sun.star.awt.SystemPointer.MAGNIFY = 30
com.sun.star.awt.SystemPointer.MIRROR = 35
com.sun.star.awt.SystemPointer.MOVE = 6
com.sun.star.awt.SystemPointer.MOVEBEZIERWEIGHT = 39
com.sun.star.awt.SystemPointer.MOVEDATA = 40
com.sun.star.awt.SystemPointer.MOVEDATALINK = 43
com.sun.star.awt.SystemPointer.MOVEFILE = 45
com.sun.star.awt.SystemPointer.MOVEFILELINK = 48
com.sun.star.awt.SystemPointer.MOVEFILES = 50
com.sun.star.awt.SystemPointer.MOVEPOINT = 38
com.sun.star.awt.SystemPointer.NESIZE = 12
com.sun.star.awt.SystemPointer.NOTALLOWED = 52
com.sun.star.awt.SystemPointer.NSIZE = 7
com.sun.star.awt.SystemPointer.NWSIZE = 11
com.sun.star.awt.SystemPointer.PEN = 29
com.sun.star.awt.SystemPointer.PIVOT_COL = 67
com.sun.star.awt.SystemPointer.PIVOT_FIELD = 69
com.sun.star.awt.SystemPointer.PIVOT_ROW = 68
com.sun.star.awt.SystemPointer.REFHAND = 28
com.sun.star.awt.SystemPointer.ROTATE = 32
com.sun.star.awt.SystemPointer.SESIZE = 14
com.sun.star.awt.SystemPointer.SSIZE = 8
com.sun.star.awt.SystemPointer.SWSIZE = 13
com.sun.star.awt.SystemPointer.TEXT = 3
com.sun.star.awt.SystemPointer.VSHEAR = 34
com.sun.star.awt.SystemPointer.VSIZEBAR = 26
com.sun.star.awt.SystemPointer.VSPLIT = 24
com.sun.star.awt.SystemPointer.WAIT = 2
com.sun.star.awt.SystemPointer.WINDOW_ESIZE = 18
com.sun.star.awt.SystemPointer.WINDOW_NESIZE = 20
com.sun.star.awt.SystemPointer.WINDOW_NSIZE = 15
com.sun.star.awt.SystemPointer.WINDOW_NWSIZE = 19
com.sun.star.awt.SystemPointer.WINDOW_SESIZE = 22
com.sun.star.awt.SystemPointer.WINDOW_SSIZE = 16
com.sun.star.awt.SystemPointer.WINDOW_SWSIZE = 21
com.sun.star.awt.SystemPointer.WINDOW_WSIZE = 17
com.sun.star.awt.SystemPointer.WSIZE = 9


-- 
Ariel Constenla-Haile
La Plata, Argentina

ariel.constenla.hailegmail.com
arielarielconstenlahaile.com.ar

http://www
.arielconstenlahaile.com.ar/ooo/


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )