|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.ole.win32.OleClientSite
OleClientSite provides a site to manage an embedded OLE Document within a container.
The OleClientSite provides the following capabilities:
This object implements the OLE Interfaces IUnknown, IOleClientSite, IAdviseSink, IOleInPlaceSite
Note that although this class is a subclass of Composite
,
it does not make sense to add Control
children to it,
or set a layout on it.
Field Summary | |
---|---|
protected org.eclipse.swt.internal.ole.win32.GUID |
appClsid
|
protected OleFrame |
frame
|
protected org.eclipse.swt.internal.ole.win32.IOleDocumentView |
objDocumentView
|
protected org.eclipse.swt.internal.ole.win32.IOleCommandTarget |
objIOleCommandTarget
|
protected org.eclipse.swt.internal.ole.win32.IOleInPlaceObject |
objIOleInPlaceObject
|
protected org.eclipse.swt.internal.ole.win32.IOleObject |
objIOleObject
|
protected org.eclipse.swt.internal.ole.win32.IUnknown |
objIUnknown
|
protected org.eclipse.swt.internal.ole.win32.IViewObject2 |
objIViewObject2
|
protected org.eclipse.swt.internal.ole.win32.IStorage |
tempStorage
|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
protected |
OleClientSite(Composite parent,
int style)
|
|
OleClientSite(Composite parent,
int style,
File file)
Create an OleClientSite child widget using the OLE Document type associated with the specified file. |
|
OleClientSite(Composite parent,
int style,
String progId)
Create an OleClientSite child widget to edit a blank document using the specified OLE Document application. |
|
OleClientSite(Composite parent,
int style,
String progId,
File file)
Create an OleClientSite child widget to edit the specified file using the specified OLE Document application. |
Method Summary | |
---|---|
protected void |
addObjectReferences()
|
protected int |
AddRef()
|
protected void |
createCOMInterfaces()
|
protected org.eclipse.swt.internal.ole.win32.IStorage |
createTempStorage()
|
void |
deactivateInPlaceClient()
Deactivates an active in-place object and discards the object's undo state. |
protected void |
disposeCOMInterfaces()
|
int |
doVerb(int verb)
Requests that the OLE Document or ActiveX Control perform an action; actions are almost always changes to the activation state. |
int |
exec(int cmdID,
int options,
Variant in,
Variant out)
Asks the OLE Document or ActiveX Control to execute a command from a standard list of commands. |
protected org.eclipse.swt.internal.ole.win32.GUID |
getClassID(String clientName)
|
Rectangle |
getIndent()
|
String |
getProgramID()
Returns the program ID of the OLE Document or ActiveX Control. |
protected int |
GetWindow(int phwnd)
|
boolean |
isDirty()
|
boolean |
isFocusControl()
Returns true if the receiver has the user-interface
focus, and false otherwise. |
protected int |
QueryInterface(int riid,
int ppvObject)
|
int |
queryStatus(int cmd)
Returns the status of the specified command. |
protected int |
Release()
|
protected void |
releaseObjectInterfaces()
|
boolean |
save(File file,
boolean includeOleInfo)
|
void |
setIndent(Rectangle newIndent)
|
void |
showProperties(String title)
Displays a dialog with the property information for this OLE Object. |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, computeSize, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected org.eclipse.swt.internal.ole.win32.GUID appClsid
protected OleFrame frame
protected org.eclipse.swt.internal.ole.win32.IUnknown objIUnknown
protected org.eclipse.swt.internal.ole.win32.IOleObject objIOleObject
protected org.eclipse.swt.internal.ole.win32.IViewObject2 objIViewObject2
protected org.eclipse.swt.internal.ole.win32.IOleInPlaceObject objIOleInPlaceObject
protected org.eclipse.swt.internal.ole.win32.IOleCommandTarget objIOleCommandTarget
protected org.eclipse.swt.internal.ole.win32.IOleDocumentView objDocumentView
protected org.eclipse.swt.internal.ole.win32.IStorage tempStorage
Constructor Detail |
protected OleClientSite(Composite parent, int style)
public OleClientSite(Composite parent, int style, File file)
parent
- a composite widget; must be an OleFramestyle
- the bitwise OR'ing of widget stylesfile
- the file that is to be opened in this OLE Document
IllegalArgumentException
- SWTException
- public OleClientSite(Composite parent, int style, String progId)
parent
- a composite widget; must be an OleFramestyle
- the bitwise OR'ing of widget stylesprogId
- the unique program identifier of am OLE Document application;
the value of the ProgID key or the value of the VersionIndependentProgID key specified
in the registry for the desired OLE Document (for example, the VersionIndependentProgID
for Word is Word.Document)
IllegalArgumentException
- SWTException
- public OleClientSite(Composite parent, int style, String progId, File file)
IMPORTANT: This method is not part of the public
API for OleClientSite
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
parent
- a composite widget; must be an OleFramestyle
- the bitwise OR'ing of widget stylesprogId
- the unique program identifier of am OLE Document application;
the value of the ProgID key or the value of the VersionIndependentProgID key specified
in the registry for the desired OLE Document (for example, the VersionIndependentProgID
for Word is Word.Document)file
- the file that is to be opened in this OLE Document
IllegalArgumentException
- SWTException
- Method Detail |
protected void addObjectReferences()
protected int AddRef()
protected void createCOMInterfaces()
protected org.eclipse.swt.internal.ole.win32.IStorage createTempStorage()
public void deactivateInPlaceClient()
protected void disposeCOMInterfaces()
public int doVerb(int verb)
verb
- the operation that is requested. This is one of the OLE.OLEIVERB_ values
public int exec(int cmdID, int options, Variant in, Variant out)
cmdID
- the ID of a command; these are the OLE.OLECMDID_ values - a small set of common
commandsoptions
- the optional flags; these are the OLE.OLECMDEXECOPT_ valuesin
- the argument for the commandout
- the return value of the command
protected org.eclipse.swt.internal.ole.win32.GUID getClassID(String clientName)
public Rectangle getIndent()
public String getProgramID()
protected int GetWindow(int phwnd)
public boolean isDirty()
public boolean isFocusControl()
Control
true
if the receiver has the user-interface
focus, and false
otherwise.
isFocusControl
in class Control
protected int QueryInterface(int riid, int ppvObject)
public int queryStatus(int cmd)
cmd
- the ID of a command; these are the OLE.OLECMDID_ values - a small set of common
commands
protected int Release()
protected void releaseObjectInterfaces()
public boolean save(File file, boolean includeOleInfo)
public void setIndent(Rectangle newIndent)
public void showProperties(String title)
title
- the name that will appear in the titlebar of the dialog
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.