loplugin:stringliteraldefine in starmath
Change-Id: I539dbb8eaa21604401709d3b6e19433474056902 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126406 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -41,7 +41,7 @@ class SmCursor;
|
||||
namespace oox::formulaimport { class XmlStream; }
|
||||
|
||||
#define STAROFFICE_XML "StarOffice XML (Math)"
|
||||
#define MATHML_XML "MathML XML (Math)"
|
||||
inline constexpr OUStringLiteral MATHML_XML = u"MathML XML (Math)";
|
||||
|
||||
/* Access to printer should happen through this class only
|
||||
* ==========================================================================
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
#include "types.hxx"
|
||||
|
||||
|
||||
#define FNTNAME_TIMES "Times New Roman"
|
||||
#define FNTNAME_HELV "Helvetica"
|
||||
#define FNTNAME_COUR "Courier"
|
||||
inline constexpr OUStringLiteral FNTNAME_TIMES = u"Times New Roman";
|
||||
inline constexpr OUStringLiteral FNTNAME_HELV = u"Helvetica";
|
||||
inline constexpr OUStringLiteral FNTNAME_COUR = u"Courier";
|
||||
#define FNTNAME_MATH FONTNAME_MATH
|
||||
|
||||
|
||||
|
||||
@@ -19,10 +19,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HID_SMA_WIN_DOCUMENT "STARMATH_HID_SMA_WIN_DOCUMENT"
|
||||
#define HID_SMA_COMMAND_WIN_EDIT "STARMATH_HID_SMA_COMMAND_WIN_EDIT"
|
||||
#include <rtl/string.hxx>
|
||||
|
||||
#define HID_SMA_COMMAND_WIN "STARMATH_HID_SMA_COMMAND_WIN"
|
||||
inline constexpr OStringLiteral HID_SMA_WIN_DOCUMENT = "STARMATH_HID_SMA_WIN_DOCUMENT";
|
||||
inline constexpr OStringLiteral HID_SMA_COMMAND_WIN_EDIT = "STARMATH_HID_SMA_COMMAND_WIN_EDIT";
|
||||
|
||||
inline constexpr OStringLiteral HID_SMA_COMMAND_WIN = "STARMATH_HID_SMA_COMMAND_WIN";
|
||||
|
||||
#define HID_SMA_DEFAULT_DIST "STARMATH_HID_SMA_DEFAULT_DIST"
|
||||
#define HID_SMA_LINE_DIST "STARMATH_HID_SMA_LINE_DIST"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define RID_UNDOFORMATNAME "Format"
|
||||
inline constexpr OUStringLiteral RID_UNDOFORMATNAME = u"Format";
|
||||
|
||||
// clang-format off
|
||||
#define RID_PLUSX "+<?> "
|
||||
|
||||
@@ -20,7 +20,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <sal/types.h>
|
||||
#define FONTNAME_MATH "OpenSymbol"
|
||||
#include <rtl/ustring.hxx>
|
||||
|
||||
inline constexpr OUStringLiteral FONTNAME_MATH = u"OpenSymbol";
|
||||
|
||||
enum SmPrintSize
|
||||
{
|
||||
|
||||
@@ -28,11 +28,11 @@
|
||||
#include <oox/mathml/export.hxx>
|
||||
#include <oox/mathml/import.hxx>
|
||||
|
||||
#define PRTUIOPT_TITLE_ROW "TitleRow"
|
||||
#define PRTUIOPT_FORMULA_TEXT "FormulaText"
|
||||
#define PRTUIOPT_BORDER "Border"
|
||||
#define PRTUIOPT_PRINT_FORMAT "PrintFormat"
|
||||
#define PRTUIOPT_PRINT_SCALE "PrintScale"
|
||||
inline constexpr OUStringLiteral PRTUIOPT_TITLE_ROW = u"TitleRow";
|
||||
inline constexpr OUStringLiteral PRTUIOPT_FORMULA_TEXT = u"FormulaText";
|
||||
inline constexpr OUStringLiteral PRTUIOPT_BORDER = u"Border";
|
||||
inline constexpr OUStringLiteral PRTUIOPT_PRINT_FORMAT = u"PrintFormat";
|
||||
inline constexpr OUStringLiteral PRTUIOPT_PRINT_SCALE = u"PrintScale";
|
||||
|
||||
class SmPrintUIOptions : public vcl::PrinterOptionsHelper
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user