/src/libreoffice/vcl/source/weld/Assistant.cxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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/. |
8 | | */ |
9 | | |
10 | | #include <vcl/weld/Assistant.hxx> |
11 | | |
12 | | namespace weld |
13 | | { |
14 | | void Assistant::set_current_page(int nPage) |
15 | 0 | { |
16 | 0 | disable_notify_events(); |
17 | 0 | do_set_current_page(nPage); |
18 | 0 | enable_notify_events(); |
19 | 0 | } |
20 | | |
21 | | void Assistant::set_current_page(const OUString& rIdent) |
22 | 0 | { |
23 | 0 | disable_notify_events(); |
24 | 0 | do_set_current_page(rIdent); |
25 | 0 | enable_notify_events(); |
26 | 0 | } |
27 | | |
28 | | void Assistant::set_page_index(const OUString& rIdent, int nIndex) |
29 | 0 | { |
30 | 0 | disable_notify_events(); |
31 | 0 | do_set_page_index(rIdent, nIndex); |
32 | 0 | enable_notify_events(); |
33 | 0 | } |
34 | | |
35 | | void Assistant::set_page_title(const OUString& rIdent, const OUString& rTitle) |
36 | 0 | { |
37 | 0 | disable_notify_events(); |
38 | 0 | do_set_page_title(rIdent, rTitle); |
39 | 0 | enable_notify_events(); |
40 | 0 | } |
41 | | |
42 | | void Assistant::set_page_sensitive(const OUString& rIdent, bool bSensitive) |
43 | 0 | { |
44 | 0 | disable_notify_events(); |
45 | 0 | do_set_page_sensitive(rIdent, bSensitive); |
46 | 0 | enable_notify_events(); |
47 | 0 | } |
48 | | } |
49 | | |
50 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |