Lines Matching refs:c

288 UCHAR ConvertTextChar(UCHAR c)  in ConvertTextChar()  argument
290 if (c<32) { in ConvertTextChar()
291 switch (c) { in ConvertTextChar()
292 case HardSpace : c=' '; break; in ConvertTextChar()
293 case AbsatzEnd : c=' '; break; in ConvertTextChar()
294 case SoftTrenn : c='-'; break; in ConvertTextChar()
295 case HardTrenn : c='-'; break; in ConvertTextChar()
296 case SoftTrennK : c='-'; break; in ConvertTextChar()
297 case SoftTrennAdd: c='-'; in ConvertTextChar()
300 return c; in ConvertTextChar()
305 sal_uInt16 GetSchnittBit(UCHAR c) in GetSchnittBit() argument
308 switch (c) { in GetSchnittBit()
385 UCHAR c; in ProcessOne() local
396 c=TBuf[Index]; Index++; in ProcessOne()
397 Ende=(c!=Escape); in ProcessOne()
399 c=TBuf[Index]; Index++; in ProcessOne()
400 Ident=c; // Identifer merken in ProcessOne()
403 c=TBuf[Index]; Index++; // Hier faengt der Wert an in ProcessOne()
404 if (c==EscSet || c==EscReset || c==EscDeflt || c==EscToggl) FlgVal=c; else { in ProcessOne()
405 if (c=='-') Sgn=-1; else Sgn=1; in ProcessOne()
406 if (c=='+' || c=='-') { c=TBuf[Index]; Index++; } in ProcessOne()
410 NumVal=10*NumVal+c-'0'; in ProcessOne()
412 if (EoVal==sal_False) { c=TBuf[Index]; Index++; } in ProcessOne()
464 if (Ende==sal_False) c=Escape; in ProcessOne()
465 return c; in ProcessOne()
473 UCHAR c,c0,nc; in GetTextChar() local
475 c=ProcessOne(TBuf,Index,Atr0,AktAtr,ScanEsc); in GetTextChar()
477 if (c==SoftTrennAdd || c==SoftTrennK || c==SoftTrenn) { in GetTextChar()
479 c0=c; in GetTextChar()
481 nc==' ' || nc==AbsatzEnd || nc==TextEnd) c='-'; in GetTextChar()
483 c=ProcessOne(TBuf,Index,Atr0,AktAtr,ScanEsc); // den Trenner ueberspringen in GetTextChar()
485 …if (c>=32) c=ProcessOne(TBuf,Index,Atr0,AktAtr,ScanEsc); // und hier noch 'nen Buchstaben ueberspr… in GetTextChar()
490 if (c=='c') c='k'; in GetTextChar()
491 else if (c=='C') c='K'; in GetTextChar()
494 return c; in GetTextChar()
510 UCHAR c; in GetTextCharConv() local
512 c=GetTextChar(TBuf,Index,Atr0,AktAtr,Rest,ScanEsc); in GetTextCharConv()
513 if (c<32) { in GetTextCharConv()
514 switch (c) { in GetTextCharConv()
515 case HardSpace : c=' '; break; in GetTextCharConv()
516 case AbsatzEnd : c=' '; break; in GetTextCharConv()
517 case HardTrenn : c='-'; in GetTextCharConv()
520 return c; in GetTextCharConv()
532 UCHAR c=0; in GetLineFeed() local
545 c=GetTextChar(TBuf,Index,Atr0,AktAtr,nChar,sal_False); in GetLineFeed()
547 AbsEnd=(c==TextEnd || c==AbsatzEnd); in GetLineFeed()
548 if (First || (!AbsEnd && c!=' ' && c!=HardTrenn)) { in GetLineFeed()
559 if (!AbsEnd && c!=' ') r=i; in GetLineFeed()
717 sal_Bool UpcasePossible(UCHAR c) in UpcasePossible() argument
719 if ((c>='a' && c<='z') || c == 0xe4 || c == 0xf6 || c == 0xfc ) return sal_True; in UpcasePossible()
723 UCHAR Upcase(UCHAR c) in Upcase() argument
725 if ((c>=(UCHAR)'a' && c<=(UCHAR)'z')) c=(c-(UCHAR)'a')+(UCHAR)'A'; in Upcase()
726 else if ( c == 0xe4 ) c = 0xc4; in Upcase()
727 else if ( c == 0xf6 ) c = 0xd6; in Upcase()
728 else if ( c == 0xfc ) c = 0xdc; in Upcase()
729 return c; in Upcase()
732 sal_uInt16 GetCharWidth(OutputDevice& rOut, UCHAR c) in GetCharWidth() argument
737 c1 = ByteString::Convert((char)c,RTL_TEXTENCODING_IBM_437, gsl_getSystemTextEncoding() ); in GetCharWidth()
738 if (c==' ') in GetCharWidth()
748 if (c>=MinChar /*&& c<=MaxChar*/) in GetCharWidth()
766 UCHAR c; in ProcessChar() local
770c=GetTextChar(TBuf,R.Index,Atr0,R.Attrib,Rest,sal_False); // versucht evtl. zu trennen, wenn Rest … in ProcessChar()
772 AbsEnd=(c==AbsatzEnd || c==TextEnd); in ProcessChar()
774 R.OutCh=ConvertTextChar(c); // von HardTrenn nach '-', ... in ProcessChar()
779 if (R.Kapt) c1=Upcase(c); else c1=c; in ProcessChar()
790 cLine[nChars]=c; in ProcessChar()
793 return c; in ProcessChar()
803 UCHAR c,c0; in FormatLine() local
837 if (Border) c=ProcessChar(vOut,TBuf,*R,Atr0,nChars,DoTrenn,Line,cLine); in FormatLine()
838 else c=ProcessChar(vOut,TBuf,*R,Atr0,nChars,NoTrenn,Line,cLine); in FormatLine()
839 AbsEnd=(c==AbsatzEnd || c==TextEnd); in FormatLine()
846 WordEnd=(AbsEnd || (c==' ')) && (c0!=' ') && (c0!=0); in FormatLine()
847 Trenn=c=='-'; in FormatLine()
859 (*R0)=(*R); c0=c; in FormatLine()
873 c=ProcessChar(vOut,TBuf,*R,Atr0,nChars,NoTrenn,Line,cLine); in FormatLine()
877 WordEnd=AbsEnd || ((AbsEnd || (c==' ')) && (c0!=' ') && (c0!=0)); in FormatLine()
891 (*R0)=(*R); c0=c; in FormatLine()
897 c=ProcessChar(vOut,TBuf,*WErec0,Atr0,WEnChar0,WEnChar-WEnChar0-1,Line,cLine); in FormatLine()
917 c=GetTextChar(TBuf,R->Index,Atr0,R->Attrib,NoTrenn,sal_False); in FormatLine()
920 cLine[nChars]=c; in FormatLine()
921 } while (c==' '); in FormatLine()
922 if (c!=' ' && c!=AbsatzEnd && c!=TextEnd) { in FormatLine()
933c=GetTextChar(TBuf,R->Index,Atr0,R->Attrib,NoTrenn,sal_False); // Kleine Korrektur. Notig, wenn nu… in FormatLine()
1017 void DrawChar(OutputDevice& rOut, UCHAR c, ObjTextType T, PointType Pos, sal_uInt16 DrehWink, in DrawChar() argument
1020 SetTextContext(rOut,T,UpcasePossible(c),DrehWink,FitXMul,FitXDiv,FitYMul,FitYDiv); in DrawChar()
1021 if ((T.Schnitt & TextKaptBit)!=0 && UpcasePossible(c)) c=Upcase(c); in DrawChar()
1022 String s( (char)c, RTL_TEXTENCODING_IBM_437 ); in DrawChar()
1042 UCHAR c = TextEnd; in Draw() local
1131 c=GetTextCharConv(Buf,Index2,T,T2,l-i,sal_False); in Draw()
1142 DrawChar(rOut,c,T2,Pos,DrehWink,FitXMul,FitXDiv,FitYMul,FitYDiv); in Draw()
1149 } while (c!=TextEnd && !Ende && !Fehler); in Draw()