1*4665f8d3SArmin Le Grand /************************************************************** 2*4665f8d3SArmin Le Grand * 3*4665f8d3SArmin Le Grand * Licensed to the Apache Software Foundation (ASF) under one 4*4665f8d3SArmin Le Grand * or more contributor license agreements. See the NOTICE file 5*4665f8d3SArmin Le Grand * distributed with this work for additional information 6*4665f8d3SArmin Le Grand * regarding copyright ownership. The ASF licenses this file 7*4665f8d3SArmin Le Grand * to you under the Apache License, Version 2.0 (the 8*4665f8d3SArmin Le Grand * "License"); you may not use this file except in compliance 9*4665f8d3SArmin Le Grand * with the License. You may obtain a copy of the License at 10*4665f8d3SArmin Le Grand * 11*4665f8d3SArmin Le Grand * http://www.apache.org/licenses/LICENSE-2.0 12*4665f8d3SArmin Le Grand * 13*4665f8d3SArmin Le Grand * Unless required by applicable law or agreed to in writing, 14*4665f8d3SArmin Le Grand * software distributed under the License is distributed on an 15*4665f8d3SArmin Le Grand * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*4665f8d3SArmin Le Grand * KIND, either express or implied. See the License for the 17*4665f8d3SArmin Le Grand * specific language governing permissions and limitations 18*4665f8d3SArmin Le Grand * under the License. 19*4665f8d3SArmin Le Grand * 20*4665f8d3SArmin Le Grand *************************************************************/ 21*4665f8d3SArmin Le Grand 22*4665f8d3SArmin Le Grand #ifndef _SV_GDIMETAFILETOOLS_HXX 23*4665f8d3SArmin Le Grand #define _SV_GDIMETAFILETOOLS_HXX 24*4665f8d3SArmin Le Grand 25*4665f8d3SArmin Le Grand #include <vcl/gdimtf.hxx> 26*4665f8d3SArmin Le Grand 27*4665f8d3SArmin Le Grand ////////////////////////////////////////////////////////////////////////////// 28*4665f8d3SArmin Le Grand // #121267# Added tooling to be able to support old exporters which are based on 29*4665f8d3SArmin Le Grand // metafiles as graphic content, but do not implement using the contained clip 30*4665f8d3SArmin Le Grand // regions. 31*4665f8d3SArmin Le Grand // The given metafile will internall yclip it's graphic content against the 32*4665f8d3SArmin Le Grand // included clip regions so that it is safe to ignore clip actions there. This 33*4665f8d3SArmin Le Grand // is not done completely, but implemented and extended as needed (on demand) 34*4665f8d3SArmin Le Grand // since all this is a workarund; the better and long term solution will be to 35*4665f8d3SArmin Le Grand // reimplement these im/exports to use primitives and not metafiles as bese 36*4665f8d3SArmin Le Grand // information. 37*4665f8d3SArmin Le Grand 38*4665f8d3SArmin Le Grand void VCL_DLLPUBLIC clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource); 39*4665f8d3SArmin Le Grand 40*4665f8d3SArmin Le Grand ////////////////////////////////////////////////////////////////////////////// 41*4665f8d3SArmin Le Grand // Allow to check if a Metafile contains clipping or not 42*4665f8d3SArmin Le Grand 43*4665f8d3SArmin Le Grand bool VCL_DLLPUBLIC usesClipActions(const GDIMetaFile& rSource); 44*4665f8d3SArmin Le Grand 45*4665f8d3SArmin Le Grand ////////////////////////////////////////////////////////////////////////////// 46*4665f8d3SArmin Le Grand 47*4665f8d3SArmin Le Grand #endif // _SV_GDIMETAFILETOOLS_HXX 48