r22049 by jghali - #14816: add some pdf annotation python functions for scripting <dockattt>
scribus-commit
scribus-commit at lists.scribus.net
Mon May 29 20:42:19 UTC 2017
Author: jghali
Date: Mon May 29 20:42:19 2017
New Revision: 22049
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22049
Log:
#14816: add some pdf annotation python functions for scripting <dockattt>
Added:
trunk/Scribus/scribus/plugins/scriptplugin/cmdannotations.cpp
trunk/Scribus/scribus/plugins/scriptplugin/cmdannotations.h
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/CMakeLists.txt
trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj
trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj.filters
Modified: trunk/Scribus/scribus/plugins/scriptplugin/CMakeLists.txt
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22049&path=/trunk/Scribus/scribus/plugins/scriptplugin/CMakeLists.txt
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/CMakeLists.txt (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/CMakeLists.txt Mon May 29 20:42:19 2017
@@ -27,6 +27,7 @@
)
set(SCRIPTER_PLUGIN_SOURCES
+ cmdannotations.cpp
cmdcell.cpp
cmdcolor.cpp
cmddialog.cpp
Modified: trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22049&path=/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp Mon May 29 20:42:19 2017
@@ -22,6 +22,7 @@
***************************************************************************/
// include cmdvar.h first, as it pulls in <Python.h>
+#include "cmdannotations.h"
#include "cmdvar.h"
#include "cmdcell.h"
#include "cmdcolor.h"
@@ -572,6 +573,12 @@
// Internal methods - Not for public use
{const_cast<char*>("retval"), (PyCFunction)scribus_retval, METH_VARARGS, const_cast<char*>("Scribus internal.")},
{const_cast<char*>("getval"), (PyCFunction)scribus_getval, METH_NOARGS, const_cast<char*>("Scribus internal.")},
+ {const_cast<char*>("setLinkAnnotation"), scribus_setlinkannotation, METH_VARARGS,tr(scribus_setlinkannotation__doc__)},
+ {const_cast<char*>("setFileAnnotation"), (PyCFunction)scribus_setfileannotation, METH_VARARGS|METH_KEYWORDS,tr(scribus_setfileannotation__doc__)},
+ {const_cast<char*>("setURIAnnotation"), scribus_seturiannotation, METH_VARARGS,tr(scribus_seturiannotation__doc__)},
+ {const_cast<char*>("setTextAnnotation"), scribus_settextannotation, METH_VARARGS,tr(scribus_settextannotation__doc__)},
+ {const_cast<char*>("createPdfAnnotation"), scribus_createpdfannotation, METH_VARARGS,tr(scribus_createpdfannotation__doc__)},
+ {const_cast<char*>("isAnnotated"),(PyCFunction)scribus_isannotated, METH_VARARGS|METH_KEYWORDS,tr(scribus_isannotated__doc__)},
{NULL, (PyCFunction)(0), 0, NULL} /* sentinel */
};
Modified: trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22049&path=/trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj
==============================================================================
--- trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj (original)
+++ trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj Mon May 29 20:42:19 2017
@@ -204,6 +204,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
+ <ClCompile Include="..\..\..\scribus\plugins\scriptplugin\cmdannotations.cpp" />
<ClCompile Include="..\..\..\scribus\plugins\scriptplugin\cmdcell.cpp" />
<ClCompile Include="..\..\..\scribus\plugins\scriptplugin\cmdcolor.cpp" />
<ClCompile Include="..\..\..\scribus\plugins\scriptplugin\cmddialog.cpp" />
@@ -242,6 +243,7 @@
<ClCompile Include="..\..\..\scribus\plugins\scriptplugin\svgimport.cpp" />
</ItemGroup>
<ItemGroup>
+ <ClInclude Include="..\..\..\scribus\plugins\scriptplugin\cmdannotations.h" />
<ClInclude Include="..\..\..\scribus\plugins\scriptplugin\cmdcell.h" />
<ClInclude Include="..\..\..\scribus\plugins\scriptplugin\cmdcolor.h" />
<ClInclude Include="..\..\..\scribus\plugins\scriptplugin\cmddialog.h" />
Modified: trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj.filters
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22049&path=/trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj.filters
==============================================================================
--- trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj.filters (original)
+++ trunk/Scribus/win32/vc11/scriptplugin/scriptplugin.vcxproj.filters Mon May 29 20:42:19 2017
@@ -99,6 +99,9 @@
<ClCompile Include="..\..\..\scribus\plugins\scriptplugin\svgimport.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="..\..\..\scribus\plugins\scriptplugin\cmdannotations.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\scribus\plugins\scriptplugin\cmdcell.h">
@@ -179,6 +182,9 @@
<ClInclude Include="..\..\..\scribus\plugins\scriptplugin\ui_scripterprefsgui.h">
<Filter>Generated Form Files</Filter>
</ClInclude>
+ <ClInclude Include="..\..\..\scribus\plugins\scriptplugin\cmdannotations.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<uic Include="..\..\..\scribus\plugins\scriptplugin\pconsole.ui">
More information about the scribus-commit
mailing list