Kaydet (Commit) 862f694f authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Fix spelling misteak

Change-Id: Ie5d3564cf00c27c11597dd3ff1ba8dc82e250c0b
üst ee860cbf
...@@ -298,8 +298,8 @@ public: ...@@ -298,8 +298,8 @@ public:
sal_Bool ShowDocumentInfoDialog(); sal_Bool ShowDocumentInfoDialog();
::rtl::OUString GetReccomendedDir( const ::rtl::OUString& aSuggestedDir ); ::rtl::OUString GetRecommendedDir( const ::rtl::OUString& aSuggestedDir );
::rtl::OUString GetReccomendedName( const ::rtl::OUString& aSuggestedName, ::rtl::OUString GetRecommendedName( const ::rtl::OUString& aSuggestedName,
const ::rtl::OUString& aTypeName ); const ::rtl::OUString& aTypeName );
}; };
...@@ -946,12 +946,12 @@ sal_Bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode, ...@@ -946,12 +946,12 @@ sal_Bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode,
} }
} }
::rtl::OUString aReccomendedDir = GetReccomendedDir( aSuggestedDir ); ::rtl::OUString aRecommendedDir = GetRecommendedDir( aSuggestedDir );
if ( !aReccomendedDir.isEmpty() ) if ( !aRecommendedDir.isEmpty() )
pFileDlg->SetDisplayFolder( aReccomendedDir ); pFileDlg->SetDisplayFolder( aRecommendedDir );
::rtl::OUString aReccomendedName = GetReccomendedName( aSuggestedName, aAdjustToType ); ::rtl::OUString aRecommendedName = GetRecommendedName( aSuggestedName, aAdjustToType );
if ( !aReccomendedName.isEmpty() ) if ( !aRecommendedName.isEmpty() )
pFileDlg->SetFileName( aReccomendedName ); pFileDlg->SetFileName( aRecommendedName );
uno::Reference < view::XSelectionSupplier > xSel( GetModel()->getCurrentController(), uno::UNO_QUERY ); uno::Reference < view::XSelectionSupplier > xSel( GetModel()->getCurrentController(), uno::UNO_QUERY );
if ( xSel.is() && xSel->getSelection().hasValue() ) if ( xSel.is() && xSel->getSelection().hasValue() )
...@@ -1133,9 +1133,9 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog() ...@@ -1133,9 +1133,9 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
::rtl::OUString ModelData_Impl::GetReccomendedDir( const ::rtl::OUString& aSuggestedDir ) ::rtl::OUString ModelData_Impl::GetRecommendedDir( const ::rtl::OUString& aSuggestedDir )
{ {
::rtl::OUString aReccomendedDir; ::rtl::OUString aRecommendedDir;
if ( ( !aSuggestedDir.isEmpty() || GetStorable()->hasLocation() ) if ( ( !aSuggestedDir.isEmpty() || GetStorable()->hasLocation() )
&& !GetMediaDescr().getUnpackedValueOrDefault( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RepairPackage")), && !GetMediaDescr().getUnpackedValueOrDefault( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RepairPackage")),
...@@ -1160,36 +1160,36 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog() ...@@ -1160,36 +1160,36 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
aLocation.setFinalSlash(); aLocation.setFinalSlash();
if ( !aLocation.HasError() ) if ( !aLocation.HasError() )
aReccomendedDir = aLocation.GetMainURL( INetURLObject::NO_DECODE ); aRecommendedDir = aLocation.GetMainURL( INetURLObject::NO_DECODE );
} }
else else
{ {
aReccomendedDir = INetURLObject( SvtPathOptions().GetWorkPath() ).GetMainURL( INetURLObject::NO_DECODE ); aRecommendedDir = INetURLObject( SvtPathOptions().GetWorkPath() ).GetMainURL( INetURLObject::NO_DECODE );
} }
return aReccomendedDir; return aRecommendedDir;
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
::rtl::OUString ModelData_Impl::GetReccomendedName( const ::rtl::OUString& aSuggestedName, const ::rtl::OUString& aTypeName ) ::rtl::OUString ModelData_Impl::GetRecommendedName( const ::rtl::OUString& aSuggestedName, const ::rtl::OUString& aTypeName )
{ {
// the last used name might be provided by aSuggestedName from the old selection, or from the MediaDescriptor // the last used name might be provided by aSuggestedName from the old selection, or from the MediaDescriptor
::rtl::OUString aReccomendedName; ::rtl::OUString aRecommendedName;
if ( !aSuggestedName.isEmpty() ) if ( !aSuggestedName.isEmpty() )
aReccomendedName = aSuggestedName; aRecommendedName = aSuggestedName;
else else
{ {
aReccomendedName = INetURLObject( GetStorable()->getLocation() ).GetName( INetURLObject::DECODE_WITH_CHARSET ); aRecommendedName = INetURLObject( GetStorable()->getLocation() ).GetName( INetURLObject::DECODE_WITH_CHARSET );
if ( aReccomendedName.isEmpty() ) if ( aRecommendedName.isEmpty() )
{ {
try { try {
uno::Reference< frame::XTitle > xTitle( GetModel(), uno::UNO_QUERY_THROW ); uno::Reference< frame::XTitle > xTitle( GetModel(), uno::UNO_QUERY_THROW );
aReccomendedName = xTitle->getTitle(); aRecommendedName = xTitle->getTitle();
} catch( const uno::Exception& ) {} } catch( const uno::Exception& ) {}
} }
if ( !aReccomendedName.isEmpty() && !aTypeName.isEmpty() ) if ( !aRecommendedName.isEmpty() && !aTypeName.isEmpty() )
{ {
// adjust the extension to the type // adjust the extension to the type
uno::Reference< container::XNameAccess > xTypeDetection = uno::Reference< container::XNameAccess >( uno::Reference< container::XNameAccess > xTypeDetection = uno::Reference< container::XNameAccess >(
...@@ -1197,7 +1197,7 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog() ...@@ -1197,7 +1197,7 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
uno::UNO_QUERY ); uno::UNO_QUERY );
if ( xTypeDetection.is() ) if ( xTypeDetection.is() )
{ {
INetURLObject aObj( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "file:///c:/" ) ) + aReccomendedName ); INetURLObject aObj( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "file:///c:/" ) ) + aRecommendedName );
uno::Sequence< beans::PropertyValue > aTypeNameProps; uno::Sequence< beans::PropertyValue > aTypeNameProps;
if ( ( xTypeDetection->getByName( aTypeName ) >>= aTypeNameProps ) && aTypeNameProps.getLength() ) if ( ( xTypeDetection->getByName( aTypeName ) >>= aTypeNameProps ) && aTypeNameProps.getLength() )
...@@ -1210,12 +1210,12 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog() ...@@ -1210,12 +1210,12 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
aObj.SetExtension( aExtensions[0] ); aObj.SetExtension( aExtensions[0] );
} }
aReccomendedName = aObj.GetName( INetURLObject::DECODE_WITH_CHARSET ); aRecommendedName = aObj.GetName( INetURLObject::DECODE_WITH_CHARSET );
} }
} }
} }
return aReccomendedName; return aRecommendedName;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment