File oooqs-1.0_rc3-start-instance.patch of Package OpenOffice_org-Quickstarter
--- oooqs/oooqs.cpp
+++ oooqs/oooqs.cpp
@@ -207,31 +207,31 @@
}
/** Starts OpenOffice.org Calc with a new file */
void OooQs::startCalc(){
- startInstances("private:factory/scalc");
+ startInstances("-calc");
}
/** Starts OpenOffice.org Draw with a new file */
void OooQs::startDraw(){
- startInstances("private:factory/sdraw");
+ startInstances("-draw");
}
/** Starts OpenOffice.org Impress with a new file */
void OooQs::startImpress(){
- startInstances("private:factory/simpress");
+ startInstances("-impress");
}
/** Starts OpenOffice.org Global with a new file */
void OooQs::startGlobal(){
- startInstances("private:factory/swriter");
+ startInstances("-writer");
}
/** Starts OpenOffice.org Math with a new file */
void OooQs::startMath(){
- startInstances("private:factory/smath");
+ startInstances("-math");
}
/** Starts OpenOffice.org Writer with a new file */
void OooQs::startWriter(){
- startInstances("private:factory/swriter");
+ startInstances("-writer");
}
/** Starts OpenOffice.org Web with a new file */
void OooQs::startWeb(){
- startInstances("private:factory/swriter/web");
+ startInstances("-web");
}
/** Restarts OpenOffice if removed from memory and try to wait if an other OOo isntance is already running */
--- oooqs/opendialog.cpp
+++ oooqs/opendialog.cpp
@@ -275,25 +275,25 @@
QStringList command;
if (activePageIndex() == pageIndex((QVBox*)newDocView->parent())){
if (newDocView->selectedItem() == calc){
- command = "private:factory/scalc";
+ command = "-calc";
}
if (newDocView->selectedItem() == draw){
- command = "private:factory/sdraw";
+ command = "-draw";
}
if (newDocView->selectedItem() == impress){
- command = "private:factory/simpress";
+ command = "-impress";
}
if (newDocView->selectedItem() == global){
- command = "private:factory/swriter";
+ command = "-writer";
}
if (newDocView->selectedItem() == math){
- command = "private:factory/smath";
+ command = "-math";
}
if (newDocView->selectedItem() == web){
- command = "private:factory/swriter/web";
+ command = "-web";
}
if (newDocView->selectedItem() == writer){
- command = "private:factory/swriter";
+ command = "-writer";
}
}
if (activePageIndex() == pageIndex((QVBox*)wizardView->parent())){