ViewShellBase.cxx (f120fe41) | ViewShellBase.cxx (3091fa8a) |
---|---|
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 --- 184 unchanged lines hidden (view full) --- 193 void SetPaneVisibility ( 194 const SfxRequest& rRequest, 195 const ::rtl::OUString& rsPaneURL, 196 const ::rtl::OUString& rsViewURL); 197 198 void GetSlotState (SfxItemSet& rSet); 199 200 void ProcessRestoreEditingViewSlot (void); | 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 --- 184 unchanged lines hidden (view full) --- 193 void SetPaneVisibility ( 194 const SfxRequest& rRequest, 195 const ::rtl::OUString& rsPaneURL, 196 const ::rtl::OUString& rsViewURL); 197 198 void GetSlotState (SfxItemSet& rSet); 199 200 void ProcessRestoreEditingViewSlot (void); |
201 void ProcessTaskPaneSlot (SfxRequest& rRequest); | |
202 203private: 204 ViewShellBase& mrBase; 205 206 /** Hold a reference to the page cache manager of the slide sorter in 207 order to ensure that it stays alive while the ViewShellBase is 208 alive. 209 */ --- 528 unchanged lines hidden (view full) --- 738 case SID_HANDOUTMODE: 739 framework::FrameworkHelper::Instance(*this)->HandleModeChangeSlot(nSlotId, rRequest); 740 break; 741 742 case SID_WIN_FULLSCREEN: 743 // The full screen mode is not supported. Ignore the request. 744 break; 745 | 201 202private: 203 ViewShellBase& mrBase; 204 205 /** Hold a reference to the page cache manager of the slide sorter in 206 order to ensure that it stays alive while the ViewShellBase is 207 alive. 208 */ --- 528 unchanged lines hidden (view full) --- 737 case SID_HANDOUTMODE: 738 framework::FrameworkHelper::Instance(*this)->HandleModeChangeSlot(nSlotId, rRequest); 739 break; 740 741 case SID_WIN_FULLSCREEN: 742 // The full screen mode is not supported. Ignore the request. 743 break; 744 |
746 case SID_SHOW_TOOL_PANEL: 747 mpImpl->ProcessTaskPaneSlot(rRequest); 748 break; 749 | |
750 case SID_RESTORE_EDITING_VIEW: 751 mpImpl->ProcessRestoreEditingViewSlot(); 752 break; 753 754 default: 755 // Ignore any other slot. 756 rRequest.Ignore (); 757 break; --- 772 unchanged lines hidden (view full) --- 1530 { 1531 DBG_UNHANDLED_EXCEPTION(); 1532 } 1533 1534} 1535 1536 1537 | 745 case SID_RESTORE_EDITING_VIEW: 746 mpImpl->ProcessRestoreEditingViewSlot(); 747 break; 748 749 default: 750 // Ignore any other slot. 751 rRequest.Ignore (); 752 break; --- 772 unchanged lines hidden (view full) --- 1525 { 1526 DBG_UNHANDLED_EXCEPTION(); 1527 } 1528 1529} 1530 1531 1532 |
1538 1539void ViewShellBase::Implementation::ProcessTaskPaneSlot (SfxRequest& rRequest) 1540{ 1541 // Set the visibility state of the toolpanel and one of its top 1542 // level panels. 1543 sal_Bool bShowToolPanel = sal_True; 1544 sidebar::PanelId nPanelId (sidebar::PID_UNKNOWN); 1545 bool bPanelIdGiven = false; 1546 1547 // Extract the given arguments. 1548 const SfxItemSet* pArgs = rRequest.GetArgs(); 1549 if (pArgs) 1550 { 1551 if ((pArgs->Count() == 1) || (pArgs->Count() == 2)) 1552 { 1553 SFX_REQUEST_ARG (rRequest, pIsPanelVisible, 1554 SfxBoolItem, ID_VAL_ISVISIBLE, sal_False); 1555 if (pIsPanelVisible != NULL) 1556 bShowToolPanel = pIsPanelVisible->GetValue(); 1557 } 1558 if (pArgs->Count() == 2) 1559 { 1560 SFX_REQUEST_ARG (rRequest, pPanelId, SfxUInt32Item, 1561 ID_VAL_PANEL_INDEX, sal_False); 1562 if (pPanelId != NULL) 1563 { 1564 nPanelId = static_cast<sidebar::PanelId>(pPanelId->GetValue()); 1565 bPanelIdGiven = true; 1566 } 1567 } 1568 } 1569 1570 // Ignore the request for some combinations of panels and view 1571 // shell types. 1572 if (bPanelIdGiven 1573 && ! (nPanelId==sidebar::PID_LAYOUT 1574 && mrBase.GetMainViewShell()!=NULL 1575 && mrBase.GetMainViewShell()->GetShellType()==ViewShell::ST_OUTLINE)) 1576 { 1577 framework::FrameworkHelper::Instance(mrBase)->RequestSidebarPanel( 1578 framework::FrameworkHelper::msLayoutTaskPanelURL); 1579 } 1580} 1581 1582 | |
1583} // end of namespace sd 1584 1585 1586 1587 1588//===== CurrentPageSetter =========================================== 1589 1590namespace { --- 126 unchanged lines hidden --- | 1533} // end of namespace sd 1534 1535 1536 1537 1538//===== CurrentPageSetter =========================================== 1539 1540namespace { --- 126 unchanged lines hidden --- |