diff options
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r-- | vcl/source/control/edit.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 5f09d77cc103..81d5316c991b 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -1388,7 +1388,7 @@ void Edit::MouseButtonUp( const MouseEvent& rMEvt ) mbClickedInSelection = false; } else if ( rMEvt.IsMiddle() && !mbReadOnly && - ( GetSettings().GetMouseSettings().GetMiddleButtonAction() == MOUSE_MIDDLE_PASTESELECTION ) ) + ( GetSettings().GetMouseSettings().GetMiddleButtonAction() == MouseMiddleButtonAction::PasteSelection ) ) { ::com::sun::star::uno::Reference<com::sun::star::datatransfer::clipboard::XClipboard> aSelection(Window::GetPrimarySelection()); ImplPaste( aSelection ); @@ -1895,11 +1895,11 @@ void Edit::GetFocus() { maUndoText = maText.toString(); - sal_uLong nSelOptions = GetSettings().GetStyleSettings().GetSelectionOptions(); + SelectionOptions nSelOptions = GetSettings().GetStyleSettings().GetSelectionOptions(); if ( !( GetStyle() & (WB_NOHIDESELECTION|WB_READONLY) ) && ( GetGetFocusFlags() & (GETFOCUS_INIT|GETFOCUS_TAB|GETFOCUS_CURSOR|GETFOCUS_MNEMONIC) ) ) { - if ( nSelOptions & SELECTION_OPTION_SHOWFIRST ) + if ( nSelOptions & SelectionOptions::ShowFirst ) { maSelection.Min() = maText.getLength(); maSelection.Max() = 0; |