summaryrefslogtreecommitdiffstats
path: root/krecipes/src/krepagelayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/krepagelayout.cpp')
-rw-r--r--krecipes/src/krepagelayout.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/krecipes/src/krepagelayout.cpp b/krecipes/src/krepagelayout.cpp
index ea87652..97e4272 100644
--- a/krecipes/src/krepagelayout.cpp
+++ b/krecipes/src/krepagelayout.cpp
@@ -26,7 +26,7 @@
#include <kdebug.h>
#include <kglobal.h>
-#include <qdom.h>
+#include <ntqdom.h>
#include "kreunit.h"
@@ -46,9 +46,9 @@
#define PG_US_EXECUTIVE_WIDTH 191.0
#define PG_US_EXECUTIVE_HEIGHT 254.0
-QDomElement KoPageLayout::saveKreFormat( QDomDocument &doc ) const
+TQDomElement KoPageLayout::saveKreFormat( TQDomDocument &doc ) const
{
- QDomElement style = doc.createElement( "page-layout-properties" );
+ TQDomElement style = doc.createElement( "page-layout-properties" );
style.setAttribute("page-width", ptWidth);
style.setAttribute("page-height", ptHeight);
style.setAttribute("margin-left", ptLeft);
@@ -59,20 +59,20 @@ QDomElement KoPageLayout::saveKreFormat( QDomDocument &doc ) const
return style;
}
-void KoPageLayout::loadKreFormat(const QDomElement &style)
+void KoPageLayout::loadKreFormat(const TQDomElement &style)
{
if ( !style.isNull() )
{
- ptWidth = KoUnit::parseValue(style.attribute("page-width", QString::null ) );
- ptHeight = KoUnit::parseValue(style.attribute( "page-height", QString::null ) );
- if (style.attribute( "print-orientation", QString::null)=="portrait")
+ ptWidth = KoUnit::parseValue(style.attribute("page-width", TQString::null ) );
+ ptHeight = KoUnit::parseValue(style.attribute( "page-height", TQString::null ) );
+ if (style.attribute( "print-orientation", TQString::null)=="portrait")
orientation=PG_PORTRAIT;
else
orientation=PG_LANDSCAPE;
- ptRight = KoUnit::parseValue( style.attribute( "margin-right", QString::null ) );
- ptBottom = KoUnit::parseValue( style.attribute( "margin-bottom", QString::null ) );
- ptLeft = KoUnit::parseValue( style.attribute( "margin-left", QString::null ) );
- ptTop = KoUnit::parseValue( style.attribute( "margin-top", QString::null ) );
+ ptRight = KoUnit::parseValue( style.attribute( "margin-right", TQString::null ) );
+ ptBottom = KoUnit::parseValue( style.attribute( "margin-bottom", TQString::null ) );
+ ptLeft = KoUnit::parseValue( style.attribute( "margin-left", TQString::null ) );
+ ptTop = KoUnit::parseValue( style.attribute( "margin-top", TQString::null ) );
// guessFormat takes millimeters
if ( orientation == PG_LANDSCAPE )
format = KoPageFormat::guessFormat( POINT_TO_MM(ptHeight), POINT_TO_MM(ptWidth) );
@@ -195,18 +195,18 @@ KoFormat KoPageFormat::guessFormat( double width, double height )
return PG_CUSTOM;
}
-QString KoPageFormat::formatString( KoFormat format )
+TQString KoPageFormat::formatString( KoFormat format )
{
if ( format <= PG_LAST_FORMAT )
- return QString::fromLatin1( pageFormatInfo[ format ].shortName );
- return QString::fromLatin1( "A4" );
+ return TQString::fromLatin1( pageFormatInfo[ format ].shortName );
+ return TQString::fromLatin1( "A4" );
}
-KoFormat KoPageFormat::formatFromString( const QString & string )
+KoFormat KoPageFormat::formatFromString( const TQString & string )
{
for ( int i = 0 ; i <= PG_LAST_FORMAT ; ++i )
{
- if (string == QString::fromLatin1( pageFormatInfo[ i ].shortName ))
+ if (string == TQString::fromLatin1( pageFormatInfo[ i ].shortName ))
return pageFormatInfo[ i ].format;
}
// We do not know the format name, so we have a custom format
@@ -224,16 +224,16 @@ KoFormat KoPageFormat::defaultFormat()
return PG_DIN_A4;
}
-QString KoPageFormat::name( KoFormat format )
+TQString KoPageFormat::name( KoFormat format )
{
if ( format <= PG_LAST_FORMAT )
return i18n( pageFormatInfo[ format ].descriptiveName );
return i18n( pageFormatInfo[ PG_DIN_A4 ].descriptiveName );
}
-QStringList KoPageFormat::allFormats()
+TQStringList KoPageFormat::allFormats()
{
- QStringList lst;
+ TQStringList lst;
for ( int i = 0 ; i <= PG_LAST_FORMAT ; ++i )
{
lst << i18n( pageFormatInfo[ i ].descriptiveName );