summaryrefslogtreecommitdiff
path: root/sw/source/uibase/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-25 23:03:53 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-27 05:22:07 +0000
commit1bf97d99e7529f1a69688522ac271636059a3391 (patch)
tree67629ba3d6d0c9fbe9916e7245461c3c2d7c79b2 /sw/source/uibase/misc
parentb1225d201f8c23c75e31e09a0f5e9ff838866776 (diff)
loplugin:singlevalfields in sw(part1)
Change-Id: I0c6f545a8818da1f226c3958580abeeff0dc87b7 Reviewed-on: https://gerrit.libreoffice.org/26664 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/misc')
-rw-r--r--sw/source/uibase/misc/redlndlg.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx
index eca8ac5fe9ee..670e3b31de8f 100644
--- a/sw/source/uibase/misc/redlndlg.cxx
+++ b/sw/source/uibase/misc/redlndlg.cxx
@@ -159,7 +159,6 @@ SwRedlineAcceptDlg::SwRedlineAcceptDlg(vcl::Window *pParent, VclBuilderContainer
m_sFormatCollSet (SW_RES(STR_REDLINE_FMTCOLLSET)),
m_sAutoFormat (SW_RES(STR_REDLINE_AUTOFMT)),
m_bOnlyFormatedRedlines( false ),
- m_bHasReadonlySel ( false ),
m_bRedlnAutoFormat (bAutoFormat),
m_bInhibitActivate( false ),
m_aInserted (SW_RES(IMG_REDLINE_INSERTED)),
@@ -273,7 +272,6 @@ void SwRedlineAcceptDlg::InitAuthors()
sal_uInt16 nCount = pSh->GetRedlineCount();
m_bOnlyFormatedRedlines = true;
- m_bHasReadonlySel = false;
bool bIsNotFormated = false;
sal_uInt16 i;
@@ -322,8 +320,8 @@ void SwRedlineAcceptDlg::InitAuthors()
m_pTPView->EnableAccept( bEnable && bSel );
m_pTPView->EnableReject( bEnable && bIsNotFormated && bSel );
- m_pTPView->EnableAcceptAll( bEnable && !m_bHasReadonlySel );
- m_pTPView->EnableRejectAll( bEnable && !m_bHasReadonlySel &&
+ m_pTPView->EnableAcceptAll( bEnable );
+ m_pTPView->EnableRejectAll( bEnable &&
!m_bOnlyFormatedRedlines );
}
@@ -1008,7 +1006,7 @@ IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, GotoHdl, Timer *, void)
bool bEnable = !pSh->getIDocumentRedlineAccess().GetRedlinePassword().getLength();
m_pTPView->EnableAccept( bEnable && bSel /*&& !bReadonlySel*/ );
m_pTPView->EnableReject( bEnable && bSel && bIsNotFormated /*&& !bReadonlySel*/ );
- m_pTPView->EnableRejectAll( bEnable && !m_bOnlyFormatedRedlines && !m_bHasReadonlySel );
+ m_pTPView->EnableRejectAll( bEnable && !m_bOnlyFormatedRedlines );
}
IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, CommandHdl, SvSimpleTable*, void)