LibreOffice Module sc (master)  1
xltracer.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XLTRACER_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XLTRACER_HXX
22 
23 #include <address.hxx>
24 #include <vector>
25 
26 // As Trace features become implemented, we can safely delete the enum entry as
27 // we use the member mnID to keep track of the actual trace tag ID value.
29 {
48 };
49 
51 class XclTracer final
52 {
53 public:
54  explicit XclTracer( const OUString& rDocUrl );
55  ~XclTracer();
56 
58  bool IsEnabled() const { return mbEnabled; }
59 
61  void ProcessTraceOnce(XclTracerId eProblem);
62 
63  void TraceInvalidAddress(const ScAddress& rPos, const ScAddress& rMaxPos);
64  void TraceInvalidRow( sal_uInt32 nRow, sal_uInt32 nMaxrow );
65  void TraceInvalidTab( SCTAB nTab, SCTAB nMaxTab);
66  void TracePrintRange();
67  void TraceDates(sal_uInt16 nNumFmt);
68  void TraceBorderLineStyle(bool bBorderLineStyle);
69  void TraceFillPattern(bool bFillPattern);
71  void TracePivotDataSource(bool bExternal);
72  void TracePivotChartExists();
73  void TraceChartUnKnownType();
74  void TraceChartOnlySheet();
75  void TraceChartDataTable();
79  void TraceDVType(bool bType);
80 
81 private:
82  bool mbEnabled;
84  std::vector<bool> maFirstTimes;
85 };
86 
87 #endif
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void TraceBorderLineStyle(bool bBorderLineStyle)
Definition: xltracer.cxx:74
This class wraps an MSFilterTracer to create trace logs for import/export filters.
Definition: xltracer.hxx:51
void TraceFillPattern(bool bFillPattern)
Definition: xltracer.cxx:80
XclTracer(const OUString &rDocUrl)
Definition: xltracer.cxx:28
unused but allows us to set the correct index
Definition: xltracer.hxx:31
~XclTracer()
Definition: xltracer.cxx:37
void TracePivotDataSource(bool bExternal)
Definition: xltracer.cxx:92
void TraceChartLegendPosition()
Definition: xltracer.cxx:114
void TraceDVType(bool bType)
Definition: xltracer.cxx:129
std::vector< bool > maFirstTimes
array of flags corresponding to each entry in the XclTracerDetails table.
Definition: xltracer.hxx:84
XclTracerId
Definition: xltracer.hxx:28
void TracePivotChartExists()
Definition: xltracer.cxx:98
void TraceObjectNotPrintable()
Definition: xltracer.cxx:127
void TraceInvalidRow(sal_uInt32 nRow, sal_uInt32 nMaxrow)
Definition: xltracer.cxx:53
void TraceInvalidTab(SCTAB nTab, SCTAB nMaxTab)
Definition: xltracer.cxx:59
void TraceFormulaMissingArg()
Definition: xltracer.cxx:86
bool mbEnabled
Definition: xltracer.hxx:82
void TraceChartOnlySheet()
Definition: xltracer.cxx:106
void ProcessTraceOnce(XclTracerId eProblem)
Ensure that particular traces are logged once per document.
Definition: xltracer.cxx:39
this should always be the final entry
Definition: xltracer.hxx:47
void TraceChartDataTable()
Definition: xltracer.cxx:108
bool IsEnabled() const
Returns true, if tracing is enabled.
Definition: xltracer.hxx:58
void TraceChartUnKnownType()
Definition: xltracer.cxx:104
void TraceInvalidAddress(const ScAddress &rPos, const ScAddress &rMaxPos)
Definition: xltracer.cxx:47
void TracePrintRange()
Definition: xltracer.cxx:65
void TraceUnsupportedObjects()
Definition: xltracer.cxx:121
void TraceDates(sal_uInt16 nNumFmt)
Definition: xltracer.cxx:67
sal_Int16 SCTAB
Definition: types.hxx:23