summaryrefslogtreecommitdiff
path: root/sfx2/source/doc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-22 21:51:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-23 10:35:44 +0100
commit43f8cba7d238e6db25e05edd0d9713dcc42fc861 (patch)
tree797d2e5aeae4d288a143e7483997538758ea7af9 /sfx2/source/doc
parent6c1e8719013b47ff3d3954173a17e49f3a361009 (diff)
callcatcher: yet more unused code
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r--sfx2/source/doc/docfile.cxx6
-rw-r--r--sfx2/source/doc/frmdescr.cxx15
-rw-r--r--sfx2/source/doc/objmisc.cxx43
3 files changed, 0 insertions, 64 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 184768eb2000..ddeadec0f765 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -775,12 +775,6 @@ sal_Bool SfxMedium::IsStorage()
}
//------------------------------------------------------------------
-Link SfxMedium::GetDoneLink() const
-{
- return pImp->aDoneLink.GetLink();
-}
-
-//------------------------------------------------------------------
sal_Bool SfxMedium::IsPreview_Impl()
{
sal_Bool bPreview = sal_False;
diff --git a/sfx2/source/doc/frmdescr.cxx b/sfx2/source/doc/frmdescr.cxx
index 1856a2cf9985..51057306d26b 100644
--- a/sfx2/source/doc/frmdescr.cxx
+++ b/sfx2/source/doc/frmdescr.cxx
@@ -183,21 +183,6 @@ long SfxFrameDescriptor::GetSize() const
return nWidth;
}
-void SfxFrameDescriptor::TakeProperties( const SfxFrameProperties& rProp )
-{
- aURL = aActualURL = INetURLObject(rProp.aURL);
- aName = rProp.aName;
- aMargin.Width() = rProp.lMarginWidth;
- aMargin.Height() = rProp.lMarginHeight;
- nWidth = rProp.lSize;
- eScroll = rProp.eScroll;
- eSizeSelector = rProp.eSizeSelector;
- nHasBorder = rProp.bHasBorder ? BORDER_YES : BORDER_NO;
- if ( rProp.bBorderSet )
- nHasBorder |= BORDER_SET;
- bResizeHorizontal = bResizeVertical = rProp.bResizable;
-}
-
void SfxFrameDescriptor::SetWallpaper( const Wallpaper& rWallpaper )
{
DELETEZ( pImp->pWallpaper );
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index 2f12a8bfa790..30205131d1ac 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -1813,49 +1813,6 @@ sal_Bool SfxObjectShell::IsPreview() const
return bPreview;
}
-sal_Bool SfxObjectShell::IsSecure()
-{
- // When global warning is on, go to Secure-Referer-Liste
- String aReferer = GetMedium()->GetName();
- if ( !aReferer.Len() )
- {
- // for new documents use the template as reference
- ::rtl::OUString aTempl( getDocProperties()->getTemplateURL() );
- if ( aTempl.getLength() )
- aReferer = INetURLObject( aTempl ).GetMainURL( INetURLObject::NO_DECODE );
- }
-
- INetURLObject aURL( "macro:" );
- if ( !aReferer.Len() )
- // empty new or embedded document
- return sal_True;
-
- SvtSecurityOptions aOpt;
-
- if( aOpt.GetBasicMode() == eALWAYS_EXECUTE )
- return sal_True;
-
- if( aOpt.GetBasicMode() == eNEVER_EXECUTE )
- return sal_False;
-
- if ( aOpt.IsSecureURL( aURL.GetMainURL( INetURLObject::NO_DECODE ), aReferer ) )
- {
- if ( GetMedium()->GetContent().is() )
- {
- Any aAny( ::utl::UCBContentHelper::GetProperty( aURL.GetMainURL( INetURLObject::NO_DECODE ), String( RTL_CONSTASCII_USTRINGPARAM("IsProtected")) ) );
- sal_Bool bIsProtected = sal_False;
- if ( ( aAny >>= bIsProtected ) && bIsProtected )
- return sal_False;
- else
- return sal_True;
- }
- else
- return sal_True;
- }
- else
- return sal_False;
-}
-
void SfxObjectShell::SetWaitCursor( sal_Bool bSet ) const
{
for( SfxViewFrame* pFrame = SfxViewFrame::GetFirst( this ); pFrame; pFrame = SfxViewFrame::GetNext( *pFrame, this ) )