summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9d6eda5)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28245
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if(obj->m_StyleInfo->m_fg_valid)
{
if(obj->m_StyleInfo->m_fg_valid)
{
+ unsigned char red, green, blue;
ReadString(tmp, istr);
tmp.ToLong(&l);
ReadString(tmp, istr);
tmp.ToLong(&l);
+ red = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
ReadString(tmp, istr);
tmp.ToLong(&l);
+ green = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
ReadString(tmp, istr);
tmp.ToLong(&l);
+ blue = (unsigned char) l;
obj->m_StyleInfo->m_fg = wxColour(red, green, blue);
}
if(obj->m_StyleInfo->m_bg_valid)
{
obj->m_StyleInfo->m_fg = wxColour(red, green, blue);
}
if(obj->m_StyleInfo->m_bg_valid)
{
+ unsigned char red, green, blue;
ReadString(tmp, istr);
tmp.ToLong(&l);
ReadString(tmp, istr);
tmp.ToLong(&l);
+ red = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
ReadString(tmp, istr);
tmp.ToLong(&l);
+ green = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
ReadString(tmp, istr);
tmp.ToLong(&l);
+ blue = (unsigned char) l;
obj->m_StyleInfo->m_bg = wxColour(red, green, blue);
}
obj->m_StyleInfo->m_bg = wxColour(red, green, blue);
}
wxChar ch2=xitle[s+2]&0xff;
wxChar ch3=xitle[s+3]&0xff;
s+=4; // next character
wxChar ch2=xitle[s+2]&0xff;
wxChar ch3=xitle[s+3]&0xff;
s+=4; // next character
- if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x36)) { title[d++]='ö'; }
- if ((ch1==0x27)&&(ch2==0x65)&&(ch3==0x34)) { title[d++]='ä'; }
- if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x63)) { title[d++]='ü'; }
- if ((ch1==0x27)&&(ch2==0x64)&&(ch3==0x36)) { title[d++]='Ö'; }
- if ((ch1==0x27)&&(ch2==0x63)&&(ch3==0x34)) { title[d++]='Ä'; }
- if ((ch1==0x27)&&(ch2==0x64)&&(ch3==0x63)) { title[d++]='Ü'; }
+ if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x36)) { title[d++]=_T('ö'); }
+ if ((ch1==0x27)&&(ch2==0x65)&&(ch3==0x34)) { title[d++]=_T('ä'); }
+ if ((ch1==0x27)&&(ch2==0x66)&&(ch3==0x63)) { title[d++]=_T('ü'); }
+ if ((ch1==0x27)&&(ch2==0x64)&&(ch3==0x36)) { title[d++]=_T('Ö'); }
+ if ((ch1==0x27)&&(ch2==0x63)&&(ch3==0x34)) { title[d++]=_T('Ä'); }
+ if ((ch1==0x27)&&(ch2==0x64)&&(ch3==0x63)) { title[d++]=_T('Ü'); }
} else {
title[d++]=ch;
s++;
} else {
title[d++]=ch;
s++;
while ((i < len) && (isdigit(ch) || ch == '.'))
{
while ((i < len) && (isdigit(ch) || ch == '.'))
{
+ numberBuf[j] = (wxChar)ch;
j ++;
i ++;
ch = value[i];
j ++;
i ++;
ch = value[i];
{ return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
#endif
{ return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
#endif
-const float versionNo = TEX2RTF_VERSION_NUMBER;
+const float versionNo = (float)TEX2RTF_VERSION_NUMBER;
TexChunk *currentMember = NULL;
bool startedSections = false;
TexChunk *currentMember = NULL;
bool startedSections = false;
#ifdef NO_GUI
ShowOptions();
exit(1);
#ifdef NO_GUI
ShowOptions();
exit(1);
void BibEatWhiteSpace(wxSTD istream& str)
{
void BibEatWhiteSpace(wxSTD istream& str)
{
+ char ch = (char)str.peek();
while (!str.eof() && (ch == ' ' || ch == '\t' || ch == 13 || ch == 10 || ch == EOF))
{
while (!str.eof() && (ch == ' ' || ch == '\t' || ch == 13 || ch == 10 || ch == EOF))
{
BibLine ++;
str.get(ch);
if ((ch == EOF) || str.eof()) return;
BibLine ++;
str.get(ch);
if ((ch == EOF) || str.eof()) return;
}
// Ignore end-of-line comments
if (ch == '%' || ch == ';' || ch == '#')
{
str.get(ch);
}
// Ignore end-of-line comments
if (ch == '%' || ch == ';' || ch == '#')
{
str.get(ch);
while (ch != 10 && ch != 13 && !str.eof())
{
str.get(ch);
while (ch != 10 && ch != 13 && !str.eof())
{
str.get(ch);
}
BibEatWhiteSpace(str);
}
}
BibEatWhiteSpace(str);
}
{
int i = 0;
buffer[i] = 0;
{
int i = 0;
buffer[i] = 0;
+ char ch = (char)istr.peek();
while (!istr.eof() && ch != ' ' && ch != '{' && ch != '(' && ch != 13 && ch != 10 && ch != '\t' &&
ch != ',' && ch != '=')
{
istr.get(ch);
buffer[i] = ch;
i ++;
while (!istr.eof() && ch != ' ' && ch != '{' && ch != '(' && ch != 13 && ch != 10 && ch != '\t' &&
ch != ',' && ch != '=')
{
istr.get(ch);
buffer[i] = ch;
i ++;
+ ch = (char)istr.peek();
{
int i = 0;
buffer[i] = 0;
{
int i = 0;
buffer[i] = 0;
+ char ch = (char)istr.peek();
bool inQuotes = false;
if (ch == '"')
{
istr.get(ch);
bool inQuotes = false;
if (ch == '"')
{
istr.get(ch);
+ ch = (char)istr.peek();
inQuotes = true;
}
// If in quotes, read white space too. If not,
inQuotes = true;
}
// If in quotes, read white space too. If not,
istr.get(ch);
buffer[i] = ch;
i ++;
istr.get(ch);
buffer[i] = ch;
i ++;
+ ch = (char)istr.peek();
}
if (ch == '"')
istr.get(ch);
}
if (ch == '"')
istr.get(ch);
int braceCount = 1;
int i = 0;
buffer[i] = 0;
int braceCount = 1;
int i = 0;
buffer[i] = 0;
+ char ch = (char)istr.peek();
bool stopping = false;
while (!istr.eof() && !stopping)
{
bool stopping = false;
while (!istr.eof() && !stopping)
{