PanelTitleBar.cxx (f35c6d02) | PanelTitleBar.cxx (abdd804d) |
---|---|
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#include "precompiled_sfx2.hxx" 23 24#include "PanelTitleBar.hxx" | 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#include "precompiled_sfx2.hxx" 23 24#include "PanelTitleBar.hxx" |
25#include "sfx2/sfxresid.hxx" 26#include "Sidebar.hrc" |
|
25 26#include "Paint.hxx" 27#include "Panel.hxx" 28#include "sfx2/sidebar/Theme.hxx" 29 30#include <tools/svborder.hxx> 31#include <vcl/gradient.hxx> 32#include <vcl/image.hxx> --- 40 unchanged lines hidden (view full) --- 73void PanelTitleBar::SetMenuAction ( const ::boost::function<void(void)>& rMenuAction ) 74{ 75 if ( !maMenuAction && rMenuAction ) 76 { 77 maToolBox.InsertItem( 78 mnMenuItemIndex, 79 Theme::GetImage(Theme::Image_PanelMenu)); 80 maToolBox.SetOutStyle(TOOLBOX_STYLE_FLAT); | 27 28#include "Paint.hxx" 29#include "Panel.hxx" 30#include "sfx2/sidebar/Theme.hxx" 31 32#include <tools/svborder.hxx> 33#include <vcl/gradient.hxx> 34#include <vcl/image.hxx> --- 40 unchanged lines hidden (view full) --- 75void PanelTitleBar::SetMenuAction ( const ::boost::function<void(void)>& rMenuAction ) 76{ 77 if ( !maMenuAction && rMenuAction ) 78 { 79 maToolBox.InsertItem( 80 mnMenuItemIndex, 81 Theme::GetImage(Theme::Image_PanelMenu)); 82 maToolBox.SetOutStyle(TOOLBOX_STYLE_FLAT); |
83 maToolBox.SetQuickHelpText( 84 mnMenuItemIndex, 85 String(SfxResId(SFX_STR_SIDEBAR_MORE_OPTIONS))); |
|
81 } 82 else if ( maMenuAction && !rMenuAction ) 83 { 84 maToolBox.RemoveItem( maToolBox.GetItemPos( mnMenuItemIndex ) ); 85 } 86 maMenuAction = rMenuAction; 87} 88 --- 112 unchanged lines hidden --- | 86 } 87 else if ( maMenuAction && !rMenuAction ) 88 { 89 maToolBox.RemoveItem( maToolBox.GetItemPos( mnMenuItemIndex ) ); 90 } 91 maMenuAction = rMenuAction; 92} 93 --- 112 unchanged lines hidden --- |