summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/inspectorvalues.hrc25
-rw-r--r--svx/source/sidebar/inspector/InspectorTextPanel.cxx4
2 files changed, 28 insertions, 1 deletions
diff --git a/svx/inc/inspectorvalues.hrc b/svx/inc/inspectorvalues.hrc
new file mode 100644
index 000000000000..2a6c0d8cb03c
--- /dev/null
+++ b/svx/inc/inspectorvalues.hrc
@@ -0,0 +1,25 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#pragma once
+
+#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
+#define NNC_(Context, StringSingular, StringPlural) reinterpret_cast<char const *>(Context "\004" u8##StringSingular "\004" u8##StringPlural)
+
+/*--------------------------------------------------------------------
+ Description: API names for Paragraph, Character
+ and Text cursor values
+ --------------------------------------------------------------------*/
+
+// Node names
+#define RID_FALSE NC_("RID_ATTRIBUTE_NAMES_MAP", "False")
+#define RID_TRUE NC_("RID_ATTRIBUTE_NAMES_MAP", "True")
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/sidebar/inspector/InspectorTextPanel.cxx b/svx/source/sidebar/inspector/InspectorTextPanel.cxx
index 4eb4a4889f8c..7c713696320a 100644
--- a/svx/source/sidebar/inspector/InspectorTextPanel.cxx
+++ b/svx/source/sidebar/inspector/InspectorTextPanel.cxx
@@ -20,12 +20,14 @@
#include <sal/config.h>
#include <string_view>
+#include <svx/dialmgr.hxx>
#include <svx/sidebar/InspectorTextPanel.hxx>
#include <svl/languageoptions.hxx>
#include <com/sun/star/awt/FontSlant.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
+#include <inspectorvalues.hrc>
using namespace css;
@@ -68,7 +70,7 @@ static bool GetPropertyValues(const OUString& rPropName, const uno::Any& rAny, O
if (bool bValue; rAny >>= bValue)
{
- rString = OUString::boolean(bValue);
+ rString = SvxResId(bValue ? RID_TRUE : RID_FALSE); // tdf#139136
}
else if (OUString aValue; (rAny >>= aValue) && !(aValue.isEmpty()))
{