qsdict.cc File Reference

#include "qsdict.h"
#include "qsimporter.h"
#include <kernel/cobject.h>
#include "pdfutil.h"
#include "util.h"

Namespaces

namespace  gui
 

Graphical user interface namespace.


Defines

#define OP_BEGIN
#define OP_END(func)

Detailed Description

QObject wrapper around CDict
Export some functions to scripting.
See doc/user/scripting.xml or kernel documentation for more informations about these functions

Author:
Martin Petricek

Define Documentation

#define OP_BEGIN
Value:
CDict *dict=dynamic_cast<CDict*>(obj.get());\
 try {

Standard error handling - code added before the operation

#define OP_END ( func   ) 
Value:
} catch (ReadOnlyDocumentException &e) { \
  base->errorException("Dict",func,QObject::tr("Document is read-only")); \
 } catch (NotImplementedException &e) { \
  base->errorException("Dict",func,QObject::tr("Operation not implemented: %1").arg(e.what())); \
 }

Standard error handling - code added after the operation