1*a02241ffSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*a02241ffSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*a02241ffSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*a02241ffSAndrew Rist * distributed with this work for additional information 6*a02241ffSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*a02241ffSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*a02241ffSAndrew Rist * "License"); you may not use this file except in compliance 9*a02241ffSAndrew Rist * with the License. You may obtain a copy of the License at 10*a02241ffSAndrew Rist * 11*a02241ffSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*a02241ffSAndrew Rist * 13*a02241ffSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*a02241ffSAndrew Rist * software distributed under the License is distributed on an 15*a02241ffSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*a02241ffSAndrew Rist * KIND, either express or implied. See the License for the 17*a02241ffSAndrew Rist * specific language governing permissions and limitations 18*a02241ffSAndrew Rist * under the License. 19*a02241ffSAndrew Rist * 20*a02241ffSAndrew Rist *************************************************************/ 21*a02241ffSAndrew Rist 22*a02241ffSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirinterface TextBezier : TextSelection 25cdf0e10cSrcweir[ 26cdf0e10cSrcweir uuid = "68EF7EA0-6876-11D0-A887-008029E86826" ] 27cdf0e10cSrcweir{ 28cdf0e10cSrcweir SID_DELETE 29cdf0e10cSrcweir [ 30cdf0e10cSrcweir ExecMethod = Execute ; 31cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 32cdf0e10cSrcweir ] 33cdf0e10cSrcweir 34cdf0e10cSrcweir FN_BACKSPACE 35cdf0e10cSrcweir [ 36cdf0e10cSrcweir ExecMethod = Execute ; 37cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 38cdf0e10cSrcweir ] 39cdf0e10cSrcweir 40cdf0e10cSrcweir FN_ESCAPE // api: 41cdf0e10cSrcweir [ 42cdf0e10cSrcweir ExecMethod = Execute; 43cdf0e10cSrcweir ] 44cdf0e10cSrcweir 45cdf0e10cSrcweir SID_BEZIER_MOVE 46cdf0e10cSrcweir [ 47cdf0e10cSrcweir Export = FALSE; 48cdf0e10cSrcweir ExecMethod = Execute ; 49cdf0e10cSrcweir StateMethod = GetState ; 50cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 51cdf0e10cSrcweir ] 52cdf0e10cSrcweir 53cdf0e10cSrcweir SID_BEZIER_INSERT 54cdf0e10cSrcweir [ 55cdf0e10cSrcweir Export = FALSE; 56cdf0e10cSrcweir ExecMethod = Execute ; 57cdf0e10cSrcweir StateMethod = GetState ; 58cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 59cdf0e10cSrcweir ] 60cdf0e10cSrcweir 61cdf0e10cSrcweir SID_BEZIER_DELETE 62cdf0e10cSrcweir [ 63cdf0e10cSrcweir Export = FALSE; 64cdf0e10cSrcweir ExecMethod = Execute ; 65cdf0e10cSrcweir StateMethod = GetState ; 66cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 67cdf0e10cSrcweir ] 68cdf0e10cSrcweir 69cdf0e10cSrcweir SID_BEZIER_CUTLINE 70cdf0e10cSrcweir [ 71cdf0e10cSrcweir Export = FALSE; 72cdf0e10cSrcweir ExecMethod = Execute ; 73cdf0e10cSrcweir StateMethod = GetState ; 74cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 75cdf0e10cSrcweir ] 76cdf0e10cSrcweir 77cdf0e10cSrcweir SID_BEZIER_CONVERT 78cdf0e10cSrcweir [ 79cdf0e10cSrcweir Export = FALSE; 80cdf0e10cSrcweir ExecMethod = Execute ; 81cdf0e10cSrcweir StateMethod = GetState ; 82cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 83cdf0e10cSrcweir ] 84cdf0e10cSrcweir 85cdf0e10cSrcweir SID_BEZIER_EDGE 86cdf0e10cSrcweir [ 87cdf0e10cSrcweir Export = FALSE; 88cdf0e10cSrcweir ExecMethod = Execute ; 89cdf0e10cSrcweir StateMethod = GetState ; 90cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 91cdf0e10cSrcweir ] 92cdf0e10cSrcweir 93cdf0e10cSrcweir SID_BEZIER_SMOOTH 94cdf0e10cSrcweir [ 95cdf0e10cSrcweir Export = FALSE; 96cdf0e10cSrcweir ExecMethod = Execute ; 97cdf0e10cSrcweir StateMethod = GetState ; 98cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 99cdf0e10cSrcweir ] 100cdf0e10cSrcweir 101cdf0e10cSrcweir SID_BEZIER_SYMMTR 102cdf0e10cSrcweir [ 103cdf0e10cSrcweir Export = FALSE; 104cdf0e10cSrcweir ExecMethod = Execute ; 105cdf0e10cSrcweir StateMethod = GetState ; 106cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 107cdf0e10cSrcweir ] 108cdf0e10cSrcweir 109cdf0e10cSrcweir SID_BEZIER_CLOSE 110cdf0e10cSrcweir [ 111cdf0e10cSrcweir Export = FALSE; 112cdf0e10cSrcweir ExecMethod = Execute ; 113cdf0e10cSrcweir StateMethod = GetState ; 114cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 115cdf0e10cSrcweir ] 116cdf0e10cSrcweir 117cdf0e10cSrcweir SID_BEZIER_ELIMINATE_POINTS 118cdf0e10cSrcweir [ 119cdf0e10cSrcweir Export = FALSE; 120cdf0e10cSrcweir ExecMethod = Execute ; 121cdf0e10cSrcweir StateMethod = GetState ; 122cdf0e10cSrcweir DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 123cdf0e10cSrcweir ] 124cdf0e10cSrcweir} 125cdf0e10cSrcweir 126cdf0e10cSrcweirshell SwBezierShell: SwBaseShell 127cdf0e10cSrcweir{ 128cdf0e10cSrcweir import TextBezier[Automation]; 129cdf0e10cSrcweir} 130cdf0e10cSrcweir 131cdf0e10cSrcweir 132