Branch libreoffice-5-0-4
[LibreOffice.git] / include / oox / ppt / comments.hxx
bloba44b7da29bac71c1e236ecfa1fe65ce8db30fc6b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
11 #ifndef INCLUDED_OOX_PPT_COMMENTS_HXX
12 #define INCLUDED_OOX_PPT_COMMENTS_HXX
14 #include <vector>
15 #include <com/sun/star/util/DateTime.hpp>
17 namespace oox { namespace ppt {
19 struct CommentAuthor
21 OUString clrIdx;
22 OUString id;
23 OUString initials;
24 OUString lastIdx;
25 OUString name;
28 class CommentAuthorList
30 private:
31 std::vector<CommentAuthor> cmAuthorLst;
33 public:
34 void setValues(const CommentAuthorList& list);
36 const std::vector<CommentAuthor>& getCmAuthorLst() const
38 return cmAuthorLst;
41 void addAuthor(const CommentAuthor& _author)
43 cmAuthorLst.push_back(_author);
46 friend class Comment;
49 class Comment
51 private:
52 OUString authorId;
53 OUString dt;
54 OUString idx;
55 OUString x;
56 OUString y;
57 OUString text;
58 ::com::sun::star::util::DateTime aDateTime;
60 void setDateTime (const OUString& datetime);
62 public:
63 void setAuthorId(const OUString& _aId)
65 authorId = _aId;
67 void setdt(const OUString& _dt)
69 dt=_dt;
70 setDateTime(_dt);
72 void setidx(const OUString& _idx)
74 idx=_idx;
76 void setPoint(const OUString& _x, const OUString& _y)
78 x=_x;
79 y=_y;
81 void setText(const OUString& _text)
83 text = _text;
85 OUString getAuthorId()
87 return authorId;
89 OUString getdt()
91 return dt;
93 OUString getidx()
95 return idx;
97 OUString get_X()
99 return x;
101 OUString get_Y()
103 return y;
105 OUString get_text()
107 return text;
109 ::com::sun::star::util::DateTime getDateTime()
111 return aDateTime;
113 sal_Int32 getIntX()
115 return x.toInt32();
117 sal_Int32 getIntY()
119 return y.toInt32();
121 OUString getAuthor ( const CommentAuthorList& list );
124 class CommentList
126 public:
127 std::vector<Comment> cmLst;
128 int getSize ()
130 return (int)cmLst.size();
132 const Comment& getCommentAtIndex (int index);
137 #endif
139 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */