12 #include <Wt/WApplication>
23 void* hndl = dlopen(
"libwt.so", RTLD_NOW | RTLD_GLOBAL);
25 fprintf(stderr,
"cannot load libwt.so shared library! %s\n", dlerror());
32 : WContainerWidget(parent)
45 WContainerWidget::load();
47 resize(WLength(100, WLength::Percentage), WLength(100, WLength::Percentage));
48 setOverflow(WContainerWidget::OverflowAuto);
49 std::string p1 = Wt::WApplication::instance()->internalPath();
54 std::string javaScript =
"var odfelement = document.getElementById('odf'); odfcanvas = new odf.OdfCanvas(odfelement); odfcanvas.load('";
57 WApplication::instance()->doJavaScript(javaScript);
72 WApplication::instance()->useStyleSheet(WApplication::instance()->resourcesUrl() +
"webodf/webodf.css");
74 WApplication::instance()->require(WApplication::instance()->resourcesUrl() +
"webodf/webodf.js",
"webodf");
111 return "WsModOdf wittyShare module";
const std::string & diffPath() const
void setDiffPath(const std::string &diffPath)
Wt::WWidget * createAdmin(Wt::WContainerWidget *parent=0) const
Create the contents for an administrator.
const std::vector< WsOption > & options() const
Get all options.
WsOdf(Wt::WContainerWidget *parent=0)
std::string description() const
Return the description of the module.
Wt::WWidget * createContents(Wt::WContainerWidget *parent=0) const
Create the contents.
WsEditorWidget * createEditor(Wt::WContainerWidget *parent=0) const
Create the contents for an editor (create a view of options).
Wt::WWidget * createContentsMenuBar(Wt::WContainerWidget *parent=0) const
Create the functionalities.
void setOptions(const std::vector< WsOption > &vOptions)
Set all options.