summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/view/tabview3.cxx
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2016-01-12 15:37:25 -0400
committerHenry Castro <hcastro@collabora.com>2016-01-12 21:30:01 +0000
commitab95fb7a19d7847dd1cbfad0059cc175a809a50f (patch)
treedc65f266e98a5a4cde1a874d1ffc39039047de95 /sc/source/ui/view/tabview3.cxx
parenttdf#97075 - don't render sdr overlays before we paint. (diff)
downloadcore-ab95fb7a19d7847dd1cbfad0059cc175a809a50f.tar.gz
core-ab95fb7a19d7847dd1cbfad0059cc175a809a50f.zip
sc lokit: refactor setPart
Change-Id: I01786551aef0274ae11fe673cc5b0c250e8817cc Reviewed-on: https://gerrit.libreoffice.org/21403 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r--sc/source/ui/view/tabview3.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index 7bdeeae35f62..10de038f6ee9 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -1514,6 +1514,11 @@ void ScTabView::SelectNextTab( short nDir, bool bExtendSelection )
PaintExtras();
}
+void ScTabView::SelectTabPage( const sal_uInt16 nTab )
+{
+ pTabControl->SwitchToPageId( nTab );
+}
+
// SetTabNo - set the displayed sheet
void ScTabView::SetTabNo( SCTAB nTab, bool bNew, bool bExtendSelection, bool bSameTabButMoved )