/// <summary> /// Writes a handout master. /// /// <param name="ppt">PowerpointDocument record</param> /// <param name="m">Handout master record</param> private void WriteHandoutMaster2(PowerpointDocument ppt, Handout m) { _writer.WriteStartElement("p", "handoutMasterId", OpenXmlNamespaces.PresentationML); HandoutMasterMapping mapping = _ctx.GetOrCreateHandoutMasterMappingByMasterId(0); mapping.Write(); string relString = mapping.targetPart.RelIdToString; _writer.WriteAttributeString("r", "id", OpenXmlNamespaces.Relationships, relString); _writer.WriteEndElement(); }
/// <summary> /// Registers a HandoutMasterMapping so it can later be looked up by its master ID. /// </summary> /// <param name="masterId">Master id with which to associate the MasterMapping.</param> /// <param name="mapping">MasterMapping to be registered.</param> public void RegisterHandoutMasterMapping(UInt32 masterId, HandoutMasterMapping mapping) { this.HandoutMasterIdToMapping[masterId] = mapping; }