metafileprimitive2d.cxx (8bc7f51a) | metafileprimitive2d.cxx (49c58f9b) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1047 unchanged lines hidden (view full) --- 1056 rTargetHolders.Pop(); 1057 1058 if(aSubContent.hasElements()) 1059 { 1060 if(rPropertyHolders.Current().isRasterOpForceBlack()) 1061 { 1062 // force content to black 1063 rTargetHolders.Current().append( | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1047 unchanged lines hidden (view full) --- 1056 rTargetHolders.Pop(); 1057 1058 if(aSubContent.hasElements()) 1059 { 1060 if(rPropertyHolders.Current().isRasterOpForceBlack()) 1061 { 1062 // force content to black 1063 rTargetHolders.Current().append( |
1064 new drawinglayer::primitive2d::ModifiedColorPrimitive2D( 1065 aSubContent, 1066 basegfx::BColorModifier(basegfx::BColor(0.0, 0.0, 0.0)))); | 1064 new drawinglayer::primitive2d::ModifiedColorPrimitive2D( 1065 aSubContent, 1066 basegfx::BColorModifierSharedPtr( 1067 new basegfx::BColorModifier_replace( 1068 basegfx::BColor(0.0, 0.0, 0.0))))); |
1067 } 1068 else // if(rPropertyHolders.Current().isRasterOpInvert()) 1069 { 1070 // invert content 1071 rTargetHolders.Current().append( | 1069 } 1070 else // if(rPropertyHolders.Current().isRasterOpInvert()) 1071 { 1072 // invert content 1073 rTargetHolders.Current().append( |
1072 new drawinglayer::primitive2d::InvertPrimitive2D( 1073 aSubContent)); | 1074 new drawinglayer::primitive2d::InvertPrimitive2D( 1075 aSubContent)); |
1074 } 1075 } 1076 } 1077 1078 // apply new settings 1079 rPropertyHolders.Current().setRasterOp(aRasterOp); 1080 1081 // check if now active --- 2191 unchanged lines hidden --- | 1076 } 1077 } 1078 } 1079 1080 // apply new settings 1081 rPropertyHolders.Current().setRasterOp(aRasterOp); 1082 1083 // check if now active --- 2191 unchanged lines hidden --- |