ContentTypesManager

ContentTypesManager

Overview

ContentTypesManager is a class in Aspose.Slides FOSS for C++.

Manages the [Content_Types].xml part, which maps part names to MIME types.

This class provides 6 methods for working with ContentTypesManager objects in C++ programs. Available methods include: ContentTypesManager, add_default, add_override, get_content_type, remove_override, save. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: kPartName.

Properties

NameTypeAccessDescription
kPartNamestd::string_viewRead/WriteGets or sets the k part name.

Methods

SignatureDescription
ContentTypesManager(package: OpcPackage)
add_default(extension: std::string_view, content_type: std::string_view)Add or update a default content type for the given file extension.
add_override(part_name: std::string_view, content_type: std::string_view)Add or update an override for the given part name.
remove_override(part_name: std::string_view)Remove an override for the given part name.
get_content_type(part_name: std::string_view)std::stringGet the content type for a part, or empty string if not found.
save()Persist the content types back to the package.

See Also

 English