LibreOffice Module sw (master)  1
romenu.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 #ifndef INCLUDED_SW_SOURCE_UIBASE_DOCVW_ROMENU_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_DOCVW_ROMENU_HXX
21 
22 #include <editeng/brushitem.hxx>
23 #include <vcl/builder.hxx>
24 #include <vcl/graph.hxx>
25 #include <vcl/menu.hxx>
26 #include <svl/stritem.hxx>
27 
28 class SwView;
29 class SfxDispatcher;
30 class ImageMap;
31 class INetImage;
32 
34 {
37  sal_uInt16 const m_nReadonlyOpenurl;
38  sal_uInt16 const m_nReadonlyOpendoc;
39  sal_uInt16 const m_nReadonlyEditdoc;
40  sal_uInt16 const m_nReadonlySelectionMode;
41  sal_uInt16 const m_nReadonlyReload;
42  sal_uInt16 const m_nReadonlyReloadFrame;
43  sal_uInt16 const m_nReadonlySourceview;
44  sal_uInt16 const m_nReadonlyBrowseBackward;
45  sal_uInt16 const m_nReadonlyBrowseForward;
46  sal_uInt16 const m_nReadonlySaveGraphic;
47  sal_uInt16 const m_nReadonlyGraphictogallery;
48  sal_uInt16 const m_nReadonlyTogallerylink;
49  sal_uInt16 const m_nReadonlyTogallerycopy;
50  sal_uInt16 const m_nReadonlySaveBackground;
54  sal_uInt16 const m_nReadonlyCopylink;
55  sal_uInt16 const m_nReadonlyLoadGraphic;
56  sal_uInt16 const m_nReadonlyGraphicoff;
57  sal_uInt16 const m_nReadonlyFullscreen;
58  sal_uInt16 const m_nReadonlyCopy;
59 
61  std::shared_ptr<SvxBrushItem> m_aBrushItem;
63  OUString m_sURL,
65  OUString m_sGrfName;
66  std::vector<OUString> m_aThemeList;
68 
69  void Check( sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher const &rDis );
70  OUString SaveGraphic( sal_uInt16 nId );
71 
72 public:
73  SwReadOnlyPopup(const Point &rDPos, SwView &rV);
74  PopupMenu& GetMenu() const { return *m_xMenu; }
76 
77  void Execute( vcl::Window* pWin, const Point &rPPos );
78  void Execute( vcl::Window* pWin, sal_uInt16 nId );
79 };
80 
81 #endif
82 
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
PopupMenu & GetMenu() const
Definition: romenu.hxx:74
sal_uInt16 const m_nReadonlyCopylink
Definition: romenu.hxx:54
sal_uInt16 const m_nReadonlyBrowseForward
Definition: romenu.hxx:45
SwReadOnlyPopup(const Point &rDPos, SwView &rV)
Definition: romenu.cxx:83
sal_uInt16 const m_nReadonlyOpendoc
Definition: romenu.hxx:38
OUString m_sURL
Definition: romenu.hxx:63
sal_uInt16 const m_nReadonlyOpenurl
Definition: romenu.hxx:37
sal_uInt16 const m_nReadonlyBackgroundTogallerylink
Definition: romenu.hxx:52
sal_uInt16 const m_nReadonlyFullscreen
Definition: romenu.hxx:57
sal_uInt16 const m_nReadonlyEditdoc
Definition: romenu.hxx:39
sal_uInt16 const m_nReadonlySourceview
Definition: romenu.hxx:43
sal_uInt16 const m_nReadonlySelectionMode
Definition: romenu.hxx:40
sal_uInt16 const m_nReadonlyTogallerycopy
Definition: romenu.hxx:49
OUString m_sGrfName
Definition: romenu.hxx:65
ScopedVclPtr< PopupMenu > m_xMenu
Definition: romenu.hxx:36
OUString SaveGraphic(sal_uInt16 nId)
Definition: romenu.cxx:329
sal_uInt16 const m_nReadonlyLoadGraphic
Definition: romenu.hxx:55
std::shared_ptr< SvxBrushItem > m_aBrushItem
Definition: romenu.hxx:61
Graphic m_aGraphic
Definition: romenu.hxx:62
void Check(sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher const &rDis)
Definition: romenu.cxx:59
sal_uInt16 const m_nReadonlySaveBackground
Definition: romenu.hxx:50
bool m_bGrfToGalleryAsLnk
Definition: romenu.hxx:67
std::vector< OUString > m_aThemeList
Definition: romenu.hxx:66
sal_uInt16 const m_nReadonlyGraphictogallery
Definition: romenu.hxx:47
sal_uInt16 const m_nReadonlyGraphicoff
Definition: romenu.hxx:56
sal_uInt16 const m_nReadonlyReloadFrame
Definition: romenu.hxx:42
sal_uInt16 const m_nReadonlySaveGraphic
Definition: romenu.hxx:46
VclBuilder m_aBuilder
Definition: romenu.hxx:35
sal_uInt16 const m_nReadonlyTogallerylink
Definition: romenu.hxx:48
sal_uInt16 const m_nReadonlyBrowseBackward
Definition: romenu.hxx:44
OUString m_sTargetFrameName
Definition: romenu.hxx:63
sal_uInt16 const m_nReadonlyBackgroundtogallery
Definition: romenu.hxx:51
SwView & m_rView
Definition: romenu.hxx:60
Definition: view.hxx:146
sal_uInt16 const m_nReadonlyBackgroundTogallerycopy
Definition: romenu.hxx:53
void Execute(vcl::Window *pWin, const Point &rPPos)
Definition: romenu.cxx:228
sal_uInt16 const m_nReadonlyReload
Definition: romenu.hxx:41
sal_uInt16 const m_nReadonlyCopy
Definition: romenu.hxx:58