1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef GTV_MAIN_TOOLBAR_H
11 #define GTV_MAIN_TOOLBAR_H
17 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
19 #define GTV_TYPE_MAIN_TOOLBAR (gtv_main_toolbar_get_type())
20 #define GTV_MAIN_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTV_TYPE_MAIN_TOOLBAR, GtvMainToolbar))
21 #define GTV_IS_MAIN_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTV_TYPE_MAIN_TOOLBAR))
22 #define GTV_MAIN_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTV_TYPE_MAIN_TOOLBAR, GtvMainToolbarClass))
23 #define GTV_IS_MAIN_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTV_TYPE_MAIN_TOOLBAR))
24 #define GTV_MAIN_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTV_TYPE_MAIN_TOOLBAR, GtvMainToolbarClass))
30 GtkWidget
* m_pAddressbar
;
31 GtkWidget
* m_pFormulabar
;
32 GtkWidget
* m_pContentControlSelector
;
33 GtkWidget
* m_pContentControlDateSelector
;
36 struct GtvMainToolbarClass
38 GtkBoxClass parentClass
;
41 GType
gtv_main_toolbar_get_type (void) G_GNUC_CONST
;
43 GtkWidget
* gtv_main_toolbar_new();
45 GtkContainer
* gtv_main_toolbar_get_first_toolbar(GtvMainToolbar
* toolbar
);
47 GtkContainer
* gtv_main_toolbar_get_second_toolbar(GtvMainToolbar
* toolbar
);
49 void gtv_main_toolbar_set_sensitive_internal(GtvMainToolbar
* toolbar
, GtkToolItem
* pItem
, bool isSensitive
);
51 /// Use internal sensitivity map to set actual widget's sensitiveness
52 void gtv_main_toolbar_set_edit(GtvMainToolbar
* toolbar
, gboolean bEdit
);
54 void gtv_main_toolbar_doc_loaded(GtvMainToolbar
* toolbar
, LibreOfficeKitDocumentType eDocType
, bool bEditMode
);
56 void gtv_main_toolbar_add_recent_uno(GtvMainToolbar
* toolbar
, const std::string
& rUnoCmdStr
);
58 std::string
gtv_main_toolbar_get_recent_uno_args(GtvMainToolbar
* toolbar
, const std::string
& rUnoCmd
);
60 #endif /* GTV_MAIN_TOOLBAR_H */
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */