Podium.OPC.Constants (Podium v0.3.0)

Copy Markdown View Source

OOXML namespace URIs, relationship types, and content type constants.

Provides ns/1 for XML namespace URIs, rt/1 for relationship type URIs, and ct/1 for MIME content type strings used throughout the OPC package.

Summary

Functions

Returns the MIME content type string for the given content type key.

Returns the XML namespace URI for the given namespace key.

Returns the relationship type URI for the given relationship key.

Functions

ct(atom)

@spec ct(atom()) :: String.t()

Returns the MIME content type string for the given content type key.

Keys: :presentation, :slide, :slide_layout, :slide_master, :theme, :pres_props, :view_props, :table_styles, :chart, :xlsx, :core_properties, :extended_properties, :xml, :rels, :jpeg, :png, :bmp, :gif, :tiff, :emf, :wmf, :printer_settings, :notes_slide, :notes_master.

ns(atom)

@spec ns(atom()) :: String.t()

Returns the XML namespace URI for the given namespace key.

Keys: :a (DrawingML), :c (ChartML), :p (PresentationML), :r (Relationships), :ct (Content Types), :pr (Package Relationships), :dc (Dublin Core), :dcterms, :cp (Core Properties), :ep (Extended Properties), :mc, :xsi, :p14.

rt(atom)

@spec rt(atom()) :: String.t()

Returns the relationship type URI for the given relationship key.

Keys: :office_document, :slide, :slide_layout, :slide_master, :theme, :pres_props, :view_props, :table_styles, :chart, :package, :image, :core_properties, :extended_properties, :thumbnail, :printer_settings, :hyperlink, :notes_slide, :notes_master, :video, :media.