Viswin cerca l'editor nella variabile 'txt' del paragrafo 'Link' del
file prassi.ini git-svn-id: svn://10.65.10.50/trunk@508 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
fd95ce86d6
commit
82ea72349f
@ -1,4 +1,4 @@
|
|||||||
// $Id: printapp.cpp,v 1.13 1994-10-24 15:06:37 guy Exp $
|
// $Id: printapp.cpp,v 1.14 1994-11-02 08:47:08 villa Exp $
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
@ -1096,20 +1096,20 @@ bool TPrint_application::print_one (int file)
|
|||||||
((TPrintrow *) (&rw[pt->row ()]))->put (v, pos[pt->row ()]);
|
((TPrintrow *) (&rw[pt->row ()]))->put (v, pos[pt->row ()]);
|
||||||
if (pos[pt->row ()] != -1)
|
if (pos[pt->row ()] != -1)
|
||||||
{
|
{
|
||||||
pos[pt->row ()] += v.len ();
|
pos[pt->row ()] += v.len ();
|
||||||
const char * s = v;
|
const char* s = v;
|
||||||
while (*s && strncmp(s, "$[", 2) == 0)
|
while (*s && strncmp(s, "$[", 2) == 0)
|
||||||
{
|
{
|
||||||
while (*s && *s != ']')
|
while (*s && *s != ']')
|
||||||
{
|
{
|
||||||
pos[pt->row()]--;
|
pos[pt->row()]--;
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
if (*s)
|
if (*s)
|
||||||
pos[pt->row()]--;
|
pos[pt->row()]--;
|
||||||
while (*s && *s != '$') s++;
|
while (*s && *s != '$') s++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (t->tag () == 2)
|
if (t->tag () == 2)
|
||||||
|
@ -59,7 +59,7 @@ void TPrinter::_get_windows_printer_names (TToken_string & t)
|
|||||||
BOOLEAN TPrinter::start_winprint (long data)
|
BOOLEAN TPrinter::start_winprint (long data)
|
||||||
{
|
{
|
||||||
PrDesc *pd = (PrDesc *) data;
|
PrDesc *pd = (PrDesc *) data;
|
||||||
TTextfile & txt = *(pd->_txt);
|
TTextfile& txt = *(pd->_txt);
|
||||||
TPrintwin pw (pd->_prcd, txt, pd->_charsize);
|
TPrintwin pw (pd->_prcd, txt, pd->_charsize);
|
||||||
pw.print_background (pd->_graphics);
|
pw.print_background (pd->_graphics);
|
||||||
pw.do_print ();
|
pw.do_print ();
|
||||||
@ -908,6 +908,7 @@ bool TPrinter::printrow (TPrintrow * rowtoprint)
|
|||||||
if (_printertype == winprinter)
|
if (_printertype == winprinter)
|
||||||
{
|
{
|
||||||
// add line to txt
|
// add line to txt
|
||||||
|
// CHECK balla colori
|
||||||
if (!_frozen)
|
if (!_frozen)
|
||||||
_txt.append (rw);
|
_txt.append (rw);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -1733,8 +1733,8 @@ default:
|
|||||||
|
|
||||||
bool TViswin::call_editor ()
|
bool TViswin::call_editor ()
|
||||||
{
|
{
|
||||||
TConfig cnf (CONFIG_STUDIO, "Main");
|
TConfig cnf (CONFIG_GENERAL, "Link");
|
||||||
TString editor (cnf.get ("Editor"));
|
TString editor (cnf.get ("txt"));
|
||||||
|
|
||||||
bool ok = FALSE;
|
bool ok = FALSE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user