Sistemata uscita se 1 voce menu -- chi lo cambia ancora e' uno strumpf
git-svn-id: svn://10.65.10.50/trunk@31 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
fc241b61f6
commit
ced946d630
@ -1,4 +1,4 @@
|
||||
// $Id: printapp.cpp,v 1.2 1994-08-17 07:58:45 villa Exp $
|
||||
// $Id: printapp.cpp,v 1.3 1994-08-18 07:43:44 villa Exp $
|
||||
#include <ctype.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
@ -836,11 +836,11 @@ print ()
|
||||
_prind = NULL;
|
||||
}
|
||||
}
|
||||
if (printer ().isopen ())
|
||||
if (printer().isopen ())
|
||||
{
|
||||
printer ().close ();
|
||||
printer ().resetheader ();
|
||||
printer ().resetfooter ();
|
||||
printer().close ();
|
||||
printer().resetheader ();
|
||||
printer().resetfooter ();
|
||||
}
|
||||
postclose_print ();
|
||||
}
|
||||
@ -1177,8 +1177,7 @@ print_one (int file)
|
||||
return i == _maxrow + 1;
|
||||
}
|
||||
|
||||
bool TPrint_application ::
|
||||
menu (MENU_TAG m)
|
||||
bool TPrint_application::menu(MENU_TAG m)
|
||||
{
|
||||
// funziona da se' fino a 20 voci della menubar
|
||||
if (m >= BAR_ITEM (1) && m <= BAR_ITEM (20))
|
||||
@ -1188,13 +1187,12 @@ menu (MENU_TAG m)
|
||||
}
|
||||
|
||||
// Se non esistono altre voci di menu termina l'applicazione
|
||||
return !xvt_test_menu_tag (BAR_ITEM (2));
|
||||
return xvt_test_menu_tag (BAR_ITEM (2));
|
||||
}
|
||||
|
||||
bool TPrint_application ::
|
||||
create ()
|
||||
bool TPrint_application::create ()
|
||||
{
|
||||
TApplication ::create ();
|
||||
TApplication ::create ();
|
||||
printer ().setfooterhandler (_pp_footer);
|
||||
printer ().setheaderhandler (_pp_header);
|
||||
printer ().setlinkhandler (_pp_link);
|
||||
@ -1203,16 +1201,14 @@ TApplication ::create ();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool TPrint_application ::
|
||||
destroy ()
|
||||
bool TPrint_application::destroy ()
|
||||
{
|
||||
user_destroy ();
|
||||
TApplication ::destroy ();
|
||||
TApplication::destroy ();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void TPrint_application ::
|
||||
do_print (int n)
|
||||
void TPrint_application::do_print (int n)
|
||||
{
|
||||
while (set_print (n))
|
||||
{
|
||||
@ -1221,33 +1217,29 @@ do_print (int n)
|
||||
}
|
||||
}
|
||||
|
||||
void TPrint_application ::
|
||||
enable_print_menu ()
|
||||
void TPrint_application::enable_print_menu ()
|
||||
{
|
||||
enable_menu_item (M_FILE_PRINT, TRUE);
|
||||
}
|
||||
|
||||
void TPrint_application ::
|
||||
disable_print_menu ()
|
||||
void TPrint_application::disable_print_menu ()
|
||||
{
|
||||
enable_menu_item (M_FILE_PRINT, FALSE);
|
||||
}
|
||||
|
||||
void TPrint_application ::
|
||||
enable_setprint_menu ()
|
||||
void TPrint_application::enable_setprint_menu ()
|
||||
{
|
||||
enable_menu_item (BAR_ITEM (1), TRUE);
|
||||
}
|
||||
|
||||
void TPrint_application ::
|
||||
disable_setprint_menu ()
|
||||
void TPrint_application::disable_setprint_menu ()
|
||||
{
|
||||
enable_menu_item (BAR_ITEM (1), FALSE);
|
||||
}
|
||||
|
||||
TPrint_application :: TPrint_application ():TApplication (), _transtab (10),
|
||||
_cursors (10), _header (10),
|
||||
_footer (10), _rows (100)
|
||||
TPrint_application::TPrint_application ():TApplication (), _transtab (10),
|
||||
_cursors (10), _header (10),
|
||||
_footer (10), _rows (100)
|
||||
{
|
||||
_cur = NULL;
|
||||
_currow = _maxrow = 0;
|
||||
@ -1268,7 +1260,7 @@ _footer (10), _rows (100)
|
||||
_last_choice = BAR_ITEM (1);
|
||||
}
|
||||
|
||||
TPrint_application ::~TPrint_application ()
|
||||
TPrint_application::~TPrint_application ()
|
||||
{
|
||||
reset_files ();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user