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 <ctype.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
@ -1177,8 +1177,7 @@ print_one (int file)
|
|||||||
return i == _maxrow + 1;
|
return i == _maxrow + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TPrint_application ::
|
bool TPrint_application::menu(MENU_TAG m)
|
||||||
menu (MENU_TAG m)
|
|
||||||
{
|
{
|
||||||
// funziona da se' fino a 20 voci della menubar
|
// funziona da se' fino a 20 voci della menubar
|
||||||
if (m >= BAR_ITEM (1) && m <= BAR_ITEM (20))
|
if (m >= BAR_ITEM (1) && m <= BAR_ITEM (20))
|
||||||
@ -1188,11 +1187,10 @@ menu (MENU_TAG m)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Se non esistono altre voci di menu termina l'applicazione
|
// 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 ::
|
bool TPrint_application::create ()
|
||||||
create ()
|
|
||||||
{
|
{
|
||||||
TApplication ::create ();
|
TApplication ::create ();
|
||||||
printer ().setfooterhandler (_pp_footer);
|
printer ().setfooterhandler (_pp_footer);
|
||||||
@ -1203,16 +1201,14 @@ TApplication ::create ();
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TPrint_application ::
|
bool TPrint_application::destroy ()
|
||||||
destroy ()
|
|
||||||
{
|
{
|
||||||
user_destroy ();
|
user_destroy ();
|
||||||
TApplication::destroy ();
|
TApplication::destroy ();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TPrint_application ::
|
void TPrint_application::do_print (int n)
|
||||||
do_print (int n)
|
|
||||||
{
|
{
|
||||||
while (set_print (n))
|
while (set_print (n))
|
||||||
{
|
{
|
||||||
@ -1221,26 +1217,22 @@ do_print (int n)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TPrint_application ::
|
void TPrint_application::enable_print_menu ()
|
||||||
enable_print_menu ()
|
|
||||||
{
|
{
|
||||||
enable_menu_item (M_FILE_PRINT, TRUE);
|
enable_menu_item (M_FILE_PRINT, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TPrint_application ::
|
void TPrint_application::disable_print_menu ()
|
||||||
disable_print_menu ()
|
|
||||||
{
|
{
|
||||||
enable_menu_item (M_FILE_PRINT, FALSE);
|
enable_menu_item (M_FILE_PRINT, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TPrint_application ::
|
void TPrint_application::enable_setprint_menu ()
|
||||||
enable_setprint_menu ()
|
|
||||||
{
|
{
|
||||||
enable_menu_item (BAR_ITEM (1), TRUE);
|
enable_menu_item (BAR_ITEM (1), TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TPrint_application ::
|
void TPrint_application::disable_setprint_menu ()
|
||||||
disable_setprint_menu ()
|
|
||||||
{
|
{
|
||||||
enable_menu_item (BAR_ITEM (1), FALSE);
|
enable_menu_item (BAR_ITEM (1), FALSE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user