Subversion Repositories Scribus

Rev

Rev 24719 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 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
*/
2111 cbradney 7
/***************************************************************************
8
        begin                : 2005
9
        copyright            : (C) 2005 by Franz Schmid
10
        email                : Franz.Schmid@altmuehlnet.de
11
        copyright            : (C) 2005 by Craig Bradney
12
        email                : cbradney@zip.com.au
13
***************************************************************************/
14
 
15
/***************************************************************************
16
*                                                                         *
22882 jghali 17
*   Scribus program is free software; you can redistribute it and/or modify  *
2111 cbradney 18
*   it under the terms of the GNU General Public License as published by  *
19
*   the Free Software Foundation; either version 2 of the License, or     *
20
*   (at your option) any later version.                                   *
21
*                                                                         *
22
***************************************************************************/
23
 
24
#ifndef DOCUMENTCHECKER_H
25
#define DOCUMENTCHECKER_H
26
 
24723 craig 27
#include <QString>
28
 
2969 craig 29
#include "scribusapi.h"
24723 craig 30
#include "prefsstructs.h"
16329 petr 31
 
2111 cbradney 32
class ScribusDoc;
33
 
5269 subik 34
/*! \brief It create a error/warning list for CheckDocument GUI class.
24665 jghali 35
All errors and/or warnings are stored in errorCodes (inherited QMap
5269 subik 36
see scribusstructs.h) and parsed into tree view in CheckDocument widgets.
37
*/
2969 craig 38
class SCRIBUS_API DocumentChecker
2111 cbradney 39
{
40
        public:
16329 petr 41
 
6715 cbradney 42
                //! Check the passed document for errors, return true on error found
43
                static bool checkDocument(ScribusDoc *currDoc);
22812 jghali 44
                static bool checkDocument(ScribusDoc *currDoc, const QString& checkerProfile);
24719 jghali 45
                static void checkPages(ScribusDoc *currDoc, const CheckerPrefs& checkerSettings);
46
                static void checkLayers(ScribusDoc *currDoc, const CheckerPrefs& checkerSettings);
47
                static void checkItems(ScribusDoc *currDoc, const CheckerPrefs& checkerSettings);
2111 cbradney 48
};
49
 
50
#endif