|
|
@ -91,14 +91,14 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
|
|
|
|
TQDomElement e = n.toElement(); // try to convert the node to an element.
|
|
|
|
TQDomElement e = n.toElement(); // try to convert the node to an element.
|
|
|
|
if( !e.isNull() )
|
|
|
|
if( !e.isNull() )
|
|
|
|
if( e.tagName() == "id" ) {
|
|
|
|
if( e.tagName() == "id" ) {
|
|
|
|
result += TQString("{D%1,").tqarg( convZeros((e.attribute( "height" ).toInt() + e.attribute( "gap_v" ).toInt())*10,4)); // Altura + Gap vertical
|
|
|
|
result += TQString("{D%1,").arg( convZeros((e.attribute( "height" ).toInt() + e.attribute( "gap_v" ).toInt())*10,4)); // Altura + Gap vertical
|
|
|
|
result += TQString("%1,").tqarg( convZeros(e.attribute( "width" ).toInt()*10,4) ); // Anchura
|
|
|
|
result += TQString("%1,").arg( convZeros(e.attribute( "width" ).toInt()*10,4) ); // Anchura
|
|
|
|
result += TQString("%1|}\n").tqarg( convZeros(e.attribute( "height" ).toInt()*10,4) ); // Altura
|
|
|
|
result += TQString("%1|}\n").arg( convZeros(e.attribute( "height" ).toInt()*10,4) ); // Altura
|
|
|
|
result += TQString("{C|}\n"); // Clear buffer
|
|
|
|
result += TQString("{C|}\n"); // Clear buffer
|
|
|
|
result += TQString("{U2;0130|}\n"); // BackFeed
|
|
|
|
result += TQString("{U2;0130|}\n"); // BackFeed
|
|
|
|
result += TQString("{D%1,").tqarg( convZeros((e.attribute( "height" ).toInt() + e.attribute( "gap_v" ).toInt())*10,4)); // Altura + Gap vertical
|
|
|
|
result += TQString("{D%1,").arg( convZeros((e.attribute( "height" ).toInt() + e.attribute( "gap_v" ).toInt())*10,4)); // Altura + Gap vertical
|
|
|
|
result += TQString("%1,").tqarg( convZeros(e.attribute( "width" ).toInt()*10,4) ); // Anchura
|
|
|
|
result += TQString("%1,").arg( convZeros(e.attribute( "width" ).toInt()*10,4) ); // Anchura
|
|
|
|
result += TQString("%1|}\n").tqarg( convZeros(e.attribute( "height" ).toInt()*10,4) ); // Altura
|
|
|
|
result += TQString("%1|}\n").arg( convZeros(e.attribute( "height" ).toInt()*10,4) ); // Altura
|
|
|
|
result += TQString("{AX;+000,+000,+00|}\n"); // Position Fine adjust
|
|
|
|
result += TQString("{AX;+000,+000,+00|}\n"); // Position Fine adjust
|
|
|
|
result += TQString("{AY;+04,1|}\n"); // Print density fine adjust
|
|
|
|
result += TQString("{AY;+04,1|}\n"); // Print density fine adjust
|
|
|
|
|
|
|
|
|
|
|
@ -130,20 +130,20 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
|
|
|
|
if( e.tagName() == "value" ) data = e.text();
|
|
|
|
if( e.tagName() == "value" ) data = e.text();
|
|
|
|
n = n.nextSibling();
|
|
|
|
n = n.nextSibling();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
result += TQString("{RB%1;").tqarg( convZeros(countBar, 2) ); // count de RB
|
|
|
|
result += TQString("{RB%1;").arg( convZeros(countBar, 2) ); // count de RB
|
|
|
|
result += TQString("%1|}\n").tqarg( data ); // Data + fin
|
|
|
|
result += TQString("%1|}\n").arg( data ); // Data + fin
|
|
|
|
countBar++;
|
|
|
|
countBar++;
|
|
|
|
|
|
|
|
|
|
|
|
} else if( e.tagName() == "textfield" ) {
|
|
|
|
} else if( e.tagName() == "textfield" ) {
|
|
|
|
|
|
|
|
|
|
|
|
result += TQString("{PC%1;").tqarg( convZeros(countText, 3) ); // count
|
|
|
|
result += TQString("{PC%1;").arg( convZeros(countText, 3) ); // count
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").tqarg( "10" );
|
|
|
|
result += TQString("%1,").arg( "10" );
|
|
|
|
result += TQString("%1,").tqarg( "15" );
|
|
|
|
result += TQString("%1,").arg( "15" );
|
|
|
|
result += TQString("%1,").tqarg( "J" );
|
|
|
|
result += TQString("%1,").arg( "J" );
|
|
|
|
result += TQString("%1,").tqarg( "00" );
|
|
|
|
result += TQString("%1,").arg( "00" );
|
|
|
|
result += TQString("%1|}\n").tqarg( "B" );
|
|
|
|
result += TQString("%1|}\n").arg( "B" );
|
|
|
|
|
|
|
|
|
|
|
|
TQString etext;
|
|
|
|
TQString etext;
|
|
|
|
TQDomNode n = e.firstChild();
|
|
|
|
TQDomNode n = e.firstChild();
|
|
|
@ -155,9 +155,9 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
|
|
|
|
n = n.nextSibling();
|
|
|
|
n = n.nextSibling();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
result += TQString("{RC%1;").tqarg( convZeros(countText, 3) ); // count de RB
|
|
|
|
result += TQString("{RC%1;").arg( convZeros(countText, 3) ); // count de RB
|
|
|
|
etext=getData(etext, art, group, id );
|
|
|
|
etext=getData(etext, art, group, id );
|
|
|
|
result += TQString("%1|}\n").tqarg( etext ); // Data + fin
|
|
|
|
result += TQString("%1|}\n").arg( etext ); // Data + fin
|
|
|
|
countText++;
|
|
|
|
countText++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if( e.tagName() == "rect" ) {
|
|
|
|
else if( e.tagName() == "rect" ) {
|
|
|
@ -165,40 +165,40 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
|
|
|
|
if (e.attribute("colorr")=="0" and e.attribute("colorg")=="0" and e.attribute("colorb")=="0") {
|
|
|
|
if (e.attribute("colorr")=="0" and e.attribute("colorg")=="0" and e.attribute("colorb")=="0") {
|
|
|
|
|
|
|
|
|
|
|
|
result += TQString("{XR;"); // XR
|
|
|
|
result += TQString("{XR;"); // XR
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
|
|
|
|
result += TQString("%1,").arg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
|
|
|
|
result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
|
|
|
|
result += TQString("%1,").arg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
|
|
|
|
result += TQString("A"); // Type of Clear
|
|
|
|
result += TQString("A"); // Type of Clear
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
result += TQString("{XR;"); // XR
|
|
|
|
result += TQString("{XR;"); // XR
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
|
|
|
|
result += TQString("%1,").arg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
|
|
|
|
result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
|
|
|
|
result += TQString("%1,").arg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
|
|
|
|
result += TQString("B"); // Type of Clear
|
|
|
|
result += TQString("B"); // Type of Clear
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
result += TQString("{LC;"); // LC
|
|
|
|
result += TQString("{LC;"); // LC
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
|
|
|
|
result += TQString("%1,").arg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
|
|
|
|
result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
|
|
|
|
result += TQString("%1,").arg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
|
|
|
|
result += TQString("1,"); // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
|
|
|
|
result += TQString("1,"); // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
|
|
|
|
result += TQString("%1").tqarg(lineWidth(e)); // No. of line width dots 1-9
|
|
|
|
result += TQString("%1").arg(lineWidth(e)); // No. of line width dots 1-9
|
|
|
|
//result += TQString("999"); // Radius of rounded corners of a rectangle
|
|
|
|
//result += TQString("999"); // Radius of rounded corners of a rectangle
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if( e.tagName() == "line" ) {
|
|
|
|
else if( e.tagName() == "line" ) {
|
|
|
|
result += TQString("{LC;"); // LC
|
|
|
|
result += TQString("{LC;"); // LC
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
|
|
|
|
result += TQString("%1,").arg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
|
|
|
|
result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
|
|
|
|
result += TQString("%1,").arg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
|
|
|
|
result += TQString("0,"); // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
|
|
|
|
result += TQString("0,"); // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
|
|
|
|
result += TQString("%1").tqarg(lineWidth(e)); // No. of line width dots 1-9
|
|
|
|
result += TQString("%1").arg(lineWidth(e)); // No. of line width dots 1-9
|
|
|
|
//result += TQString("999"); // Radius of rounded corners of a rectangle
|
|
|
|
//result += TQString("999"); // Radius of rounded corners of a rectangle
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -206,7 +206,7 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
result += TQString("{U1;0130|}\n"); // ForwardFeed
|
|
|
|
result += TQString("{U1;0130|}\n"); // ForwardFeed
|
|
|
|
result += TQString("{XS;I,%1,0000C2000|}\n").tqarg(convZeros(count,4)); // Issue Command
|
|
|
|
result += TQString("{XS;I,%1,0000C2000|}\n").arg(convZeros(count,4)); // Issue Command
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -214,7 +214,7 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
|
|
|
|
|
|
|
|
|
|
|
|
TQString convZeros( int count, int zeros )
|
|
|
|
TQString convZeros( int count, int zeros )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString str= TQString("%1").tqarg(count);
|
|
|
|
TQString str= TQString("%1").arg(count);
|
|
|
|
int l=strlen(str); //get the string length
|
|
|
|
int l=strlen(str); //get the string length
|
|
|
|
for(;l<zeros;l++) str = TQString("0") + str;
|
|
|
|
for(;l<zeros;l++) str = TQString("0") + str;
|
|
|
|
return str;
|
|
|
|
return str;
|
|
|
@ -223,9 +223,9 @@ return str;
|
|
|
|
TQString posConv( TQString str, int zeros )
|
|
|
|
TQString posConv( TQString str, int zeros )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int point=str.find(".",0);
|
|
|
|
int point=str.find(".",0);
|
|
|
|
TQString dec= TQString("%1").tqarg(str.mid(point+1,1));
|
|
|
|
TQString dec= TQString("%1").arg(str.mid(point+1,1));
|
|
|
|
str = str.mid(0,point);
|
|
|
|
str = str.mid(0,point);
|
|
|
|
str = TQString("%1%2").tqarg(str).tqarg(dec);
|
|
|
|
str = TQString("%1%2").arg(str).arg(dec);
|
|
|
|
return convZeros (str.toInt(), zeros);
|
|
|
|
return convZeros (str.toInt(), zeros);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -240,20 +240,20 @@ else return 0;
|
|
|
|
TQString code39 (const TQDomElement &e, int countBar) {
|
|
|
|
TQString code39 (const TQDomElement &e, int countBar) {
|
|
|
|
|
|
|
|
|
|
|
|
TQString result;
|
|
|
|
TQString result;
|
|
|
|
result += TQString("{XB%1;").tqarg( convZeros(countBar, 2) ); // count
|
|
|
|
result += TQString("{XB%1;").arg( convZeros(countBar, 2) ); // count
|
|
|
|
result += TQString("%1").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString(",%1").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString(",%1").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString(",%1").tqarg( barcodeType( e.attribute( "type") ) ); // Type of bar code
|
|
|
|
result += TQString(",%1").arg( barcodeType( e.attribute( "type") ) ); // Type of bar code
|
|
|
|
result += TQString(",%1").tqarg( withChecksum(e) ); // Type of check digit
|
|
|
|
result += TQString(",%1").arg( withChecksum(e) ); // Type of check digit
|
|
|
|
result += TQString(",%1").tqarg( "03" ); // Narrow bar width
|
|
|
|
result += TQString(",%1").arg( "03" ); // Narrow bar width
|
|
|
|
result += TQString(",%1").tqarg( "03" ); // Narrow space width
|
|
|
|
result += TQString(",%1").arg( "03" ); // Narrow space width
|
|
|
|
result += TQString(",%1").tqarg( "06" ); // Wide bar width
|
|
|
|
result += TQString(",%1").arg( "06" ); // Wide bar width
|
|
|
|
result += TQString(",%1").tqarg( "06" ); // Wide space width
|
|
|
|
result += TQString(",%1").arg( "06" ); // Wide space width
|
|
|
|
result += TQString(",%1").tqarg( "03" ); // Character to Character space width
|
|
|
|
result += TQString(",%1").arg( "03" ); // Character to Character space width
|
|
|
|
result += TQString(",%1").tqarg( rotation(e.attribute( "rotation", "0" ).toInt())); // Rotation angel of barcode
|
|
|
|
result += TQString(",%1").arg( rotation(e.attribute( "rotation", "0" ).toInt())); // Rotation angel of barcode
|
|
|
|
result += TQString(",%1").tqarg( "0063" ); // height of barcode
|
|
|
|
result += TQString(",%1").arg( "0063" ); // height of barcode
|
|
|
|
result += TQString(",+%1").tqarg( sequence(e) ); // Increment / Decrement
|
|
|
|
result += TQString(",+%1").arg( sequence(e) ); // Increment / Decrement
|
|
|
|
result += TQString(",%1").tqarg( e.attribute( "text", "1" ).toInt() ); // Selection of print or non print of numerals under bars
|
|
|
|
result += TQString(",%1").arg( e.attribute( "text", "1" ).toInt() ); // Selection of print or non print of numerals under bars
|
|
|
|
result += TQString(",00"); //Number of Zeros to be suppressed
|
|
|
|
result += TQString(",00"); //Number of Zeros to be suppressed
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
|
|
|
|
|
|
|
@ -371,17 +371,17 @@ return convZeros(e.attribute("sequencestep" ,"0").toInt() ,10);
|
|
|
|
TQString code128 (const TQDomElement &e, int countBar) {
|
|
|
|
TQString code128 (const TQDomElement &e, int countBar) {
|
|
|
|
|
|
|
|
|
|
|
|
TQString result;
|
|
|
|
TQString result;
|
|
|
|
result += TQString("{XB%1;").tqarg( convZeros(countBar, 2) ); // count
|
|
|
|
result += TQString("{XB%1;").arg( convZeros(countBar, 2) ); // count
|
|
|
|
result += TQString("%1").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString(",%1").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString(",%1").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString(",%1").tqarg( barcodeType( e.attribute( "type") ) ); // Type of bar code
|
|
|
|
result += TQString(",%1").arg( barcodeType( e.attribute( "type") ) ); // Type of bar code
|
|
|
|
result += TQString(",%1").tqarg( withChecksum(e) ); // Type of check digit
|
|
|
|
result += TQString(",%1").arg( withChecksum(e) ); // Type of check digit
|
|
|
|
result += TQString(",%1").tqarg( "03" ); // 1 module width
|
|
|
|
result += TQString(",%1").arg( "03" ); // 1 module width
|
|
|
|
result += TQString(",%1").tqarg( rotation(e.attribute( "rotation", "0" ).toInt())); // Rotation angel of barcode
|
|
|
|
result += TQString(",%1").arg( rotation(e.attribute( "rotation", "0" ).toInt())); // Rotation angel of barcode
|
|
|
|
result += TQString(",%1").tqarg( "0063" ); // height of barcode
|
|
|
|
result += TQString(",%1").arg( "0063" ); // height of barcode
|
|
|
|
result += TQString(",+%1").tqarg( sequence(e) ); // Increment / Decrement
|
|
|
|
result += TQString(",+%1").arg( sequence(e) ); // Increment / Decrement
|
|
|
|
result += TQString(",000"); // Length of th WPC guard bar
|
|
|
|
result += TQString(",000"); // Length of th WPC guard bar
|
|
|
|
result += TQString(",%1").tqarg( e.attribute( "text", "1" ).toInt() ); // Selection of print or non print of numerals under bars
|
|
|
|
result += TQString(",%1").arg( e.attribute( "text", "1" ).toInt() ); // Selection of print or non print of numerals under bars
|
|
|
|
result += TQString(",00"); //Number of Zeros to be suppressed
|
|
|
|
result += TQString(",00"); //Number of Zeros to be suppressed
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
|
|
|
|
|
|
|
@ -457,15 +457,15 @@ return result;
|
|
|
|
TQString pdf417 (const TQDomElement &e, int countBar) {
|
|
|
|
TQString pdf417 (const TQDomElement &e, int countBar) {
|
|
|
|
|
|
|
|
|
|
|
|
TQString result;
|
|
|
|
TQString result;
|
|
|
|
result += TQString("{XB%1;").tqarg( convZeros(countBar, 2) ); // count
|
|
|
|
result += TQString("{XB%1;").arg( convZeros(countBar, 2) ); // count
|
|
|
|
result += TQString("%1").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString("%1").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
|
|
|
|
result += TQString(",%1").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString(",%1").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
|
|
|
|
result += TQString(",P"); // Type of bar code ALWAYS PDF417
|
|
|
|
result += TQString(",P"); // Type of bar code ALWAYS PDF417
|
|
|
|
result += TQString(",%1").tqarg( withChecksum(e) ); // Type of check digit
|
|
|
|
result += TQString(",%1").arg( withChecksum(e) ); // Type of check digit
|
|
|
|
result += TQString(",%1").tqarg( "03" ); // Module Width
|
|
|
|
result += TQString(",%1").arg( "03" ); // Module Width
|
|
|
|
result += TQString(",%1").tqarg( convZeros(e.attribute("pdf417.col").toInt(),2 )); // Number of columns
|
|
|
|
result += TQString(",%1").arg( convZeros(e.attribute("pdf417.col").toInt(),2 )); // Number of columns
|
|
|
|
result += TQString(",%1").tqarg( rotation(e.attribute( "rotation", "0" ).toInt())); // Rotation angel of barcode
|
|
|
|
result += TQString(",%1").arg( rotation(e.attribute( "rotation", "0" ).toInt())); // Rotation angel of barcode
|
|
|
|
result += TQString(",%1").tqarg( "0063" ); // height of barcode
|
|
|
|
result += TQString(",%1").arg( "0063" ); // height of barcode
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
result += TQString("|}\n"); // FIN
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|