Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsModOdf.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2006-Today Guy Deleeuw
3 *
4 * See the LICENSE file for terms of use.
5 */
6 
7 #ifndef WsModOdf_H__
8 #define WsModOdf_H__ 1
9 
10 #include <Wt/WContainerWidget>
11 
12 #include <WsModule/WsModule.h>
13 
14 using namespace Wt;
15 
22 class WsOdf : public Wt::WContainerWidget, public WsOptions {
23 public :
24  WsOdf(Wt::WContainerWidget* parent = 0);
25  ~WsOdf();
26  void setDiffPath(const std::string& diffPath);
27  virtual void load();
28 
29 private :
30  std::string m_sDiffPath;
31 };
32 
33 
34 
35 
36 
37 class WsModOdf : public WsModule {
38 public :
40  WsModOdf();
41  ~WsModOdf();
42  Wt::WWidget* createContentsMenuBar(Wt::WContainerWidget* parent = 0) const;
43  Wt::WWidget* createContents(Wt::WContainerWidget* parent = 0) const;
44  WsEditorWidget* createEditor(Wt::WContainerWidget* parent = 0) const;
45  Wt::WWidget* createAdmin(Wt::WContainerWidget* parent = 0) const;
46  bool saveEditor() const;
47  std::string description() const;
48 
49 private :
50 };
51 
52 extern "C" {
53  // http://phoxis.org/2011/04/27/c-language-constructors-and-destructors-with-gcc/
54  void WsModOdfInit(void) __attribute__((constructor));
55 
57  {
58  return new WsModOdf();
59  }
60 }
61 
62 #endif // ifndef WsModOdf_H__
63 
void WsModOdfInit(void) __attribute__((constructor))
Definition: WsModOdf.cpp:21
std::string m_sDiffPath
Definition: WsModOdf.h:30
WsModOdf * buildModule()
Definition: WsModOdf.h:56
Definition: WsModOdf.h:22