git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@288
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void ClearDatabase(void);
void AddPaperType(char *name, int wmm, int hmm, int wp, int hp);
void ClearDatabase(void);
void AddPaperType(char *name, int wmm, int hmm, int wp, int hp);
- wxPrintPaperType *FindPaperType(char *name);
+ wxPrintPaperType *FindPaperType(const char *name);
};
WXDLLEXPORT_DATA(extern wxPrintPaperDatabase*) wxThePrintPaperDatabase;
};
WXDLLEXPORT_DATA(extern wxPrintPaperDatabase*) wxThePrintPaperDatabase;
- wxPrintout(char *title = "Printout");
+ wxPrintout(const char *title = "Printout");
~wxPrintout(void);
virtual bool OnBeginDocument(int startPage, int endPage);
~wxPrintout(void);
virtual bool OnBeginDocument(int startPage, int endPage);
- char *name;
- char *style = "";
+ const char *name;
+ const char *style = "";
int Style = m_font.GetStyle ();
int Weight = m_font.GetWeight ();
int Style = m_font.GetStyle ();
int Weight = m_font.GetWeight ();
will be first black line *2* units long, then space 4 units, then the
pattern of *3* units black, 4 units space will be repeated.
*/
will be first black line *2* units long, then space 4 units, then the
pattern of *3* units black, 4 units space will be repeated.
*/
- static char *dotted = "[2 5] 2";
- static char *short_dashed = "[4 4] 2";
- static char *long_dashed = "[4 8] 2";
- static char *dotted_dashed = "[6 6 2 6] 4";
+ static const char *dotted = "[2 5] 2";
+ static const char *short_dashed = "[4 4] 2";
+ static const char *long_dashed = "[4 8] 2";
+ static const char *dotted_dashed = "[6 6 2 6] 4";
+ const char *psdash = NULL;
switch (m_pen.GetStyle ())
{
case wxDOT:
switch (m_pen.GetStyle ())
{
case wxDOT:
// 1. construct filename ******************************************
/* MATTHEW: [2] Use wxTheFontNameDirectory */
// 1. construct filename ******************************************
/* MATTHEW: [2] Use wxTheFontNameDirectory */
// Julian - we'll need to do this a different way now we've removed the
// font directory system. Must find Stefan's original code.
// Julian - we'll need to do this a different way now we've removed the
// font directory system. Must find Stefan's original code.
void wxPostScriptDC::GetSize(int* width, int* height) const
{
void wxPostScriptDC::GetSize(int* width, int* height) const
{
- char *paperType = wxThePrintSetupData->GetPaperName();
+ const char *paperType = wxThePrintSetupData->GetPaperName();
if (!paperType)
paperType = "A4 210 x 297 mm";
if (!paperType)
paperType = "A4 210 x 297 mm";
void wxPostScriptDC::GetSizeMM(long *width, long *height) const
{
void wxPostScriptDC::GetSizeMM(long *width, long *height) const
{
- char *paperType = wxThePrintSetupData->GetPaperName();
+ const char *paperType = wxThePrintSetupData->GetPaperName();
if (!paperType)
paperType = "A4 210 x 297 mm";
if (!paperType)
paperType = "A4 210 x 297 mm";
Append(name, new wxPrintPaperType(name, wmm, hmm, wp, hp));
}
Append(name, new wxPrintPaperType(name, wmm, hmm, wp, hp));
}
-wxPrintPaperType *wxPrintPaperDatabase::FindPaperType(char *name)
+wxPrintPaperType *wxPrintPaperDatabase::FindPaperType(const char *name)
{
wxNode *node = Find(name);
if (node)
{
wxNode *node = Find(name);
if (node)
-wxPrintout::wxPrintout(char *title)
+wxPrintout::wxPrintout(const char *title)
- printoutTitle = title ? copystring(title) : (char*)NULL;
+ printoutTitle = title ? copystring(title) : NULL;
printoutDC = NULL;
pageWidthMM = 0;
pageHeightMM = 0;
printoutDC = NULL;
pageWidthMM = 0;
pageHeightMM = 0;