JavaWindowPeerFake.java (113d1ee9) JavaWindowPeerFake.java (16e97b58)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 18 unchanged lines hidden (view full) ---

27
28import com.sun.star.uno.*;
29import com.sun.star.lang.*;
30import com.sun.star.awt.*;
31import com.sun.star.util.*;
32import com.sun.star.beans.*;
33import com.sun.star.container.*;
34
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 18 unchanged lines hidden (view full) ---

27
28import com.sun.star.uno.*;
29import com.sun.star.lang.*;
30import com.sun.star.awt.*;
31import com.sun.star.util.*;
32import com.sun.star.beans.*;
33import com.sun.star.container.*;
34
35/** <p>Class to pass the system window handle to the OpenOffice.org toolkit.</p>
35/** <p>Class to pass the system window handle to the OpenOffice toolkit.</p>
36 */
37class JavaWindowPeerFake implements XSystemDependentWindowPeer,
38 XWindowPeer
39{
40 NativeView maView;
41
42 public JavaWindowPeerFake( NativeView aNative )
43 {
44 maView = aNative;
45 }
46
47 // ____________________
48 /**
36 */
37class JavaWindowPeerFake implements XSystemDependentWindowPeer,
38 XWindowPeer
39{
40 NativeView maView;
41
42 public JavaWindowPeerFake( NativeView aNative )
43 {
44 maView = aNative;
45 }
46
47 // ____________________
48 /**
49 * Implementation of XSystemDependentWindowPeer ( that's all we really need ).
50 * This method is called back from the Office toolkit to retrieve the system data.
49 * Implementation of XSystemDependentWindowPeer (that's all we really need).
50 * This method is called back from the OpenOffice toolkit to retrieve the system data.
51 */
52 public java.lang.Object getWindowHandle( byte[] aProcessId, short aSystem )
53 throws com.sun.star.uno.RuntimeException
54 {
55 Object aReturn = null;
56 if( aSystem == maView.maSystem )
57 aReturn = ( Object )maView.maHandle;
58
59 return aReturn;
60 }
61
51 */
52 public java.lang.Object getWindowHandle( byte[] aProcessId, short aSystem )
53 throws com.sun.star.uno.RuntimeException
54 {
55 Object aReturn = null;
56 if( aSystem == maView.maSystem )
57 aReturn = ( Object )maView.maHandle;
58
59 return aReturn;
60 }
61
62 /** not really neaded.
62 /** not really needed.
63 */
64 public XToolkit getToolkit()
65 throws com.sun.star.uno.RuntimeException
66 {
67 return null;
68 }
69
70 public void setPointer( XPointer xPointer )

--- 35 unchanged lines hidden ---
63 */
64 public XToolkit getToolkit()
65 throws com.sun.star.uno.RuntimeException
66 {
67 return null;
68 }
69
70 public void setPointer( XPointer xPointer )

--- 35 unchanged lines hidden ---