|
|
|
@ -97,7 +97,7 @@ KugarTemplate::KugarTemplate( int x, int y, int width, int height, Canvas *canva
|
|
|
|
|
|
|
|
|
|
m[ i18n( "Portrait" ) ] = "0";
|
|
|
|
|
m[ i18n( "Landscape" ) ] = "1";
|
|
|
|
|
props.addProperty( new Property( "PageQt::Orientation", m.values(), m.keys(), "0", i18n( "Page Qt::Orientation" ), i18n( "Page Qt::Orientation" ) ), "DocumentSettings" );
|
|
|
|
|
props.addProperty( new Property( "PageOrientation", m.values(), m.keys(), "0", i18n( "Page Orientation" ), i18n( "Page Orientation" ) ), "DocumentSettings" );
|
|
|
|
|
m.clear();
|
|
|
|
|
|
|
|
|
|
props.addProperty( new Property( "TopMargin", 0, i18n( "Top Margin" ), i18n( "Top Margin" ), KoProperty::Integer ), "DocumentSettings" );
|
|
|
|
@ -177,7 +177,7 @@ void KugarTemplate::updatePaperProps()
|
|
|
|
|
printer = new TQPrinter();
|
|
|
|
|
printer->setFullPage( true );
|
|
|
|
|
printer->setPageSize( ( TQPrinter::PageSize ) props[ "PageSize" ].value().toInt() );
|
|
|
|
|
printer->setOrientation( ( TQPrinter::Orientation ) props[ "PageQt::Orientation" ].value().toInt() );
|
|
|
|
|
printer->setOrientation( ( TQPrinter::Orientation ) props[ "PageOrientation" ].value().toInt() );
|
|
|
|
|
|
|
|
|
|
// Get the page metrics and set appropriate wigth and height
|
|
|
|
|
TQPaintDeviceMetrics pdm( printer );
|
|
|
|
|