Registered Member
|
I've integrated kword as a kpart in my application but I found out that a few options like print, print preview, save ... aren't available when kword is used as a kpart. These options reside in the KoMainWindow class, since my MainWindow is derived from KParts::MainWindow and not KoMainWindow I didn't have access to the functions, so I created a new class with these functions that one can use when kword is used a kpart. In the Save function a KoFileDialog is used (for the save location and file type) but a strange error occures when linking occures
the code where this is used is ( straight from KoMainWindow ):
the full code is here http://pastebin.com/VLYdQxkH . Please tell me where to upload the files because I altered KWView.cpp in order to get this working. When running make for koffice with VERBOSE=1 I get:
So I can see that libkomain is linked and nm -C lib/libkomain.so.6.0.0 | grep KoFileDialog gives me:
so the symbols are there( however it says QString const& instead of const QString& like in the API documentation ) and when putting libs/main/CMakeFiles/komain.dir/KoFileDialog.o directly in the linking statement everything goes well. Can somebody explain this to me please GNU ld (GNU Binutils; openSUSE 11.2) 2.19.51.20090527-10.26.4 c++ (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839] |
Registered Member
|
In the pastebin code you'll see that I tried to add the actions in the actionCollection of my m_view, but these actions don't get called. I can see them in the GUI but clicking on them doesn't do anything. Is this the right way to add action to the actioncollection of the m_view object?
|
Registered Member
|
Somebody changed the subject to linking error of my own code against koffice. But this also occures when I add the code to KWView.cpp and thus without any code of mine but only kword and koffice codes.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]