diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-12 10:28:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-12 11:34:22 +0200 |
commit | bad8bb24142348e7273fedfa5f8f4132a131254e (patch) | |
tree | 00a1c6800ce9d9de823ae6546f18cd88ae8c1ceb /sw/inc/view.hxx | |
parent | 3cee2b2d5823e83fbfa01b2987df2452f75fc777 (diff) |
convert SelectionType to scoped enum
Change-Id: Iefdf6d47b1c0189c3b3e39ad5a025e95f18fe6b6
Reviewed-on: https://gerrit.libreoffice.org/36446
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/view.hxx')
-rw-r--r-- | sw/inc/view.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx index ae74f418a769..6af7a90ce00e 100644 --- a/sw/inc/view.hxx +++ b/sw/inc/view.hxx @@ -80,6 +80,7 @@ class SwPostItMgr; enum class SotExchangeDest; class SwCursorShell; enum class SvxSearchCmd; +enum class SelectionType : sal_Int32; namespace com{ namespace sun { namespace star { namespace view{ class XSelectionSupplier; } @@ -208,7 +209,7 @@ class SW_DLLPUBLIC SwView: public SfxViewShell SwPostItMgr *m_pPostItMgr; - int m_nSelectionType; + SelectionType m_nSelectionType; VclPtr<FloatingWindow> m_pFieldPopup; sal_uInt16 m_nPageCnt; @@ -337,10 +338,10 @@ protected: SwView_Impl* GetViewImpl() {return m_pViewImpl;} - void ImpSetVerb( int nSelType ); + void ImpSetVerb( SelectionType nSelType ); - int GetSelectionType() const { return m_nSelectionType; } - void SetSelectionType(int nSet) { m_nSelectionType = nSet;} + SelectionType GetSelectionType() const { return m_nSelectionType; } + void SetSelectionType(SelectionType nSet) { m_nSelectionType = nSet;} // for SwWebView void SetShell( SfxShell* pS ) { m_pShell = pS; } |