|
|
|
@ -597,12 +597,15 @@ int KPrinter::metric(int m) const
|
|
|
|
|
return val;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KPrinter::setOrientation(Orientation o)
|
|
|
|
|
void KPrinter::setOrientation(Orientation o, bool locking)
|
|
|
|
|
{
|
|
|
|
|
KMFactory::self()->settings()->orientation = o;
|
|
|
|
|
setOption("kde-orientation",(o == Landscape ? "Landscape" : "Portrait"));
|
|
|
|
|
d->m_impl->broadcastOption("kde-orientation",(o == Landscape ? "Landscape" : "Portrait"));
|
|
|
|
|
if (locking)
|
|
|
|
|
{
|
|
|
|
|
d->m_impl->broadcastOption( "kde-orientation-fixed", "1" );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KPrinter::setOption( const TQString& key, const TQString& value, bool broadcast )
|
|
|
|
@ -612,11 +615,14 @@ void KPrinter::setOption( const TQString& key, const TQString& value, bool broad
|
|
|
|
|
d->m_impl->broadcastOption( key, value );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KPrinter::setPageSize(PageSize s)
|
|
|
|
|
void KPrinter::setPageSize(PageSize s, bool locking)
|
|
|
|
|
{
|
|
|
|
|
KMFactory::self()->settings()->pageSize = s;
|
|
|
|
|
setOption("kde-pagesize",TQString::number((int)s),true);
|
|
|
|
|
if (locking)
|
|
|
|
|
{
|
|
|
|
|
d->m_impl->broadcastOption( "kde-pagesize-fixed", "1" );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KPrinter::setOptions(const TQMap<TQString,TQString>& opts)
|
|
|
|
|