Branch libreoffice-5-0-4
[LibreOffice.git] / vcl / inc / dbggui.hxx
blobf0a29012ca21a75e2723b97e3b3bd455e565b749
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_VCL_INC_DBGGUI_HXX
21 #define INCLUDED_VCL_INC_DBGGUI_HXX
23 #ifdef DBG_UTIL
25 namespace vcl { class Window; }
27 void DbgGUIInitSolarMutexCheck();
28 void DbgGUIDeInitSolarMutexCheck();
29 void DbgGUIStart();
30 void DbgDialogTest( vcl::Window* pWindow );
32 #define DBGGUI_INIT_SOLARMUTEXCHECK() DbgGUIInitSolarMutexCheck()
33 #define DBGGUI_DEINIT_SOLARMUTEXCHECK() DbgGUIDeInitSolarMutexCheck()
34 #define DBGGUI_START() DbgGUIStart()
36 #define DBG_DIALOGTEST( pWindow ) \
37 if ( DbgIsDialog() ) \
38 DbgDialogTest( pWindow );
40 #else
42 #define DBGGUI_INIT_SOLARMUTEXCHECK()
43 #define DBGGUI_DEINIT_SOLARMUTEXCHECK()
44 #define DBGGUI_START()
46 #define DBG_DIALOGTEST( pWindow )
48 #endif
50 #endif // INCLUDED_VCL_INC_DBGGUI_HXX
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */