summaryrefslogtreecommitdiff
path: root/sfx2/source/doc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-21 13:05:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-21 19:31:34 +0100
commit08f4ecd5823c420bb7157c238460d50f1f1f9791 (patch)
treef9bd43bba0d6d8bd3baa752fd6c4f51a1f4f7d52 /sfx2/source/doc
parent46db544b41fd30f61dd7b7b4fa2b97ab22ceb079 (diff)
unused SID command in sfx2
Change-Id: Ib11b2fb8d922cf522cc28d86082036b75002ba87 Reviewed-on: https://gerrit.libreoffice.org/46908 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r--sfx2/source/doc/objserv.cxx61
1 files changed, 2 insertions, 59 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 50fa6bc2b5f1..4304a659c111 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -244,16 +244,8 @@ void SfxObjectShell::PrintExec_Impl(SfxRequest &rReq)
}
-void SfxObjectShell::PrintState_Impl(SfxItemSet &rSet)
+void SfxObjectShell::PrintState_Impl(SfxItemSet &/*rSet*/)
{
- bool bPrinting = false;
- SfxViewFrame* pFrame = SfxViewFrame::GetFirst( this );
- if ( pFrame )
- {
- SfxPrinter *pPrinter = pFrame->GetViewShell()->GetPrinter();
- bPrinting = pPrinter && pPrinter->IsPrinting();
- }
- rSet.Put( SfxBoolItem( SID_PRINTOUT, bPrinting ) );
}
bool SfxObjectShell::APISaveAs_Impl(const OUString& aFileName, SfxItemSet& rItemSet)
@@ -1111,14 +1103,6 @@ void SfxObjectShell::ExecProps_Impl(SfxRequest &rReq)
case SID_DOCINFO_COMMENTS :
getDocProperties()->setDescription( static_cast<const SfxStringItem&>(rReq.GetArgs()->Get(rReq.GetSlot())).GetValue() );
break;
-
- case SID_DOCINFO_KEYWORDS :
- {
- const OUString aStr = static_cast<const SfxStringItem&>(rReq.GetArgs()->Get(rReq.GetSlot())).GetValue();
- getDocProperties()->setKeywords(
- ::comphelper::string::convertCommaSeparated(aStr) );
- break;
- }
}
}
@@ -1144,19 +1128,6 @@ void SfxObjectShell::StateProps_Impl(SfxItemSet &rSet)
break;
}
- case SID_DOCINFO_KEYWORDS :
- {
- rSet.Put( SfxStringItem( nSID, ::comphelper::string::
- convertCommaSeparated(getDocProperties()->getKeywords())) );
- break;
- }
-
- case SID_DOCPATH:
- {
- OSL_FAIL( "Not supported anymore!" );
- break;
- }
-
case SID_DOCFULLNAME:
{
rSet.Put( SfxStringItem( SID_DOCFULLNAME, GetTitle(SFX_TITLE_FULLNAME) ) );
@@ -1175,44 +1146,16 @@ void SfxObjectShell::StateProps_Impl(SfxItemSet &rSet)
break;
}
- case SID_DOC_SAVED:
- {
- rSet.Put( SfxBoolItem( SID_DOC_SAVED, !IsModified() ) );
- break;
- }
-
- case SID_CLOSING:
- {
- rSet.Put( SfxBoolItem( SID_CLOSING, false ) );
- break;
- }
-
case SID_DOC_LOADING:
rSet.Put( SfxBoolItem( nSID, ! ( pImpl->nLoadedFlags & SfxLoadedFlags::MAINDOCUMENT ) ) );
break;
-
- case SID_IMG_LOADING:
- rSet.Put( SfxBoolItem( nSID, ! ( pImpl->nLoadedFlags & SfxLoadedFlags::IMAGES ) ) );
- break;
}
}
}
-void SfxObjectShell::ExecView_Impl(SfxRequest &rReq)
+void SfxObjectShell::ExecView_Impl(SfxRequest & /*rReq*/)
{
- switch ( rReq.GetSlot() )
- {
- case SID_ACTIVATE:
- {
- SfxViewFrame *pFrame = SfxViewFrame::GetFirst( this );
- if ( pFrame )
- pFrame->GetFrame().Appear();
- rReq.SetReturnValue( SfxObjectItem( 0, pFrame ) );
- rReq.Done();
- break;
- }
- }
}