1 /* -*- c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
2 /* AbiWord
3 * Copyright (C) 2009 Martin Sevior <msevior@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA.
19 */
20
21 #include "pp_Author.h"
22 #include "pp_AttrProp.h"
23 #include "pd_Style.h"
24 #include "pd_Document.h"
25 #include "ut_debugmsg.h"
26 #include "ut_misc.h"
27
pp_Author(PD_Document * pDoc,UT_sint32 iID)28 pp_Author::pp_Author(PD_Document * pDoc, UT_sint32 iID):
29 m_pDoc(pDoc), m_iAuthorInt(iID)
30 {
31 }
32
~pp_Author(void)33 pp_Author::~pp_Author(void)
34 {
35 }
36
getAttrProp(void)37 PP_AttrProp * pp_Author::getAttrProp(void)
38 {
39 return & m_AP;
40 }
41
getAttrProp(void) const42 const PP_AttrProp * pp_Author::getAttrProp(void) const
43 {
44 return & m_AP;
45 }
46
getProperty(const gchar * szName,const gchar * & szValue) const47 bool pp_Author::getProperty(const gchar * szName, const gchar *& szValue) const
48 {
49 return m_AP.getProperty(szName,szValue);
50 }
51
getAuthorInt(void) const52 UT_sint32 pp_Author::getAuthorInt(void) const
53 {
54 return m_iAuthorInt;
55 }
56