r24488 by jghali - Fix failure to link plugins

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 15 19:37:18 UTC 2021


Author: jghali
Date: Mon Feb 15 19:37:18 2021
New Revision: 24488

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24488
Log:
Fix failure to link plugins

Modified:
    trunk/Scribus/scribus/api/api_application.h
    trunk/Scribus/scribus/api/api_color.h

Modified: trunk/Scribus/scribus/api/api_application.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24488&path=/trunk/Scribus/scribus/api/api_application.h
==============================================================================
--- trunk/Scribus/scribus/api/api_application.h	(original)
+++ trunk/Scribus/scribus/api/api_application.h	Mon Feb 15 19:37:18 2021
@@ -8,70 +8,72 @@
 #include <QByteArray>
 #include <QString>
 
+#include "scribusapi.h"
+
 namespace ScribusAPI {
 
 	//
 	// Returns the build information of the Scribus application
 	//
-	QString getBuildInformation();
+	QString SCRIBUS_API getBuildInformation();
 
 	//
 	// Returns the version of the Scribus application as a string
 	//
-	QString getVersion();
+	QString SCRIBUS_API getVersion();
 
 	//
 	// Returns the major version of the Scribus application as an integer
 	//
-	int getVersionMajor();
+	int SCRIBUS_API getVersionMajor();
 
 	//
 	// Returns the minor version of the Scribus application as an integer
 	//
-	int getVersionMinor();
+	int SCRIBUS_API getVersionMinor();
 
 	//
 	// Returns the patch version of the Scribus application as an integer
 	//
-	int getVersionPatch();
+	int SCRIBUS_API getVersionPatch();
 
 	//
 	// Returns the suffix of version of the Scribus application as a string: blank or svn
 	//
-	QString getVersionSuffix();
+	QString SCRIBUS_API getVersionSuffix();
 
 	//
 	// Returns the word Scribus followed by the current version eg Scribus 1.5.7
 	//
-	QString getVersionScribus();
+	QString SCRIBUS_API getVersionScribus();
 
 	//
 	// Returns the word Scribus followed by the current version eg Scribus 1.5.7
 	//
-	QByteArray getVersionScribusAsByteArray();
+	QByteArray SCRIBUS_API getVersionScribusAsByteArray();
 
 	//
 	// Returns the word Scribus (translated) followed by the current version eg Scribus 1.5.7
 	//
-	QString getVersionScribusTranslated();
+	QString SCRIBUS_API getVersionScribusTranslated();
 
 	//
 	// Returns the word Scribus (translated) followed by the current version eg Scribus 1.5.7
 	//
-	QByteArray getVersionScribusTranslatedAsByteArray();
+	QByteArray SCRIBUS_API getVersionScribusTranslatedAsByteArray();
 
 	//
 	// Is this a development version, ie unreleased code from our version control system
 	//
-	bool isSVN();
+	bool SCRIBUS_API isSVN();
 
 	//
 	// Returns if we have created a string with the version control system revision
 	//
-	bool haveSVNRevision();
+	bool SCRIBUS_API haveSVNRevision();
 
 	//
 	// Returns the current version control system revision
 	//
-	QString getSVNRevision();
+	QString SCRIBUS_API getSVNRevision();
 }

Modified: trunk/Scribus/scribus/api/api_color.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24488&path=/trunk/Scribus/scribus/api/api_color.h
==============================================================================
--- trunk/Scribus/scribus/api/api_color.h	(original)
+++ trunk/Scribus/scribus/api/api_color.h	Mon Feb 15 19:37:18 2021
@@ -7,42 +7,44 @@
 
 #include <QString>
 
+#include "scribusapi.h"
+
 namespace ScribusAPI {
 
 	//
 	// Create a new color with CMYK values. Use integers for each channel (0-255)
 	//
-	bool createColorCMYK(const QString& name, int c, int m, int y, int k);
+	bool SCRIBUS_API createColorCMYK(const QString& name, int c, int m, int y, int k);
 
 	//
 	// Create a new color with CMYK values. Use decimals for each channel (0.0-1.0)
 	//
-	bool createColorCMYKFloat(const QString& name, double c, double m, double y, double k);
+	bool SCRIBUS_API createColorCMYKFloat(const QString& name, double c, double m, double y, double k);
 
 	//
 	// Create a new color with Lab values. Use decimals for each channel (0.0-1.0)
 	//
-	bool createColorLAB(const QString& name, double l, double a, double b);
+	bool SCRIBUS_API createColorLAB(const QString& name, double l, double a, double b);
 
 	//
 	// Create a new color with RGB values. Use integers for each channel (0-255)
 	//
-	bool createColorRGB(const QString& name, int r, int g, int b);
+	bool SCRIBUS_API createColorRGB(const QString& name, int r, int g, int b);
 
 	//
 	// Create a new color with CMYK values. Use decimals for each channel (0.0-1.0)
 	//
-	bool createColorRGBFloat(const QString& name, double r, double g, double b);
+	bool SCRIBUS_API createColorRGBFloat(const QString& name, double r, double g, double b);
 
 	//
 	// Delete color from list by its name
 	//
-	bool deleteColor(const QString& name);
+	bool SCRIBUS_API deleteColor(const QString& name);
 
 	//
 	// Check if a color exists by its name
 	//
-	bool existsColor(const QString& name, QString& error);
+	bool SCRIBUS_API existsColor(const QString& name, QString& error);
 
 	//
 	// Get a color by its name in CMYK format
@@ -72,17 +74,17 @@
 	//
 	// Get the list of color names in this document
 	//
-	QStringList getColorNames();
+	QStringList SCRIBUS_API getColorNames();
 
 	//
 	// Check if a named color is a spot color
 	//
-	bool isSpotColor(const QString& name);
+	bool SCRIBUS_API isSpotColor(const QString& name);
 
 	//
 	// Replace one named color by another
 	//
-	bool replaceColor(const QString& oldColorName, const QString& newColorName);
+	bool SCRIBUS_API replaceColor(const QString& oldColorName, const QString& newColorName);
 
 	//
 	// Set the color values to specified CMYK values
@@ -112,7 +114,7 @@
 	//
 	// Set a named color to be a spot color
 	//
-	bool setSpotColor(const QString& name);
+	bool SCRIBUS_API setSpotColor(const QString& name);
 
 }
 




More information about the scribus-commit mailing list