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
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_sd.hxx"
26
27 #include "AnimationChildWindow.hxx"
28
29 #include "app.hrc"
30 #include "animobjs.hxx"
31 #include "animobjs.hrc"
32 #include <sfx2/app.hxx>
33 #include <sfx2/childwin.hxx>
34 #include <sfx2/dockwin.hxx>
35
36 namespace sd {
37
SFX_IMPL_DOCKINGWINDOW(AnimationChildWindow,SID_ANIMATION_OBJECTS)38 SFX_IMPL_DOCKINGWINDOW(AnimationChildWindow, SID_ANIMATION_OBJECTS)
39
40 /*************************************************************************
41 |*
42 |* Ableitung vom SfxChildWindow als "Behaelter" fuer Animator
43 |*
44 \************************************************************************/
45
46 AnimationChildWindow::AnimationChildWindow(
47 ::Window* _pParent,
48 sal_uInt16 nId,
49 SfxBindings* pBindings,
50 SfxChildWinInfo* pInfo )
51 : SfxChildWindow( _pParent, nId )
52 {
53 AnimationWindow* pAnimWin = new AnimationWindow(
54 pBindings, this, _pParent, SdResId( FLT_WIN_ANIMATION ) );
55 pWindow = pAnimWin;
56
57 eChildAlignment = SFX_ALIGN_NOALIGNMENT;
58
59 pAnimWin->Initialize( pInfo );
60 /*
61 if ( pInfo->aSize.Width() != 0 && pInfo->aSize.Height() != 0 )
62 {
63 pWindow->SetPosSizePixel( pInfo->aPos, pInfo->aSize );
64 }
65 else
66 pWindow->SetPosPixel(SFX_APPWINDOW->OutputToScreenPixel(
67 SFX_APPWINDOW->GetClientAreaPixel().TopLeft()));
68
69 if ( pInfo->nFlags & SFX_CHILDWIN_ZOOMIN )
70 pAnimWin->ZoomIn();
71
72 pAnimWin->aFltWinSize = pWindow->GetSizePixel();
73 */
74 SetHideNotDelete( sal_True );
75 }
76
77 } // end of namespace sd
78