SidebarController.cxx (8a1a651a) | SidebarController.cxx (309fba80) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 79 unchanged lines hidden (view full) --- 88 { 89 MID_UNLOCK_TASK_PANEL = 1, 90 MID_LOCK_TASK_PANEL, 91 MID_CUSTOMIZATION, 92 MID_RESTORE_DEFAULT, 93 MID_FIRST_PANEL, 94 MID_FIRST_HIDE = 1000 95 }; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 79 unchanged lines hidden (view full) --- 88 { 89 MID_UNLOCK_TASK_PANEL = 1, 90 MID_LOCK_TASK_PANEL, 91 MID_CUSTOMIZATION, 92 MID_RESTORE_DEFAULT, 93 MID_FIRST_PANEL, 94 MID_FIRST_HIDE = 1000 95 }; |
96 97 /** When in doubt, show this deck. 98 */ 99 static const ::rtl::OUString gsDefaultDeckId(A2S("PropertyDeck")); |
|
96} 97 98 99SidebarController::SidebarController ( 100 SidebarDockingWindow* pParentWindow, 101 const cssu::Reference<css::frame::XFrame>& rxFrame) 102 : SidebarControllerInterfaceBase(m_aMutex), 103 mpCurrentDeck(), 104 mpParentWindow(pParentWindow), 105 mpTabBar(new TabBar( 106 mpParentWindow, 107 rxFrame, 108 ::boost::bind(&SidebarController::OpenThenSwitchToDeck, this, _1), 109 ::boost::bind(&SidebarController::ShowPopupMenu, this, _1,_2,_3))), 110 mxFrame(rxFrame), 111 maCurrentContext(OUString(), OUString()), 112 maRequestedContext(), | 100} 101 102 103SidebarController::SidebarController ( 104 SidebarDockingWindow* pParentWindow, 105 const cssu::Reference<css::frame::XFrame>& rxFrame) 106 : SidebarControllerInterfaceBase(m_aMutex), 107 mpCurrentDeck(), 108 mpParentWindow(pParentWindow), 109 mpTabBar(new TabBar( 110 mpParentWindow, 111 rxFrame, 112 ::boost::bind(&SidebarController::OpenThenSwitchToDeck, this, _1), 113 ::boost::bind(&SidebarController::ShowPopupMenu, this, _1,_2,_3))), 114 mxFrame(rxFrame), 115 maCurrentContext(OUString(), OUString()), 116 maRequestedContext(), |
113 msCurrentDeckId(A2S("PropertyDeck")), | 117 msCurrentDeckId(gsDefaultDeckId), |
114 msCurrentDeckTitle(), 115 maPropertyChangeForwarder(::boost::bind(&SidebarController::BroadcastPropertyChange, this)), 116 maContextChangeUpdate(::boost::bind(&SidebarController::UpdateConfigurations, this)), 117 mbIsDeckRequestedOpen(), 118 mbIsDeckOpen(), 119 mbCanDeckBeOpened(true), 120 mnSavedSidebarWidth(pParentWindow->GetSizePixel().Width()), 121 maFocusManager(::boost::bind(&SidebarController::ShowPanel, this, _1)), --- 133 unchanged lines hidden (view full) --- 255 if (rEvent.IsEnabled) 256 rEvent.State >>= bIsReadWrite; 257 258 if (mbIsDocumentReadOnly != !bIsReadWrite) 259 { 260 mbIsDocumentReadOnly = !bIsReadWrite; 261 262 // Force the current deck to update its panel list. | 118 msCurrentDeckTitle(), 119 maPropertyChangeForwarder(::boost::bind(&SidebarController::BroadcastPropertyChange, this)), 120 maContextChangeUpdate(::boost::bind(&SidebarController::UpdateConfigurations, this)), 121 mbIsDeckRequestedOpen(), 122 mbIsDeckOpen(), 123 mbCanDeckBeOpened(true), 124 mnSavedSidebarWidth(pParentWindow->GetSizePixel().Width()), 125 maFocusManager(::boost::bind(&SidebarController::ShowPanel, this, _1)), --- 133 unchanged lines hidden (view full) --- 259 if (rEvent.IsEnabled) 260 rEvent.State >>= bIsReadWrite; 261 262 if (mbIsDocumentReadOnly != !bIsReadWrite) 263 { 264 mbIsDocumentReadOnly = !bIsReadWrite; 265 266 // Force the current deck to update its panel list. |
263 SwitchToDeck(msCurrentDeckId); | 267 if ( ! mbIsDocumentReadOnly) 268 msCurrentDeckId = gsDefaultDeckId; 269 maCurrentContext = Context(); 270 maContextChangeUpdate.RequestCall(); |
264 } 265} 266 267 268 269 270void SAL_CALL SidebarController::requestLayout (void) 271 throw(cssu::RuntimeException) --- 936 unchanged lines hidden --- | 271 } 272} 273 274 275 276 277void SAL_CALL SidebarController::requestLayout (void) 278 throw(cssu::RuntimeException) --- 936 unchanged lines hidden --- |