Trait windows::Win32::Storage::Xps::IXpsOMObjectFactory_Impl
pub trait IXpsOMObjectFactory_Impl: Sized {
Show 37 methods
// Required methods
fn CreatePackage(&self) -> Result<IXpsOMPackage>;
fn CreatePackageFromFile(
&self,
filename: &PCWSTR,
reuseobjects: BOOL,
) -> Result<IXpsOMPackage>;
fn CreatePackageFromStream(
&self,
stream: Option<&IStream>,
reuseobjects: BOOL,
) -> Result<IXpsOMPackage>;
fn CreateStoryFragmentsResource(
&self,
acquiredstream: Option<&IStream>,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMStoryFragmentsResource>;
fn CreateDocumentStructureResource(
&self,
acquiredstream: Option<&IStream>,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMDocumentStructureResource>;
fn CreateSignatureBlockResource(
&self,
acquiredstream: Option<&IStream>,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMSignatureBlockResource>;
fn CreateRemoteDictionaryResource(
&self,
dictionary: Option<&IXpsOMDictionary>,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMRemoteDictionaryResource>;
fn CreateRemoteDictionaryResourceFromStream(
&self,
dictionarymarkupstream: Option<&IStream>,
dictionaryparturi: Option<&IOpcPartUri>,
resources: Option<&IXpsOMPartResources>,
) -> Result<IXpsOMRemoteDictionaryResource>;
fn CreatePartResources(&self) -> Result<IXpsOMPartResources>;
fn CreateDocumentSequence(
&self,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMDocumentSequence>;
fn CreateDocument(
&self,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMDocument>;
fn CreatePageReference(
&self,
advisorypagedimensions: *const XPS_SIZE,
) -> Result<IXpsOMPageReference>;
fn CreatePage(
&self,
pagedimensions: *const XPS_SIZE,
language: &PCWSTR,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMPage>;
fn CreatePageFromStream(
&self,
pagemarkupstream: Option<&IStream>,
parturi: Option<&IOpcPartUri>,
resources: Option<&IXpsOMPartResources>,
reuseobjects: BOOL,
) -> Result<IXpsOMPage>;
fn CreateCanvas(&self) -> Result<IXpsOMCanvas>;
fn CreateGlyphs(
&self,
fontresource: Option<&IXpsOMFontResource>,
) -> Result<IXpsOMGlyphs>;
fn CreatePath(&self) -> Result<IXpsOMPath>;
fn CreateGeometry(&self) -> Result<IXpsOMGeometry>;
fn CreateGeometryFigure(
&self,
startpoint: *const XPS_POINT,
) -> Result<IXpsOMGeometryFigure>;
fn CreateMatrixTransform(
&self,
matrix: *const XPS_MATRIX,
) -> Result<IXpsOMMatrixTransform>;
fn CreateSolidColorBrush(
&self,
color: *const XPS_COLOR,
colorprofile: Option<&IXpsOMColorProfileResource>,
) -> Result<IXpsOMSolidColorBrush>;
fn CreateColorProfileResource(
&self,
acquiredstream: Option<&IStream>,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMColorProfileResource>;
fn CreateImageBrush(
&self,
image: Option<&IXpsOMImageResource>,
viewbox: *const XPS_RECT,
viewport: *const XPS_RECT,
) -> Result<IXpsOMImageBrush>;
fn CreateVisualBrush(
&self,
viewbox: *const XPS_RECT,
viewport: *const XPS_RECT,
) -> Result<IXpsOMVisualBrush>;
fn CreateImageResource(
&self,
acquiredstream: Option<&IStream>,
contenttype: XPS_IMAGE_TYPE,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMImageResource>;
fn CreatePrintTicketResource(
&self,
acquiredstream: Option<&IStream>,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMPrintTicketResource>;
fn CreateFontResource(
&self,
acquiredstream: Option<&IStream>,
fontembedding: XPS_FONT_EMBEDDING,
parturi: Option<&IOpcPartUri>,
isobfsourcestream: BOOL,
) -> Result<IXpsOMFontResource>;
fn CreateGradientStop(
&self,
color: *const XPS_COLOR,
colorprofile: Option<&IXpsOMColorProfileResource>,
offset: f32,
) -> Result<IXpsOMGradientStop>;
fn CreateLinearGradientBrush(
&self,
gradstop1: Option<&IXpsOMGradientStop>,
gradstop2: Option<&IXpsOMGradientStop>,
startpoint: *const XPS_POINT,
endpoint: *const XPS_POINT,
) -> Result<IXpsOMLinearGradientBrush>;
fn CreateRadialGradientBrush(
&self,
gradstop1: Option<&IXpsOMGradientStop>,
gradstop2: Option<&IXpsOMGradientStop>,
centerpoint: *const XPS_POINT,
gradientorigin: *const XPS_POINT,
radiisizes: *const XPS_SIZE,
) -> Result<IXpsOMRadialGradientBrush>;
fn CreateCoreProperties(
&self,
parturi: Option<&IOpcPartUri>,
) -> Result<IXpsOMCoreProperties>;
fn CreateDictionary(&self) -> Result<IXpsOMDictionary>;
fn CreatePartUriCollection(&self) -> Result<IXpsOMPartUriCollection>;
fn CreatePackageWriterOnFile(
&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>,
) -> Result<IXpsOMPackageWriter>;
fn CreatePackageWriterOnStream(
&self,
outputstream: Option<&ISequentialStream>,
optimizemarkupsize: BOOL,
interleaving: XPS_INTERLEAVING,
documentsequencepartname: Option<&IOpcPartUri>,
coreproperties: Option<&IXpsOMCoreProperties>,
packagethumbnail: Option<&IXpsOMImageResource>,
documentsequenceprintticket: Option<&IXpsOMPrintTicketResource>,
discardcontrolpartname: Option<&IOpcPartUri>,
) -> Result<IXpsOMPackageWriter>;
fn CreatePartUri(&self, uri: &PCWSTR) -> Result<IOpcPartUri>;
fn CreateReadOnlyStreamOnFile(&self, filename: &PCWSTR) -> Result<IStream>;
}
Required Methods§
fn CreatePackage(&self) -> Result<IXpsOMPackage>
fn CreatePackageFromFile( &self, filename: &PCWSTR, reuseobjects: BOOL, ) -> Result<IXpsOMPackage>
fn CreatePackageFromStream( &self, stream: Option<&IStream>, reuseobjects: BOOL, ) -> Result<IXpsOMPackage>
fn CreateStoryFragmentsResource( &self, acquiredstream: Option<&IStream>, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMStoryFragmentsResource>
fn CreateDocumentStructureResource( &self, acquiredstream: Option<&IStream>, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMDocumentStructureResource>
fn CreateSignatureBlockResource( &self, acquiredstream: Option<&IStream>, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMSignatureBlockResource>
fn CreateRemoteDictionaryResource( &self, dictionary: Option<&IXpsOMDictionary>, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMRemoteDictionaryResource>
fn CreateRemoteDictionaryResourceFromStream( &self, dictionarymarkupstream: Option<&IStream>, dictionaryparturi: Option<&IOpcPartUri>, resources: Option<&IXpsOMPartResources>, ) -> Result<IXpsOMRemoteDictionaryResource>
fn CreatePartResources(&self) -> Result<IXpsOMPartResources>
fn CreateDocumentSequence( &self, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMDocumentSequence>
fn CreateDocument( &self, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMDocument>
fn CreatePageReference( &self, advisorypagedimensions: *const XPS_SIZE, ) -> Result<IXpsOMPageReference>
fn CreatePage( &self, pagedimensions: *const XPS_SIZE, language: &PCWSTR, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMPage>
fn CreatePageFromStream( &self, pagemarkupstream: Option<&IStream>, parturi: Option<&IOpcPartUri>, resources: Option<&IXpsOMPartResources>, reuseobjects: BOOL, ) -> Result<IXpsOMPage>
fn CreateCanvas(&self) -> Result<IXpsOMCanvas>
fn CreateGlyphs( &self, fontresource: Option<&IXpsOMFontResource>, ) -> Result<IXpsOMGlyphs>
fn CreatePath(&self) -> Result<IXpsOMPath>
fn CreateGeometry(&self) -> Result<IXpsOMGeometry>
fn CreateGeometryFigure( &self, startpoint: *const XPS_POINT, ) -> Result<IXpsOMGeometryFigure>
fn CreateMatrixTransform( &self, matrix: *const XPS_MATRIX, ) -> Result<IXpsOMMatrixTransform>
fn CreateSolidColorBrush( &self, color: *const XPS_COLOR, colorprofile: Option<&IXpsOMColorProfileResource>, ) -> Result<IXpsOMSolidColorBrush>
fn CreateColorProfileResource( &self, acquiredstream: Option<&IStream>, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMColorProfileResource>
fn CreateImageBrush( &self, image: Option<&IXpsOMImageResource>, viewbox: *const XPS_RECT, viewport: *const XPS_RECT, ) -> Result<IXpsOMImageBrush>
fn CreateVisualBrush( &self, viewbox: *const XPS_RECT, viewport: *const XPS_RECT, ) -> Result<IXpsOMVisualBrush>
fn CreateImageResource( &self, acquiredstream: Option<&IStream>, contenttype: XPS_IMAGE_TYPE, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMImageResource>
fn CreatePrintTicketResource( &self, acquiredstream: Option<&IStream>, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMPrintTicketResource>
fn CreateFontResource( &self, acquiredstream: Option<&IStream>, fontembedding: XPS_FONT_EMBEDDING, parturi: Option<&IOpcPartUri>, isobfsourcestream: BOOL, ) -> Result<IXpsOMFontResource>
fn CreateGradientStop( &self, color: *const XPS_COLOR, colorprofile: Option<&IXpsOMColorProfileResource>, offset: f32, ) -> Result<IXpsOMGradientStop>
fn CreateLinearGradientBrush( &self, gradstop1: Option<&IXpsOMGradientStop>, gradstop2: Option<&IXpsOMGradientStop>, startpoint: *const XPS_POINT, endpoint: *const XPS_POINT, ) -> Result<IXpsOMLinearGradientBrush>
fn CreateRadialGradientBrush( &self, gradstop1: Option<&IXpsOMGradientStop>, gradstop2: Option<&IXpsOMGradientStop>, centerpoint: *const XPS_POINT, gradientorigin: *const XPS_POINT, radiisizes: *const XPS_SIZE, ) -> Result<IXpsOMRadialGradientBrush>
fn CreateCoreProperties( &self, parturi: Option<&IOpcPartUri>, ) -> Result<IXpsOMCoreProperties>
fn CreateDictionary(&self) -> Result<IXpsOMDictionary>
fn CreatePartUriCollection(&self) -> Result<IXpsOMPartUriCollection>
fn CreatePackageWriterOnFile( &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>, ) -> Result<IXpsOMPackageWriter>
fn CreatePackageWriterOnStream( &self, outputstream: Option<&ISequentialStream>, optimizemarkupsize: BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: Option<&IOpcPartUri>, coreproperties: Option<&IXpsOMCoreProperties>, packagethumbnail: Option<&IXpsOMImageResource>, documentsequenceprintticket: Option<&IXpsOMPrintTicketResource>, discardcontrolpartname: Option<&IOpcPartUri>, ) -> Result<IXpsOMPackageWriter>
fn CreatePartUri(&self, uri: &PCWSTR) -> Result<IOpcPartUri>
fn CreateReadOnlyStreamOnFile(&self, filename: &PCWSTR) -> Result<IStream>
Object Safety§
This trait is not object safe.