Skip to content

Commit de39b39

Browse files
Merge branch 'master' into GxPropertiesFix
2 parents 5ceec52 + 0f8ced6 commit de39b39

File tree

26 files changed

+1433
-1384
lines changed

26 files changed

+1433
-1384
lines changed

android/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.genexus</groupId>
99
<artifactId>parent</artifactId>
10-
<version>1.1-SNAPSHOT</version>
10+
<version>1.2-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>gxandroid</artifactId>

android/src/main/java/com/genexus/specific/android/Connect.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public static void init()
3131
SpecificImplementation.NativeFunctions = new NativeFunctions();
3232
SpecificImplementation.PictureFormatter = new PictureFormatter();
3333
SpecificImplementation.Algorithms = new CryptoAlghorithms();
34+
// connect GXSilentTrn
35+
SpecificImplementation.GXSilentTrnSdt = new GXSilentTrnSdt();
36+
SpecificImplementation.SdtMessages_Message = new SdtMessages_Message();
37+
3438
SpecificImplementation.KeepDecimals = true;
3539
SpecificImplementation.MillisecondMask = "SSS";
3640
SpecificImplementation.SupportPending = true;

android/src/main/java/com/genexus/specific/android/GxSilentTrnSdt.java renamed to android/src/main/java/com/genexus/specific/android/GXSilentTrnSdt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import com.genexus.common.interfaces.IExtensionGXSilentTrnSdt;
66
import com.genexus.common.interfaces.IPendingEventHelper;
77

8-
public class GxSilentTrnSdt implements IExtensionGXSilentTrnSdt {
8+
public class GXSilentTrnSdt implements IExtensionGXSilentTrnSdt {
99

1010
@Override
1111
public IPendingEventHelper CreatePendingEventHelper() {

androidreports/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.genexus</groupId>
99
<artifactId>parent</artifactId>
10-
<version>1.1-SNAPSHOT</version>
10+
<version>1.2-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>gxandroidreports</artifactId>

androidreports/src/main/java/com/genexus/reports/PDFReportItext.java

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,32 +1717,13 @@ else if(output.equalsIgnoreCase("PRN"))
17171717
//System.err.println("Invalid page Margin... Resetting to defaults");
17181718
//}
17191719

1720-
//com.itextpdf.text.Rectangle pageSize2 = computePageSize(leftMargin, topMargin, pageWidth, pageLength-4000, props.getBooleanGeneralProperty(Const.MARGINS_INSIDE_BORDER, false));
1721-
1722-
this.pageSize = computePageSize(leftMargin, topMargin, pageWidth, pageLength-4000, props.getBooleanGeneralProperty(Const.MARGINS_INSIDE_BORDER, false));
1723-
1720+
17241721
document = new Document(this.pageSize,0,0,0,0);
1722+
17251723
init();
17261724

17271725
//if(DEBUG)DEBUG_STREAM.println("GxPrintInit ---> Size:" + this.pageSize + " Orientation: " + (pageOrientation == PDFPage.PORTRAIT ? "Portrait" : "Landscape"));
17281726

1729-
// INIT AGAIN :
1730-
// Close de docuemnte
1731-
GxEndDocument();
1732-
1733-
// create a new document to draw
1734-
try
1735-
{
1736-
setOutputStream(new FileOutputStream(docName));
1737-
}catch(IOException accessError)
1738-
{ // Si no se puede generar el archivo, muestro el stackTrace y seteo el stream como NullOutputStream
1739-
accessError.printStackTrace(System.err);
1740-
outputStream = new com.genexus.util.NullOutputStream();
1741-
outputType = Const.OUTPUT_FILE; // Hago esto para no tener lios con el Acrobat
1742-
}
1743-
document = new Document(this.pageSize,0,0,0,0);
1744-
init();
1745-
17461727
return true;
17471728
}
17481729

@@ -1829,12 +1810,6 @@ public void GxEndPage()
18291810

18301811
public void GxEndDocument()
18311812
{
1832-
//cambio el tamanio a lo que se imprimio
1833-
//Se ignora el parametro orientation para el calculo del pageSize, los valores de alto y ancho ya vienen invertidos si Orientation=2=landscape.
1834-
//this.pageSize = computePageSize(leftMargin, topMargin, 10304, 12500, props.getBooleanGeneralProperty(Const.MARGINS_INSIDE_BORDER, false));
1835-
//document.setPageSize(pageSize);
1836-
1837-
18381813
if(document.getPageNumber() == 0)
18391814
{ // Si no hay ninguna página en el documento, agrego una vacia}
18401815
writer.setPageEmpty(false);

apacheandroid/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.genexus</groupId>
99
<artifactId>parent</artifactId>
10-
<version>1.1-SNAPSHOT</version>
10+
<version>1.2-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>apacheandroid</artifactId>

common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.genexus</groupId>
99
<artifactId>parent</artifactId>
10-
<version>1.1-SNAPSHOT</version>
10+
<version>1.2-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>gxcommon</artifactId>

0 commit comments

Comments
 (0)