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 |* Ableitung vom SfxChildWindow als "Behaelter" fuer Animator
42 \************************************************************************/
43
44 AnimationChildWindow::AnimationChildWindow(
45 ::Window* _pParent,
46 sal_uInt16 nId,
47 SfxBindings* pBindings,
48 SfxChildWinInfo* pInfo )
49 : SfxChildWindow( _pParent, nId )
50 {
51 AnimationWindow* pAnimWin = new AnimationWindow(
52 pBindings, this, _pParent, SdResId( FLT_WIN_ANIMATION ) );
53 pWindow = pAnimWin;
54
55 eChildAlignment = SFX_ALIGN_NOALIGNMENT;
56
57 pAnimWin->Initialize( pInfo );
58 /*
59 if ( pInfo->aSize.Width() != 0 && pInfo->aSize.Height() != 0 )
60 {
61 pWindow->SetPosSizePixel( pInfo->aPos, pInfo->aSize );
62 }
63 else
64 pWindow->SetPosPixel(SFX_APPWINDOW->OutputToScreenPixel(
65 SFX_APPWINDOW->GetClientAreaPixel().TopLeft()));
66
67 if ( pInfo->nFlags & SFX_CHILDWIN_ZOOMIN )
68 pAnimWin->ZoomIn();
69
70 pAnimWin->aFltWinSize = pWindow->GetSizePixel();
71 */
72 SetHideNotDelete( sal_True );
73 }
74
75 } // end of namespace sd
76