Lines Matching refs:pImpl

461 	pImpl = new FontPrevWin_Impl;  in SvxFontPrevWindow()
465 pImpl->pPrinter = pSh->GetPrinter(); in SvxFontPrevWindow()
467 if ( !pImpl->pPrinter ) in SvxFontPrevWindow()
469 pImpl->pPrinter = new Printer; in SvxFontPrevWindow()
470 pImpl->bDelPrinter = sal_True; in SvxFontPrevWindow()
473 initFont(pImpl->aFont); in SvxFontPrevWindow()
474 initFont(pImpl->aCJKFont); in SvxFontPrevWindow()
475 initFont(pImpl->aCTLFont); in SvxFontPrevWindow()
491 pImpl->bIsCJKUI = sal_True; in SvxFontPrevWindow()
497 pImpl->bIsCJKUI = pImpl->bIsCTLUI = sal_False; in SvxFontPrevWindow()
506 delete pImpl; in ~SvxFontPrevWindow()
512 return pImpl->aCTLFont; in GetCTLFont()
519 return pImpl->aCJKFont; in GetCJKFont()
546 pImpl->Invalidate100PercentFontWidth(); // because the user might change the size in GetFont()
547 return pImpl->aFont; in GetFont()
552 return pImpl->aFont; in GetFont()
559 pImpl->aText = rString; in SetPreviewText()
560 pImpl->bTextInited = sal_True; in SetPreviewText()
567 pImpl->bUseFontNameAsText = sal_True; in SetFontNameAsPreviewText()
574 setFont( rOutFont, pImpl->aFont ); in SetFont()
576 pImpl->Invalidate100PercentFontWidth(); in SetFont()
584 setFont( rNormalOutFont, pImpl->aFont ); in SetFont()
585 setFont( rCJKOutFont, pImpl->aCJKFont ); in SetFont()
586 setFont( rCTLFont, pImpl->aCTLFont ); in SetFont()
589 pImpl->Invalidate100PercentFontWidth(); in SetFont()
597 setFont( rCJKOutFont, pImpl->aCJKFont ); in SetCJKFont()
599 pImpl->Invalidate100PercentFontWidth(); in SetCJKFont()
605 setFont( rCTLOutFont, pImpl->aCTLFont ); in SetCTLFont()
607 pImpl->Invalidate100PercentFontWidth(); in SetCTLFont()
615 delete pImpl->pColor; in SetColor()
616 pImpl->pColor = new Color( rColor ); in SetColor()
623 delete pImpl->pColor; in ResetColor()
624 pImpl->pColor = 0; in ResetColor()
632 delete pImpl->pBackColor; in SetBackColor()
633 pImpl->pBackColor = new Color( rColor ); in SetBackColor()
641 pImpl->bUseResText = bUse; in UseResourceText()
648 Printer* pPrinter = pImpl->pPrinter; in Paint()
649 SvxFont& rFont = pImpl->aFont; in Paint()
650 SvxFont& rCJKFont = pImpl->aCJKFont; in Paint()
653 if ( pImpl->bUseResText ) in Paint()
654 pImpl->aText = GetText(); in Paint()
655 else if ( !pImpl->bSelection && !pImpl->bTextInited ) in Paint()
659 if ( pSh && !pImpl->bGetSelection && !pImpl->bUseFontNameAsText ) in Paint()
661 pImpl->aText = pSh->GetSelectionText(); in Paint()
662 pImpl->bGetSelection = sal_True; in Paint()
663 pImpl->bSelection = pImpl->aText.Len() != 0; in Paint()
667 if ( !pImpl->bSelection || pImpl->bUseFontNameAsText ) in Paint()
669 pImpl->aText = rFont.GetName(); in Paint()
670 if( pImpl->bIsCJKUI ) in Paint()
671 pImpl->aText += rCJKFont.GetName(); in Paint()
675 if ( !pImpl->aText.Len() ) in Paint()
676 pImpl->aText = GetText(); in Paint()
680 for ( xub_StrLen i = 0; i < pImpl->aText.Len(); ++i ) in Paint()
682 if ( 0xa == pImpl->aText.GetChar( i ) || in Paint()
683 0xd == pImpl->aText.GetChar( i ) ) in Paint()
684 pImpl->aText.SetChar( i, ' ' ); in Paint()
689 pImpl->aText = GetText(); in Paint()
691 if ( pImpl->aText.Len() > (TEXT_WIDTH-1) ) in Paint()
692 pImpl->aText.Erase( pImpl->aText.Search( sal_Unicode( ' ' ), TEXT_WIDTH ) ); in Paint()
696 pImpl->ScaleFontWidth( *this/*, rFont*/ ); in Paint()
698 pImpl->CheckScript(); in Paint()
699 Size aTxtSize = pImpl->CalcTextSize( this, pPrinter, rFont ); in Paint()
706 if ( nY + pImpl->nAscent > aLogSize.Height() ) in Paint()
707 nY = aLogSize.Height() - pImpl->nAscent; in Paint()
709 if ( pImpl->pBackColor ) in Paint()
715 SetFillColor( *pImpl->pBackColor ); in Paint()
720 if ( pImpl->pColor ) in Paint()
726 SetFillColor( *pImpl->pColor ); in Paint()
732 long nStdAscent = pImpl->nAscent; in Paint()
735 if(pImpl->bTwoLines) in Paint()
738 Size aOldSize = pImpl->aCJKFont.GetSize(); in Paint()
740 setFontSize(pImpl->aCJKFont); in Paint()
745 if(pImpl->cStartBracket) in Paint()
747 String sBracket(pImpl->cStartBracket); in Paint()
750 if(pImpl->cEndBracket) in Paint()
752 String sBracket(pImpl->cEndBracket); in Paint()
755 nTextWidth = pImpl->CalcTextSize( this, pPrinter, aSmallFont ).Width(); in Paint()
764 long nSmallAscent = pImpl->nAscent; in Paint()
767 if(pImpl->cStartBracket) in Paint()
769 String sBracket(pImpl->cStartBracket); in Paint()
776 pImpl->DrawPrev( this, pPrinter, aTmpPoint1, aSmallFont ); in Paint()
777 pImpl->DrawPrev( this, pPrinter, aTmpPoint2, aSmallFont ); in Paint()
780 if(pImpl->cEndBracket) in Paint()
783 String sBracket(pImpl->cEndBracket); in Paint()
786 pImpl->aCJKFont.SetSize( aOldSize ); in Paint()
799 pImpl->DrawPrev( this, pPrinter, aTmpPoint, rFont ); in Paint()
807 return pImpl->bTwoLines; in IsTwoLines()
814 pImpl->bTwoLines = bSet;} in SetTwoLines()
821 pImpl->cStartBracket = cStart; in SetBrackets()
822 pImpl->cEndBracket = cEnd; in SetBrackets()
829 if( pImpl->SetFontWidthScale( n ) ) in SetFontWidthScale()
839 if( COL_AUTO == pImpl->aFont.GetColor().GetColor() ) in AutoCorrectFontColor()
840 pImpl->aFont.SetColor( aFontColor ); in AutoCorrectFontColor()
842 if( COL_AUTO == pImpl->aCJKFont.GetColor().GetColor() ) in AutoCorrectFontColor()
843 pImpl->aCJKFont.SetColor( aFontColor ); in AutoCorrectFontColor()
845 if( COL_AUTO == pImpl->aCTLFont.GetColor().GetColor() ) in AutoCorrectFontColor()
846 pImpl->aCTLFont.SetColor( aFontColor ); in AutoCorrectFontColor()