void Paragraph::AddSpace(const size_t count) { Run run; RunItemBase* text = new Text(std::string(count, ' ')); run.add(text); Items->push_back(run); }
Paragraph::Paragraph(const RId& rId, const OOX::CPath& filename, const long xEmu, const std::string& hRelativeFrom, const long yEmu, const std::string& vRelativeFrom, const long widthEmu, const long heightEmu) { RunItemBase* drawing = new Drawing(rId, filename, xEmu, hRelativeFrom, yEmu, vRelativeFrom, widthEmu, heightEmu); Run run; run.add(drawing); Items->push_back(run); }
Paragraph::Paragraph(const RId& rId, const OOX::CPath& filename, const long width, const long height) { RunItemBase* drawing = new Drawing(rId, filename, width, height); Run run; run.add(drawing); Items->push_back(run); }
void Paragraph::AddSpace(const size_t count, const nullable__<Logic::RunProperty>& property) { Run run; RunItemBase* text = new Text(std::string(count, ' ')); run.Property = property; run.add(text); Items->push_back(run); }
void Paragraph::AddBreak(const std::string& type) { if (type == "page" || type == "line" || type == "column") { Run run; Break* br = new Break(); br->Type = type; run.add(br); Items->push_back(run); } }