Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9DB0A200C5C for ; Thu, 20 Apr 2017 13:00:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9C416160B9F; Thu, 20 Apr 2017 11:00:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 96020160B91 for ; Thu, 20 Apr 2017 13:00:51 +0200 (CEST) Received: (qmail 8676 invoked by uid 500); 20 Apr 2017 11:00:50 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 8668 invoked by uid 99); 20 Apr 2017 11:00:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2017 11:00:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A1E3ADFBDA; Thu, 20 Apr 2017 11:00:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: harbs@apache.org To: commits@flex.apache.org Message-Id: <59006bda1a9b4f4da378fbe70ff15334@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [flex-asjs] [refs/heads/tlf] - Added some interface methods Date: Thu, 20 Apr 2017 11:00:50 +0000 (UTC) archived-at: Thu, 20 Apr 2017 11:00:52 -0000 Repository: flex-asjs Updated Branches: refs/heads/tlf fd677581b -> 9f2195694 Added some interface methods Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9f219569 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9f219569 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9f219569 Branch: refs/heads/tlf Commit: 9f2195694c47c256e47416399664161bba082b1a Parents: fd67758 Author: Harbs Authored: Thu Apr 20 07:00:47 2017 -0400 Committer: Harbs Committed: Thu Apr 20 07:00:47 2017 -0400 ---------------------------------------------------------------------- .../flex/textLayout/compose/ITextFlowLine.as | 2 +- .../conversion/BaseTextLayoutImporter.as | 3 +- .../flex/textLayout/elements/IFlowElement.as | 2 + .../textLayout/elements/IParagraphElement.as | 1 + .../flex/textLayout/elements/ITableElement.as | 90 +++++++++++++++----- 5 files changed, 75 insertions(+), 23 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f219569/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/ITextFlowLine.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/ITextFlowLine.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/ITextFlowLine.as index 6fe88e8..2ef9404 100644 --- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/ITextFlowLine.as +++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/compose/ITextFlowLine.as @@ -31,7 +31,7 @@ package org.apache.flex.textLayout.compose public interface ITextFlowLine extends IVerticalJustificationLine { - function get composable():Boolean; + function get composable():Boolean;//TextFlowTableBlocks are not composable function initialize(paragraph:IParagraphElement, outerTargetWidth:Number = 0, lineOffset:Number = 0, absoluteStart:int = 0, numChars:int = 0, textLine:ITextLine = null):void; function get heightTW():int; function get outerTargetWidthTW():int; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f219569/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/conversion/BaseTextLayoutImporter.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/conversion/BaseTextLayoutImporter.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/conversion/BaseTextLayoutImporter.as index 55a3a9b..ee5423c 100644 --- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/conversion/BaseTextLayoutImporter.as +++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/conversion/BaseTextLayoutImporter.as @@ -92,7 +92,8 @@ package org.apache.flex.textLayout.conversion } catch (e:Error) { - reportError(e.toString()); +//TODO for some reason toString() is causing a compiler error + // reportError(e.toString()); } PropertyUtil.errorHandler = savedErrorHandler; return rslt; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f219569/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IFlowElement.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IFlowElement.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IFlowElement.as index 6a5e88f..48f465a 100644 --- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IFlowElement.as +++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IFlowElement.as @@ -105,5 +105,7 @@ package org.apache.flex.textLayout.elements function getEventMirror():IEventDispatcher; function set listMarkerFormat(listMarkerFormat:*):void; function calculateComputedFormat():ITextLayoutFormat; + function set fontSize(value:*):void; + function set columnWidth(columnWidthValue:*):void; } } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f219569/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IParagraphElement.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IParagraphElement.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IParagraphElement.as index 98a9e1b..4de8643 100644 --- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IParagraphElement.as +++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/IParagraphElement.as @@ -23,6 +23,7 @@ package org.apache.flex.textLayout.elements public interface IParagraphElement extends IFlowGroupElement { function getTextBlock():ITextBlock; + function getPreviousParagraph():IParagraphElement; function getNextParagraph():IParagraphElement; function getEffectiveDominantBaseline():String; function decInteractiveChildrenCount():void; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f219569/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/ITableElement.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/ITableElement.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/ITableElement.as index a5fe513..10d8649 100644 --- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/ITableElement.as +++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/ITableElement.as @@ -19,33 +19,81 @@ package org.apache.flex.textLayout.elements { import org.apache.flex.textLayout.compose.ITextFlowTableBlock; + import org.apache.flex.textLayout.formats.ITextLayoutFormat; public interface ITableElement extends ITableFormattedElement { - function getRowAt(rIdx:int):ITableRowElement; - function addCellToBlock(cell:ITableCellElement, curTableBlock:ITextFlowTableBlock):void; - function composeCells():void; - function getColumnAt(colIndex:int):ITableColElement; - function getNextRow():Vector.; - function getFirstBlock():ITextFlowTableBlock; - function normalizeColumnWidths(width:Number = 600):void; - function getCellsForColumn(column:ITableColElement):Vector.; - function getNextCell(tableCellElement:ITableCellElement):ITableCellElement; - function getPreviousCell(tableCellElement:ITableCellElement):ITableCellElement; - function get hasCellDamage():Boolean; - function set hasCellDamage(hasCellDamage:Boolean):void; - function getTableBlocksInRange(anchorCoords:CellCoordinates, activeCoords:CellCoordinates):Vector.; function get numRows():int; function get numColumns():int; - function get width():Number; - function getCellsInRange(anchorCoords:CellCoordinates, activeCoords:CellCoordinates, block:ITextFlowTableBlock = null):Vector.; - function findCell(coords:CellCoordinates):ITableCellElement; - function getCellAt(rowIndex:int, colIndex:int):ITableCellElement; + function get numCells():int; + function set numRows(value:int):void; + function set numColumns(value:int):void; + function get defaultRowFormat():ITextLayoutFormat; + function set defaultRowFormat(value:ITextLayoutFormat):void; + function get defaultColumnFormat():ITextLayoutFormat; + function set defaultColumnFormat(value:ITextLayoutFormat):void; + function addRow(format:ITextLayoutFormat=null):void; + function addRowAt(idx:int, format:ITextLayoutFormat=null):void; + function addColumn(format:ITextLayoutFormat=null):void; + function addColumnAt(idx:int, format:ITextLayoutFormat=null):void; + function getColumnAt(columnIndex:int):ITableColElement; + function getRowAt(rowIndex:int):ITableRowElement; + function getRowIndex(row:ITableRowElement):int; + function getCellsForRow(row:ITableRowElement):Vector.; function getCellsForRowArray(row:ITableRowElement):Array; - function getCellsForRowAtArray(index:int):Array; function getCellsForRowAt(index:int):Vector.; - function getCellsForRow(row:ITableRowElement):Vector.; - function set numColumns(numColumns:int):void; + function getCellsForRowAtArray(index:int):Array; + function getCellsForColumn(column:ITableColElement):Vector.; + function getCellsForColumnAt(index:int):Vector.; + function hasMergedCells():Boolean; + function insertColumn(column:TableColElement=null,cells:Array = null):Boolean; + function insertColumnAt(idx:int,column:TableColElement=null,cells:Array = null):Boolean; function insertRow(row:ITableRowElement=null,cells:Array = null):Boolean; - + function insertRowAt(idx:int,row:ITableRowElement=null,cells:Array = null):Boolean; + function removeRow(row:ITableRowElement):ITableRowElement; + function removeRowWithContent(row:ITableRowElement):Array; + function removeRowAt(idx:int):ITableRowElement; + function removeRowWithContentAt(idx:int):Array; + function removeAllRowsWithContent():void; + function removeAllRows():void; + function removeColumn(column:ITableColElement):ITableColElement; + function removeColumnWithContent(column:ITableColElement):Array; + function removeColumnAt(idx:int):ITableColElement; + function removeColumnWithContentAt(idx:int):Array; + function normalizeCells():void; + function setColumnWidth(columnIndex:int, value:*):Boolean; + function setRowHeight(rowIdx:int, value:*):Boolean; + function getColumnWidth(columnIndex:int):*; + function composeCells():void; + function getHeaderRows():Vector.< Vector. >; + function getFooterRows():Vector.< Vector. >; + function getBodyRows():Vector.< Vector. >; + function getNextRow():Vector.; + function getNextCell(tableCell:ITableCellElement):ITableCellElement; + function getPreviousCell(tableCell:ITableCellElement):ITableCellElement; + function getCellAt(rowIndex:int, columnIndex:int):ITableCellElement; + function getHeaderHeight():Number; + function getFooterHeight():Number; + function normalizeColumnWidths(suggestedWidth:Number = 600):void; + function getCells():Vector.; + function getCellsArray():Array; + function get width():Number; + function set width(value:Number):void; + function get hasCellDamage():Boolean; + function set hasCellDamage(value:Boolean):void; + function get headerRowCount():uint; + function set headerRowCount(value:uint):void; + function get footerRowCount():uint; + function set footerRowCount(value:uint):void; + function getFirstBlock():ITextFlowTableBlock; + function getNextBlock():ITextFlowTableBlock; + function getCellsInRange(anchorCoords:CellCoordinates, activeCoords:CellCoordinates, block:ITextFlowTableBlock=null):Vector.; + function findCell(coords:CellCoordinates):ITableCellElement; + function addCellToBlock(cell:ITableCellElement, block:ITextFlowTableBlock):void; + function getCellBlock(cell:ITableCellElement):ITextFlowTableBlock; + function get tableBlocks():Vector.; + function getTableBlocksInRange(start:CellCoordinates,end:CellCoordinates):Vector.; + function createRowElement(index:int, defaultRowFormat:ITextLayoutFormat):ITableRowElement; + function createColumnElement(index:int, defaultColumnFormat:ITextLayoutFormat):TableColElement; + } } \ No newline at end of file