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 28 #include "fuoutl.hxx" 29 30 #include <editeng/outliner.hxx> 31 #include "OutlineView.hxx" 32 #include "OutlineViewShell.hxx" 33 #ifndef SD_WINDOW_SHELL_HXX 34 #include "Window.hxx" 35 #endif 36 37 namespace sd { 38 39 TYPEINIT1( FuOutline, FuPoor ); 40 41 /************************************************************************* 42 |* 43 |* Konstruktor 44 |* 45 \************************************************************************/ 46 47 FuOutline::FuOutline ( 48 ViewShell* pViewShell, 49 ::sd::Window* pWindow, 50 ::sd::View* pView, 51 SdDrawDocument* pDoc, 52 SfxRequest& rReq) 53 : FuPoor(pViewShell, pWindow, pView, pDoc, rReq), 54 pOutlineViewShell (static_cast<OutlineViewShell*>(pViewShell)), 55 pOutlineView (static_cast<OutlineView*>(pView)) 56 { 57 } 58 59 /************************************************************************* 60 |* 61 |* Command, weiterleiten an OutlinerView 62 |* 63 \************************************************************************/ 64 65 sal_Bool FuOutline::Command(const CommandEvent& rCEvt) 66 { 67 sal_Bool bResult = sal_False; 68 69 OutlinerView* pOlView = 70 static_cast<OutlineView*>(mpView)->GetViewByWindow(mpWindow); 71 DBG_ASSERT (pOlView, "keine OutlinerView gefunden"); 72 73 if (pOlView) 74 { 75 pOlView->Command(rCEvt); // liefert leider keinen Returnwert 76 bResult = sal_True; 77 } 78 return bResult; 79 } 80 81 void FuOutline::ScrollStart() 82 { 83 } 84 85 void FuOutline::ScrollEnd() 86 { 87 } 88 89 90 } // end of namespace sd 91