summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2002-04-12 09:38:30 +0000
committerMathias Bauer <mba@openoffice.org>2002-04-12 09:38:30 +0000
commita778c002c4849e9a4e5c8f6ae768e1bc234991a1 (patch)
treea932a770d349474b3138f2a28608694ca83c9ba2 /idl
parent59063284c25e1febf4694f99b52c2c1ca8fbc2c1 (diff)
#98405#: new ordering in csv
Diffstat (limited to 'idl')
-rw-r--r--idl/source/objects/slot.cxx72
1 files changed, 27 insertions, 45 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index 9d013f63c98d..22923996d7f4 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: slot.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mba $ $Date: 2002-03-28 16:01:23 $
+ * last change: $Author: mba $ $Date: 2002-04-12 10:38:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1899,60 +1899,41 @@ void WriteBool( BOOL bSet, SvStream& rStream )
void SvMetaSlot::WriteCSV( SvIdlDataBase& rBase, SvStream& rStrm )
{
- rStrm << "PROJECT" << ",,";
- if ( GetSlotType() )
- rStrm << GetSlotType()->GetName().GetBuffer() << ',';
- else
- rStrm << ',';
-
- rStrm << GetType()->GetSvName().GetBuffer() << ',';
- rStrm << GetName().GetBuffer() << ',';
- rStrm << GetUnoName().GetBuffer() << ',';
+ rStrm << "PROJECT,";
rStrm << GetSlotId().GetBuffer() << ',';
USHORT nId = (USHORT) GetSlotId().GetValue();
rStrm << ByteString::CreateFromInt32( GetSlotId().GetValue() ).GetBuffer() << ',';
- rStrm << "\"" << GetConfigName().GetBuffer() << "\"" << ',';
- rStrm << "\"" << GetHelpText().GetBuffer() << "\"" << ',';
- rStrm << ",,,";
+ if ( GetPseudoPrefix().Len() )
+ rStrm << GetPseudoPrefix().GetBuffer() << ',';
+ else
+ rStrm << ',';
+
+ rStrm << GetGroupId().GetBuffer() << ',';
WriteBool( GetAccelConfig(), rStrm );
- WriteBool( GetAutomation(), rStrm );
- WriteBool( GetAutoUpdate(), rStrm );
+ WriteBool( GetMenuConfig(), rStrm );
+ WriteBool( GetStatusBarConfig(), rStrm );
+ WriteBool( GetToolBoxConfig(), rStrm );
+ if ( GetSlotType() )
+ rStrm << GetSlotType()->GetName().GetBuffer() << ',';
+ else
+ rStrm << ',';
+
+ WriteBool( GetAutoUpdate(), rStrm );
if ( GetCachable() )
rStrm << "Cachable" << ',';
else
rStrm << "Volatile" << ',';
WriteBool( GetContainer(), rStrm );
- WriteBool( GetExport(), rStrm );
WriteBool( GetFastCall(), rStrm );
- WriteBool( GetHidden(), rStrm );
-
- rStrm << GetGroupId().GetBuffer() << ',';
-
- rStrm << ',';
- rStrm << GetDisableFlags().GetBuffer() << ',';
-
WriteBool( GetHasCoreId(), rStrm );
WriteBool( GetHasDialog(), rStrm );
- WriteBool( GetIsCollection(), rStrm );
- WriteBool( GetMenuConfig(), rStrm );
- WriteBool( GetPlugComm(), rStrm );
- WriteBool( GetReadonly(), rStrm );
WriteBool( GetReadOnlyDoc(), rStrm );
- if( GetRecordPerSet() )
- rStrm << "RecordPerSet" << ',';
- else
- rStrm << "RecordPerItem" << ',';
-
- WriteBool( GetRecordAbsolute(), rStrm );
-
- rStrm << ',';
-
- WriteBool( GetStatusBarConfig(), rStrm );
+ rStrm << GetDisableFlags().GetBuffer() << ',';
if( GetSynchron() )
rStrm << "Synchron" << ',';
@@ -1960,14 +1941,14 @@ void SvMetaSlot::WriteCSV( SvIdlDataBase& rBase, SvStream& rStrm )
rStrm << "Asynchron" << ',';
WriteBool( GetToggle(), rStrm );
- WriteBool( GetToolBoxConfig(), rStrm );
-
- if ( GetPseudoPrefix().Len() )
- rStrm << GetPseudoPrefix().GetBuffer() << ',';
+ WriteBool( GetReadonly(), rStrm );
+ WriteBool( GetExport(), rStrm );
+ if( GetRecordPerSet() )
+ rStrm << "RecordPerSet" << ',';
else
- rStrm << ',';
+ rStrm << "RecordPerItem" << ',';
- rStrm << ',';
+ WriteBool( GetRecordAbsolute(), rStrm );
if ( GetType()->GetType() != TYPE_METHOD && GetMethod() )
{
@@ -1979,7 +1960,8 @@ void SvMetaSlot::WriteCSV( SvIdlDataBase& rBase, SvStream& rStrm )
rStrm << ",,";
}
- rStrm << "TRUE,";
+ rStrm << GetType()->GetSvName().GetBuffer() << ',';
+ rStrm << GetName().GetBuffer() << ',';
if ( GetType()->GetType() == TYPE_METHOD || GetMethod() )
{