LibreOffice Module sd (master) 1
fuoltext.hxx
Go to the documentation of this file.
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#pragma once
21
22#include "fupoor.hxx"
23
24class SdDrawDocument;
25class SfxRequest;
26
27namespace sd {
28
29class View;
30class ViewShell;
31class OutlineView;
32class OutlineViewShell;
33
37class FuOutlineText final
38 : public FuPoor
39{
40public:
41
42 static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
43
44 virtual bool Command(const CommandEvent& rCEvt) override;
45
46 virtual bool KeyInput(const KeyEvent& rKEvt) override;
47 virtual bool MouseMove(const MouseEvent& rMEvt) override;
48 virtual bool MouseButtonUp(const MouseEvent& rMEvt) override;
49 virtual bool MouseButtonDown(const MouseEvent& rMEvt) override;
50
51 virtual void DoCut() override;
52 virtual void DoCopy() override;
53 virtual void DoPaste() override;
54 virtual void DoPasteUnformatted() override;
55
60 void UpdateForKeyPress (const KeyEvent& rEvent);
61
62private:
64 ViewShell* pViewShell,
65 ::sd::Window* pWin,
66 ::sd::View* pView,
67 SdDrawDocument* pDoc,
68 SfxRequest& rReq);
69
72};
73
74} // end of namespace sd
75
76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
text functions in outline mode
Definition: fuoltext.hxx:39
virtual void DoPasteUnformatted() override
Paste object as unformatted text from clipboard.
Definition: fuoltext.cxx:292
virtual bool Command(const CommandEvent &rCEvt) override
forward to OutlinerView
Definition: fuoltext.cxx:98
virtual void DoCopy() override
Copy object to clipboard.
Definition: fuoltext.cxx:276
void UpdateForKeyPress(const KeyEvent &rEvent)
Call this method when the text in the outliner (may) has changed.
Definition: fuoltext.cxx:235
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuoltext.cxx:115
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
Definition: fuoltext.cxx:153
virtual bool KeyInput(const KeyEvent &rKEvt) override
Process keyboard input.
Definition: fuoltext.cxx:207
virtual void DoPaste() override
Paste object from clipboard.
Definition: fuoltext.cxx:284
virtual void DoCut() override
Cut object to clipboard.
Definition: fuoltext.cxx:268
FuOutlineText(ViewShell *pViewShell, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuoltext.cxx:86
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
Definition: fuoltext.cxx:122
OutlineView * pOutlineView
Definition: fuoltext.hxx:71
virtual bool MouseMove(const MouseEvent &rMEvt) override
Definition: fuoltext.cxx:141
OutlineViewShell * pOutlineViewShell
Definition: fuoltext.hxx:70
Base class for all functions.
Definition: fupoor.hxx:48
Show a textual overview of the text contents of all slides.
Derivative of sd::View for the outline mode |* .
Definition: OutlineView.hxx:55
Base class of the stacked shell hierarchy.
Definition: ViewShell.hxx:92
An SdWindow contains the actual working area of ViewShell.
Definition: Window.hxx:45