2
Copyright (C) 2002, M.Marcucio <michaelmarcucio@hotmail.com>.
3
This file is part of the KDE project
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
10
This library 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 GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
Boston, MA 02111-1307, USA.
26
static const int s_area = 30512;
30
m_slideLayout = 0; //type of slide
31
m_numberOfPholders = 0; //number of placeholder on the slide
32
m_psrReference = 0; //logical reference
35
//PptSlide::~PptSlide()
39
QStringList PptSlide::getPlaceholderText(void)
41
return m_currentPholder->paragraphs;
44
//styleRun PptSlide::getPlaceholderStyleRun(void)
46
// return m_currentPholder->styleRun;
49
Q_UINT16 PptSlide::getPlaceholderType(void)
51
return m_currentPholder->type;
54
void PptSlide::gotoPlaceholder(Q_UINT16 pholderNumber)
56
m_currentPholder = m_placeholderList.at(pholderNumber);
59
Q_INT32 PptSlide::getPsrReference(void)
61
return m_psrReference;
64
void PptSlide::setPsrReference(Q_INT32 psr)
69
Q_UINT16 PptSlide::getNumberOfPholders()
71
return m_numberOfPholders;
74
void PptSlide::addText(QString text, Q_UINT16 type)
77
m_currentPholder = new placeholder;
78
m_placeholderList.append(m_currentPholder);
80
m_currentPholder->type = type;
81
kdError(s_area) << "adding to slide now!!!!!!!!!!!! m_numberOfPholders: " << m_numberOfPholders << endl;
86
case CENTER_TITLE_TEXT:
87
m_currentPholder->paragraphs.append(text);
88
//m_titleText.append("\n");
91
m_currentPholder->paragraphs.append(text);
92
m_currentPholder->paragraphs.append("\n");
93
//m_notesText.append("\n");
97
case CENTER_BODY_TEXT:
99
case QUARTER_BODY_TEXT:
100
QStringList data(QStringList::split(QChar('\r'), text, true));
101
for (j = 0; j < data.count(); j++)
103
m_currentPholder->paragraphs.append(data[j]);
104
//m_body.paragraphs.append(data[j]);
106
//m_body.type = type;