summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/appl/app.cxx12
-rw-r--r--sfx2/source/doc/docfile.cxx75
2 files changed, 0 insertions, 87 deletions
diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx
index 67168a53e63b..1c552ca756e7 100644
--- a/sfx2/source/appl/app.cxx
+++ b/sfx2/source/appl/app.cxx
@@ -511,18 +511,6 @@ ResMgr* SfxApplication::CreateResManager( const char *pPrefix )
return ResMgr::CreateResMgr(pPrefix);
}
-//---------------------------------------------------------------------
-
-SimpleResMgr* SfxApplication::CreateSimpleResManager()
-{
- SimpleResMgr *pRet;
- const AllSettings& rAllSettings = Application::GetSettings();
- ::com::sun::star::lang::Locale aLocale = rAllSettings.GetUILocale();
- pRet = new SimpleResMgr( CREATEVERSIONRESMGR_NAME(sfx), aLocale );
-
- return pRet;
-}
-
//--------------------------------------------------------------------
ResMgr* SfxApplication::GetSfxResManager()
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 3fb13be672bc..5f925b0485b4 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2486,28 +2486,6 @@ SfxMedium::SfxMedium()
{
Init_Impl();
}
-//------------------------------------------------------------------
-
-SfxMedium::SfxMedium( const SfxMedium& rMedium, sal_Bool bTemporary )
-: SvRefBase(),
- IMPL_CTOR( sal_True, // bRoot, pURLObj
- rMedium.pURLObj ? new INetURLObject(*rMedium.pURLObj) : 0 ),
- pImp(new SfxMedium_Impl( this ))
-{
- bDirect = rMedium.IsDirect();
- nStorOpenMode = rMedium.GetOpenMode();
- if ( !bTemporary )
- aName = rMedium.aName;
-
- pImp->bIsTemp = bTemporary;
- DBG_ASSERT( ! rMedium.pImp->bIsTemp, "Temporary Medium may not be copied" );
- aLogicName = rMedium.aLogicName;
- pSet = rMedium.GetItemSet() ? new SfxItemSet(*rMedium.GetItemSet()) : 0;
- pFilter = rMedium.pFilter;
- Init_Impl();
- if( bTemporary )
- CreateTempFile( sal_True );
-}
//------------------------------------------------------------------
@@ -2795,18 +2773,6 @@ void SfxMedium::SetPhysicalName_Impl( const String& rNameP )
}
//------------------------------------------------------------------
-void SfxMedium::SetTemporary( sal_Bool bTemp )
-{
- pImp->bIsTemp = bTemp;
-}
-
-//------------------------------------------------------------------
-sal_Bool SfxMedium::IsTemporary() const
-{
- return pImp->bIsTemp;
-}
-
-//------------------------------------------------------------------
sal_Bool SfxMedium::Exists( sal_Bool /*bForceSession*/ )
{
@@ -2989,13 +2955,6 @@ SfxMedium::~SfxMedium()
delete pImp;
}
-//------------------------------------------------------------------
-void SfxMedium::SetItemSet(SfxItemSet *pNewSet)
-{
- delete pSet;
- pSet = pNewSet;
-}
-
//----------------------------------------------------------------
const INetURLObject& SfxMedium::GetURLObject() const
{
@@ -3429,40 +3388,6 @@ void SfxMedium::CreateTempFileNoCopy()
CloseStorage();
}
-::rtl::OUString SfxMedium::GetCharset()
-{
- if( !pImp->bIsCharsetInitialized )
- {
- // Set an error in case there is no content?
- if ( GetContent().is() )
- {
- pImp->bIsCharsetInitialized = sal_True;
-
- try
- {
- Any aAny = pImp->aContent.getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MediaType")) );
- ::rtl::OUString aField;
- aAny >>= aField;
-
- String sType, sSubType;
- INetContentTypeParameterList aParameters;
-
- if (INetContentTypes::parse(aField, sType, sSubType, &aParameters))
- {
- const INetContentTypeParameter * pCharset = aParameters.find("charset");
- if (pCharset != 0)
- pImp->aCharset = pCharset->m_sValue;
- }
- }
- catch ( const ::com::sun::star::uno::Exception& )
- {
- }
- }
- }
-
- return pImp->aCharset;
-}
-
void SfxMedium::SetCharset( ::rtl::OUString aChs )
{
pImp->bIsCharsetInitialized = sal_True;