Patch level : 2.1 nopatch

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Aggiunte per nuovi reports


git-svn-id: svn://10.65.10.50/trunk@11911 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2004-03-25 16:33:53 +00:00
parent de06f177f3
commit ab33d85945
3 changed files with 6 additions and 7 deletions

@ -1836,10 +1836,6 @@ void TPrinter::print_txt(TTextfile& txt)
xvt_print_start_thread(start_print, long(&what));
xvt_print_close();
}
/*
if (is_generic())
os_spool_row("\n"); // Force flushing on Generic printer
*/
}
}

@ -149,9 +149,12 @@ TXmlItem& TXmlItem::SetAttr(const char* strAttr, int n)
return SetAttr(strAttr, str);
}
int TXmlItem::GetIntAttr(const char* strAttr) const
int TXmlItem::GetIntAttr(const char* strAttr, int def) const
{
return atoi(GetAttr(strAttr));
const TString& str = GetAttr(strAttr);
if (str.not_empty())
def = atoi(str);
return def;
}
TXmlItem& TXmlItem::SetAttr(const char* strAttr, bool b)

@ -47,7 +47,7 @@ public:
TXmlItem& SetAttr(const char* strAttr, const char* strVal);
const TString& GetAttr(const char* strAttr) const;
TXmlItem& SetAttr(const char* strAttr, int n);
int GetIntAttr(const char* strAttr) const;
int GetIntAttr(const char* strAttr, int def = 0) const;
TXmlItem& SetAttr(const char* strAttr, bool yes);
bool GetBoolAttr(const char* strAttr) const;