Fix typos
Change-Id: Ic943746614b894690768d0d6109123c1af819c52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118081 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
This commit is contained in:
@@ -572,7 +572,7 @@ void SvxNumberFormat::SetListFormat(const OUString& rPrefix, const OUString& rSu
|
||||
{
|
||||
int nLevelId = nLevel - nInclUpperLevels + i;
|
||||
if (nLevelId < 0)
|
||||
// There can be cases with curent level 1, but request to show 10 upper levels. Trim it
|
||||
// There can be cases with current level 1, but request to show 10 upper levels. Trim it
|
||||
continue;
|
||||
|
||||
*sListFormat += "%";
|
||||
|
||||
@@ -171,7 +171,7 @@ public:
|
||||
const OUString& GetPrefix() const { return sPrefix;}
|
||||
void SetSuffix(const OUString& rSet) { sSuffix = rSet;}
|
||||
const OUString& GetSuffix() const { return sSuffix;}
|
||||
// Based on prefix and suffix ininialize them (for backward compatibility) and generate listformat string
|
||||
// Based on prefix and suffix initialize them (for backward compatibility) and generate listformat string
|
||||
void SetListFormat(const OUString& rPrefix, const OUString& rSuffix, int nLevel);
|
||||
void SetListFormat(std::optional<OUString> oSet = std::nullopt);
|
||||
bool HasListFormat() const { return sListFormat.has_value(); }
|
||||
|
||||
@@ -52,7 +52,7 @@ DECLARE_ODFEXPORT_TEST(testTdf137199, "tdf137199.docx")
|
||||
|
||||
DECLARE_ODFEXPORT_TEST(testListFormatDocx, "listformat.docx")
|
||||
{
|
||||
// Ensure in resulting ODT we also have not just prefix/suffux, but custom delimiters
|
||||
// Ensure in resulting ODT we also have not just prefix/suffix, but custom delimiters
|
||||
CPPUNIT_ASSERT_EQUAL(OUString(">1<"), getProperty<OUString>(getParagraph(1), "ListLabelString"));
|
||||
CPPUNIT_ASSERT_EQUAL(OUString(">>1/1<<"), getProperty<OUString>(getParagraph(2), "ListLabelString"));
|
||||
CPPUNIT_ASSERT_EQUAL(OUString(">>1/1/1<<"), getProperty<OUString>(getParagraph(3), "ListLabelString"));
|
||||
@@ -84,7 +84,7 @@ DECLARE_ODFEXPORT_TEST(testListFormatDocx, "listformat.docx")
|
||||
|
||||
DECLARE_ODFEXPORT_TEST(testListFormatOdt, "listformat.odt")
|
||||
{
|
||||
// Ensure in resulting ODT we also have not just prefix/suffux, but custom delimiters
|
||||
// Ensure in resulting ODT we also have not just prefix/suffix, but custom delimiters
|
||||
CPPUNIT_ASSERT_EQUAL(OUString(">1<"), getProperty<OUString>(getParagraph(1), "ListLabelString"));
|
||||
CPPUNIT_ASSERT_EQUAL(OUString(">>1.1<<"), getProperty<OUString>(getParagraph(2), "ListLabelString"));
|
||||
CPPUNIT_ASSERT_EQUAL(OUString(">>1.1.1<<"), getProperty<OUString>(getParagraph(3), "ListLabelString"));
|
||||
|
||||
@@ -1790,7 +1790,7 @@ OOXMLFastContextHandlerShape::lcl_createFastChildContext
|
||||
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
|
||||
{
|
||||
// we need to share a single theme across all the shapes, but we parse it
|
||||
// in ShapeContextHandler. So if it has been parsed there, propogate it to
|
||||
// in ShapeContextHandler. So if it has been parsed there, propagate it to
|
||||
// the document.
|
||||
if (mrShapeContext && mrShapeContext->getTheme() && !getDocument()->getTheme())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user