From 0270efe4ef46cfbaff8596d3530306f4e44cfbe1 Mon Sep 17 00:00:00 2001 From: luca Date: Mon, 2 Apr 2007 08:25:53 +0000 Subject: [PATCH] Patch level :4.0 673 Files correlati : Ricompilazione Demo : [ ] Commento :corretti 46 errori di riporto! git-svn-id: svn://10.65.10.50/trunk@15154 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/reprint.cpp | 88 +++------------------------------------------ include/reprint.h | 9 ++--- 2 files changed, 7 insertions(+), 90 deletions(-) diff --git a/include/reprint.cpp b/include/reprint.cpp index cc80cbd43..a99530377 100755 --- a/include/reprint.cpp +++ b/include/reprint.cpp @@ -918,6 +918,7 @@ bool TBook::open_page() _print_aborted = false; _page_is_open = true; return _page_is_open; +} bool TBook::close_page() { @@ -1399,6 +1400,8 @@ bool TBook::print_page(TWindow& win, size_t page) xvt_dwin_draw_roundrect(w, &rct, rad, rad); continue; } + if (str.starts_with("", p); - } else - if (str.starts_with("", &x, &y, &dx, &dy); - str.format("", x-rct_page.x, y, dx, dy); - } else - if (str.starts_with("", index.last()); - } - - out << str << endl; - if (str.starts_with("close(); - delete _out; - } - _out = NULL; -} - void TBook::split_file(int colonne) { TProgind pi(pages(), TR("Rigenerazione pagine"), true, true); @@ -2054,7 +1974,7 @@ bool TBook::print_or_preview() TBook::TBook(const char* name) : _out(NULL), _is_temporary(false), - _pw(0), _ph(0), _pvr(0), _phr(0), _max_frame(0), + _pw(0), _ph(0), _pvr(0), _phr(0), _max_frame(0,0), _pages(0), _page(0), _rcd(NULL), _printwin(NULL), _page_is_open(false) diff --git a/include/reprint.h b/include/reprint.h index 8a614800a..b4da2ce45 100755 --- a/include/reprint.h +++ b/include/reprint.h @@ -15,8 +15,7 @@ class TBook : public TObject ofstream* _out; // File di output TPointer_array _index; // Indice delle pagine - bool _is_temporary; // Flag di file di output temporaneo - int _max_frame; // Massimo rettangolo scritto sul file di output + bool _is_temporary; // Flag di file di output temporaneo DRAW_CTOOLS _tools; TReport_font _font; @@ -25,7 +24,7 @@ class TBook : public TObject TReport_image_cache _images; size_t _pagefrom, _pageto, _copies; - TPoint _max_frame; + TPoint _max_frame; // Massimo rettangolo scritto sul file di output protected: PRINT_RCD* _rcd; @@ -44,8 +43,6 @@ protected: void join_file(int pps); bool split_file_if_needed(); bool is_pdf() const { return _pdf_file.full(); } - void close_output(); - bool split_file_if_needed(); public: virtual bool open_page(); @@ -81,7 +78,7 @@ public: virtual int logical_page_height() const { return page_size().y * lpi() / page_res().y * 100; } virtual bool print_page(TWindow& win, size_t page); - virtual void print_doc(TWindow& win, const TFilename& name); +// virtual void print_doc(TWindow& win, const TFilename& name); virtual bool on_link(const TReport_link&) { return false; } virtual bool print(size_t pagefrom = 0, size_t pageto = 0, size_t copies = 0);