Return-Path: X-Original-To: apmail-incubator-flex-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D3C1D826 for ; Sun, 11 Nov 2012 19:28:11 +0000 (UTC) Received: (qmail 87982 invoked by uid 500); 11 Nov 2012 19:28:11 -0000 Delivered-To: apmail-incubator-flex-commits-archive@incubator.apache.org Received: (qmail 87958 invoked by uid 500); 11 Nov 2012 19:28:11 -0000 Mailing-List: contact flex-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-commits@incubator.apache.org Received: (qmail 87951 invoked by uid 99); 11 Nov 2012 19:28:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Nov 2012 19:28:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Nov 2012 19:28:08 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id DEEF023888EA; Sun, 11 Nov 2012 19:27:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1408090 - in /incubator/flex/sdk/branches/develop: frameworks/projects/framework/src/mx/printing/ mustella/tests/Printing/ mustella/tests/Printing/Properties/ mustella/tests/Printing/SWFs/ Date: Sun, 11 Nov 2012 19:27:46 -0000 To: flex-commits@incubator.apache.org From: quetwo@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121111192746.DEEF023888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: quetwo Date: Sun Nov 11 19:27:45 2012 New Revision: 1408090 URL: http://svn.apache.org/viewvc?rev=1408090&view=rev Log: Patch from JIRA FLEX-29017. Makes change to FlexPrintJob to expose the PrintJob private member. Also adds Mustella tests for FlexPrintJob. Added: incubator/flex/sdk/branches/develop/mustella/tests/Printing/ incubator/flex/sdk/branches/develop/mustella/tests/Printing/Properties/ incubator/flex/sdk/branches/develop/mustella/tests/Printing/Properties/PrintJob_Properties.mxml incubator/flex/sdk/branches/develop/mustella/tests/Printing/SWFs/ incubator/flex/sdk/branches/develop/mustella/tests/Printing/SWFs/FlexPrintJob_Basic.mxml Modified: incubator/flex/sdk/branches/develop/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as Modified: incubator/flex/sdk/branches/develop/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as?rev=1408090&r1=1408089&r2=1408090&view=diff ============================================================================== --- incubator/flex/sdk/branches/develop/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as (original) +++ incubator/flex/sdk/branches/develop/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as Sun Nov 11 19:27:45 2012 @@ -80,17 +80,29 @@ public class FlexPrintJob // Properties // //-------------------------------------------------------------------------- + + //---------------------------------- + // printJob + //---------------------------------- /** * @private + * Storage for the printJob property. */ - private var printJob:PrintJob = new PrintJob(); - - //-------------------------------------------------------------------------- - // - // Properties - // - //-------------------------------------------------------------------------- + private var _printJob:PrintJob = new PrintJob(); + + /** + * The printJob property; + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Flex 4.9 + */ + public function get printJob():PrintJob + { + return _printJob; + } //---------------------------------- // pageHeight @@ -205,12 +217,12 @@ public class FlexPrintJob */ public function start():Boolean { - var ok:Boolean = printJob.start(); + var ok:Boolean = _printJob.start(); if (ok) { - _pageWidth = printJob.pageWidth; - _pageHeight = printJob.pageHeight; + _pageWidth = _printJob.pageWidth; + _pageHeight = _printJob.pageHeight; } return ok; @@ -443,7 +455,7 @@ public class FlexPrintJob var printJobOptions:PrintJobOptions = new PrintJobOptions(); printJobOptions.printAsBitmap = _printAsBitmap; - printJob.addPage(Sprite(obj), r, printJobOptions); + _printJob.addPage(Sprite(obj), r, printJobOptions); } } @@ -540,7 +552,7 @@ public class FlexPrintJob */ public function send():void { - printJob.send(); + _printJob.send(); } /** Added: incubator/flex/sdk/branches/develop/mustella/tests/Printing/Properties/PrintJob_Properties.mxml URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/Printing/Properties/PrintJob_Properties.mxml?rev=1408090&view=auto ============================================================================== --- incubator/flex/sdk/branches/develop/mustella/tests/Printing/Properties/PrintJob_Properties.mxml (added) +++ incubator/flex/sdk/branches/develop/mustella/tests/Printing/Properties/PrintJob_Properties.mxml Sun Nov 11 19:27:45 2012 @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Added: incubator/flex/sdk/branches/develop/mustella/tests/Printing/SWFs/FlexPrintJob_Basic.mxml URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/Printing/SWFs/FlexPrintJob_Basic.mxml?rev=1408090&view=auto ============================================================================== --- incubator/flex/sdk/branches/develop/mustella/tests/Printing/SWFs/FlexPrintJob_Basic.mxml (added) +++ incubator/flex/sdk/branches/develop/mustella/tests/Printing/SWFs/FlexPrintJob_Basic.mxml Sun Nov 11 19:27:45 2012 @@ -0,0 +1,41 @@ + + + + + + + + + + + +-