~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to filters/liboofilter/ooutils.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-04-20 21:38:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060420213853-j5lxluqvymxt2zny
Tags: 1:1.5.0-0ubuntu2
UbuntuĀ uploadĀ 

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
   You should have received a copy of the GNU Library General Public License
17
17
   along with this library; see the file COPYING.LIB.  If not, write to
18
 
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
 
   Boston, MA 02111-1307, USA.
 
18
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
19
 * Boston, MA 02110-1301, USA.
20
20
*/
21
21
 
22
22
#include "ooutils.h"
23
 
#include <koDocument.h>
24
 
#include <koStyleStack.h>
 
23
#include <KoDocument.h>
 
24
#include <KoStyleStack.h>
25
25
#include <qdom.h>
26
26
#include <qcolor.h>
27
27
#include <qimage.h>
28
 
#include <koUnit.h>
 
28
#include <KoUnit.h>
29
29
#include <qregexp.h>
30
30
#include <kdebug.h>
31
31
#include <kzip.h>
32
 
#include <kodom.h>
 
32
#include <KoDom.h>
33
33
#include <qxml.h>
34
34
 
35
35
const char* const ooNS::office="http://openoffice.org/2000/office";
205
205
        return;
206
206
    QDomElement tabStops = styleStack.childNodeNS( ooNS::style, "tab-stops" );
207
207
    //kdDebug(30519) << k_funcinfo << tabStops.childNodes().count() << " tab stops in layout." << endl;
208
 
    QDomElement tabStop;
209
 
    forEachElement( tabStop, tabStops )
 
208
    for ( QDomNode it = tabStops.firstChild(); !it.isNull(); it = it.nextSibling() )
210
209
    {
211
 
        Q_ASSERT( tabStop.localName() == "tab-stop" );
212
 
        const QString type = tabStop.attributeNS( ooNS::style, "type", QString::null ); // left, right, center or char
 
210
        QDomElement tabStop = it.toElement();
 
211
        Q_ASSERT( tabStop.tagName() == "style:tab-stop" );
 
212
        QString type = tabStop.attributeNS( ooNS::style, "type", QString::null ); // left, right, center or char
213
213
 
214
214
        QDomElement elem = parentElement.ownerDocument().createElement( "TABULATOR" );
215
215
        int kOfficeType = 0;