diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-27 22:15:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:06 +0100 |
commit | 65302eb1bed16db8f06cbb048d03ba6d644b3fb6 (patch) | |
tree | 2e7c3241b4c607fd074133b70c5abfb2e77c54d9 /sfx2 | |
parent | fa19c5ec0844456a485cb7eb4a64f9d9c6d678bf (diff) |
ByteString->rtl::OString and destupid-api a bit
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/fltfnc.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/filtergrouping.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/doc/docfilt.cxx | 7 |
3 files changed, 11 insertions, 8 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index ced3dd807717..3ab7ea6ca7b3 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -712,7 +712,7 @@ const SfxFilter* SfxFilterMatcher::GetFilter4Extension( const String& rExt, SfxF SfxFilterFlags nFlags = pFilter->GetFilterFlags(); if ( (nFlags & nMust) == nMust && !(nFlags & nDont ) ) { - String sWildCard = ToUpper_Impl( pFilter->GetWildcard().GetWildCard() ); + String sWildCard = ToUpper_Impl( pFilter->GetWildcard().getGlob() ); String sExt = ToUpper_Impl( rExt ); if (!sExt.Len()) diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx index 4f8ca6c43af2..bc2672f4ce94 100644 --- a/sfx2/source/dialog/filtergrouping.cxx +++ b/sfx2/source/dialog/filtergrouping.cxx @@ -41,6 +41,7 @@ #include <unotools/confignode.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/sequenceashashmap.hxx> +#include <comphelper/string.hxx> #include <tools/wldcrd.hxx> #include <tools/diagnose_ex.h> @@ -631,7 +632,7 @@ namespace sfx2 for ( const SfxFilter* pFilter = _rFilterMatcher.First(); pFilter; pFilter = _rFilterMatcher.Next() ) { sFilterName = pFilter->GetFilterName(); - sFilterWildcard = pFilter->GetWildcard().GetWildCard(); + sFilterWildcard = pFilter->GetWildcard().getGlob(); AppendWildcardToDescriptor aExtendWildcard( sFilterWildcard ); DBG_ASSERT( sFilterWildcard.Len(), "sfx2::lcl_GroupAndClassify: invalid wildcard of this filter!" ); @@ -964,7 +965,8 @@ namespace sfx2 const SfxFilter* pDefaultFilter = SfxFilterContainer::GetDefaultFilter_Impl(_rFactory); // Only use one extension (#i32434#) // (and always the first if there are more than one) - sExtension = pDefaultFilter->GetWildcard().GetWildCard().GetToken( 0, ';' ); + using comphelper::string::getToken; + sExtension = getToken(pDefaultFilter->GetWildcard().getGlob(), 0, ';'); sUIName = addExtension( pDefaultFilter->GetUIName(), sExtension, sal_False, _rFileDlgImpl ); try { @@ -988,7 +990,7 @@ namespace sfx2 // Only use one extension (#i32434#) // (and always the first if there are more than one) - sExtension = pFilter->GetWildcard().GetWildCard().GetToken( 0, ';' ); + sExtension = getToken(pFilter->GetWildcard().getGlob(), 0, ';'); sUIName = addExtension( pFilter->GetUIName(), sExtension, sal_False, _rFileDlgImpl ); try { @@ -1045,7 +1047,7 @@ namespace sfx2 { sTypeName = pFilter->GetTypeName(); sUIName = pFilter->GetUIName(); - sExtensions = pFilter->GetWildcard().GetWildCard(); + sExtensions = pFilter->GetWildcard().getGlob(); ExportFilter aExportFilter( sUIName, sExtensions ); String aExt = sExtensions; diff --git a/sfx2/source/doc/docfilt.cxx b/sfx2/source/doc/docfilt.cxx index 3b82bb5bec59..b8a8274740c6 100644 --- a/sfx2/source/doc/docfilt.cxx +++ b/sfx2/source/doc/docfilt.cxx @@ -38,6 +38,7 @@ #include <string> #include <sot/exchange.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XNameAccess.hpp> @@ -72,7 +73,7 @@ SfxFilter::SfxFilter( const String &rName, aMimeType( rMimeType ), aFilterName( rName ) { - String aExts = GetWildcard()(); + String aExts = GetWildcard().getGlob(); String aShort, aLong; String aRet; sal_uInt16 nMaxLength = USHRT_MAX; @@ -110,12 +111,12 @@ SfxFilter::~SfxFilter() String SfxFilter::GetDefaultExtension() const { - return GetWildcard()().GetToken( 0, ';' ); + return comphelper::string::getToken(GetWildcard().getGlob(), 0, ';'); } String SfxFilter::GetSuffixes() const { - String aRet = GetWildcard()(); + String aRet = GetWildcard().getGlob(); while( aRet.SearchAndReplaceAscii( "*.", String() ) != STRING_NOTFOUND ) ; while( aRet.SearchAndReplace( ';', ',' ) != STRING_NOTFOUND ) ; return aRet; |