This is an automated email from the ASF dual-hosted git repository.

alinakazi pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
     new e6bed4b  FlexPrintJobScaleType.as Added
e6bed4b is described below

commit e6bed4b58e76a30e688628e0a239befb5a23db90
Author: alinakazi <alinakazi1...@gmail.com>
AuthorDate: Thu May 3 16:30:02 2018 +0500

    FlexPrintJobScaleType.as Added
---
 .../royale/mx/printing/FlexPrintJobScaleType.as    | 107 +++++++++++++++++++++
 1 file changed, 107 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
new file mode 100644
index 0000000..3939a69
--- /dev/null
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
@@ -0,0 +1,107 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.printing
+{
+
+/**
+ *  Values for the <code>scaleType</code> property
+ *  of the FlexPrintJob.addObject() method parameter.
+ * 
+ *  @see FlexPrintJob#addObject()
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 0.9.3
+ */
+public final class FlexPrintJobScaleType
+{
+/*     include "../core/Version.as";
+ */
+       
//--------------------------------------------------------------------------
+       //
+       //  Class constants
+       //
+       
//--------------------------------------------------------------------------
+
+       /**
+        *  Scales the object to fill at least one page completely; 
+        *  that is, it selects the larger of the MATCH_WIDTH or MATCH_HEIGHT 
+        *  scale types.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 9
+        *  @playerversion AIR 1.1
+        *  @productversion Royale 0.9.3
+        */
+       //public static const FILL_PAGE:String = "fillPage";
+       
+       /**
+        *  Scales the object to fill the available page height. 
+        *  If the resulting object width exceeds the page width, the output 
+        *  spans multiple pages.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 9
+        *  @playerversion AIR 1.1
+        *  @productversion Royale 0.9.3
+        */
+       //public static const MATCH_HEIGHT:String = "matchHeight";
+
+       /**
+        *  Scales the object to fill the available page width. 
+        *  If the resulting object height exceeds the page height, the output 
+        *  spans multiple pages.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 9
+        *  @playerversion AIR 1.1
+        *  @productversion Royale 0.9.3
+        */
+       //public static const MATCH_WIDTH:String = "matchWidth";
+       
+       /**
+        *  Does not scale the output. 
+        *  The printed page has the same dimensions as the object on the 
screen. 
+        *  If the object height, width, or both dimensions exceed the page 
width 
+        *  or height, the output spans multiple pages.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 9
+        *  @playerversion AIR 1.1
+        *  @productversion Royale 0.9.3
+        */
+       //public static const NONE:String = "none";
+
+       /**
+        *  Scales the object to fit on a single page, filling one dimension; 
+        *  that is, it selects the smaller of the MATCH_WIDTH or MATCH_HEIGHT 
+        *  scale types.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 9
+        *  @playerversion AIR 1.1
+        *  @productversion Royale 0.9.3
+        */
+       public static const SHOW_ALL:String = "showAll";
+}
+
+}
+

-- 
To stop receiving notification emails like this one, please contact
alinak...@apache.org.

Reply via email to