summaryrefslogtreecommitdiffstats
path: root/idl/source/objects/types.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'idl/source/objects/types.cxx')
-rw-r--r--idl/source/objects/types.cxx25
1 files changed, 2 insertions, 23 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index 6dc82163888d..1797fa2b3409 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -1398,7 +1398,7 @@ sal_uLong SvMetaType::MakeSfx( OStringBuffer& rAttrArray )
}
void SvMetaType::WriteSfxItem(
- const OString& rItemName, SvIdlDataBase& rBase, SvStream& rOutStm )
+ const OString& rItemName, SvIdlDataBase &, SvStream & rOutStm )
{
WriteStars( rOutStm );
OStringBuffer aVarName(" a");
@@ -1411,35 +1411,14 @@ void SvMetaType::WriteSfxItem(
OString::number(nAttrCount));
aTypeName.append(aAttrCount);
- bool bExport = false, bReturn = false;
- // these are exported from sfx library
- if (rItemName == "SfxBoolItem" ||
- rItemName == "SfxStringItem" ||
- rItemName == "SfxUInt16Item" ||
- rItemName == "SfxUInt32Item" ||
- rItemName == "SfxVoidItem")
- {
- if (rBase.sSlotMapFile.endsWith("sfxslots.hxx"))
- bExport = true;
- else
- bReturn = true;
- }
-
- rOutStm.WriteCharPtr( "extern " );
- if (bExport)
- rOutStm.WriteCharPtr( "SFX2_DLLPUBLIC " );
- rOutStm.WriteCharPtr( aTypeName.getStr() )
+ rOutStm.WriteCharPtr( "extern " ).WriteCharPtr( aTypeName.getStr() )
.WriteCharPtr( aVarName.getStr() ).WriteChar( ';' ) << endl;
- if (bReturn)
- return;
// write the implementation part
rOutStm.WriteCharPtr( "#ifdef SFX_TYPEMAP" ) << endl;
rOutStm.WriteCharPtr( "#if !defined(_WIN32) && ((defined(DISABLE_DYNLOADING) && (defined(ANDROID) || defined(IOS))) || STATIC_LINKING)" ) << endl;
rOutStm.WriteCharPtr( "__attribute__((__weak__))" ) << endl;
rOutStm.WriteCharPtr( "#endif" ) << endl;
- if (bExport)
- rOutStm.WriteCharPtr( "SFX2_DLLPUBLIC " );
rOutStm.WriteCharPtr( aTypeName.getStr() ).WriteCharPtr( aVarName.getStr() )
.WriteCharPtr( " = " ) << endl;
rOutStm.WriteChar( '{' ) << endl;