Trait windows::Win32::Storage::Xps::IXpsOMObjectFactory1_Impl
pub trait IXpsOMObjectFactory1_Impl: Sized + IXpsOMObjectFactory_Impl {
// Required methods
fn GetDocumentTypeFromFile(
&self,
filename: &PCWSTR,
) -> Result<XPS_DOCUMENT_TYPE>;
fn GetDocumentTypeFromStream(
&self,
xpsdocumentstream: Option<&IStream>,
) -> Result<XPS_DOCUMENT_TYPE>;
fn ConvertHDPhotoToJpegXR(
&self,
imageresource: Option<&IXpsOMImageResource>,
) -> Result<()>;
fn ConvertJpegXRToHDPhoto(
&self,
imageresource: Option<&IXpsOMImageResource>,
) -> Result<()>;
fn CreatePackageWriterOnFile1(
&self,
filename: &PCWSTR,
securityattributes: *const SECURITY_ATTRIBUTES,
flagsandattributes: u32,
optimizemarkupsize: BOOL,
interleaving: XPS_INTERLEAVING,
documentsequencepartname: Option<&IOpcPartUri>,
coreproperties: Option<&IXpsOMCoreProperties>,
packagethumbnail: Option<&IXpsOMImageResource>,
documentsequenceprintticket: Option<&IXpsOMPrintTicketResource>,
discardcontrolpartname: Option<&IOpcPartUri>,
documenttype: XPS_DOCUMENT_TYPE,
) -> Result<IXpsOMPackageWriter>;
fn CreatePackageWriterOnStream1(
&self,
outputstream: Option<&ISequentialStream>,
optimizemarkupsize: BOOL,
interleaving: XPS_INTERLEAVING,
documentsequencepartname: Option<&IOpcPartUri>,
coreproperties: Option<&IXpsOMCoreProperties>,
packagethumbnail: Option<&IXpsOMImageResource>,
documentsequenceprintticket: Option<&IXpsOMPrintTicketResource>,
discardcontrolpartname: Option<&IOpcPartUri>,
documenttype: XPS_DOCUMENT_TYPE,
) -> Result<IXpsOMPackageWriter>;
fn CreatePackage1(&self) -> Result<IXpsOMPackage1>;
fn CreatePackageFromStream1(
&self,
stream: Option<&IStream>,
reuseobjects: BOOL,
) -> Result<IXpsOMPackage1>;
fn CreatePackageFromFile1(
&self,
filename: &PCWSTR,
reuseobjects: BOOL,
) -> Result<IXpsOMPackage1>;
fn CreatePage1(
&self,
pagedimensions: *const XPS_SIZE,
language: &PCWSTR,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMPage1>;
fn CreatePageFromStream1(
&self,
pagemarkupstream: Option<&IStream>,
parturi: Option<&IOpcPartUri>,
resources: Option<&IXpsOMPartResources>,
reuseobjects: BOOL,
) -> Result<IXpsOMPage1>;
fn CreateRemoteDictionaryResourceFromStream1(
&self,
dictionarymarkupstream: Option<&IStream>,
parturi: Option<&IOpcPartUri>,
resources: Option<&IXpsOMPartResources>,
) -> Result<IXpsOMRemoteDictionaryResource>;
}
Required Methods§
fn GetDocumentTypeFromFile( &self, filename: &PCWSTR, ) -> Result<XPS_DOCUMENT_TYPE>
fn GetDocumentTypeFromStream( &self, xpsdocumentstream: Option<&IStream>, ) -> Result<XPS_DOCUMENT_TYPE>
fn ConvertHDPhotoToJpegXR( &self, imageresource: Option<&IXpsOMImageResource>, ) -> Result<()>
fn ConvertJpegXRToHDPhoto( &self, imageresource: Option<&IXpsOMImageResource>, ) -> Result<()>
fn CreatePackageWriterOnFile1( &self, filename: &PCWSTR, securityattributes: *const SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: Option<&IOpcPartUri>, coreproperties: Option<&IXpsOMCoreProperties>, packagethumbnail: Option<&IXpsOMImageResource>, documentsequenceprintticket: Option<&IXpsOMPrintTicketResource>, discardcontrolpartname: Option<&IOpcPartUri>, documenttype: XPS_DOCUMENT_TYPE, ) -> Result<IXpsOMPackageWriter>
fn CreatePackageWriterOnStream1( &self, outputstream: Option<&ISequentialStream>, optimizemarkupsize: BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: Option<&IOpcPartUri>, coreproperties: Option<&IXpsOMCoreProperties>, packagethumbnail: Option<&IXpsOMImageResource>, documentsequenceprintticket: Option<&IXpsOMPrintTicketResource>, discardcontrolpartname: Option<&IOpcPartUri>, documenttype: XPS_DOCUMENT_TYPE, ) -> Result<IXpsOMPackageWriter>
fn CreatePackage1(&self) -> Result<IXpsOMPackage1>
fn CreatePackageFromStream1( &self, stream: Option<&IStream>, reuseobjects: BOOL, ) -> Result<IXpsOMPackage1>
fn CreatePackageFromFile1( &self, filename: &PCWSTR, reuseobjects: BOOL, ) -> Result<IXpsOMPackage1>
fn CreatePage1( &self, pagedimensions: *const XPS_SIZE, language: &PCWSTR, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMPage1>
fn CreatePageFromStream1( &self, pagemarkupstream: Option<&IStream>, parturi: Option<&IOpcPartUri>, resources: Option<&IXpsOMPartResources>, reuseobjects: BOOL, ) -> Result<IXpsOMPage1>
fn CreateRemoteDictionaryResourceFromStream1( &self, dictionarymarkupstream: Option<&IStream>, parturi: Option<&IOpcPartUri>, resources: Option<&IXpsOMPartResources>, ) -> Result<IXpsOMRemoteDictionaryResource>
Object Safety§
This trait is not object safe.