diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-26 13:39:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-27 09:45:57 +0000 |
commit | 874966bd304d0ef5e6cb9cf7b60e6240a37d70b3 (patch) | |
tree | a76d29537bdc61933f03bab7d3aeff8e485cb9b9 /svtools | |
parent | 1ca675157d753371acd35aad4d824fb4f20f3330 (diff) |
ditch archaic filter-tracer remnants
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/FilterConfigItem.hxx | 3 | ||||
-rw-r--r-- | svtools/source/filter/FilterConfigItem.cxx | 47 |
2 files changed, 0 insertions, 50 deletions
diff --git a/svtools/inc/svtools/FilterConfigItem.hxx b/svtools/inc/svtools/FilterConfigItem.hxx index 1ab5be9ce7a6..ea235a3a518b 100644 --- a/svtools/inc/svtools/FilterConfigItem.hxx +++ b/svtools/inc/svtools/FilterConfigItem.hxx @@ -78,14 +78,11 @@ class SVT_DLLPUBLIC FilterConfigItem sal_Int32 ReadInt32( const ::rtl::OUString& rKey, sal_Int32 nDefault ); ::rtl::OUString ReadString( const ::rtl::OUString& rKey, const ::rtl::OUString& rDefault ); - ::com::sun::star::uno::Any - ReadAny( const ::rtl::OUString& rKey, const ::com::sun::star::uno::Any& rDefault ); // try to store to configuration // and always stores into the FilterData sequence void WriteBool( const ::rtl::OUString& rKey, sal_Bool bValue ); void WriteInt32( const ::rtl::OUString& rKey, sal_Int32 nValue ); - void WriteAny( const rtl::OUString& rKey, const ::com::sun::star::uno::Any& rAny ); ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > GetFilterData() const; diff --git a/svtools/source/filter/FilterConfigItem.cxx b/svtools/source/filter/FilterConfigItem.cxx index 5368c94af1d5..275bcebdebbf 100644 --- a/svtools/source/filter/FilterConfigItem.cxx +++ b/svtools/source/filter/FilterConfigItem.cxx @@ -356,25 +356,6 @@ OUString FilterConfigItem::ReadString( const OUString& rKey, const OUString& rDe return aRetValue; } -Any FilterConfigItem::ReadAny( const ::rtl::OUString& rKey, const Any& rDefault ) -{ - Any aAny, aRetValue( rDefault ); - PropertyValue* pPropVal = GetPropertyValue( aFilterData, rKey ); - if ( pPropVal ) - { - aRetValue = pPropVal->Value; - } - else if ( ImplGetPropertyValue( aAny, xPropSet, rKey, sal_True ) ) - { - aRetValue = aAny; - } - PropertyValue aPropValue; - aPropValue.Name = rKey; - aPropValue.Value = aRetValue; - WritePropertyValue( aFilterData, aPropValue ); - return aRetValue; -} - void FilterConfigItem::WriteBool( const OUString& rKey, sal_Bool bNewValue ) { PropertyValue aBool; @@ -442,34 +423,6 @@ void FilterConfigItem::WriteInt32( const OUString& rKey, sal_Int32 nNewValue ) } } -void FilterConfigItem::WriteAny( const OUString& rKey, const Any& rNewAny ) -{ - PropertyValue aPropValue; - aPropValue.Name = rKey; - aPropValue.Value = rNewAny; - WritePropertyValue( aFilterData, aPropValue ); - if ( xPropSet.is() ) - { - Any aAny; - if ( ImplGetPropertyValue( aAny, xPropSet, rKey, sal_True ) ) - { - if ( aAny != rNewAny ) - { - try - { - xPropSet->setPropertyValue( rKey, rNewAny ); - bModified = sal_True; - } - catch ( com::sun::star::uno::Exception& ) - { - OSL_FAIL( "FilterConfigItem::WriteAny - could not set PropertyValue" ); - - } - } - } - } -} - // ------------------------------------------------------------------------ Sequence< PropertyValue > FilterConfigItem::GetFilterData() const |