summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-28 15:27:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-29 06:42:30 +0000
commit5a725d1fde7381ef9c02afcb639235a11e52182c (patch)
treec1dfea787afb28c43be74eb981976e858550ccd1 /sfx2
parent2729994bc519597db205aeeb4b2242a45c57712f (diff)
loplugin:singlevalfields
Change-Id: I7f05903aaab9b0b274358243d680d0c30694ae61 Reviewed-on: https://gerrit.libreoffice.org/35804 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appcfg.cxx3
-rw-r--r--sfx2/source/doc/objserv.cxx2
-rw-r--r--sfx2/source/doc/objstor.cxx1
-rw-r--r--sfx2/source/doc/objxtor.cxx1
-rw-r--r--sfx2/source/inc/objshimp.hxx1
-rw-r--r--sfx2/source/view/impviewframe.hxx2
-rw-r--r--sfx2/source/view/viewfrm.cxx26
7 files changed, 1 insertions, 35 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index 0f1b1bb8ebb2..873c1c5a4539 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -498,8 +498,7 @@ void SfxApplication::SetOptions_Impl( const SfxItemSet& rSet )
while ( pCurrViewFrame )
{
// update all "final" dispatchers
- if ( !pCurrViewFrame->GetActiveChildFrame_Impl() )
- pCurrViewFrame->GetDispatcher()->Update_Impl(true);
+ pCurrViewFrame->GetDispatcher()->Update_Impl(true);
pCurrViewFrame = SfxViewFrame::GetNext(*pCurrViewFrame);
}
}
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index e357c82533c6..c2bdb2e5281a 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1442,8 +1442,6 @@ void SfxObjectShell::ImplSign( bool bScriptingContent )
else
pImpl->nDocumentSignatureState = SignatureState::UNKNOWN;// Re-Check
- pImpl->bSignatureErrorIsShown = false;
-
Invalidate( SID_SIGNATURE );
Invalidate( SID_MACRO_SIGNATURE );
Broadcast( SfxHint(SfxHintId::TitleChanged) );
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 3266f5d4ac95..72eeba95925b 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2059,7 +2059,6 @@ bool SfxObjectShell::DoSaveCompleted( SfxMedium* pNewMed, bool bRegisterRecent )
pImpl->nDocumentSignatureState = SignatureState::NOSIGNATURES;
pImpl->nScriptingSignatureState = pNewMed->GetCachedSignatureState_Impl();
OSL_ENSURE( pImpl->nScriptingSignatureState != SignatureState::BROKEN, "The signature must not be broken at this place" );
- pImpl->bSignatureErrorIsShown = false;
// TODO/LATER: in future the medium must control own signature state, not the document
pNewMed->SetCachedSignatureState_Impl( SignatureState::NOSIGNATURES ); // set the default value back
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index 5cd1609c6457..4e097f91b471 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -224,7 +224,6 @@ SfxObjectShell_Impl::SfxObjectShell_Impl( SfxObjectShell& _rDocShell )
,bIsPrintJobCancelable( true )
,bOwnsStorage( true )
,bInitialized( false )
- ,bSignatureErrorIsShown( false )
,bModelInitialized( false )
,bPreserveVersions( true )
,m_bMacroSignBroken( false )
diff --git a/sfx2/source/inc/objshimp.hxx b/sfx2/source/inc/objshimp.hxx
index 916d306caaf2..dc0624253094 100644
--- a/sfx2/source/inc/objshimp.hxx
+++ b/sfx2/source/inc/objshimp.hxx
@@ -83,7 +83,6 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess
bIsPrintJobCancelable :1, // Stampit disable/enable cancel button for print jobs ... default = true = enable!
bOwnsStorage:1,
bInitialized:1,
- bSignatureErrorIsShown:1,
bModelInitialized:1, // whether the related model is initialized
bPreserveVersions:1,
m_bMacroSignBroken:1, // whether the macro signature was explicitly broken
diff --git a/sfx2/source/view/impviewframe.hxx b/sfx2/source/view/impviewframe.hxx
index 1ef39b8b4a19..63ba1ddd2999 100644
--- a/sfx2/source/view/impviewframe.hxx
+++ b/sfx2/source/view/impviewframe.hxx
@@ -35,7 +35,6 @@ struct SfxViewFrame_Impl
OUString aActualURL;
SfxFrame& rFrame;
VclPtr<vcl::Window> pWindow;
- SfxViewFrame* pActiveChild;
VclPtr<vcl::Window> pFocusWin;
sal_uInt16 nDocViewNo;
SfxInterfaceId nCurViewId;
@@ -52,7 +51,6 @@ struct SfxViewFrame_Impl
explicit SfxViewFrame_Impl(SfxFrame& i_rFrame)
: rFrame(i_rFrame)
, pWindow(nullptr)
- , pActiveChild(nullptr)
, pFocusWin(nullptr)
, nDocViewNo(0)
, nCurViewId(0)
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index fc9b4329c339..5179d4f4ecbe 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -254,24 +254,6 @@ static bool AskPasswordToModify_Impl( const uno::Reference< task::XInteractionHa
void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
{
- if ( rReq.GetSlot() == SID_RELOAD )
- {
- // When CTRL-Reload, reload the active Frame
- SfxViewFrame* pActFrame = this;
- while ( pActFrame )
- pActFrame = pActFrame->GetActiveChildFrame_Impl();
-
- if ( pActFrame )
- {
- sal_uInt16 nModifier = rReq.GetModifier();
- if ( nModifier & KEY_MOD1 )
- {
- pActFrame->ExecReload_Impl( rReq );
- return;
- }
- }
- }
-
SfxObjectShell* pSh = GetObjectShell();
switch ( rReq.GetSlot() )
{
@@ -985,7 +967,6 @@ void SfxViewFrame::ReleaseObjectShell_Impl()
GetFrame().ReleasingComponent_Impl();
if ( GetWindow().HasChildPathFocus( true ) )
{
- DBG_ASSERT( !GetActiveChildFrame_Impl(), "Wrong active child frame!" );
GetWindow().GrabFocus();
}
@@ -1324,7 +1305,6 @@ void SfxViewFrame::Construct_Impl( SfxObjectShell *pObjSh )
m_pImpl->bResizeInToOut = true;
m_pImpl->bObjLocked = false;
m_pImpl->pFocusWin = nullptr;
- m_pImpl->pActiveChild = nullptr;
m_pImpl->nCurViewId = SfxInterfaceId(0);
m_pImpl->bReloading = false;
m_pImpl->bIsDowning = false;
@@ -1701,12 +1681,6 @@ const Size& SfxViewFrame::GetMargin_Impl() const
return m_pImpl->aMargin;
}
-SfxViewFrame* SfxViewFrame::GetActiveChildFrame_Impl() const
-{
- SfxViewFrame *pViewFrame = m_pImpl->pActiveChild;
- return pViewFrame;
-}
-
SfxViewFrame* SfxViewFrame::LoadViewIntoFrame_Impl_NoThrow( const SfxObjectShell& i_rDoc, const Reference< XFrame >& i_rFrame,
const SfxInterfaceId i_nViewId, const bool i_bHidden )
{