summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui/report/ReportSection.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-15 14:15:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-16 08:17:34 +0200
commite52b83ec3f820333e052d0d756268e878086611d (patch)
tree36a9162b2cec1e2a97ccae101171aa850da8b734 /reportdesign/source/ui/report/ReportSection.cxx
parent4ca9e8fa3a040c18221c947a651469a89029282e (diff)
convert DlgEdMode to scoped enum
and drop unused RPTUI_READONLY enumerator Change-Id: I863ffc40b3b8f065d01e9570134ee1e2cef400c1
Diffstat (limited to 'reportdesign/source/ui/report/ReportSection.cxx')
-rw-r--r--reportdesign/source/ui/report/ReportSection.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index 8f2337371878..684384e5ed61 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -86,7 +86,7 @@ OReportSection::OReportSection(OSectionWindow* _pParent,const uno::Reference< re
, m_pReportListener(nullptr)
, m_xSection(_xSection)
, m_nPaintEntranceCount(0)
- , m_eMode(RPTUI_SELECT)
+ , m_eMode(DlgEdMode::Select)
{
//EnableChildTransparentMode();
SetHelpId(HID_REPORTSECTION);
@@ -313,7 +313,7 @@ void OReportSection::SetMode( DlgEdMode eNewMode )
{
if ( eNewMode != m_eMode )
{
- if ( eNewMode == RPTUI_INSERT )
+ if ( eNewMode == DlgEdMode::Insert )
{
m_pFunc.reset(new DlgEdFuncInsert( this ));
}
@@ -322,7 +322,7 @@ void OReportSection::SetMode( DlgEdMode eNewMode )
m_pFunc.reset(new DlgEdFuncSelect( this ));
}
m_pFunc->setOverlappedControlColor(lcl_getOverlappedControlColor( ) );
- m_pModel->SetReadOnly(eNewMode == RPTUI_READONLY);
+ m_pModel->SetReadOnly(false);
m_eMode = eNewMode;
}
}