Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Public Attributes
BookmarkParser Class Reference

XML parsef for documantation bookmarks. More...

List of all members.

Public Member Functions

bool startDocument ()
bool startElement (const QString &, const QString &, const QString &qName, const QXmlAttributes &attrs)
bool endElement (const QString &, const QString &, const QString &)

Public Attributes

QListView * view

Detailed Description

XML parsef for documantation bookmarks.

This is small helper class which reads saved bookmarks configuration from ~/.scribus/doc/bookmarks.xml file. The reference to QListView *view is a reference to the list view with bookmarks

Author:
Petr Vanek petr@.nosp@m.yarp.nosp@m.en.cz

Definition at line 122 of file helpbrowser.cpp.


Member Function Documentation

bool BookmarkParser::endElement ( const QString &  ,
const QString &  ,
const QString &   
) [inline]

Definition at line 142 of file helpbrowser.cpp.

              {
                     return true;
              }

Definition at line 127 of file helpbrowser.cpp.

              {
                     return true;
              }
bool BookmarkParser::startElement ( const QString &  ,
const QString &  ,
const QString &  qName,
const QXmlAttributes &  attrs 
) [inline]

Definition at line 132 of file helpbrowser.cpp.

              {
                     if (qName == "item")
                     {
                            QListViewItem *item = new QListViewItem(view, attrs.value(0), attrs.value(1));
                            view->insertItem(item);
                     }
                     return true;
              }

Member Data Documentation

Definition at line 125 of file helpbrowser.cpp.


The documentation for this class was generated from the following file: