Branch data Line data Source code
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 : :
21 : : #include "LayerDialogContent.hxx"
22 : : #include <com/sun/star/presentation/AnimationEffect.hpp>
23 : : #include <com/sun/star/presentation/AnimationSpeed.hpp>
24 : :
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>
30 : :
31 : : #include "sdattr.hxx"
32 : :
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"
43 : :
44 : : using namespace ::com::sun::star;
45 : :
46 : : namespace sd {
47 : :
48 : :
49 : :
50 : 0 : 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 [ # # ][ # # ]: 0 : framework::FrameworkHelper::msCenterPaneURL).get()),
[ # # ][ # # ]
61 : : this,
62 [ # # # # ]: 0 : SdResId(TB_LAYERS))
[ # # ]
63 : : {
64 [ # # ]: 0 : FreeResource();
65 : :
66 [ # # ]: 0 : maLayerTabBar.Show();
67 : 0 : }
68 : :
69 : :
70 : :
71 : :
72 [ # # ]: 0 : LayerDialogContent::~LayerDialogContent (void)
73 : : {
74 [ # # ]: 0 : }
75 : :
76 : :
77 : :
78 : :
79 : 0 : sal_Bool LayerDialogContent::Close (void)
80 : : {
81 : 0 : return SfxDockingWindow::Close();
82 : : }
83 : :
84 : :
85 : :
86 : :
87 : 0 : void LayerDialogContent::Resize (void)
88 : : {
89 : : maLayerTabBar.SetPosSizePixel (
90 : : Point(0,0),
91 [ # # ]: 0 : Size(GetSizePixel().Width(), 17));
92 : 0 : SfxDockingWindow::Resize();
93 : 0 : }
94 : :
95 : :
96 : : } // end of namespace sd
97 : :
98 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|