/// This should never really get created
-#define WXLLIST_TEMPFILE "__wxllist.tmp"
+#define WXLLIST_TEMPFILE _T("__wxllist.tmp")
#ifdef WXLAYOUT_DEBUG
#define WXLO_MINIMUM_CURSOR_WIDTH 4
/// Use this character to estimate a cursor size when none is available.
-#define WXLO_CURSORCHAR "E"
+#define WXLO_CURSORCHAR _T("E")
/** @name Helper functions */
//@{
/// allows me to compare to wxPoints
if(len < obj->GetLength())
str = (*(wxLayoutObjectText*)*i).GetText().substr(len,1);
else
- str = _T(WXLO_CURSORCHAR);
+ str = WXLO_CURSORCHAR;
dc.GetTextExtent(str, &width, &height, &descent);
if(cursorStyle) // set style info
if(m_Height == 0)
{
CoordType width, height, descent;
- dc.GetTextExtent(_T(WXLO_CURSORCHAR), &width, &height, &descent);
+ dc.GetTextExtent(WXLO_CURSORCHAR, &width, &height, &descent);
m_Height = height;
m_BaseLine = m_Height - descent;
}
if(cursorSize->x < WXLO_MINIMUM_CURSOR_WIDTH)
{
CoordType width, height, descent;
- dc.GetTextExtent(_T(WXLO_CURSORCHAR), &width, &height, &descent);
+ dc.GetTextExtent(WXLO_CURSORCHAR, &width, &height, &descent);
cursorSize->x = width;
cursorSize->y = height;
}
determine the correct paper size and scaling. We don't actually
print anything on it. */
#if defined(__WXMSW__) || defined(__WXMAC__)
- wxPrinterDC *psdc = new wxPrinterDC(wxEmptyString,wxEmptyString,_T(WXLLIST_TEMPFILE),false);
+ wxPrinterDC *psdc = new wxPrinterDC(wxEmptyString,wxEmptyString,WXLLIST_TEMPFILE,false);
#else
wxPrintData data;
data.SetFilename(WXLLIST_TEMPFILE);
*selPageTo = m_NumOfPages;
psdc->EndDoc();
delete psdc;
- wxRemoveFile(_T(WXLLIST_TEMPFILE));
+ wxRemoveFile(WXLLIST_TEMPFILE);
}
bool wxLayoutPrintout::HasPage(int pageNum)