141 XMLNode authorNode(uint16_t index)
const;
142 XMLNode commentNode(
size_t index)
const;
143 XMLNode commentNode(
const std::string& cellRef)
const;
144 void setupVmlShape(
const std::string& cellRef,
147 bool newCommentCreated,
148 uint16_t widthCols = 4,
149 uint16_t heightRows = 6);
152 uint16_t authorCount()
const;
154 std::string author(uint16_t index)
const;
156 bool deleteAuthor(uint16_t index);
158 uint16_t addAuthor(
const std::string& authorName);
164 size_t count()
const;
166 uint16_t authorId(
const std::string& cellRef)
const;
168 bool deleteComment(
const std::string& cellRef);
182 std::string get(std::string
const& cellRef)
const;
193 bool set(std::string
const& cellRef,
194 std::string
const& comment,
195 uint16_t authorId_ = 0,
196 uint16_t widthCols = 4,
197 uint16_t heightRows = 6);
208 bool set(std::string
const& cellRef,
209 std::string
const& comment,
210 std::string
const& authorName,
211 uint16_t widthCols = 4,
212 uint16_t heightRows = 6);
223 bool setRichText(std::string
const& cellRef,
225 uint16_t authorId_ = 0,
226 uint16_t widthCols = 4,
227 uint16_t heightRows = 6);
238 bool setRichText(std::string
const& cellRef,
240 std::string
const& authorName,
241 uint16_t widthCols = 4,
242 uint16_t heightRows = 6);
247 XLShape shape(std::string
const& cellRef);
255 bool setVisible(std::string
const& cellRef,
bool visible);
260 void print(std::basic_ostream<char>& ostr)
const;
265 XLVmlDrawing m_vmlDrawing;
266 mutable std::unordered_map<std::string, XMLNode> m_commentMap{};
269 mutable size_t m_hintIndex{0};
270 inline static const std::vector<std::string_view> m_nodeOrder = {
A class representing rich text in a cell.
Definition XLRichText.hpp:129