Subversion Repositories svn1-original

Rev

Rev 174 | Rev 199 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 174 Rev 178
Line 16... Line 16...
16
 *
16
 *
17
 * revision date        by      reason
17
 * revision date        by      reason
18
 *  00.0    27/01/95    DDP     Tidies up the program and formatted the file
18
 *  00.0    27/01/95    DDP     Tidies up the program and formatted the file
19
 *
19
 *
20
 **************************************************************************/
20
 **************************************************************************/
21
 
-
 
-
 
21
#include <QString>
22
#include    <stdio.h>
22
#include    <stdio.h>
23
#include    <time.h>
23
#include    <time.h>
24
#include    <stdarg.h>
24
#include    <stdarg.h>
25
#include    "mainwindow.h"
25
#include    "mainwindow.h"
26
 
26
 
Line 103... Line 103...
103
 *  Note: Use an "htm" file extension as DOS cannot handle 4 letter extensions
103
 *  Note: Use an "htm" file extension as DOS cannot handle 4 letter extensions
104
----------------------------------------------------------------------------*/
104
----------------------------------------------------------------------------*/
105
 
105
 
106
bool open_printer_name( const char *pname, int width, report_type html, const char *title )
106
bool open_printer_name( const char *pname, int width, report_type html, const char *title )
107
{
107
{
-
 
108
    QString printFileName(filepath);
-
 
109
    printFileName.append(pname);
-
 
110
 
108
    print_width = width ? width : 80;
111
    print_width = width ? width : 80;
109
    print_col = 0;
112
    print_col = 0;
110
    print_line = 0;
113
    print_line = 0;
111
    print_underline_start = -1;
114
    print_underline_start = -1;
112
    print_underline_end = -1;
115
    print_underline_end = -1;
Line 114... Line 117...
114
 
117
 
115
    /*
118
    /*
116
    **  Open the printer
119
    **  Open the printer
117
    **  Ensure that it is opened in text mode
120
    **  Ensure that it is opened in text mode
118
    */
121
    */
119
    if( ( pfile = fopen( pname, "wt" ) ) != NULL )
122
    if( ( pfile = fopen( qPrintable(printFileName), "wt" ) ) != NULL )
120
    {
123
    {
121
        time( &pri_time );                       /* Latch the time */
124
        time( &pri_time );                       /* Latch the time */
122
 
125
 
123
        /*
126
        /*
124
        **  Print out the HTML file header
127
        **  Print out the HTML file header