1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef CHART2_CHARTDEBUGTRACE_HXX
24 #define CHART2_CHARTDEBUGTRACE_HXX
25 
26 #include <com/sun/star/chart2/XChartDocument.hpp>
27 #include <com/sun/star/chart2/XDiagram.hpp>
28 #include "charttoolsdllapi.hxx"
29 
30 #define CHART_TRACE_OSL_DEBUG_LEVEL 2
31 
32 namespace chart
33 {
34 namespace debug
35 {
36 
37 #if OSL_DEBUG_LEVEL >= CHART_TRACE_OSL_DEBUG_LEVEL
38 /** Does several OSL_TRACEs that show information about the given chart document
39     (e.g. the chart-type manager, diagrams etc.)
40 
41     If OSL_DEBUG_LEVEL is less than CHART_TRACE_OSL_DEBUG_LEVEL this
42     function does nothing.
43  */
44 OOO_DLLPUBLIC_CHARTTOOLS void ChartDebugTraceDocument(
45     const ::com::sun::star::uno::Reference<
46         ::com::sun::star::chart2::XChartDocument > & xDoc,
47     int nIndent = 0 );
48 
49 /** Does several OSL_TRACEs that show information about the given diagram
50     (e.g. coordinate systems, data series etc.)
51 
52     If OSL_DEBUG_LEVEL is less than CHART_TRACE_OSL_DEBUG_LEVEL this
53     function does nothing.
54  */
55 OOO_DLLPUBLIC_CHARTTOOLS void ChartDebugTraceDiagram(
56     const ::com::sun::star::uno::Reference<
57         ::com::sun::star::chart2::XDiagram > & xDiagram,
58     int nIndent = 0 );
59 #endif
60 
61 } // namespace debug
62 } //  namespace chart
63 
64 // CHART2_CHARTDEBUGTRACE_HXX
65 #endif
66