DeckLayouter.hxx (7a32b0c8) | DeckLayouter.hxx (f120fe41) |
---|---|
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 --- 8 unchanged lines hidden (view full) --- 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22#ifndef SFX_SIDEBAR_DECK_LAYOUTER_HXX 23#define SFX_SIDEBAR_DECK_LAYOUTER_HXX 24 | 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 --- 8 unchanged lines hidden (view full) --- 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22#ifndef SFX_SIDEBAR_DECK_LAYOUTER_HXX 23#define SFX_SIDEBAR_DECK_LAYOUTER_HXX 24 |
25#include "Panel.hxx" 26 |
|
25#include <tools/gen.hxx> 26 27#include <com/sun/star/ui/LayoutSize.hpp> 28 29#include <vector> 30 31class ScrollBar; 32class Window; --- 8 unchanged lines hidden (view full) --- 41/** Helper class for layouting the direct and indirect children of a 42 deck like title bars, panels, and scroll bars. 43*/ 44class DeckLayouter 45{ 46public: 47 static void LayoutDeck ( 48 const Rectangle aContentArea, | 27#include <tools/gen.hxx> 28 29#include <com/sun/star/ui/LayoutSize.hpp> 30 31#include <vector> 32 33class ScrollBar; 34class Window; --- 8 unchanged lines hidden (view full) --- 43/** Helper class for layouting the direct and indirect children of a 44 deck like title bars, panels, and scroll bars. 45*/ 46class DeckLayouter 47{ 48public: 49 static void LayoutDeck ( 50 const Rectangle aContentArea, |
49 ::std::vector<Panel*>& rPanels, | 51 SharedPanelContainer& rPanels, |
50 Window& pDeckTitleBar, 51 Window& pScrollClipWindow, 52 Window& pScrollContainer, 53 Window& pFiller, 54 ScrollBar& pVerticalScrollBar); 55 56private: 57 // Do not use constructor or destructor. --- 4 unchanged lines hidden (view full) --- 62 { 63 MinimumOrLarger, 64 PreferredOrLarger, 65 Preferred 66 }; 67 class LayoutItem 68 { 69 public: | 52 Window& pDeckTitleBar, 53 Window& pScrollClipWindow, 54 Window& pScrollContainer, 55 Window& pFiller, 56 ScrollBar& pVerticalScrollBar); 57 58private: 59 // Do not use constructor or destructor. --- 4 unchanged lines hidden (view full) --- 64 { 65 MinimumOrLarger, 66 PreferredOrLarger, 67 Preferred 68 }; 69 class LayoutItem 70 { 71 public: |
70 Panel* mpPanel; | 72 SharedPanel mpPanel; |
71 css::ui::LayoutSize maLayoutSize; 72 sal_Int32 mnDistributedHeight; 73 sal_Int32 mnWeight; 74 sal_Int32 mnPanelIndex; 75 | 73 css::ui::LayoutSize maLayoutSize; 74 sal_Int32 mnDistributedHeight; 75 sal_Int32 mnWeight; 76 sal_Int32 mnPanelIndex; 77 |
76 LayoutItem (void) : mpPanel(NULL),maLayoutSize(0,0,0),mnDistributedHeight(0),mnWeight(0),mnPanelIndex(0) {} | 78 LayoutItem (void) : mpPanel(),maLayoutSize(0,0,0),mnDistributedHeight(0),mnWeight(0),mnPanelIndex(0) {} |
77 }; 78 static Rectangle LayoutPanels ( 79 const Rectangle aContentArea, 80 ::std::vector<LayoutItem>& rLayoutItems, 81 Window& rScrollClipWindow, 82 Window& rScrollContainer, 83 ScrollBar& pVerticalScrollBar, 84 const bool bShowVerticalScrollBar); --- 34 unchanged lines hidden --- | 79 }; 80 static Rectangle LayoutPanels ( 81 const Rectangle aContentArea, 82 ::std::vector<LayoutItem>& rLayoutItems, 83 Window& rScrollClipWindow, 84 Window& rScrollContainer, 85 ScrollBar& pVerticalScrollBar, 86 const bool bShowVerticalScrollBar); --- 34 unchanged lines hidden --- |