Back to index

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

XML parsef for documantation history. 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

HelpBrowser * helpBrowser

Detailed Description

XML parsef for documantation history.

This is small helper class which reads saved bookmarks configuration from ~/.scribus/doc/history.xml file. The reference to historyBrowser is a reference to the dialog.

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

Definition at line 154 of file helpbrowser.cpp.


Member Function Documentation

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

Definition at line 176 of file helpbrowser.cpp.

              {
                     return true;
              }

Definition at line 159 of file helpbrowser.cpp.

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

Definition at line 164 of file helpbrowser.cpp.

              {
                     if (qName == "item")
                     {
                            struct histd his;
                            his.title = attrs.value(0);
                            his.url = attrs.value(1);
                            helpBrowser->mHistory[helpBrowser->histMenu->insertItem(his.title)] = his;
                     }
                     return true;
              }

Member Data Documentation

Definition at line 157 of file helpbrowser.cpp.


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