Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 2304 → Rev 2305

/branches/Version13x/Scribus/scribus/fileloader.cpp
416,7 → 416,10
doc->Language = dc.attribute("LANGUAGE", "");
doc->MinWordLen = QStoInt(dc.attribute("MINWORDLEN", "3"));
doc->HyCount = QStoInt(dc.attribute("HYCOUNT", "2"));
doc->pageWidth=QStodouble(dc.attribute("PAGEWITH"));
if (dc.hasAttribute("PAGEWIDTH"))
doc->pageWidth=QStodouble(dc.attribute("PAGEWIDTH"));
else
doc->pageWidth=QStodouble(dc.attribute("PAGEWITH"));
doc->pageHeight=QStodouble(dc.attribute("PAGEHEIGHT"));
doc->pageMargins.Left=QStodouble(dc.attribute("BORDERLEFT"));
doc->pageMargins.Right=QStodouble(dc.attribute("BORDERRIGHT"));
856,7 → 859,10
Apage->MPageNam = "";
Apage->Xoffset = QStodouble(pg.attribute("PAGEXPOS"));
Apage->Yoffset = QStodouble(pg.attribute("PAGEYPOS"));
Apage->Width = QStodouble(pg.attribute("PAGEWITH"));
if (pg.hasAttribute("PAGEWIDTH"))
Apage->Width=QStodouble(pg.attribute("PAGEWIDTH"));
else
Apage->Width=QStodouble(pg.attribute("PAGEWITH"));
Apage->Height = QStodouble(pg.attribute("PAGEHEIGHT"));
if (doc->PageFP)
{
/branches/Version13x/Scribus/scribus/doc/en/scribusfileformat.html
508,7 → 508,7
<td></td>
<td></td>
<td></td>
<td>PAGEWITH</td>
<td>PAGEWIDTH</td>
<td>Width of the Doc</td>
</tr>
<tr valign="top">
/branches/Version13x/Scribus/scribus/scribusXml.cpp
1290,7 → 1290,10
/*
* Attribute von DOCUMENT auslesen
*/
doc->pageWidth=QStodouble(dc.attribute("PAGEWITH"));
if (dc.hasAttribute("PAGEWIDTH"))
doc->pageWidth=QStodouble(dc.attribute("PAGEWIDTH"));
else
doc->pageWidth=QStodouble(dc.attribute("PAGEWITH"));
doc->pageHeight=QStodouble(dc.attribute("PAGEHEIGHT"));
doc->pageMargins.Left=QStodouble(dc.attribute("BORDERLEFT"));
doc->pageMargins.Right=QStodouble(dc.attribute("BORDERRIGHT"));
2659,7 → 2662,7
}
pg.setAttribute("PAGEXPOS",page->Xoffset);
pg.setAttribute("PAGEYPOS",page->Yoffset);
pg.setAttribute("PAGEWITH",page->Width);
pg.setAttribute("PAGEWIDTH",page->Width);
pg.setAttribute("PAGEHEIGHT",page->Height);
pg.setAttribute("BORDERLEFT",page->Margins.Left);
pg.setAttribute("BORDERRIGHT",page->Margins.Right);
2945,7 → 2948,7
elem.setAttribute("Version", "1.3.0cvs");
QDomElement dc=docu.createElement("DOCUMENT");
dc.setAttribute("ANZPAGES",doc->DocPages.count());
dc.setAttribute("PAGEWITH",doc->pageWidth);
dc.setAttribute("PAGEWIDTH",doc->pageWidth);
dc.setAttribute("PAGEHEIGHT",doc->pageHeight);
dc.setAttribute("BORDERLEFT",doc->pageMargins.Left);
dc.setAttribute("BORDERRIGHT",doc->pageMargins.Right);