1ef39d40dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3ef39d40dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4ef39d40dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5ef39d40dSAndrew Rist  * distributed with this work for additional information
6ef39d40dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7ef39d40dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8ef39d40dSAndrew Rist  * "License"); you may not use this file except in compliance
9ef39d40dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10ef39d40dSAndrew Rist  *
11ef39d40dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12ef39d40dSAndrew Rist  *
13ef39d40dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14ef39d40dSAndrew Rist  * software distributed under the License is distributed on an
15ef39d40dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16ef39d40dSAndrew Rist  * KIND, either express or implied.  See the License for the
17ef39d40dSAndrew Rist  * specific language governing permissions and limitations
18ef39d40dSAndrew Rist  * under the License.
19ef39d40dSAndrew Rist  *
20ef39d40dSAndrew Rist  *************************************************************/
21ef39d40dSAndrew Rist 
22ef39d40dSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir package ifc.frame;
25cdf0e10cSrcweir 
26d026be40SAriel Constenla-Haile import com.sun.star.graphic.XGraphic;
27cdf0e10cSrcweir import com.sun.star.awt.XPopupMenu;
28d026be40SAriel Constenla-Haile import com.sun.star.awt.KeyEvent;
29cdf0e10cSrcweir import com.sun.star.frame.XPopupMenuController;
30cdf0e10cSrcweir import lib.MultiMethodTest;
31cdf0e10cSrcweir 
32cdf0e10cSrcweir public class _XPopupMenuController extends MultiMethodTest {
33cdf0e10cSrcweir     public XPopupMenuController oObj = null;
34cdf0e10cSrcweir 
before()35cdf0e10cSrcweir     public void before() {
36cdf0e10cSrcweir 
37cdf0e10cSrcweir     }
38cdf0e10cSrcweir 
_setPopupMenu()39cdf0e10cSrcweir     public void _setPopupMenu() {
40cdf0e10cSrcweir         XPopupMenu xMenu = new PopupMenuImpl();
41cdf0e10cSrcweir         oObj.setPopupMenu(xMenu);
42cdf0e10cSrcweir         tRes.tested("setPopupMenu()", true);
43cdf0e10cSrcweir     }
44cdf0e10cSrcweir 
_updatePopupMenu()45cdf0e10cSrcweir     public void _updatePopupMenu() {
46cdf0e10cSrcweir         oObj.updatePopupMenu();
47cdf0e10cSrcweir         tRes.tested("updatePopupMenu()", true);
48cdf0e10cSrcweir     }
49cdf0e10cSrcweir 
50cdf0e10cSrcweir     private class PopupMenuImpl implements XPopupMenu {
51cdf0e10cSrcweir 
addMenuListener(com.sun.star.awt.XMenuListener xMenuListener)52cdf0e10cSrcweir         public void addMenuListener(com.sun.star.awt.XMenuListener xMenuListener) {
53cdf0e10cSrcweir             System.out.println("addMenuListener called.");
54cdf0e10cSrcweir         }
55cdf0e10cSrcweir 
checkItem(short param, boolean param1)56cdf0e10cSrcweir         public void checkItem(short param, boolean param1) {
57cdf0e10cSrcweir             System.out.println("checkItemListener called.");
58cdf0e10cSrcweir         }
59cdf0e10cSrcweir 
enableItem(short param, boolean param1)60cdf0e10cSrcweir         public void enableItem(short param, boolean param1) {
61cdf0e10cSrcweir             System.out.println("enableItem called.");
62cdf0e10cSrcweir         }
63cdf0e10cSrcweir 
execute(com.sun.star.awt.XWindowPeer xWindowPeer, com.sun.star.awt.Rectangle pos, short param)64*31d843d7SAriel Constenla-Haile         public short execute(com.sun.star.awt.XWindowPeer xWindowPeer, com.sun.star.awt.Rectangle pos, short param) {
65cdf0e10cSrcweir             System.out.println("execute called.");
66cdf0e10cSrcweir             return 0;
67cdf0e10cSrcweir         }
68cdf0e10cSrcweir 
getDefaultItem()69cdf0e10cSrcweir         public short getDefaultItem() {
70cdf0e10cSrcweir             System.out.println("getDefaultItem called.");
71cdf0e10cSrcweir             return 0;
72cdf0e10cSrcweir         }
73cdf0e10cSrcweir 
getItemCount()74cdf0e10cSrcweir         public short getItemCount() {
75cdf0e10cSrcweir             System.out.println("getItemCount called.");
76cdf0e10cSrcweir             return 0;
77cdf0e10cSrcweir         }
78cdf0e10cSrcweir 
getItemId(short param)79cdf0e10cSrcweir         public short getItemId(short param) {
80cdf0e10cSrcweir             System.out.println("getItemId called.");
81cdf0e10cSrcweir             return 0;
82cdf0e10cSrcweir         }
83cdf0e10cSrcweir 
getItemPos(short param)84cdf0e10cSrcweir         public short getItemPos(short param) {
85cdf0e10cSrcweir             System.out.println("getItemPos called.");
86cdf0e10cSrcweir             return 0;
87cdf0e10cSrcweir         }
88cdf0e10cSrcweir 
getItemText(short param)89cdf0e10cSrcweir         public String getItemText(short param) {
90cdf0e10cSrcweir             System.out.println("getItemText called.");
91cdf0e10cSrcweir             return "Hi.";
92cdf0e10cSrcweir         }
93cdf0e10cSrcweir 
getPopupMenu(short param)94cdf0e10cSrcweir         public com.sun.star.awt.XPopupMenu getPopupMenu(short param) {
95cdf0e10cSrcweir             System.out.println("getPopupMenu called.");
96cdf0e10cSrcweir             return this;
97cdf0e10cSrcweir         }
98cdf0e10cSrcweir 
insertItem(short param, String str, short param2, short param3)99cdf0e10cSrcweir         public void insertItem(short param, String str, short param2, short param3) {
100cdf0e10cSrcweir             System.out.println("insertItem called.");
101cdf0e10cSrcweir         }
102cdf0e10cSrcweir 
insertSeparator(short param)103cdf0e10cSrcweir         public void insertSeparator(short param) {
104cdf0e10cSrcweir             System.out.println("insertSeparator called.");
105cdf0e10cSrcweir         }
106cdf0e10cSrcweir 
isItemChecked(short param)107cdf0e10cSrcweir         public boolean isItemChecked(short param) {
108cdf0e10cSrcweir             System.out.println("isItemChecked called.");
109cdf0e10cSrcweir             return false;
110cdf0e10cSrcweir         }
111cdf0e10cSrcweir 
isItemEnabled(short param)112cdf0e10cSrcweir         public boolean isItemEnabled(short param) {
113cdf0e10cSrcweir             System.out.println("isItemEnabled called.");
114cdf0e10cSrcweir             return false;
115cdf0e10cSrcweir         }
116cdf0e10cSrcweir 
removeItem(short param, short param1)117cdf0e10cSrcweir         public void removeItem(short param, short param1) {
118cdf0e10cSrcweir             System.out.println("removeItem called.");
119cdf0e10cSrcweir         }
120cdf0e10cSrcweir 
removeMenuListener(com.sun.star.awt.XMenuListener xMenuListener)121cdf0e10cSrcweir         public void removeMenuListener(com.sun.star.awt.XMenuListener xMenuListener) {
122cdf0e10cSrcweir             System.out.println("removeMenuListener called.");
123cdf0e10cSrcweir         }
124cdf0e10cSrcweir 
setDefaultItem(short param)125cdf0e10cSrcweir         public void setDefaultItem(short param) {
126cdf0e10cSrcweir             System.out.println("setDefaultItem called.");
127cdf0e10cSrcweir         }
128cdf0e10cSrcweir 
setItemText(short param, String str)129cdf0e10cSrcweir         public void setItemText(short param, String str) {
130cdf0e10cSrcweir             System.out.println("setItemText called.");
131cdf0e10cSrcweir         }
132cdf0e10cSrcweir 
setPopupMenu(short param, com.sun.star.awt.XPopupMenu xPopupMenu)133cdf0e10cSrcweir         public void setPopupMenu(short param, com.sun.star.awt.XPopupMenu xPopupMenu) {
134cdf0e10cSrcweir             System.out.println("setPopupMenu called.");
135cdf0e10cSrcweir         }
136d026be40SAriel Constenla-Haile 
getItemImage(short param )137d026be40SAriel Constenla-Haile         public XGraphic getItemImage(short param ) {
138d026be40SAriel Constenla-Haile             System.out.println("getItemImage called.");
139d026be40SAriel Constenla-Haile             return null;
140d026be40SAriel Constenla-Haile         }
141d026be40SAriel Constenla-Haile 
setItemImage(short param, XGraphic param1, boolean param2 )142d026be40SAriel Constenla-Haile         public void setItemImage(short param, XGraphic param1, boolean param2 ) {
143d026be40SAriel Constenla-Haile             System.out.println("setItemImage called.");
144d026be40SAriel Constenla-Haile         }
145d026be40SAriel Constenla-Haile 
getAcceleratorKeyEvent(short param )146d026be40SAriel Constenla-Haile         public KeyEvent getAcceleratorKeyEvent(short param ) {
147d026be40SAriel Constenla-Haile             System.out.println("getAcceleratorKeyEvent called.");
148d026be40SAriel Constenla-Haile             return new KeyEvent();
149d026be40SAriel Constenla-Haile         }
150d026be40SAriel Constenla-Haile 
setAcceleratorKeyEvent(short param, KeyEvent param1 )151d026be40SAriel Constenla-Haile         public void setAcceleratorKeyEvent(short param, KeyEvent param1 ) {
152d026be40SAriel Constenla-Haile             System.out.println("setAcceleratorKeyEvent called.");
153d026be40SAriel Constenla-Haile         }
154d026be40SAriel Constenla-Haile 
endExecute()155d026be40SAriel Constenla-Haile         public void endExecute() {
156d026be40SAriel Constenla-Haile             System.out.println("endExecute called.");
157d026be40SAriel Constenla-Haile         }
158d026be40SAriel Constenla-Haile 
isInExecute()159d026be40SAriel Constenla-Haile         public boolean isInExecute() {
160d026be40SAriel Constenla-Haile             System.out.println("isInExecute called.");
161d026be40SAriel Constenla-Haile             return false;
162d026be40SAriel Constenla-Haile         }
163d026be40SAriel Constenla-Haile 
isPopupMenu()164d026be40SAriel Constenla-Haile         public boolean isPopupMenu() {
165d026be40SAriel Constenla-Haile             System.out.println("isPopupMenu called.");
166d026be40SAriel Constenla-Haile             return true;
167d026be40SAriel Constenla-Haile         }
168d026be40SAriel Constenla-Haile 
getTipHelpText(short param )169d026be40SAriel Constenla-Haile         public String getTipHelpText(short param ) {
170d026be40SAriel Constenla-Haile             System.out.println("getTipHelpText called.");
171d026be40SAriel Constenla-Haile             return null;
172d026be40SAriel Constenla-Haile         }
173d026be40SAriel Constenla-Haile 
setTipHelpText(short param, String param1 )174d026be40SAriel Constenla-Haile         public void setTipHelpText(short param, String param1 ) {
175d026be40SAriel Constenla-Haile             System.out.println("setTipHelpText called.");
176d026be40SAriel Constenla-Haile         }
177d026be40SAriel Constenla-Haile 
getHelpText(short param )178d026be40SAriel Constenla-Haile         public String getHelpText(short param ) {
179d026be40SAriel Constenla-Haile             System.out.println("getHelpText called.");
180d026be40SAriel Constenla-Haile             return null;
181d026be40SAriel Constenla-Haile         }
182d026be40SAriel Constenla-Haile 
setHelpText(short param, String param1 )183d026be40SAriel Constenla-Haile         public void setHelpText(short param, String param1 ) {
184d026be40SAriel Constenla-Haile             System.out.println("setHelpText called.");
185d026be40SAriel Constenla-Haile         }
186d026be40SAriel Constenla-Haile 
getHelpCommand(short param )187d026be40SAriel Constenla-Haile         public String getHelpCommand(short param ) {
188d026be40SAriel Constenla-Haile             System.out.println("getHelpCommand called.");
189d026be40SAriel Constenla-Haile             return null;
190d026be40SAriel Constenla-Haile         }
191d026be40SAriel Constenla-Haile 
setHelpCommand(short param, String param1 )192d026be40SAriel Constenla-Haile         public void setHelpCommand(short param, String param1 ) {
193d026be40SAriel Constenla-Haile             System.out.println("setHelpCommand called.");
194d026be40SAriel Constenla-Haile         }
195d026be40SAriel Constenla-Haile 
getCommand(short param )196d026be40SAriel Constenla-Haile         public String getCommand(short param ) {
197d026be40SAriel Constenla-Haile             System.out.println("getCommand called.");
198d026be40SAriel Constenla-Haile             return null;
199d026be40SAriel Constenla-Haile         }
200d026be40SAriel Constenla-Haile 
setCommand(short param, String param1 )201d026be40SAriel Constenla-Haile         public void setCommand(short param, String param1 ) {
202d026be40SAriel Constenla-Haile             System.out.println("setCommand called.");
203d026be40SAriel Constenla-Haile         }
204d026be40SAriel Constenla-Haile 
enableAutoMnemonics(boolean param )205d026be40SAriel Constenla-Haile         public void enableAutoMnemonics(boolean param ) {
206d026be40SAriel Constenla-Haile             System.out.println("enableAutoMnemonics called.");
207d026be40SAriel Constenla-Haile         }
208d026be40SAriel Constenla-Haile 
hideDisabledEntries(boolean param )209d026be40SAriel Constenla-Haile         public void hideDisabledEntries(boolean param ) {
210d026be40SAriel Constenla-Haile             System.out.println("hideDisabledEntries called.");
211d026be40SAriel Constenla-Haile         }
212d026be40SAriel Constenla-Haile 
getItemType(short param )213d026be40SAriel Constenla-Haile         public com.sun.star.awt.MenuItemType getItemType(short param ) {
214d026be40SAriel Constenla-Haile             System.out.println("getItemType called.");
215d026be40SAriel Constenla-Haile             return com.sun.star.awt.MenuItemType.DONTKNOW;
216d026be40SAriel Constenla-Haile         }
217d026be40SAriel Constenla-Haile 
setItemType(com.sun.star.awt.MenuItemType param )218d026be40SAriel Constenla-Haile         public void setItemType(com.sun.star.awt.MenuItemType param ) {
219d026be40SAriel Constenla-Haile             System.out.println("setItemType called.");
220d026be40SAriel Constenla-Haile         }
221d026be40SAriel Constenla-Haile 
clear()222d026be40SAriel Constenla-Haile         public void clear() {
223d026be40SAriel Constenla-Haile             System.out.println("clear called.");
224d026be40SAriel Constenla-Haile         }
225cdf0e10cSrcweir     }
226cdf0e10cSrcweir }
227