DeckTitleBar.hxx (ff12d537) | DeckTitleBar.hxx (7a32b0c8) |
---|---|
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 --- 10 unchanged lines hidden (view full) --- 19 * 20 *************************************************************/ 21 22#ifndef SFX_SIDEBAR_DECK_TITLE_BAR_HXX 23#define SFX_SIDEBAR_DECK_TITLE_BAR_HXX 24 25#include "TitleBar.hxx" 26 | 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 --- 10 unchanged lines hidden (view full) --- 19 * 20 *************************************************************/ 21 22#ifndef SFX_SIDEBAR_DECK_TITLE_BAR_HXX 23#define SFX_SIDEBAR_DECK_TITLE_BAR_HXX 24 25#include "TitleBar.hxx" 26 |
27#include <boost/function.hpp> |
|
27 | 28 |
29 |
|
28namespace sfx2 { namespace sidebar { 29 30class DeckTitleBar 31 : public TitleBar 32{ 33public: 34 DeckTitleBar ( 35 const ::rtl::OUString& rsTitle, | 30namespace sfx2 { namespace sidebar { 31 32class DeckTitleBar 33 : public TitleBar 34{ 35public: 36 DeckTitleBar ( 37 const ::rtl::OUString& rsTitle, |
36 Window* pParentWindow); | 38 Window* pParentWindow, 39 const ::boost::function<void(void)>& rCloserAction); |
37 virtual ~DeckTitleBar (void); 38 | 40 virtual ~DeckTitleBar (void); 41 |
42 void SetCloserVisible (const bool bIsCloserVisible); 43 44 virtual void DataChanged (const DataChangedEvent& rEvent); 45 |
|
39protected: 40 virtual Rectangle GetTitleArea (const Rectangle& rTitleBarBox); 41 virtual void PaintDecoration (const Rectangle& rTitleBarBox); 42 virtual sidebar::Paint GetBackgroundPaint (void); 43 virtual Color GetTextColor (void); | 46protected: 47 virtual Rectangle GetTitleArea (const Rectangle& rTitleBarBox); 48 virtual void PaintDecoration (const Rectangle& rTitleBarBox); 49 virtual sidebar::Paint GetBackgroundPaint (void); 50 virtual Color GetTextColor (void); |
51 virtual void HandleToolBoxItemClick (const sal_uInt16 nItemIndex); 52 53private: 54 const sal_uInt16 mnCloserItemIndex; 55 const ::boost::function<void(void)> maCloserAction; 56 bool mbIsCloserVisible; |
|
44}; 45 | 57}; 58 |
46 | |
47} } // end of namespace sfx2::sidebar 48 49#endif | 59} } // end of namespace sfx2::sidebar 60 61#endif |