PanelTitleBar.cxx (abdd804d) | PanelTitleBar.cxx (a5516503) |
---|---|
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 --- 34 unchanged lines hidden (view full) --- 43 44static const sal_Int32 gaLeftIconPadding (5); 45static const sal_Int32 gaRightIconPadding (5); 46 47 48PanelTitleBar::PanelTitleBar ( 49 const ::rtl::OUString& rsTitle, 50 Window* pParentWindow, | 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 --- 34 unchanged lines hidden (view full) --- 43 44static const sal_Int32 gaLeftIconPadding (5); 45static const sal_Int32 gaRightIconPadding (5); 46 47 48PanelTitleBar::PanelTitleBar ( 49 const ::rtl::OUString& rsTitle, 50 Window* pParentWindow, |
51 Panel* pPanel ) | 51 Panel* pPanel) |
52 : TitleBar(rsTitle, pParentWindow, GetBackgroundPaint()), 53 mbIsLeftButtonDown(false), 54 mpPanel(pPanel), 55 mnMenuItemIndex(1), 56 maMenuAction() 57{ 58 OSL_ASSERT(mpPanel != NULL); 59 | 52 : TitleBar(rsTitle, pParentWindow, GetBackgroundPaint()), 53 mbIsLeftButtonDown(false), 54 mpPanel(pPanel), 55 mnMenuItemIndex(1), 56 maMenuAction() 57{ 58 OSL_ASSERT(mpPanel != NULL); 59 |
60 const ::rtl::OUString sAccessibleName( 61 String(SfxResId(SFX_STR_SIDEBAR_ACCESSIBILITY_PANEL_PREFIX)) 62 + rsTitle); 63 SetAccessibleName(sAccessibleName); 64 SetAccessibleDescription(sAccessibleName); 65 |
|
60#ifdef DEBUG 61 SetText(A2S("PanelTitleBar")); 62#endif 63} 64 65 66 67 --- 138 unchanged lines hidden --- | 66#ifdef DEBUG 67 SetText(A2S("PanelTitleBar")); 68#endif 69} 70 71 72 73 --- 138 unchanged lines hidden --- |