Lines Matching refs:pPrinter
107 void lcl_PrintHeader( Printer* pPrinter, sal_uInt16 nPages, sal_uInt16 nCurPage, const String& rTit… in lcl_PrintHeader() argument
110 Size aSz = pPrinter->GetOutputSize(); in lcl_PrintHeader()
113 const Color aOldLineColor( pPrinter->GetLineColor() ); in lcl_PrintHeader()
114 const Color aOldFillColor( pPrinter->GetFillColor() ); in lcl_PrintHeader()
115 const Font aOldFont( pPrinter->GetFont() ); in lcl_PrintHeader()
117 pPrinter->SetLineColor( Color( COL_BLACK ) ); in lcl_PrintHeader()
118 pPrinter->SetFillColor(); in lcl_PrintHeader()
123 pPrinter->SetFont( aFont ); in lcl_PrintHeader()
125 long nFontHeight = pPrinter->GetTextHeight(); in lcl_PrintHeader()
134 pPrinter->DrawRect( Rectangle( in lcl_PrintHeader()
142 pPrinter->DrawText( aPos, rTitle ); in lcl_PrintHeader()
146 pPrinter->SetFont( aFont ); in lcl_PrintHeader()
152 aPos.X() += pPrinter->GetTextWidth( rTitle ); in lcl_PrintHeader()
154 pPrinter->DrawText( aPos, aPageStr ); in lcl_PrintHeader()
161 pPrinter->DrawLine( Point( nXLeft, nY ), Point( nXRight, nY ) ); in lcl_PrintHeader()
163 pPrinter->SetFont( aOldFont ); in lcl_PrintHeader()
164 pPrinter->SetFillColor( aOldFillColor ); in lcl_PrintHeader()
165 pPrinter->SetLineColor( aOldLineColor ); in lcl_PrintHeader()
944 sal_Int32 ModulWindow::countPages( Printer* pPrinter ) in countPages() argument
946 return FormatAndPrint( pPrinter, -1 ); in countPages()
949 void ModulWindow::printPage( sal_Int32 nPage, Printer* pPrinter ) in printPage() argument
951 FormatAndPrint( pPrinter, nPage ); in printPage()
960 sal_Int32 ModulWindow::FormatAndPrint( Printer* pPrinter, sal_Int32 nPrintPage ) in FormatAndPrint() argument
966 MapMode eOldMapMode( pPrinter->GetMapMode() ); in FormatAndPrint()
967 Font aOldFont( pPrinter->GetFont() ); in FormatAndPrint()
974 pPrinter->SetFont( aFont ); in FormatAndPrint()
975 pPrinter->SetMapMode( MAP_100TH_MM ); in FormatAndPrint()
979 sal_uInt16 nLineHeight = (sal_uInt16) pPrinter->GetTextHeight(); // etwas mehr. in FormatAndPrint()
982 Size aPaperSz = pPrinter->GetOutputSize(); in FormatAndPrint()
988 sal_uInt16 nCharspLine = (sal_uInt16) (aPaperSz.Width() / pPrinter->GetTextWidth( 'X' ) ); in FormatAndPrint()
995 lcl_PrintHeader( pPrinter, nPages, nCurPage, aTitle, nPrintPage == 0 ); in FormatAndPrint()
1009 lcl_PrintHeader( pPrinter, nPages, nCurPage, aTitle, nCurPage-1 == nPrintPage ); in FormatAndPrint()
1013 pPrinter->DrawText( aPos, aTmpLine ); in FormatAndPrint()
1018 pPrinter->SetFont( aOldFont ); in FormatAndPrint()
1019 pPrinter->SetMapMode( eOldMapMode ); in FormatAndPrint()