1/* 2 * This file is part of the LibreOffice project. 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 * 8 * This file incorporates work covered by the following license notice: 9 * 10 * Licensed to the Apache Software Foundation (ASF) under one or more 11 * contributor license agreements. See the NOTICE file distributed 12 * with this work for additional information regarding copyright 13 * ownership. The ASF licenses this file to you under the Apache 14 * License, Version 2.0 (the "License"); you may not use this file 15 * except in compliance with the License. You may obtain a copy of 16 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 17 */ 18 19interface GraphSelection 20{ 21 // filters 22 23 SID_GRFFILTER 24 [ 25 ExecMethod = ExecuteFilter; 26 StateMethod = GetFilterState; 27 ] 28 SID_GRFFILTER_INVERT 29 [ 30 ExecMethod = ExecuteFilter; 31 StateMethod = GetFilterState; 32 ] 33 SID_GRFFILTER_SMOOTH 34 [ 35 ExecMethod = ExecuteFilter; 36 StateMethod = GetFilterState; 37 ] 38 SID_GRFFILTER_SHARPEN 39 [ 40 ExecMethod = ExecuteFilter; 41 StateMethod = GetFilterState; 42 ] 43 SID_GRFFILTER_REMOVENOISE 44 [ 45 ExecMethod = ExecuteFilter; 46 StateMethod = GetFilterState; 47 ] 48 SID_GRFFILTER_SOBEL 49 [ 50 ExecMethod = ExecuteFilter; 51 StateMethod = GetFilterState; 52 ] 53 SID_GRFFILTER_MOSAIC 54 [ 55 ExecMethod = ExecuteFilter; 56 StateMethod = GetFilterState; 57 ] 58 SID_GRFFILTER_EMBOSS 59 [ 60 ExecMethod = ExecuteFilter; 61 StateMethod = GetFilterState; 62 ] 63 SID_GRFFILTER_POSTER 64 [ 65 ExecMethod = ExecuteFilter; 66 StateMethod = GetFilterState; 67 ] 68 SID_GRFFILTER_POPART 69 [ 70 ExecMethod = ExecuteFilter; 71 StateMethod = GetFilterState; 72 ] 73 SID_GRFFILTER_SEPIA 74 [ 75 ExecMethod = ExecuteFilter; 76 StateMethod = GetFilterState; 77 ] 78 SID_GRFFILTER_SOLARIZE 79 [ 80 ExecMethod = ExecuteFilter; 81 StateMethod = GetFilterState; 82 ] 83 84 // other graphics functions 85 86 SID_ATTR_GRAF_MODE 87 [ 88 ExecMethod = Execute; 89 StateMethod = GetAttrState; 90 ] 91 SID_ATTR_GRAF_RED 92 [ 93 ExecMethod = Execute; 94 StateMethod = GetAttrState; 95 ] 96 SID_ATTR_GRAF_GREEN 97 [ 98 ExecMethod = Execute; 99 StateMethod = GetAttrState; 100 ] 101 SID_ATTR_GRAF_BLUE 102 [ 103 ExecMethod = Execute; 104 StateMethod = GetAttrState; 105 ] 106 SID_ATTR_GRAF_LUMINANCE 107 [ 108 ExecMethod = Execute; 109 StateMethod = GetAttrState; 110 ] 111 SID_ATTR_GRAF_CONTRAST 112 [ 113 ExecMethod = Execute; 114 StateMethod = GetAttrState; 115 ] 116 SID_ATTR_GRAF_GAMMA 117 [ 118 ExecMethod = Execute; 119 StateMethod = GetAttrState; 120 ] 121 SID_ATTR_GRAF_TRANSPARENCE 122 [ 123 ExecMethod = Execute; 124 StateMethod = GetAttrState; 125 ] 126 SID_ATTR_GRAF_CROP 127 [ 128 ExecMethod = Execute; 129 StateMethod = GetAttrState; 130 ] 131 132 SID_COLOR_SETTINGS 133 [ 134 ExecMethod = Execute; 135 StateMethod = GetAttrState; 136 ] 137 138 SID_EXTERNAL_EDIT 139 [ 140 ExecMethod = ExecuteExternalEdit; 141 StateMethod = GetExternalEditState; 142 ] 143 144 SID_COMPRESS_GRAPHIC 145 [ 146 ExecMethod = ExecuteCompressGraphic; 147 StateMethod = GetCompressGraphicState; 148 ] 149 150 SID_OBJECT_CROP 151 [ 152 ExecMethod = ExecuteCropGraphic ; 153 StateMethod = GetCropGraphicState ; 154 ] 155 156 SID_SAVE_GRAPHIC 157 [ 158 ExecMethod = ExecuteSaveGraphic; 159 StateMethod = GetSaveGraphicState ; 160 ] 161 162 SID_CHANGE_PICTURE 163 [ 164 ExecMethod = ExecuteChangePicture ; 165 StateMethod = GetChangePictureState ; 166 ] 167 168} 169 170 171shell ScGraphicShell : ScDrawShell 172{ 173 import GraphSelection; 174} 175