1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef SD_PANE_DOCKING_WINDOW_HXX
29 #define SD_PANE_DOCKING_WINDOW_HXX
31 #include <sfx2/titledockwin.hxx>
32 #include <sfx2/viewfrm.hxx>
34 #include <boost/scoped_ptr.hpp>
35 #include <boost/shared_ptr.hpp>
42 class PaneDockingWindow
: public ::sfx2::TitledDockingWindow
45 /** Create a new docking window.
47 Used, among others, to determine the ViewShellBase and
48 PaneManager that manage the new docking window.
50 This child window is the logical container for the new docking
53 The parent window of the new docking window.
55 The resource is used to determine initial size and attributes.
60 SfxBindings
*pBindings
,
61 SfxChildWindow
*pChildWindow
,
64 const ::rtl::OUString
& rsTitle
);
66 virtual ~PaneDockingWindow (void);
67 virtual void StateChanged( StateChangedType nType
);
68 virtual void MouseButtonDown (const MouseEvent
& rEvent
);
69 /** When docked the given range is passed to the parent SplitWindow.
71 void SetValidSizeRange (const Range aValidSizeRange
);
73 enum Orientation
{ HorizontalOrientation
, VerticalOrientation
, UnknownOrientation
};
74 /** When the PaneDockingWindow is docked and managed by a split window
75 it can derive its orientation from the orientation of the split
76 window and return either HorizontalOrientation or
78 Otherwise UnknownOrientation is returned.
80 Orientation
GetOrientation (void) const;
82 /** The current height of the title bar.
84 sal_Int32 mnTitleBarHeight
;
88 } // end of namespace ::sd