com.jniwrapper.win32.com.impl
Class IPersistFileImpl

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.win32.com.impl.IUnknownImpl
          extended bycom.jniwrapper.win32.com.impl.IPersistImpl
              extended bycom.jniwrapper.win32.com.impl.IPersistFileImpl
All Implemented Interfaces:
AutoDeleteParameter, IPersist, IPersistFile, IUnknown, PointerParameter

public class IPersistFileImpl
extends IPersistImpl
implements IPersistFile

Represents COM interface IPersistFile.


Nested Class Summary
 
Nested classes inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl
IUnknownImpl.MemoryBufferImpl
 
Field Summary
static java.lang.String INTERFACE_IDENTIFIER
           
 
Fields inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl
DebugComfyJ, LICENSE_TYPE, PTR_NULL
 
Fields inherited from class com.jniwrapper.Parameter
V
 
Constructor Summary
  IPersistFileImpl()
           
  IPersistFileImpl(CLSID clsid, ClsCtx dwClsContext)
           
  IPersistFileImpl(CLSID clsid, IUnknown pUnkOuter, ClsCtx dwClsContext)
           
  IPersistFileImpl(IUnknown that)
           
protected IPersistFileImpl(IUnknownImpl that)
           
 
Method Summary
 java.lang.Object clone()
           
 OleStr getCurFile()
           
 IID getIID()
           
 Int32 isDirty()
           
 void load(OleStr pszFileName, StgMode dwMode)
           
 HResult save(OleStr pszFileName, VariantBool fRemember)
           
 void saveCompleted(OleStr pszFileName)
           
 
Methods inherited from class com.jniwrapper.win32.com.impl.IPersistImpl
getClassID
 
Methods inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl
acceptIOPerformer, addRef, asVoidPointer, dumpVTBL, equals, fromVoidPointer, getDebugInfo, getInterfaceIdentifier, getLength, hashCode, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeStandardVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, invokeVirtualMethod, isAutoDelete, isNull, isSameObject, queryInterface, queryInterface, read, release, setAutoDelete, setNull, setValue, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jniwrapper.win32.com.IPersist
getClassID
 
Methods inherited from interface com.jniwrapper.win32.com.IUnknown
addRef, isNull, queryInterface, release, setNull
 
Methods inherited from interface com.jniwrapper.AutoDeleteParameter
isAutoDelete, setAutoDelete
 

Field Detail

INTERFACE_IDENTIFIER

public static final java.lang.String INTERFACE_IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

IPersistFileImpl

public IPersistFileImpl()

IPersistFileImpl

protected IPersistFileImpl(IUnknownImpl that)
                    throws ComException

IPersistFileImpl

public IPersistFileImpl(IUnknown that)

IPersistFileImpl

public IPersistFileImpl(CLSID clsid,
                        ClsCtx dwClsContext)
                 throws ComException

IPersistFileImpl

public IPersistFileImpl(CLSID clsid,
                        IUnknown pUnkOuter,
                        ClsCtx dwClsContext)
                 throws ComException
Method Detail

isDirty

public Int32 isDirty()
Specified by:
isDirty in interface IPersistFile

load

public void load(OleStr pszFileName,
                 StgMode dwMode)
          throws ComException
Specified by:
load in interface IPersistFile
Parameters:
pszFileName - [in]
dwMode - [in]
Throws:
ComException

save

public HResult save(OleStr pszFileName,
                    VariantBool fRemember)
             throws ComException
Specified by:
save in interface IPersistFile
Parameters:
pszFileName - [in]
fRemember - [in]
Returns:
returns non-negative result of native method. Can be used to determine user choise in overwrite dialog.
Throws:
ComException

saveCompleted

public void saveCompleted(OleStr pszFileName)
                   throws ComException
Specified by:
saveCompleted in interface IPersistFile
Parameters:
pszFileName - [in]
Throws:
ComException

getCurFile

public OleStr getCurFile()
                  throws ComException
Specified by:
getCurFile in interface IPersistFile
Throws:
ComException

getIID

public IID getIID()
Overrides:
getIID in class IPersistImpl

clone

public java.lang.Object clone()
Overrides:
clone in class IPersistImpl