void IStream.Clone(out IStream clone) { clone = new IStreamWrapper(this); if (clone == null) { throw new ArgumentNullException("StreamWrapper"); } }
static public int OpenDocumentFromStream(Form1 Parent) { string sPath = System.Environment.CurrentDirectory + "\\Documents\\FormTypes.pdf"; Parent.CloseDocument(); FileStream srcStream = new FileStream(sPath, FileMode.Open); if (srcStream != null) { IStreamWrapper srcIStream = new IStreamWrapper(srcStream); Parent.m_CurDoc = Parent.m_pxcInst.OpenDocumentFrom(srcIStream, null); } return((int)Form1.eFormUpdateFlags.efuf_All); }
protected IStreamWrapper(IStreamWrapper streamWrapper) { m_stream = streamWrapper.m_stream; m_pos = streamWrapper.m_pos; m_sync = streamWrapper.m_sync; }