This post has been edited 2 times, last edit by "f_edemar" (Jul 4th 2004, 7:23pm)
Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
KService::Ptr ptr = KServiceTypeProfile::preferredService("application/x-kword", "KOfficePart"); if (ptr) { KLibFactory* factory = KLibLoader::self()->factory(ptr->library()); if (factory) { KParts::ReadWritePart* part = dynamic_cast<KParts::ReadWritePart*>(factory->create(this, ptr->name(), "KParts::ReadWritePart")); if (!part) { KMessageBox::error(this, "Could not create part"); return; } } } |
Forum Software: Burning Board®, developed by WoltLab® GmbH
Linux Computer - Linux Forum -
Linux Computer und Notebooks - Lastminute - Wasserbetten & Whirlpools