diff options
Diffstat (limited to 'vcl/source/control/tabctrl.cxx')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 8b970309ff0c..d72056fb19d1 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2181,4 +2181,16 @@ void TabControl::queue_resize(StateChangedType eReason) Window::queue_resize(eReason); } +std::vector<sal_uInt16> TabControl::GetPageIDs() const +{ + std::vector<sal_uInt16> aIDs; + for (auto itr = mpTabCtrlData->maItemList.begin(), itrEnd = mpTabCtrlData->maItemList.end(); + itr != itrEnd; ++itr) + { + aIDs.push_back(itr->mnId); + } + + return aIDs; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |