Scribus
Open source desktop publishing at your fingertips
parse.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef _SCRIBUS_SHORTPARSE_H_
8 #define _SCRIBUS_SHORTPARSE_H_
9 
10 #include "shortwords.h"
11 
12 #include <QObject>
13 
14 class PageItem;
15 
24 class SWParse : public QObject
25 {
26  Q_OBJECT
27 
28 public:
30  SWParse();
32  ~SWParse(){};
33 
35  uint modify;
36 
38  QString lang;
39 
44  void parseItem(PageItem *aFrame);
46  void parseSelection(ScribusDoc* doc);
48  void parsePage(ScribusDoc* doc);
51  void parsePage(ScribusDoc* doc, int page);
53  void parseAll(ScribusDoc* doc);
54 };
55 
56 #endif
~SWParse()
nothing here to do
Definition: parse.h:32
void parsePage(ScribusDoc *doc)
one page - using actual page
Definition: parse.cpp:140
SWParse()
lightweight constructor
Definition: parse.cpp:36
the Document Class
Definition: scribusdoc.h:90
void parseSelection(ScribusDoc *doc)
selcted frames on the page
Definition: parse.cpp:125
void parseItem(PageItem *aFrame)
process one frame - base method! Replacing strings via regular expressions. See detailed description ...
Definition: parse.cpp:41
QString lang
language of the frame used
Definition: parse.h:38
This is the Scribus Short Words plugin main mechanism.
Definition: parse.h:24
Definition: pageitem.h:92
uint modify
count of the changes (one frame = one change)
Definition: parse.h:32
void parseAll(ScribusDoc *doc)
all pages in the document
Definition: parse.cpp:173