LCOV - code coverage report
Current view: top level - include/oox/ppt - comments.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 34 5.9 %
Date: 2014-11-03 Functions: 4 22 18.2 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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             :  */
       9             : 
      10             : 
      11             : #ifndef INCLUDED_OOX_PPT_COMMENTS_HXX
      12             : #define INCLUDED_OOX_PPT_COMMENTS_HXX
      13             : 
      14             : #include <vector>
      15             : #include <com/sun/star/util/DateTime.hpp>
      16             : 
      17             : namespace oox { namespace ppt {
      18             : 
      19           0 : struct CommentAuthor
      20             : {
      21             :     OUString clrIdx;
      22             :     OUString id;
      23             :     OUString initials;
      24             :     OUString lastIdx;
      25             :     OUString name;
      26             : };
      27             : 
      28         700 : class CommentAuthorList
      29             : {
      30             :     private:
      31             :         std::vector<CommentAuthor> cmAuthorLst;
      32             : 
      33             :     public:
      34             :         void setValues(const CommentAuthorList& list);
      35             : 
      36             :         const std::vector<CommentAuthor>& getCmAuthorLst() const
      37             :         {
      38             :             return cmAuthorLst;
      39             :         }
      40             : 
      41           0 :         void addAuthor(const CommentAuthor& _author)
      42             :         {
      43           0 :             cmAuthorLst.push_back(_author);
      44           0 :         }
      45             : 
      46             :         friend class Comment;
      47             : };
      48             : 
      49           0 : class Comment
      50             : {
      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;
      59             : 
      60             :         void setDateTime (const OUString& datetime);
      61             : 
      62             :     public:
      63           0 :         void setAuthorId(const OUString& _aId)
      64             :         {
      65           0 :             authorId = _aId;
      66           0 :         }
      67           0 :         void setdt(const OUString& _dt)
      68             :         {
      69           0 :             dt=_dt;
      70           0 :             setDateTime(_dt);
      71           0 :         }
      72           0 :         void setidx(const OUString& _idx)
      73             :         {
      74           0 :             idx=_idx;
      75           0 :         }
      76           0 :         void setPoint(const OUString& _x, const OUString& _y)
      77             :         {
      78           0 :             x=_x;
      79           0 :             y=_y;
      80           0 :         }
      81           0 :         void setText(const OUString& _text)
      82             :         {
      83           0 :             text = _text;
      84           0 :         }
      85             :         OUString getAuthorId()
      86             :         {
      87             :             return authorId;
      88             :         }
      89             :         OUString getdt()
      90             :         {
      91             :             return dt;
      92             :         }
      93             :         OUString getidx()
      94             :         {
      95             :             return idx;
      96             :         }
      97             :         OUString get_X()
      98             :         {
      99             :             return x;
     100             :         }
     101             :         OUString get_Y()
     102             :         {
     103             :             return y;
     104             :         }
     105           0 :         OUString get_text()
     106             :         {
     107           0 :             return text;
     108             :         }
     109           0 :         ::com::sun::star::util::DateTime getDateTime()
     110             :         {
     111           0 :             return aDateTime;
     112             :         }
     113           0 :         sal_Int32 getIntX()
     114             :         {
     115           0 :             return x.toInt32();
     116             :         }
     117           0 :         sal_Int32 getIntY()
     118             :         {
     119           0 :             return y.toInt32();
     120             :         }
     121             :         OUString getAuthor ( const CommentAuthorList& list );
     122             : };
     123             : 
     124         504 : class CommentList
     125             : {
     126             :     public:
     127             :         std::vector<Comment> cmLst;
     128           0 :         int getSize ()
     129             :         {
     130           0 :             return (int)cmLst.size();
     131             :         }
     132             :         const Comment& getCommentAtIndex (int index);
     133             : };
     134             : 
     135             : } }
     136             : 
     137             : #endif
     138             : 
     139             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10