10#include <rtl/ustring.hxx>
16#include <config_options_calc.h>
34#if ENABLE_FORMULA_LOGGER
41 std::unique_ptr<osl::File> mpLogFile;
43 sal_Int32 mnNestLevel = 0;
46 void writeAscii(
const char* s );
47 void writeAscii(
const char* s,
size_t n );
48 void write( std::u16string_view ou );
49 void write( sal_Int32 n );
53 void writeNestLevel();
57 static FormulaLogger&
get();
64 friend class FormulaLogger;
67 std::unique_ptr<Impl> mpImpl;
70 GroupScope() =
delete;
71 GroupScope(
const GroupScope& ) =
delete;
72 GroupScope& operator= (
const GroupScope& ) =
delete;
76 FormulaLogger& rLogger,
const OUString& rPrefix,
78 bool bOutputEnabled );
81 GroupScope(GroupScope&& r)
noexcept;
103 const std::vector<formula::VectorRefArray>& rArrays );
120 FormulaLogger(
const FormulaLogger& ) =
delete;
121 FormulaLogger& operator= (
const FormulaLogger& ) =
delete;
146 void addMessage( [[maybe_unused]]
const OUString& ) { (void)
this; }
157 const std::vector<formula::VectorRefArray>& )
CAUTION! The following defines must be in the same namespace as the respective type.