[Scribus] templates for text?

Stijn Hoop stijn
Thu May 13 16:53:01 CEST 2004


On Wed, May 12, 2004 at 02:23:10PM +0200, Craig Bradney wrote:
> > On Wed, May 12, 2004 at 10:32:54AM +0200, Craig Bradney wrote:
> > > I would suggest you upgrade to CVS if possible, just to avoid some
> > > issues in 1.1.6.
> > 
> > I'll try but I was happy to install the FreeBSD port/package to avoid
> > compilation issues.
> 
> True. I think you will have to use gmake (GNU make) instead of fbsds
> make too.

Yes, and I needed to apply some patches from the port and account for the fact
that FreeBSD's autoconf/automake are ancient; but asides from that I got
myself a nice & shiny CVS build :)

Patches attached, I don't know who made them because currently Scribus is
unmaintained on FreeBSD, but it would be nice if some of these could be
committed to make compilation out of the box easier :)

> > Where do I find this option to create automatic text frames, or is
> > that only implemented in CVS?
> 
> Create new document dialog.

I found it, it didn't work for some reason in 1.1.6 but it does work with the
CVS build.

Thanks for the help!

--Stijn

-- 
"Coca-Cola is solely responsible for ensuring that people - too stupid to know
not to tip half-ton machines on themselves - are safe. Forget parenting - the
blame is entirely on the corporation for designing machines that look so
innocent and yet are so deadly."
	-- http://www.kuro5hin.org/?op=displaystory;sid=2001/10/28/212418/42
-------------- next part --------------
Index: scribus/page.cpp
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/page.cpp,v
retrieving revision 1.146
diff -u -r1.146 page.cpp
--- scribus/page.cpp	11 May 2004 22:37:32 -0000	1.146
+++ scribus/page.cpp	13 May 2004 14:50:28 -0000
@@ -64,6 +64,8 @@
 	#define SPLITHC SplitHCursor
 #endif
 
+#include <unistd.h>
+
 #ifdef HAVE_TIFF
 	#include <tiffio.h>
 #endif
@@ -8195,7 +8197,7 @@
 				it++;
 				hg->cab = it == NULL ? 0 : (*it).toInt();
 				it++;
-				hg->cstroke = it == NULL ? "None" : *it;
+				hg->cstroke = it == NULL ? QString("None") : *it;
 				it++;
 				hg->cshade2 = it == NULL ? 100 : (*it).toInt();
 				it++;
Index: scribus/scribus.cpp
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/scribus.cpp,v
retrieving revision 1.159
diff -u -r1.159 scribus.cpp
--- scribus/scribus.cpp	12 May 2004 22:59:22 -0000	1.159
+++ scribus/scribus.cpp	13 May 2004 14:50:28 -0000
@@ -6009,7 +6009,7 @@
 void ScribusApp::slotPrefsOrg()
 {
 	void *mo;
-	char *error;
+	const char *error;
 	bool zChange = false;
 	typedef Preferences* (*sdem)(QWidget *d, preV *Vor);
 	sdem demo;
@@ -6504,7 +6504,7 @@
 bool ScribusApp::getPDFDriver(QString fn, QString nam, int Components, int frPa, int toPa, QMap<int,QPixmap> thumbs)
 {
 	bool ret = false;
-	char *error;
+	const char *error;
 	void *PDFDriver;
 	typedef bool (*sdem)(ScribusApp *plug, QString fn, QString nam, int Components, int frPa, int toPa, QMap<int,QPixmap> thumbs, QProgressBar *dia2);
 	sdem demo;
@@ -7084,7 +7084,7 @@
 		dia.setSelection(defNa);
 	if (dia.exec() == QDialog::Accepted)
 	{
-		LoadEnc = cod ? dia.TxCodeM->currentText() : "";
+		LoadEnc = cod ? dia.TxCodeM->currentText() : QString("");
 		this->repaint();
 		qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput);
 		return dia.selectedFile();
Index: scribus/scribusXml.cpp
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/scribusXml.cpp,v
retrieving revision 1.57
diff -u -r1.57 scribusXml.cpp
--- scribus/scribusXml.cpp	11 May 2004 22:37:32 -0000	1.57
+++ scribus/scribusXml.cpp	13 May 2004 14:50:29 -0000
@@ -2409,7 +2409,7 @@
 		}
 		else
 			ob.setAttribute("ANNOTATION",0);
-		ob.setAttribute("ANNAME", !item->AutoName ? item->AnName : "");
+		ob.setAttribute("ANNAME", !item->AutoName ? item->AnName : QString(""));
 		ob.setAttribute("TEXTFLOW", item->Textflow ? 1 : 0);
 		ob.setAttribute("TEXTFLOW2", item->Textflow2 ? 1 : 0);
 		ob.setAttribute("AUTOTEXT", item->isAutoText ? 1 : 0);
@@ -2795,7 +2795,7 @@
 			}
 			else
 				ob.setAttribute("ANNOTATION",0);
-			ob.setAttribute("ANNAME", !item->AutoName ? item->AnName : "");
+			ob.setAttribute("ANNAME", !item->AutoName ? item->AnName : QString(""));
 			ob.setAttribute("TEXTFLOW", item->Textflow ? 1 : 0);
 			ob.setAttribute("TEXTFLOW2", item->Textflow2 ? 1 : 0);
 			ob.setAttribute("AUTOTEXT", item->isAutoText ? 1 : 0);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20040513/5454b8e0/attachment.pgp 



More information about the scribus mailing list