MasterSlideCollection
概述
MasterSlideCollection 是 Aspose.Slides 为 C++ 提供的 FOSS 中的一个类。
管理演示文稿中母版幻灯片的集合。
此类提供 21 个用于在 C++ 程序中处理 MasterSlideCollection 对象的方法。可用的方法包括:MasterSlideCollection、add_clone、as_i_collection、as_i_enumerable、begin、clone_layout_part、clone_master_part、const_iterator、end、get_max_master_layout_id_in_presentation、get_next_layout_file_number、get_next_master_file_number,以及另外 4 个方法。安装 Aspose.Slides 为 C++ 提供的 FOSS 包后,所有公共成员对任何 C++ 应用程序均可访问。属性:MasterSlideCollection、const_iterator、iterator。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
MasterSlideCollection | MasterSlideCollection | 读取 | 获取主幻灯片集合。 |
iterator | iterator | 读取 | 获取迭代器。 |
const_iterator | const_iterator | 读取 | 获取常量迭代器。 |
方法
| 签名 | 描述 |
|---|---|
MasterSlideCollection() → MasterSlideCollection | 构造集合,并对其所属的演示进行反向引用。 |
iterator() → iterator | 属性提供集合的可变迭代器类型 |
iterator() → iterator | |
const_iterator() → const_iterator | 属性提供集合的只读迭代器类型 |
const_iterator() → const_iterator | |
MasterSlideCollection() | 构造集合,并带有指向所属呈现的反向引用。 |
as_i_collection() → IMasterSlideCollection | 将此集合作为通用集合接口返回。 |
as_i_enumerable() → IMasterSlideCollection | 将此集合作为通用可枚举接口返回。 |
size() → std::size_t | 返回母版幻灯片的数量。 |
add_clone(source_master: IMasterSlide) → MasterSlide | 向集合中添加给定源母版幻灯片的克隆。克隆该源的形状和布局幻灯片。 |
begin() → iterator | |
end() → iterator | |
begin() → const_iterator | |
end() → const_iterator | |
init_internal(presentation: Presentation, package: Internal::opc::OpcPackage, presentation_part_name: std::string_view, master_references: std::vector<MasterReference>, master_slides: std::vector<std::unique_ptr<MasterSlide>>) | 针对基于 OPC 的加载进行内部初始化。 |
get_next_master_file_number() → int | 在包中查找下一个可用的母版幻灯片文件编号。 |
get_next_layout_file_number() → int | 在包中查找下一个可用的布局幻灯片文件编号。 |
clone_master_part(source_package: Internal::opc::OpcPackage, source_part_name: std::string_view, dest_package: Internal::opc::OpcPackage, dest_part_name: std::string_view) → std::unordered_map<std::string, std::string> | 克隆一个母版幻灯片部件及其相关资源(布局除外)。 |
clone_layout_part(source_package: Internal::opc::OpcPackage, source_part_name: std::string_view, dest_package: Internal::opc::OpcPackage, dest_part_name: std::string_view, dest_master_part_name: std::string_view) | 克隆一个布局幻灯片部件并将其指向指定的母版。 |
get_max_master_layout_id_in_presentation() → int64_t | 查找所有母版幻灯片 ID 和布局 ID 中的最大 ID。在 PPTX 中,sldMasterIdLst 和 sldLayoutIdLst 共享同一 ID 空间。 |
update_master_layout_relationships(source_package: Internal::opc::OpcPackage, source_master_part_name: std::string_view, dest_master_part_name: std::string_view, layout_mapping: std::unordered_map<std::string, std::string>, source_layout_rids: std::unordered_map<std::string, std::string>) | 更新 master 的关系并将 XML 指向克隆的布局。 |