26#include <com/sun/star/awt/Size.hpp>
60OldStylePrintAdaptor::~OldStylePrintAdaptor()
64void OldStylePrintAdaptor::StartPage()
66 Size aPaperSize( getPrinter()->PixelToLogic( getPrinter()->GetPaperSizePixel(),
MapMode( MapUnit::Map100thMM ) ) );
67 mpData->maPages.emplace_back( );
68 mpData->maPages.back().maPageSize.Width = aPaperSize.getWidth();
69 mpData->maPages.back().maPageSize.Height = aPaperSize.getHeight();
70 getPrinter()->SetConnectMetaFile( &mpData->maPages.back().maPage );
74 xPrinter->SetMapMode(xPrinter->GetMapMode());
75 xPrinter->SetFont(xPrinter->GetFont());
76 xPrinter->SetDrawMode(xPrinter->GetDrawMode());
77 xPrinter->SetLineColor(xPrinter->GetLineColor());
78 xPrinter->SetFillColor(xPrinter->GetFillColor());
81void OldStylePrintAdaptor::EndPage()
83 getPrinter()->SetConnectMetaFile(
nullptr );
84 mpData->maPages.back().maPage.WindStart();
87int OldStylePrintAdaptor::getPageCount()
const
89 return int(mpData->maPages.size());
95 if( i_nPage <
int(mpData->maPages.size() ) )
96 aSize = mpData->maPages[i_nPage].maPageSize;
100void OldStylePrintAdaptor::printPage(
int i_nPage )
const
102 if( i_nPage <
int(mpData->maPages.size()) )
104 mpData->maPages[ i_nPage ].maPage.WindStart();
105 mpData->maPages[ i_nPage ].maPage.Play(*getPrinter());
const ::basegfx::B2DSize maPageSize
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
const wchar_t *typedef int(__stdcall *DllNativeUnregProc)(int
std::vector< AdaptorPage > maPages