[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/karbon/core (silent)
From: Rob Buis <rwlbuis () xs4all ! nl>
Date: 2005-12-18 15:15:45
Message-ID: 1134918945.485935.3726.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 489396 by buis:
SVN_SILENT: removing unneeded member vars.
M +5 -13 vdocument.cc
M +1 -77 vdocument.h
--- trunk/koffice/karbon/core/vdocument.cc #489395:489396
@@ -35,10 +35,7 @@
: VObject( 0L ),
m_width(0.), m_height(0.),
m_selectionMode( VDocument::ActiveLayer ),
- m_unit( KoUnit::U_MM ),
- m_mime( "application/x-karbon" ),
- m_version( "0.1" ), m_editor( "karbon14 0.0.1" ),
- m_syntaxVersion( "0.1" )
+ m_unit( KoUnit::U_MM )
{
m_selection = new VSelection( this );
@@ -218,10 +215,10 @@
void
VDocument::save( QDomElement& me ) const
{
- me.setAttribute( "mime", m_mime );
- me.setAttribute( "version", m_version );
- me.setAttribute( "editor", m_editor );
- me.setAttribute( "syntaxVersion", m_syntaxVersion );
+ me.setAttribute( "mime", "application/x-karbon" ),
+ me.setAttribute( "version", "0.1" );
+ me.setAttribute( "editor", "Karbon14" );
+ me.setAttribute( "syntaxVersion", "0.1" );
if( m_width > 0. )
me.setAttribute( "width", m_width );
if( m_height > 0. )
@@ -259,11 +256,6 @@
m_layers.clear();
- m_mime = doc.attribute( "mime" );
- m_version = doc.attribute( "version" );
- m_editor = doc.attribute( "editor" );
- m_syntaxVersion = doc.attribute( "syntaxVersion" );
-
m_width = doc.attribute( "width", "800.0" ).toDouble();
m_height = doc.attribute( "height", "550.0" ).toDouble();
--- trunk/koffice/karbon/core/vdocument.h #489395:489396
@@ -79,77 +79,13 @@
virtual void draw( VPainter* painter, const KoRect* rect ) const;
/**
- * Draw the document frame to a painting device.
+ * Draw the document frame to a painting device.
*
* @param painter abstraction that is used to render to a painting device.
*/
void drawPage( VPainter *painter ) const;
/**
- * Returns the mime type.
- *
- * @return the document's mime type
- */
- const QString& mime()
- { return m_mime; }
-
- /**
- * Sets the mime type.
- *
- * @param mime the new mime type
- */
- void setMime( const QString& mime )
- { m_mime = mime; }
-
- /**
- * Returns the version.
- *
- * @return the document's version
- */
- const QString& version()
- { return m_version; }
-
- /**
- * Sets the version.
- *
- * @param version the new version
- */
- void setVersion( const QString& version )
- { m_version = version; }
-
- /**
- * Returns the editor.
- *
- * @return the document's editor
- */
- const QString& editor()
- { return m_editor; }
-
- /**
- * Sets the editor.
- *
- * @param editor the new editor
- */
- void setEditor( const QString& editor )
- { m_editor = editor; }
-
- /**
- * Returns the syntax version.
- *
- * @return the document's syntax version
- */
- const QString& syntaxVersion()
- { return m_syntaxVersion; }
-
- /**
- * Sets the syntax version.
- *
- * @param syntaxVersion the new syntax version
- */
- void setSyntaxVersion( const QString& syntaxVersion )
- { m_syntaxVersion = syntaxVersion; }
-
- /**
* Returns document width.
*
* @return the document's width
@@ -375,18 +311,6 @@
*/
KoUnit::Unit m_unit;
- /**
- * The mime type.
- */
- QString m_mime;
-
- /// The version.
- QString m_version;
- /// The editor name.
- QString m_editor;
- /// The syntax version.
- QString m_syntaxVersion;
-
QMap<const VObject *, QString> m_objectNames;
// TODO this flag is used nowhere, can we remove it?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic