diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-04 11:51:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-04 12:49:27 +0100 |
commit | b243afd8755c2a470c6aa0607f5773bedd026937 (patch) | |
tree | dd84b6b5da4b8aa7fa8c4e5513112454a7ba6acd /unotools | |
parent | 77407d7ad0cece76eed9e7767765b12229e6449d (diff) |
callcatcher: update unused code list
and remove code freshly unused post widget layout introduction
Change-Id: Ifa244391f7f2b565dec10314ca3fd2958dfd87a9
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/lingucfg.hxx | 2 | ||||
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 58 |
2 files changed, 0 insertions, 60 deletions
diff --git a/unotools/inc/unotools/lingucfg.hxx b/unotools/inc/unotools/lingucfg.hxx index c02dabb15d67..88aaa4a5ba56 100644 --- a/unotools/inc/unotools/lingucfg.hxx +++ b/unotools/inc/unotools/lingucfg.hxx @@ -216,10 +216,8 @@ public: // functions returning file URLs to the respective images (if found) and empty string otherwise ::rtl::OUString GetSpellAndGrammarContextSuggestionImage( const ::rtl::OUString &rServiceImplName ) const; ::rtl::OUString GetSpellAndGrammarContextDictionaryImage( const ::rtl::OUString &rServiceImplName ) const; - ::rtl::OUString GetThesaurusDialogImage( const ::rtl::OUString &rServiceImplName ) const; ::rtl::OUString GetSynonymsContextImage( const ::rtl::OUString &rServiceImplName ) const; - bool HasVendorImages( const char *pImageName ) const; bool HasGrammarChecker() const; }; diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index e8956c464d18..a291a95e3e70 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -1211,22 +1211,6 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage( return aRes; } - -::rtl::OUString SvtLinguConfig::GetThesaurusDialogImage( - const ::rtl::OUString &rServiceImplName -) const -{ - rtl::OUString aRes; - if (!rServiceImplName.isEmpty()) - { - rtl::OUString aImageName( A2OU( "ThesaurusDialogImage" )); - rtl::OUString aPath( GetVendorImageUrl_Impl( rServiceImplName, aImageName ) ); - aRes = aPath; - } - return aRes; -} - - ::rtl::OUString SvtLinguConfig::GetSynonymsContextImage( const ::rtl::OUString &rServiceImplName ) const @@ -1241,48 +1225,6 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage( return aRes; } - -bool SvtLinguConfig::HasVendorImages( const char *pImageName ) const -{ - bool bRes = false; - if (pImageName) - { - try - { - uno::Reference< container::XNameAccess > xNA( GetMainUpdateAccess(), uno::UNO_QUERY_THROW ); - xNA.set( xNA->getByName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Images")) ), uno::UNO_QUERY_THROW ); - xNA.set( xNA->getByName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VendorImages")) ), uno::UNO_QUERY_THROW ); - - uno::Sequence< rtl::OUString > aElementNames( xNA->getElementNames() ); - sal_Int32 nVendors = aElementNames.getLength(); - const rtl::OUString *pVendor = aElementNames.getConstArray(); - for (sal_Int32 i = 0; i < nVendors; ++i) - { - uno::Reference< container::XNameAccess > xNA2( xNA->getByName( pVendor[i] ), uno::UNO_QUERY_THROW ); - uno::Sequence< rtl::OUString > aPropNames( xNA2->getElementNames() ); - sal_Int32 nProps = aPropNames.getLength(); - const rtl::OUString *pPropNames = aPropNames.getConstArray(); - for (sal_Int32 k = 0; k < nProps; ++k) - { - // for a quicker check we ignore the HC image names here - const OUString &rName = pPropNames[k]; - if (rName.equalsAscii( pImageName )) - { - bRes = true; - break; - } - } - } - } - catch (uno::Exception &) - { - DBG_ASSERT( 0, "exception caught. HasVendorImages failed" ); - } - } - return bRes; -} - - bool SvtLinguConfig::HasGrammarChecker() const { bool bRes = false; |