summaryrefslogtreecommitdiff
path: root/include/svx/fmgridif.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-29 14:25:07 +0200
committerNoel Grandin <noel@peralex.com>2016-08-30 08:40:03 +0200
commite9a2d9e7be22b455c1597277c152379f732ce447 (patch)
treeb456ac5d6bb38d01c42598c7e6d1a07521c7d3f8 /include/svx/fmgridif.hxx
parent15b084f2034dc892ef456f8c65f162c760c69fe8 (diff)
convert DbGridControl::NavigationBar::State to scoped enum
and remove a nasty hack where we were passing around an extra constant (SID_FM_RECORD_UNDO) without actually adding it to the enum Change-Id: Ib79d0a4e2d1418797b01067529d500728e95bf7e
Diffstat (limited to 'include/svx/fmgridif.hxx')
-rw-r--r--include/svx/fmgridif.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/svx/fmgridif.hxx b/include/svx/fmgridif.hxx
index fceab28fb4bf..53a219884f47 100644
--- a/include/svx/fmgridif.hxx
+++ b/include/svx/fmgridif.hxx
@@ -50,6 +50,7 @@
#include <cppuhelper/implbase10.hxx>
class DbGridColumn;
+enum class DbGridControlNavigationBarState;
class SAL_WARN_UNUSED OWeakSubObject : public ::cppu::OWeakObject
{
@@ -503,7 +504,7 @@ protected:
virtual VclPtr<FmGridControl> imp_CreateControl(vcl::Window* pParent, WinBits nStyle);
static css::uno::Sequence< css::util::URL>& getSupportedURLs();
- static css::uno::Sequence<sal_uInt16>& getSupportedGridSlots();
+ static const std::vector<DbGridControlNavigationBarState>& getSupportedGridSlots();
void ConnectToDispatcher();
void DisConnectFromDispatcher();
void UpdateDispatches(); // will connect if not already connected and just update else
@@ -519,8 +520,8 @@ protected:
void selectionChanged();
void columnChanged();
- DECL_LINK_TYPED(OnQueryGridSlotState, sal_uInt16, int);
- DECL_LINK_TYPED(OnExecuteGridSlot, sal_uInt16, bool);
+ DECL_LINK_TYPED(OnQueryGridSlotState, DbGridControlNavigationBarState, int);
+ DECL_LINK_TYPED(OnExecuteGridSlot, DbGridControlNavigationBarState, bool);
};