[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kspread
From:       Laurent Montel <montel () kde ! org>
Date:       2004-07-10 17:40:15
Message-ID: 20040710174015.ACFA616B18 () office ! kde ! org
[Download RAW message or body]

CVS commit by mlaurent: 

Fix settings.xml


  M +28 -19    kspread_map.cc   1.67


--- koffice/kspread/kspread_map.cc  #1.66:1.67
@@ -93,4 +93,6 @@ void KSpreadMap::loadOasisSettings( cons
 void KSpreadMap::saveOasisSettings( KoXmlWriter &settingsWriter )
 {
+    //fixme ViewId is convert in boolean... strnage I don't understand why
+    settingsWriter.addConfigItem( "ViewId", "View1" );
   // Save visual info for the first view, such as active table and active cell
   // It looks like a hack, but reopening a document creates only one view anyway (David)
@@ -107,9 +109,16 @@ void KSpreadMap::saveOasisSettings( KoXm
   }
 
+    //<config:config-item-map-named config:name="Tables">
+    settingsWriter.startElement("config:config-item-map-named" );
+    settingsWriter.addAttribute("config:name","Tables" );
   QPtrListIterator<KSpreadSheet> it( m_lstTables );
   for( ; it.current(); ++it )
   {
+        settingsWriter.startElement( "config:config-item-map-entry" );
+        settingsWriter.addAttribute( "config:name", ( *it )->tableName() );
       it.current()->saveOasisSettings( settingsWriter );
+        settingsWriter.endElement();
   }
+    settingsWriter.endElement();
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic