LibreOffice Module sd (master) 1
titledockwin.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <sfx2/dockwin.hxx>
23#include <tools/svborder.hxx>
24#include <vcl/vclptr.hxx>
25
26class ToolBox;
27
28namespace sd
29{
31 {
32 public:
46 SfxBindings* i_pBindings,
47 SfxChildWindow* i_pChildWindow,
48 vcl::Window* i_pParent,
49 const OUString& rsTitle
50 );
51
52 virtual ~TitledDockingWindow() override;
53 virtual void dispose() override;
54
59 const vcl::Window& GetContentWindow() const { return *m_aContentWindow; }
60
64 const SvBorder& GetDecorationBorder() const { return m_aBorder; }
65
68 void SetValidSizeRange (const Range& rValidSizeRange);
69
78
79 private:
80 // Window overridables
81 virtual void Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& i_rArea) override;
82 virtual void Resize() override;
83 virtual void StateChanged( StateChangedType i_nType ) override;
84 virtual void DataChanged( const DataChangedEvent& i_rDataChangedEvent ) override;
85 virtual void SetText( const OUString& i_rText ) override;
86 virtual void MouseButtonDown (const MouseEvent& rEvent) override;
87 virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
90 void impl_resetToolBox();
91
92 DECL_LINK(OnToolboxItemSelected, ToolBox*, void);
93
94 void impl_layout();
95
96 OUString m_sTitle;
99
105
109
110 };
111
112} // namespace sd
113
114/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SetText(const OUString &i_rText) override
SvBorder m_aBorder
The border that is painted around the inner window.
const vcl::Window & GetContentWindow() const
const SvBorder & GetDecorationBorder() const
Return the border that is painted around the inner window as decoration.
int m_nTitleBarHeight
Height of the title bar.
void impl_resetToolBox()
internal version of ResetToolBox
virtual void ApplySettings(vcl::RenderContext &rRenderContext) override
virtual ~TitledDockingWindow() override
TitledDockingWindow(SfxBindings *i_pBindings, SfxChildWindow *i_pChildWindow, vcl::Window *i_pParent, const OUString &rsTitle)
Create a new docking window.
virtual void Paint(vcl::RenderContext &rRenderContext, const ::tools::Rectangle &i_rArea) override
VclPtr< Window > m_aContentWindow
vcl::Window & GetContentWindow()
returns the content window, which is to be used as parent window for any content to be displayed in t...
virtual void MouseButtonDown(const MouseEvent &rEvent) override
DECL_LINK(OnToolboxItemSelected, ToolBox *, void)
virtual void DataChanged(const DataChangedEvent &i_rDataChangedEvent) override
virtual void StateChanged(StateChangedType i_nType) override
virtual void Resize() override
VclPtr< ToolBox > m_aToolbox
void SetValidSizeRange(const Range &rValidSizeRange)
When docked the given range is passed to the parent SplitWindow.
Orientation GetOrientation() const
When the TitledDockingWindow is docked and managed by a split window it can derive its orientation fr...
virtual void dispose() override
Orientation
StateChangedType