r17902 by fschmid - Fixed Bug #11150: PDF Forms: Better default field name for checkboxes etc.

scribus-commit scribus-commit at lists.scribus.net
Sat Nov 24 11:02:06 UTC 2012


Author: fschmid
Date: Sat Nov 24 11:02:06 2012
New Revision: 17902

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17902
Log:
Fixed Bug #11150: PDF Forms: Better default field name for checkboxes etc.

Modified:
    trunk/Scribus/scribus/canvasmode_create.cpp

Modified: trunk/Scribus/scribus/canvasmode_create.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17902&path=/trunk/Scribus/scribus/canvasmode_create.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_create.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_create.cpp Sat Nov 24 11:02:06 2012
@@ -738,27 +738,34 @@
 		case modeInsertPDFButton:
 			currItem->annotation().setType(2);
 			currItem->annotation().setFlag(65536);
+			currItem->setItemName( tr("Button") + QString("%1").arg(m_doc->TotalItems));
 			break;
 		case modeInsertPDFTextfield:
 			currItem->annotation().setType(3);
+			currItem->setItemName( tr("Textfield") + QString("%1").arg(m_doc->TotalItems));
 			break;
 		case modeInsertPDFCheckbox:
 			currItem->annotation().setType(4);
+			currItem->setItemName( tr("Checkbox") + QString("%1").arg(m_doc->TotalItems));
 			break;
 		case modeInsertPDFCombobox:
 			currItem->annotation().setType(5);
 			currItem->annotation().setFlag(131072);
+			currItem->setItemName( tr("Combobox") + QString("%1").arg(m_doc->TotalItems));
 			break;
 		case modeInsertPDFListbox:
 			currItem->annotation().setType(6);
+			currItem->setItemName( tr("Listbox") + QString("%1").arg(m_doc->TotalItems));
 			break;
 		case modeInsertPDFTextAnnotation:
 			currItem->annotation().setType(10);
+			currItem->setItemName( tr("TextAnnot") + QString("%1").arg(m_doc->TotalItems));
 			break;
 		case modeInsertPDFLinkAnnotation:
 			currItem->annotation().setType(11);
 			currItem->annotation().setZiel(m_doc->currentPage()->pageNr());
 			currItem->annotation().setAction("0 0");
+			currItem->setItemName( tr("Link") + QString("%1").arg(m_doc->TotalItems));
 			currItem->setTextFlowMode(PageItem::TextFlowDisabled);
 			break;
 		}
@@ -824,6 +831,7 @@
 		currItem->setIsAnnotation(true);
 		currItem->AutoName = false;
 		currItem->annotation().setType(12);
+		currItem->setItemName( tr("3DAnnot") + QString("%1").arg(m_doc->TotalItems));
 		break;
 	}
 	if (z >= 0)




More information about the scribus-commit mailing list