Subversion Repositories Scribus

Rev

Rev 512 | Rev 1208 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
283 Franz 1
#ifndef _SCRIBUS_PIXMAPEXPORT_H_
2
#define _SCRIBUS_PIXMAPEXPORT_H_
3
 
4
#include <scribus.h>
5
#include <qstring.h>
6
#include <qfiledialog.h>
7
 
287 Franz 8
/*! Calls the Plugin with the main Application window as parent
9
        and the main Application Class as parameter */
283 Franz 10
extern "C" void Run(QWidget *d, ScribusApp *plug);
11
 
12
 
287 Franz 13
/*! Returns the Name of the Plugin.
14
        This name appears in the relevant Menue-Entrys */
283 Franz 15
extern "C" QString Name();
16
 
17
 
287 Franz 18
/*! Returns the Type of the Plugin.
283 Franz 19
  \retval 1 = the Plugin is a normal Plugin, which appears in the Extras Menue
20
  \retval 2 = the Plugin is a Import Plugin, which appears in the Import Menue
21
  \retval 3 = the Plugin is a Export Plugin, which appears in the Export Menue
287 Franz 22
  \retval 4 = the Plugin is a resident Plugin   */
283 Franz 23
extern "C" int Type();
512 fschmid 24
extern "C" int ID();
283 Franz 25
 
287 Franz 26
/*! Handles export. */
283 Franz 27
class ExportBitmap: public QObject
28
{
29
        Q_OBJECT
30
public:
287 Franz 31
  /*! Initializing the default export variables and attributes */
283 Franz 32
        ExportBitmap(ScribusApp *plug);
287 Franz 33
        /*! nothing doing destructor. */
283 Franz 34
        ~ExportBitmap();
35
 
287 Franz 36
  /*! Type of the exported image */
283 Franz 37
        QString bitmapType;
287 Franz 38
  /*! Height of the page - exported image */
283 Franz 39
        int pageSize;
552 fschmid 40
        /*! Enlargement of the exported image... 2x 3x etc. */
41
        int enlargement;
287 Franz 42
  /*! Quality of the image <0; 100> */
283 Franz 43
        int quality;
287 Franz 44
  /*! A place for stored images */
283 Franz 45
        QString exportDir;
287 Franz 46
  /*! Overwrite the existing files? */
283 Franz 47
        bool overwrite;
48
 
287 Franz 49
  /*! Exports only the actual page */
283 Franz 50
        bool exportActual();
287 Franz 51
  /*! Exports chosen interval of the pages */
359 Franz 52
        bool exportInterval(std::vector<int> &pageNs);
283 Franz 53
private:
287 Franz 54
  /*! reference to the Scribus application object */
283 Franz 55
        ScribusApp *carrier;
287 Franz 56
        /*! create specified filename "docfilename-005.ext" */
283 Franz 57
        QString getFileName(uint pageNr);
287 Franz 58
        /*! export one specified page
59
        \param pageNr number of the page
60
        \param single bool TRUE if only the one page is exported
61
        */
62
  bool exportPage(uint pageNr, bool single);
283 Franz 63
};
64
 
65
#endif
66