r19511 by jghali - #12706: Tables options are available with no document open

scribus-commit scribus-commit at lists.scribus.net
Fri Sep 19 00:53:56 UTC 2014


Author: jghali
Date: Fri Sep 19 00:53:56 2014
New Revision: 19511

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19511
Log:
#12706: Tables options are available with no document open

Modified:
    trunk/Scribus/scribus/appmodehelper.cpp

Modified: trunk/Scribus/scribus/appmodehelper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19511&path=/trunk/Scribus/scribus/appmodehelper.cpp
==============================================================================
--- trunk/Scribus/scribus/appmodehelper.cpp (original)
+++ trunk/Scribus/scribus/appmodehelper.cpp Fri Sep 19 00:53:56 2014
@@ -1008,6 +1008,21 @@
 	(*a_scrActions)["itemConvertToSymbolFrame"]->setEnabled(false);
 	(*a_scrActions)["itemLock"]->setEnabled(false);
 	(*a_scrActions)["itemLockSize"]->setEnabled(false);
+
+	(*a_scrActions)["tableInsertRows"]->setEnabled(false);
+	(*a_scrActions)["tableInsertColumns"]->setEnabled(false);
+	(*a_scrActions)["tableDeleteRows"]->setEnabled(false);
+	(*a_scrActions)["tableDeleteColumns"]->setEnabled(false);
+	(*a_scrActions)["tableMergeCells"]->setEnabled(false);
+	(*a_scrActions)["tableSplitCells"]->setEnabled(false); // Not implemented.
+	(*a_scrActions)["tableSetRowHeights"]->setEnabled(false);
+	(*a_scrActions)["tableSetColumnWidths"]->setEnabled(false);
+	(*a_scrActions)["tableDistributeRowsEvenly"]->setEnabled(false);
+	(*a_scrActions)["tableDistributeColumnsEvenly"]->setEnabled(false);
+	(*a_scrActions)["tableDistributeRowsEvenly"]->setEnabled(false);
+	(*a_scrActions)["tableDistributeColumnsEvenly"]->setEnabled(false);
+	(*a_scrActions)["tableAdjustFrameToTable"]->setEnabled(false);
+	(*a_scrActions)["tableAdjustTableToFrame"]->setEnabled(false);
 }
 
 void AppModeHelper::setPreviewMode(bool b)
@@ -1169,5 +1184,20 @@
 #ifdef HAVE_OSG
 	(*a_scrActions)["toolsPDFAnnot3D"]->setEnabled(false);
 #endif
-}
-
+
+	(*a_scrActions)["tableInsertRows"]->setEnabled(false);
+	(*a_scrActions)["tableInsertColumns"]->setEnabled(false);
+	(*a_scrActions)["tableDeleteRows"]->setEnabled(false);
+	(*a_scrActions)["tableDeleteColumns"]->setEnabled(false);
+	(*a_scrActions)["tableMergeCells"]->setEnabled(false);
+	(*a_scrActions)["tableSplitCells"]->setEnabled(false); // Not implemented.
+	(*a_scrActions)["tableSetRowHeights"]->setEnabled(false);
+	(*a_scrActions)["tableSetColumnWidths"]->setEnabled(false);
+	(*a_scrActions)["tableDistributeRowsEvenly"]->setEnabled(false);
+	(*a_scrActions)["tableDistributeColumnsEvenly"]->setEnabled(false);
+	(*a_scrActions)["tableDistributeRowsEvenly"]->setEnabled(false);
+	(*a_scrActions)["tableDistributeColumnsEvenly"]->setEnabled(false);
+	(*a_scrActions)["tableAdjustFrameToTable"]->setEnabled(false);
+	(*a_scrActions)["tableAdjustTableToFrame"]->setEnabled(false);
+}
+




More information about the scribus-commit mailing list