com.jniwrapper.win32.automation
Class OleClientSiteImpl
java.lang.Object
com.jniwrapper.win32.com.server.IUnknownServer
com.jniwrapper.win32.automation.OleClientSiteImpl
- All Implemented Interfaces:
- AutoDeleteParameter, IAdviseSink, IOleClientSite, IOleCommandTarget, IOleDocumentSite, IOleInPlaceFrame, IOleInPlaceSite, IOleInPlaceUIWindow, IOleWindow, IUnknown
- public class OleClientSiteImpl
- extends IUnknownServer
- implements IOleClientSite, IOleInPlaceSite, IOleDocumentSite, IOleInPlaceFrame, IOleCommandTarget, IAdviseSink
This is the base implementation of OleClientSite Java COM server which is used by OleContainer
class for COM embedding.
If you need to add an additional functionality to OleContainer class then you need to derive your class from this one and implement the required COM interfaces.
Method Summary |
void |
activateMe(IOleDocumentView pViewToActivate)
|
void |
canInPlaceActivate()
|
void |
contextSensitiveHelp(VariantBool fEnterMode)
|
void |
deactivateAndUndo()
|
void |
discardUndoState()
|
void |
enableModeless(VariantBool fEnable)
|
void |
exec(GUID pguidCmdGroup,
Int32 nCmdID,
OleCmdExecOpt nCmdexecopt,
Variant pvaIn,
Variant pvaOut)
|
Rect |
getBorder()
|
IOleContainer |
getContainer()
|
IMoniker |
getMoniker(OleGetMoniker dwAssign,
OleWhichMk dwWhichMoniker)
|
protected OleContainer |
getOleContainer()
|
Wnd |
getWindow()
|
void |
getWindowContext(IOleInPlaceFrame ppFrame,
IOleInPlaceUIWindow ppDoc,
Rect lprcPosRect,
Rect lprcClipRect,
OleInplaceFrameInfo lpFrameInfo)
|
void |
insertMenus(Int32 hmenuShared,
OleMenuGroupWidths lpMenuWidths)
|
void |
onClose()
|
void |
onDataChange(FormatEtc pformatetc,
StgMedium pStgmed)
|
void |
onInPlaceActivate()
|
void |
onInPlaceDeactivate()
|
void |
onPosRectChange(Rect lprcPosRect)
|
void |
onRename(IMoniker pmk)
|
void |
onSave()
|
void |
onShowWindow(VariantBool fShow)
|
void |
onUIActivate()
|
void |
onUIDeactivate(VariantBool fUndoable)
|
void |
onViewChange(DvAspect dwAspect,
Int32 lindex)
|
void |
queryStatus(GUID pguidCmdGroup,
Int32 cCmds,
OleCmd prgCmds,
OleCmdText pCmdText)
|
void |
removeMenus(Int32 hmenuShared)
|
void |
requestBorderSpace(Rect pborderwidths)
|
void |
requestNewObjectLayout()
|
void |
saveObject()
|
void |
scroll(Int32 scrollX,
Int32 scrollY)
|
void |
setActiveObject(IOleInPlaceActiveObject pActiveObject,
OleStr pszObjName)
|
void |
setBorderSpace(Rect pborderwidths)
|
void |
setMenu(Int32 hmenuShared,
Int32 holemenu,
Int32 hwndActiveObject)
|
protected void |
setOleContainer(OleContainer oleContainer)
|
void |
setStatusText(OleStr pszStatusText)
|
void |
showObject()
|
void |
translateAccelerator(Msg lpmsg,
Int16 wID)
|
void |
updateObjectRect(Rect lprcPosRect)
|
Methods inherited from class com.jniwrapper.win32.com.server.IUnknownServer |
addRef, addRefAggregated, create, destroy, doDestroy, doQueryInterface, getClassImpl, getRefCount, isAutoDelete, isNull, queryInterface, queryInterfaceAggregated, release, releaseAggregated, setAutoDelete, setNull |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OleClientSiteImpl
public OleClientSiteImpl(CoClassMetaInfo classImpl)
activateMe
public void activateMe(IOleDocumentView pViewToActivate)
throws ComException
- Specified by:
activateMe
in interface IOleDocumentSite
- Parameters:
pViewToActivate
- [in]
- Throws:
ComException
exec
public void exec(GUID pguidCmdGroup,
Int32 nCmdID,
OleCmdExecOpt nCmdexecopt,
Variant pvaIn,
Variant pvaOut)
throws ComException
- Specified by:
exec
in interface IOleCommandTarget
- Parameters:
pguidCmdGroup
- [in]
nCmdID
- [in]
nCmdexecopt
- [in]
pvaIn
- [in]
pvaOut
- [out]
- Throws:
ComException
queryStatus
public void queryStatus(GUID pguidCmdGroup,
Int32 cCmds,
OleCmd prgCmds,
OleCmdText pCmdText)
throws ComException
- Specified by:
queryStatus
in interface IOleCommandTarget
- Parameters:
pguidCmdGroup
- [in]
cCmds
- [in]
prgCmds
- [in,out]
pCmdText
- [in,out]
- Throws:
ComException
canInPlaceActivate
public void canInPlaceActivate()
throws ComException
- Specified by:
canInPlaceActivate
in interface IOleInPlaceSite
- Throws:
ComException
onInPlaceActivate
public void onInPlaceActivate()
throws ComException
- Specified by:
onInPlaceActivate
in interface IOleInPlaceSite
- Throws:
ComException
onUIActivate
public void onUIActivate()
throws ComException
- Specified by:
onUIActivate
in interface IOleInPlaceSite
- Throws:
ComException
getWindowContext
public void getWindowContext(IOleInPlaceFrame ppFrame,
IOleInPlaceUIWindow ppDoc,
Rect lprcPosRect,
Rect lprcClipRect,
OleInplaceFrameInfo lpFrameInfo)
throws ComException
- Specified by:
getWindowContext
in interface IOleInPlaceSite
- Parameters:
ppFrame
- [out]
ppDoc
- [out]
lprcPosRect
- [out]
lprcClipRect
- [out]
lpFrameInfo
- [out]
- Throws:
ComException
scroll
public void scroll(Int32 scrollX,
Int32 scrollY)
throws ComException
- Specified by:
scroll
in interface IOleInPlaceSite
- Parameters:
scrollX
- [in]
scrollY
- [in]
- Throws:
ComException
onUIDeactivate
public void onUIDeactivate(VariantBool fUndoable)
throws ComException
- Specified by:
onUIDeactivate
in interface IOleInPlaceSite
- Parameters:
fUndoable
- [in]
- Throws:
ComException
onInPlaceDeactivate
public void onInPlaceDeactivate()
throws ComException
- Specified by:
onInPlaceDeactivate
in interface IOleInPlaceSite
- Throws:
ComException
discardUndoState
public void discardUndoState()
throws ComException
- Specified by:
discardUndoState
in interface IOleInPlaceSite
- Throws:
ComException
deactivateAndUndo
public void deactivateAndUndo()
throws ComException
- Specified by:
deactivateAndUndo
in interface IOleInPlaceSite
- Throws:
ComException
onPosRectChange
public void onPosRectChange(Rect lprcPosRect)
throws ComException
- Specified by:
onPosRectChange
in interface IOleInPlaceSite
- Parameters:
lprcPosRect
- [in]
- Throws:
ComException
getWindow
public Wnd getWindow()
throws ComException
- Specified by:
getWindow
in interface IOleWindow
- Throws:
ComException
contextSensitiveHelp
public void contextSensitiveHelp(VariantBool fEnterMode)
throws ComException
- Specified by:
contextSensitiveHelp
in interface IOleWindow
- Parameters:
fEnterMode
- [in]
- Throws:
ComException
updateObjectRect
public void updateObjectRect(Rect lprcPosRect)
saveObject
public void saveObject()
throws ComException
- Specified by:
saveObject
in interface IOleClientSite
- Throws:
ComException
getMoniker
public IMoniker getMoniker(OleGetMoniker dwAssign,
OleWhichMk dwWhichMoniker)
throws ComException
- Specified by:
getMoniker
in interface IOleClientSite
- Parameters:
dwAssign
- [in]
dwWhichMoniker
- [in]
- Throws:
ComException
getContainer
public IOleContainer getContainer()
throws ComException
- Specified by:
getContainer
in interface IOleClientSite
- Throws:
ComException
showObject
public void showObject()
throws ComException
- Specified by:
showObject
in interface IOleClientSite
- Throws:
ComException
onShowWindow
public void onShowWindow(VariantBool fShow)
throws ComException
- Specified by:
onShowWindow
in interface IOleClientSite
- Parameters:
fShow
- [in]
- Throws:
ComException
requestNewObjectLayout
public void requestNewObjectLayout()
throws ComException
- Specified by:
requestNewObjectLayout
in interface IOleClientSite
- Throws:
ComException
insertMenus
public void insertMenus(Int32 hmenuShared,
OleMenuGroupWidths lpMenuWidths)
throws ComException
- Specified by:
insertMenus
in interface IOleInPlaceFrame
- Parameters:
hmenuShared
- [in]
lpMenuWidths
- [in,out]
- Throws:
ComException
setMenu
public void setMenu(Int32 hmenuShared,
Int32 holemenu,
Int32 hwndActiveObject)
throws ComException
- Specified by:
setMenu
in interface IOleInPlaceFrame
- Parameters:
hmenuShared
- [in]
holemenu
- [in]
hwndActiveObject
- [in]
- Throws:
ComException
removeMenus
public void removeMenus(Int32 hmenuShared)
throws ComException
- Specified by:
removeMenus
in interface IOleInPlaceFrame
- Parameters:
hmenuShared
- [in]
- Throws:
ComException
setStatusText
public void setStatusText(OleStr pszStatusText)
throws ComException
- Specified by:
setStatusText
in interface IOleInPlaceFrame
- Parameters:
pszStatusText
- [in]
- Throws:
ComException
enableModeless
public void enableModeless(VariantBool fEnable)
throws ComException
- Specified by:
enableModeless
in interface IOleInPlaceFrame
- Parameters:
fEnable
- [in]
- Throws:
ComException
translateAccelerator
public void translateAccelerator(Msg lpmsg,
Int16 wID)
throws ComException
- Specified by:
translateAccelerator
in interface IOleInPlaceFrame
- Parameters:
lpmsg
- [in]
wID
- [in]
- Throws:
ComException
getBorder
public Rect getBorder()
throws ComException
- Specified by:
getBorder
in interface IOleInPlaceUIWindow
- Throws:
ComException
requestBorderSpace
public void requestBorderSpace(Rect pborderwidths)
throws ComException
- Specified by:
requestBorderSpace
in interface IOleInPlaceUIWindow
- Parameters:
pborderwidths
- [in]
- Throws:
ComException
setBorderSpace
public void setBorderSpace(Rect pborderwidths)
throws ComException
- Specified by:
setBorderSpace
in interface IOleInPlaceUIWindow
- Parameters:
pborderwidths
- [in]
- Throws:
ComException
setActiveObject
public void setActiveObject(IOleInPlaceActiveObject pActiveObject,
OleStr pszObjName)
throws ComException
- Specified by:
setActiveObject
in interface IOleInPlaceUIWindow
- Parameters:
pActiveObject
- [in]
pszObjName
- [in]
- Throws:
ComException
onDataChange
public void onDataChange(FormatEtc pformatetc,
StgMedium pStgmed)
- Specified by:
onDataChange
in interface IAdviseSink
- Parameters:
pformatetc
- [in]
pStgmed
- [in]
onViewChange
public void onViewChange(DvAspect dwAspect,
Int32 lindex)
- Specified by:
onViewChange
in interface IAdviseSink
- Parameters:
dwAspect
- [in]
lindex
- [in]
onRename
public void onRename(IMoniker pmk)
- Specified by:
onRename
in interface IAdviseSink
- Parameters:
pmk
- [in]
onSave
public void onSave()
- Specified by:
onSave
in interface IAdviseSink
onClose
public void onClose()
- Specified by:
onClose
in interface IAdviseSink
getOleContainer
protected OleContainer getOleContainer()
setOleContainer
protected void setOleContainer(OleContainer oleContainer)