protected ExternalFileData ExportProtected(Presentation destPres) { ExternalFileData exportFileData = (ExternalFileData)Presentation.ExternalFilesDataFactory.Create(GetType()); exportFileData.InitializeWithData(m_DataProvider.Export(destPres), OriginalRelativePath, IsPreservedForOutputFile, OptionalInfo); return(exportFileData); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } ExternalFileData otherz = other as ExternalFileData; if (otherz == null) { return(false); } if (OriginalRelativePath != otherz.OriginalRelativePath) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (!DataProvider.ValueEquals(otherz.DataProvider)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } return(true); }
protected ExternalFileData CopyProtected() { ExternalFileData fileDataCopy = (ExternalFileData)Presentation.ExternalFilesDataFactory.Create(GetType()); // We do not Copy the FileDataProvider, // because the file stream is read-only by design. fileDataCopy.InitializeWithData(m_DataProvider, OriginalRelativePath, IsPreservedForOutputFile, OptionalInfo); return(fileDataCopy); }