LibreOffice Module sd (master) 1
fuinsert.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 <config_features.h>
23#include "fupoor.hxx"
24
25namespace sd {
26
27class FuInsertGraphic final
28 : public FuPoor
29{
30public:
31
33 ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq,
34 bool replaceExistingImage);
35 virtual void DoExecute( SfxRequest& rReq ) override;
36
37private:
38
40 ViewShell* pViewSh,
41 ::sd::Window* pWin,
42 ::sd::View* pView,
43 SdDrawDocument* pDoc,
44 SfxRequest& rReq,
45 bool replaceExistingImage);
46
48};
49
50/************************************************************************/
51
53 : public FuPoor
54{
55public:
56
57 static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
58 virtual void DoExecute( SfxRequest& rReq ) override;
59
60private:
62 ViewShell* pViewSh,
63 ::sd::Window* pWin,
64 ::sd::View* pView,
65 SdDrawDocument* pDoc,
66 SfxRequest& rReq);
67};
68
69/************************************************************************/
70
71class FuInsertOLE final
72 : public FuPoor
73{
74 public:
75
76 static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
77 virtual void DoExecute( SfxRequest& rReq ) override;
78
79private:
81 ViewShell* pViewSh,
82 ::sd::Window* pWin,
83 ::sd::View* pView,
84 SdDrawDocument* pDoc,
85 SfxRequest& rReq);
86};
87
88/************************************************************************/
89
90class FuInsertAVMedia final
91 : public FuPoor
92{
93public:
94
95 static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
96 virtual void DoExecute( SfxRequest& rReq ) override;
97
98private:
100 ViewShell* pViewSh,
101 ::sd::Window* pWin,
102 ::sd::View* pView,
103 SdDrawDocument* pDoc,
104 SfxRequest& rReq);
105
106#if HAVE_FEATURE_AVMEDIA
107 void InsertMediaURL(const OUString& rURL, const Size& rPrefSize, bool bLink);
108#endif
109};
110} // end of namespace sd
111
112/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void DoExecute(SfxRequest &rReq) override
Definition: fuinsert.cxx:665
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuinsert.cxx:658
FuInsertAVMedia(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuinsert.cxx:648
virtual void DoExecute(SfxRequest &rReq) override
Definition: fuinsert.cxx:212
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuinsert.cxx:205
FuInsertClipboard(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuinsert.cxx:195
FuInsertGraphic(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq, bool replaceExistingImage)
Definition: fuinsert.cxx:87
bool mbReplaceExistingImage
Definition: fuinsert.hxx:47
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq, bool replaceExistingImage)
Definition: fuinsert.cxx:99
virtual void DoExecute(SfxRequest &rReq) override
Definition: fuinsert.cxx:107
FuInsertOLE(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuinsert.cxx:263
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fuinsert.cxx:273
virtual void DoExecute(SfxRequest &rReq) override
Definition: fuinsert.cxx:280
Base class for all functions.
Definition: fupoor.hxx:48
Base class of the stacked shell hierarchy.
Definition: ViewShell.hxx:92
An SdWindow contains the actual working area of ViewShell.
Definition: Window.hxx:45