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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 import com.sun.star.beans.Property;
25 import com.sun.star.beans.PropertyValue;
26 import com.sun.star.reflection.XIdlMethod;
27 import com.sun.star.uno.Type;
28 
29 public interface XTreeControlProvider {
30 
31     public static String sTitle = "User defined";
32 
enableFilterElements(XUnoNode _oUnoNode)33     public String enableFilterElements(XUnoNode _oUnoNode);
34 
setSourceCode(String _sSourceCode)35     public void setSourceCode(String _sSourceCode);
36 
inspect(java.lang.Object _oUserDefinedObject, String _sTitle)37     public Object inspect(java.lang.Object _oUserDefinedObject, String _sTitle) throws com.sun.star.uno.RuntimeException;
38 
nodeInserted(XUnoNode _oParentNode, XUnoNode _oChildNode, int index)39     public void nodeInserted(XUnoNode _oParentNode, XUnoNode _oChildNode, int index);
40 
nodeChanged(XUnoNode _oNode)41     public void nodeChanged(XUnoNode _oNode);
42 
setNodeVisible(Object node, boolean v)43     public boolean setNodeVisible(Object node, boolean v);
44 
getSelectedNode()45     public XUnoNode getSelectedNode();
46 
getSelectedPath()47     public XTreePathProvider getSelectedPath();
48 
expandPath(XTreePathProvider xTreePathProvider)49     public void expandPath(XTreePathProvider xTreePathProvider) throws java.lang.ClassCastException;
50 
addTreeExpandListener()51     public void addTreeExpandListener();
52 
addInspectorPane(InspectorPane _oInspectorPane)53     public void addInspectorPane(InspectorPane _oInspectorPane);
54 
isPropertyNode(XUnoNode _oUnoNode)55     public boolean isPropertyNode(XUnoNode _oUnoNode);
56 
isMethodNode(XUnoNode _oUnoNode)57     public boolean isMethodNode(XUnoNode _oUnoNode);
58 
isFacetteNode(XUnoNode _oUnoNode)59     public boolean isFacetteNode(XUnoNode _oUnoNode);
60 
addUnoNode(Object _oUnoObject)61     public XUnoNode addUnoNode(Object _oUnoObject);
62 
addUnoNode(Object _oUnoObject, Type _aType)63     public XUnoNode addUnoNode(Object _oUnoObject, Type _aType);
64 
addUnoFacetteNode(XUnoNode _oParentNode, String _sNodeDescription, Object _oUnoObject)65     public XUnoFacetteNode addUnoFacetteNode(XUnoNode _oParentNode, String _sNodeDescription, Object _oUnoObject);
66 
addMethodNode(Object _objectElement, XIdlMethod _xIdlMethod)67     public XUnoMethodNode addMethodNode(Object _objectElement, XIdlMethod _xIdlMethod);
68 
addUnoPropertyNodeWithName(Property _aProperty)69     public XUnoPropertyNode addUnoPropertyNodeWithName(Property _aProperty);
70 
addUnoPropertyNodeWithHandle(Property _aProperty)71     public XUnoPropertyNode addUnoPropertyNodeWithHandle(Property _aProperty);
72 
addUnoPropertyNodeWithType(Property _aProperty)73     public XUnoPropertyNode addUnoPropertyNodeWithType(Property _aProperty);
74 
addUnoPropertyNodeWithAttributesDescription(Property _aProperty)75     public XUnoPropertyNode addUnoPropertyNodeWithAttributesDescription(Property _aProperty);
76 
addUnoPropertyNode(Object _oUnoObject, Property _aProperty)77     public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, Property _aProperty);
78 
addUnoPropertyNode(Object _oUnoObject, PropertyValue _aPropertyValue, Object _oReturnObject)79     public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, PropertyValue _aPropertyValue, Object _oReturnObject);
80 
addUnoPropertyNode(Object _oUnoObject, Property _aProperty, Object _oUnoReturnObject)81     public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, Property _aProperty, Object _oUnoReturnObject);
82 }
83