summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/UnoDeck.cxx
diff options
context:
space:
mode:
authorLaurent Godard <lgodard.libre@laposte.net>2015-06-08 10:24:42 +0200
committerTomaž Vajngerl <quikee@gmail.com>2015-06-23 06:38:56 +0000
commit187445b2d2885ced92be37ffb11cd2a9bb11f8d6 (patch)
tree1aef8d03508376156d4f987083a9f148da4602f5 /sfx2/source/sidebar/UnoDeck.cxx
parent77cc71476bae2b3655102e2c29d36af40a393201 (diff)
Uno api sidebar unit test tdf#91806
- python test subsequentcheck - correct deck setTitle APi (UI update) - enhance UnoInProcess for flexiility in loading parameter Change-Id: Id04cb78c6162ac84fb3bfd8577f84763109d993e Reviewed-on: https://gerrit.libreoffice.org/16180 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sfx2/source/sidebar/UnoDeck.cxx')
-rw-r--r--sfx2/source/sidebar/UnoDeck.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/UnoDeck.cxx b/sfx2/source/sidebar/UnoDeck.cxx
index f65b21573c94..094fa8a54261 100644
--- a/sfx2/source/sidebar/UnoDeck.cxx
+++ b/sfx2/source/sidebar/UnoDeck.cxx
@@ -71,6 +71,11 @@ void SAL_CALL SfxUnoDeck::setTitle( const OUString& newTitle )
DeckTitleBar* pTitleBar = pDeck->GetTitleBar();
pTitleBar->SetTitle(newTitle);
+
+ // update the ResourceManager
+ pSidebarController->GetResourceManager()->SetDeckTitle(mDeckId, newTitle);
+ pSidebarController->notifyDeckTitle(mDeckId);
+
}
sal_Bool SAL_CALL SfxUnoDeck::isActive()
@@ -94,6 +99,9 @@ void SAL_CALL SfxUnoDeck::activate( const sal_Bool bActivate )
pSidebarController->SwitchToDeck(mDeckId);
else
pSidebarController->SwitchToDefaultDeck();
+
+ // update the sidebar
+ pSidebarController->NotifyResize();
}
uno::Reference<ui::XPanels> SAL_CALL SfxUnoDeck::getPanels()
@@ -123,6 +131,7 @@ void SAL_CALL SfxUnoDeck::setOrderIndex( const sal_Int32 newOrderIndex )
pSidebarController->GetResourceManager()->SetDeckOrderIndex(mDeckId, newOrderIndex);
+ // update the sidebar
pSidebarController->NotifyResize();
}