Subversion Repositories Scribus

Rev

Rev 2030 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1972 craig 1
#include "pdfoptions.h"
2
#include "scribusstructs.h"
3
 
4
PDFOptions::VerifyResults PDFOptions::verify(QString* problemDescription)
5
{
6
        // TODO: implement this method
7
        return Verify_OtherError;
8
}
9
 
10
bool PDFOptions::saveTo(QTextStream& outStream) const
11
{
12
        if (!outStream.device()->isWritable())
13
                return false;
14
        // TODO: implement this method
15
        return false;
16
}
17
 
18
// overload of bool PDFOptions::saveTo(QTextStream& outStream) const
19
bool PDFOptions::saveTo(QString outFileName) const
20
{
21
        QTextStream ts(outFileName, IO_WriteOnly|IO_Truncate);
22
        return saveTo(ts);
23
}
24
 
25
// overload of bool PDFOptions::saveTo(QTextStream& outStream) const
26
bool PDFOptions::saveTo(FILE* outFilePtr) const
27
{
28
        QTextStream ts(outFilePtr, IO_WriteOnly|IO_Truncate);
29
        return saveTo(ts);
30
}
31
 
32
bool readFrom(QTextStream& inStream)
33
{
34
        if (!inStream.device()->isReadable())
35
                return false;
36
        // TODO: implement this method
37
        return false;
38
}
39
 
40
// overload of bool readFrom(QTextStream& inStream)
41
bool readFrom(QString inFileName)
42
{
43
        QTextStream ts(inFileName, IO_ReadOnly);
44
        return readFrom(ts);
45
}
46
 
47
// overload of bool readFrom(QTextStream& inStream)
48
bool readFrom(FILE* inFilePtr)
49
{
50
        QTextStream ts(inFilePtr, IO_ReadOnly);
51
        return readFrom(ts);
52
}