diff options
author | Pranav Kant <pranavk@gnome.org> | 2015-06-06 02:32:54 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-09 10:44:23 +0200 |
commit | c8caa803b43d7091318f1129b7b4cc7ee417c336 (patch) | |
tree | af17afb6189b4305ba31770f0e65cce9571174a5 /include | |
parent | 1493e66bfbceb2e57d069c0a0dbcfa64f7043da9 (diff) |
lokdocview: Lets follow the GObject naming convention
If we are mentioning this type as DocView, we should break it at each
capital letter.
Change-Id: I76c7eea455281e541b2196a03778018aa127cebe
Diffstat (limited to 'include')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitGtk.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h index 9668904b0230..069c565435bb 100644 --- a/include/LibreOfficeKit/LibreOfficeKitGtk.h +++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h @@ -18,9 +18,9 @@ G_BEGIN_DECLS -#define LOK_DOCVIEW(obj) GTK_CHECK_CAST (obj, lok_docview_get_type(), LOKDocView) -#define LOK_DOCVIEW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, lok_docview_get_type(), LOKDocViewClass) -#define IS_LOK_DOCVIEW(obj) GTK_CHECK_TYPE (obj, lok_docview_get_type()) +#define LOK_DOC_VIEW(obj) GTK_CHECK_CAST (obj, lok_doc_view_get_type(), LOKDocView) +#define LOK_DOC_VIEW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, lok_doc_view_get_type(), LOKDocViewClass) +#define IS_LOK_DOC_VIEW(obj) GTK_CHECK_TYPE (obj, lok_doc_view_get_type()) typedef struct _LOKDocView LOKDocView; typedef struct _LOKDocViewClass LOKDocViewClass; @@ -40,40 +40,40 @@ struct _LOKDocViewClass void (* part_changed) (LOKDocView* pView, int new_part); }; -guint lok_docview_get_type (void); -GtkWidget* lok_docview_new ( LibreOfficeKit* pOffice ); -gboolean lok_docview_open_document (LOKDocView* pDocView, +guint lok_doc_view_get_type (void); +GtkWidget* lok_doc_view_new ( LibreOfficeKit* pOffice ); +gboolean lok_doc_view_open_document (LOKDocView* pDocView, char* pPath); /// Gets the document the viewer displays. -LibreOfficeKitDocument* lok_docview_get_document(LOKDocView* pDocView); +LibreOfficeKitDocument* lok_doc_view_get_document(LOKDocView* pDocView); -void lok_docview_set_zoom (LOKDocView* pDocView, +void lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom); -float lok_docview_get_zoom (LOKDocView* pDocView); +float lok_doc_view_get_zoom (LOKDocView* pDocView); -int lok_docview_get_parts (LOKDocView* pDocView); -int lok_docview_get_part (LOKDocView* pDocView); -void lok_docview_set_part (LOKDocView* pDocView, +int lok_doc_view_get_parts (LOKDocView* pDocView); +int lok_doc_view_get_part (LOKDocView* pDocView); +void lok_doc_view_set_part (LOKDocView* pDocView, int nPart); -char* lok_docview_get_part_name (LOKDocView* pDocView, +char* lok_doc_view_get_part_name (LOKDocView* pDocView, int nPart); -void lok_docview_set_partmode (LOKDocView* pDocView, +void lok_doc_view_set_partmode (LOKDocView* pDocView, int nPartMode); /// Sets if the viewer is actually an editor or not. -void lok_docview_set_edit (LOKDocView* pDocView, +void lok_doc_view_set_edit (LOKDocView* pDocView, gboolean bEdit); /// Gets if the viewer is actually an editor or not. -gboolean lok_docview_get_edit (LOKDocView* pDocView); +gboolean lok_doc_view_get_edit (LOKDocView* pDocView); /// Posts the .uno: command to the LibreOfficeKit. -void lok_docview_post_command (LOKDocView* pDocView, const char* pCommand, const char* pArguments); +void lok_doc_view_post_command (LOKDocView* pDocView, const char* pCommand, const char* pArguments); /// Posts a keyboard event to LibreOfficeKit. -void lok_docview_post_key (GtkWidget* pWidget, GdkEventKey* pEvent, gpointer pData); +void lok_doc_view_post_key (GtkWidget* pWidget, GdkEventKey* pEvent, gpointer pData); /// Get the visible area of the document (in twips). -void lok_docview_get_visarea(LOKDocView* pThis, GdkRectangle* pArea); +void lok_doc_view_get_visarea(LOKDocView* pThis, GdkRectangle* pArea); G_END_DECLS |