odf: add config to main win
authorKonrad Rosenbaum <konrad@silmor.de>
Sun, 18 Aug 2013 19:37:21 +0000 (21:37 +0200)
committerKonrad Rosenbaum <konrad@silmor.de>
Sun, 18 Aug 2013 19:40:27 +0000 (21:40 +0200)
src/mwin/overview.cpp
src/mwin/overview.h

index b455c5a..4befc1d 100644 (file)
@@ -21,6 +21,7 @@
 #include "payedit.h"
 #include "orderauditdlg.h"
 #include "odfedit.h"
+#include "office.h"
 
 #include "aclwin.h"
 #include "carttab.h"
@@ -142,7 +143,8 @@ MOverview::MOverview(QString pk)
        m2->addAction(tr("&Server Access settings..."),this,SLOT(webSettings()));
        m2->addAction(tr("&Display settings..."),this,SLOT(displaySettings()));
        m2->addAction(tr("&Label Printing settings..."),this,SLOT(labelSettings()));
-       
+        m2->addAction(tr("&OpenOffice settings..."),this,SLOT(openOfficeSettings()));
+
        //make sure webrequest knows its settings
        webSettings(false);
        
@@ -599,6 +601,12 @@ void MOverview::labelSettings()
        MLabelConfig::configDialog();
 }
 
+void MOverview::openOfficeSettings()
+{
+        MOfficeConfig c(this);
+        c.exec();
+}
+
 void MOverview::aclWindow()
 {
        MAclWindow::showWindow(this);
index 1eb313e..619e605 100644 (file)
@@ -75,6 +75,8 @@ class MOverview:public MTabWin
                void backupSettings();
                ///label printing settings
                void labelSettings();
+                ///OpenOffice settings
+                void openOfficeSettings();
                
                ///\internal run init scripts
                void runStartupScript();