summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-04 22:41:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-05 10:02:57 +0100
commitdb1b7178dde8daa8660becf35acf8362b5f4bd7e (patch)
tree902efefff371fcc0d9dfd42f0bacda289070f3c5 /sfx2
parent31e203f1fd9a32c70c37a73f13963992e1cc17ef (diff)
callcatcher: unused methods
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sfx2/app.hxx1
-rw-r--r--sfx2/inc/sfx2/docfile.hxx5
-rw-r--r--sfx2/source/appl/app.cxx12
-rw-r--r--sfx2/source/doc/docfile.cxx75
4 files changed, 0 insertions, 93 deletions
diff --git a/sfx2/inc/sfx2/app.hxx b/sfx2/inc/sfx2/app.hxx
index 63be1de6b2f6..060af28b087f 100644
--- a/sfx2/inc/sfx2/app.hxx
+++ b/sfx2/inc/sfx2/app.hxx
@@ -165,7 +165,6 @@ public:
SfxResourceManager& GetResourceManager() const;
ResMgr* GetSfxResManager();
static ResMgr* CreateResManager( const char *pPrefix );
- SimpleResMgr* CreateSimpleResManager();
// DDE
long DdeExecute( const String& rCmd );
diff --git a/sfx2/inc/sfx2/docfile.hxx b/sfx2/inc/sfx2/docfile.hxx
index d218c922a961..af6ba04bfc49 100644
--- a/sfx2/inc/sfx2/docfile.hxx
+++ b/sfx2/inc/sfx2/docfile.hxx
@@ -129,7 +129,6 @@ public:
const SfxItemSet* pSet=0,
sal_Bool bRoot = sal_False );
- SfxMedium( const SfxMedium &rMedium, sal_Bool bCreateTemporary = sal_False );
SfxMedium( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs );
~SfxMedium();
@@ -153,7 +152,6 @@ public:
const String& GetOrigURL() const;
SfxItemSet * GetItemSet() const;
- void SetItemSet(SfxItemSet *pSet);
void Close();
void CloseAndRelease();
void ReOpen();
@@ -167,8 +165,6 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent > GetContent() const;
const String& GetPhysicalName() const;
- void SetTemporary( sal_Bool bTemp );
- sal_Bool IsTemporary() const;
sal_Bool IsRemote();
sal_Bool IsOpen() const; // { return aStorage.Is() || pInStream; }
void StartDownload();
@@ -227,7 +223,6 @@ public:
::rtl::OUString SwitchDocumentToTempFile();
sal_Bool SwitchDocumentToFile( ::rtl::OUString aURL );
- ::rtl::OUString GetCharset();
void SetCharset( ::rtl::OUString );
::rtl::OUString GetBaseURL( bool bForSaving=false );
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;