bump product version to 4.1.6.2
[LibreOffice.git] / sd / source / ui / dlg / LayerDialogContent.cxx
blob552a59207e6508861373eabcdceb08c9f95f5aea
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
21 #include "LayerDialogContent.hxx"
22 #include <com/sun/star/presentation/AnimationEffect.hpp>
23 #include <com/sun/star/presentation/AnimationSpeed.hpp>
25 #include <svx/gallery.hxx>
26 #include <editeng/colritem.hxx>
27 #include <sfx2/dispatch.hxx>
28 #include <svl/aeitem.hxx>
29 #include <vcl/msgbox.hxx>
31 #include "sdattr.hxx"
33 #include "LayerDialog.hrc"
34 #include "app.hrc"
35 #include "strings.hrc"
36 #include "res_bmp.hrc"
37 #include "sdresid.hxx"
38 #include "View.hxx"
39 #include "drawdoc.hxx"
40 #include "ViewShellBase.hxx"
41 #include "DrawViewShell.hxx"
42 #include "framework/FrameworkHelper.hxx"
44 using namespace ::com::sun::star;
46 namespace sd {
50 LayerDialogContent::LayerDialogContent (
51 SfxBindings* pInBindings,
52 SfxChildWindow *pCW,
53 Window* pParent,
54 const SdResId& rSdResId,
55 ViewShellBase& rBase)
56 : SfxDockingWindow (pInBindings, pCW, pParent, rSdResId),
57 maLayerTabBar(
58 dynamic_cast<DrawViewShell*>(
59 framework::FrameworkHelper::Instance(rBase)->GetViewShell(
60 framework::FrameworkHelper::msCenterPaneURL).get()),
61 this,
62 SdResId(TB_LAYERS))
64 FreeResource();
66 maLayerTabBar.Show();
72 LayerDialogContent::~LayerDialogContent (void)
79 sal_Bool LayerDialogContent::Close (void)
81 return SfxDockingWindow::Close();
87 void LayerDialogContent::Resize (void)
89 maLayerTabBar.SetPosSizePixel (
90 Point(0,0),
91 Size(GetSizePixel().Width(), 17));
92 SfxDockingWindow::Resize();
96 } // end of namespace sd
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */