[Libreoffice-commits] core.git: vcl/qa

2021-06-10 Thread panoskorovesis (via logerrit)
 vcl/qa/cppunit/svm/data/intersectrectclipregion.svm   |binary
 vcl/qa/cppunit/svm/data/intersectregionclipregion.svm |binary
 vcl/qa/cppunit/svm/svmtest.cxx|   96 +-
 3 files changed, 92 insertions(+), 4 deletions(-)

New commits:
commit 794eda02133699830913b37e094a07edeaeff22d
Author: panoskorovesis 
AuthorDate: Thu Jun 10 11:51:32 2021 +0300
Commit: Tomaž Vajngerl 
CommitDate: Fri Jun 11 03:07:42 2021 +0200

Add IntersectClipRegion cppunit tests to vcl

Two tests where added, IntersectRectClipRegion and
IntersectRegionClipRegion, along with their .svm files.
The tests create mutliple IntersectClipRegions and test
their attributes.

Change-Id: I33b7b13b4f3eef1de07cc063ef22fea034d65cfc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116967
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/vcl/qa/cppunit/svm/data/intersectrectclipregion.svm 
b/vcl/qa/cppunit/svm/data/intersectrectclipregion.svm
new file mode 100644
index ..23179cbe8a27
Binary files /dev/null and 
b/vcl/qa/cppunit/svm/data/intersectrectclipregion.svm differ
diff --git a/vcl/qa/cppunit/svm/data/intersectregionclipregion.svm 
b/vcl/qa/cppunit/svm/data/intersectregionclipregion.svm
new file mode 100644
index ..6f8571863282
Binary files /dev/null and 
b/vcl/qa/cppunit/svm/data/intersectregionclipregion.svm differ
diff --git a/vcl/qa/cppunit/svm/svmtest.cxx b/vcl/qa/cppunit/svm/svmtest.cxx
index 844a12bd1214..ec9c80614e22 100644
--- a/vcl/qa/cppunit/svm/svmtest.cxx
+++ b/vcl/qa/cppunit/svm/svmtest.cxx
@@ -128,10 +128,10 @@ class SvmTest : public test::BootstrapFixture, public 
XmlTestTools
 void checkClipRegion(const GDIMetaFile& rMetaFile);
 void testClipRegion();
 
-//void checkIntersectRectClipRegion(const GDIMetaFile& rMetaFile);
+void checkIntersectRectClipRegion(const GDIMetaFile& rMetaFile);
 void testIntersectRectClipRegion();
 
-//void checkIntersectRegionClipRegion(const GDIMetaFile& rMetaFile);
+void checkIntersectRegionClipRegion(const GDIMetaFile& rMetaFile);
 void testIntersectRegionClipRegion();
 
 //void checkMoveClipRegion(const GDIMetaFile& rMetaFile);
@@ -1467,10 +1467,98 @@ void SvmTest::testClipRegion()
 checkClipRegion(readFile(u"clipregion.svm"));
 }
 
+void SvmTest::checkIntersectRectClipRegion(const GDIMetaFile& rMetaFile)
+{
+xmlDocUniquePtr pDoc = dumpMeta(rMetaFile);
+
+assertXPathAttrs(pDoc, "/metafile/sectregionclipregion[1]", {
+{"left", "1"},
+{"top", "2"},
+{"right", "4"},
+{"bottom", "9"}
+});
+}
+
 void SvmTest::testIntersectRectClipRegion()
-{}
+{
+GDIMetaFile aGDIMetaFile;
+ScopedVclPtrInstance pVirtualDev;
+setupBaseVirtualDevice(*pVirtualDev, aGDIMetaFile);
+
+tools::Rectangle aRectangle(Point(1, 2), Size(4, 8));
+
+vcl::Region aRegion(aRectangle);
+
+pVirtualDev->IntersectClipRegion(aRegion);
+checkIntersectRectClipRegion(writeAndReadStream(aGDIMetaFile));
+checkIntersectRectClipRegion(readFile(u"intersectrectclipregion.svm"));
+}
+
+void SvmTest::checkIntersectRegionClipRegion(const GDIMetaFile& rMetaFile)
+{
+xmlDocUniquePtr pDoc = dumpMeta(rMetaFile);
+
+assertXPathAttrs(pDoc, "/metafile/sectregionclipregion[1]", {
+{"left", "1"},
+{"top", "2"},
+{"right", "5"},
+{"bottom", "6"}
+});
+
+assertXPathAttrs(pDoc, "/metafile/sectregionclipregion[2]", {
+{"left", "1"},
+{"top", "2"},
+{"right", "7"},
+{"bottom", "8"}
+});
+
+assertXPathAttrs(pDoc, "/metafile/sectregionclipregion[3]", {
+{"left", "0"},
+{"top", "3"},
+{"right", "2"},
+{"bottom", "6"}
+});
+}
+
 void SvmTest::testIntersectRegionClipRegion()
-{}
+{
+GDIMetaFile aGDIMetaFile;
+ScopedVclPtrInstance pVirtualDev;
+setupBaseVirtualDevice(*pVirtualDev, aGDIMetaFile);
+
+tools::Polygon aPolygon(3);
+aPolygon.SetPoint(Point(1, 2), 0);
+aPolygon.SetPoint(Point(3, 4), 1);
+aPolygon.SetPoint(Point(5, 6), 2);
+
+vcl::Region aRegion(aPolygon);
+pVirtualDev->IntersectClipRegion(aRegion);
+
+tools::Polygon aPolygon1(2);
+aPolygon1.SetPoint(Point(5, 6), 0);
+aPolygon1.SetPoint(Point(7, 8), 1);
+
+tools::PolyPolygon aPolyPolygon(2);
+aPolyPolygon.Insert(aPolygon);
+aPolyPolygon.Insert(aPolygon1);
+
+vcl::Region aRegion1(aPolyPolygon);
+pVirtualDev->IntersectClipRegion(aRegion1);
+
+basegfx::B2DPolygon aB2DPolygon;
+aB2DPolygon.append(basegfx::B2DPoint(0.0, 3.3));
+aB2DPolygon.append(basegfx::B2DPoint(1.1, 4.4));
+aB2DPolygon.append(basegfx::B2DPoint(2.2, 5.5));
+
+basegfx::B2DPolyPolygon aB2DPolyPolygon(aB2DPolygon);
+
+vcl::Region aRegion2(aB2DPolyPolygon);
+pVirtualDev->IntersectClipRegion(aRegion2);
+
+checkIntersectRegionClipRegion(writeAndReadStream(aGDIMetaFile));
+checkIntersectRegionCli

[Libreoffice-commits] core.git: sw/source

2021-06-10 Thread Jim Raykowski (via logerrit)
 sw/source/core/crsr/crsrsh.cxx |9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 239b4bb27fd8db26e8416045b3015688a8b1b0ae
Author: Jim Raykowski 
AuthorDate: Tue Jun 8 16:17:37 2021 -0800
Commit: Jim Raykowski 
CommitDate: Fri Jun 11 00:25:28 2021 +0200

Resolves tdf#142651 Writer: Next Change stopped working

by normalizing copy of PaM instead of reference

Change-Id: If2c8664de18eb9473151c5961ad7654932ca37e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116875
Tested-by: Jenkins
Reviewed-by: Jim Raykowski 

diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 6f5516d69c1f..e747b1753601 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -3351,11 +3351,12 @@ bool SwCursorShell::HasReadonlySel() const
 SwWrtShell* pWrtSh = GetDoc()->GetDocShell()->GetWrtShell();
 if (pWrtSh)
 {
-for(SwPaM& rPaM : GetCursor()->GetRingContainer())
+for(const SwPaM& rPaM : GetCursor()->GetRingContainer())
 {
-rPaM.Normalize();
-SwNodeIndex aPointIdx(rPaM.GetPoint()->nNode.GetNode());
-SwNodeIndex aMarkIdx(rPaM.GetMark()->nNode.GetNode());
+SwPaM aPaM(*rPaM.GetMark(), *rPaM.GetPoint());
+aPaM.Normalize();
+SwNodeIndex aPointIdx(aPaM.GetPoint()->nNode.GetNode());
+SwNodeIndex aMarkIdx(aPaM.GetMark()->nNode.GetNode());
 if (aPointIdx == aMarkIdx)
 continue;
 // If any nodes in PaM are folded outline content nodes, then 
set read-only.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sw/qa

2021-06-10 Thread Xisco Fauli (via logerrit)
 sw/qa/extras/uiwriter/uiwriter.cxx  |  209 +++--
 sw/qa/extras/uiwriter/uiwriter2.cxx |  105 +++-
 sw/qa/extras/uiwriter/uiwriter4.cxx |  223 
 3 files changed, 248 insertions(+), 289 deletions(-)

New commits:
commit b0712101351b084e5073d41052a0abc4f36f4789
Author: Xisco Fauli 
AuthorDate: Thu Jun 10 22:39:48 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Jun 10 23:56:18 2021 +0200

sw_uiwriter: remove duplicated createDoc method

Change-Id: Ie29cd4aa6907018d1bfe492c22ac1d431d0331ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117020
Tested-by: Xisco Fauli 
Reviewed-by: Xisco Fauli 

diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx 
b/sw/qa/extras/uiwriter/uiwriter.cxx
index c6bac664bac3..0129e66630af 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -411,23 +411,10 @@ public:
 CPPUNIT_TEST_SUITE_END();
 
 private:
-SwDoc* createDoc(const char* pName = nullptr);
 std::unique_ptr readDOCXAutotext(
 std::u16string_view sFileName, bool bEmpty = false);
 };
 
-SwDoc* SwUiWriterTest::createDoc(const char* pName)
-{
-if (!pName)
-loadURL("private:factory/swriter", nullptr);
-else
-load(DATA_DIRECTORY, pName);
-
-SwXTextDocument* pTextDoc = dynamic_cast(mxComponent.get());
-CPPUNIT_ASSERT(pTextDoc);
-return pTextDoc->GetDocShell()->GetDoc();
-}
-
 std::unique_ptr 
SwUiWriterTest::readDOCXAutotext(std::u16string_view sFileName, bool bEmpty)
 {
 utl::TempFile tmp;
@@ -438,7 +425,7 @@ std::unique_ptr 
SwUiWriterTest::readDOCXAutotext(std::u16string_vi
 osl::File::copy(m_directories.getURLFromSrc(DATA_DIRECTORY) + 
sFileName, rURL));
 
 SfxMedium aSrcMed(rURL, StreamMode::STD_READ);
-SwDoc* pDoc = createDoc();
+SwDoc* pDoc = createSwDoc();
 
 SwReader aReader(aSrcMed, rURL, pDoc);
 Reader* pDOCXReader = SwReaderWriter::GetDOCXReader();
@@ -464,7 +451,7 @@ constexpr OUStringLiteral EXPECTED_REPLACE_CONTENT(u"toto 
toto tutu");
 
 void SwUiWriterTest::testReplaceForward()
 {
-SwDoc* pDoc = createDoc();
+SwDoc* pDoc = createSwDoc();
 
 sw::UndoManager& rUndoManager = pDoc->GetUndoManager();
 
@@ -486,7 +473,7 @@ void SwUiWriterTest::testReplaceForward()
 
 void SwUiWriterTest::testRedlineFrame(char const*const file)
 {
-SwDoc * pDoc(createDoc(file));
+SwDoc * pDoc(createSwDoc(DATA_DIRECTORY, file));
 SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
 
 // there is exactly one frame
@@ -557,7 +544,7 @@ void SwUiWriterTest::testThreadedException()
 
 void SwUiWriterTest::testBookmarkCopy()
 {
-SwDoc * pDoc(createDoc());
+SwDoc * pDoc(createSwDoc());
 
 // add text and bookmark
 IDocumentMarkAccess & rIDMA(*pDoc->getIDocumentMarkAccess());
@@ -614,7 +601,7 @@ void SwUiWriterTest::testBookmarkCopy()
 void SwUiWriterTest::testTdf67238()
 {
 //create a new writer document
-SwDoc* pDoc = createDoc();
+SwDoc* pDoc = createSwDoc();
 SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
 sw::UndoManager& rUndoManager = pDoc->GetUndoManager();
 //insert a 3X3 table in the newly created document
@@ -706,7 +693,7 @@ void SwUiWriterTest::testTdf67238()
 
 void SwUiWriterTest::testFdo75110()
 {
-SwDoc* pDoc = createDoc("fdo75110.odt");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "fdo75110.odt");
 SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
 
 pWrtShell->SelAll();
@@ -719,7 +706,7 @@ void SwUiWriterTest::testFdo75110()
 
 void SwUiWriterTest::testFdo75898()
 {
-SwDoc* pDoc = createDoc("fdo75898.odt");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "fdo75898.odt");
 SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
 pWrtShell->SelAll();
 pWrtShell->InsertRow(1, true);
@@ -734,7 +721,7 @@ void SwUiWriterTest::testFdo75898()
 
 void SwUiWriterTest::testReplaceBackward()
 {
-SwDoc* pDoc = createDoc();
+SwDoc* pDoc = createSwDoc();
 
 sw::UndoManager& rUndoManager = pDoc->GetUndoManager();
 
@@ -756,7 +743,7 @@ void SwUiWriterTest::testReplaceBackward()
 
 void SwUiWriterTest::testFdo69893()
 {
-SwDoc* pDoc = createDoc("fdo69893.odt");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "fdo69893.odt");
 SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
 
 pWrtShell->SelAll(); // A1 is empty -> selects the whole table.
@@ -799,7 +786,7 @@ void SwUiWriterTest::testFdo70807()
 void SwUiWriterTest::testImportRTF()
 {
 // Insert "foobar" and position the cursor between "foo" and "bar".
-SwDoc* pDoc = createDoc();
+SwDoc* pDoc = createSwDoc();
 SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
 pWrtShell->Insert("foobar");
 pWrtShell->Left(CRSR_SKIP_CHARS, /*bSelect=*/false, 3, 
/*bBasicCall=*/false);
@@ -820,7 +807,7 @@ void SwUiWriterTest::testImportRTF()
 void SwUiWriterTest::testExportRTF()
 {

[Libreoffice-commits] core.git: sw/qa

2021-06-10 Thread Xisco Fauli (via logerrit)
 sw/qa/extras/layout/layout.cxx  |  160 +++-
 sw/qa/extras/layout/layout2.cxx |  146 
 2 files changed, 142 insertions(+), 164 deletions(-)

New commits:
commit 9cfb555bb4f985ec3b759291721f0f7a2e4c355e
Author: Xisco Fauli 
AuthorDate: Thu Jun 10 22:50:16 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Jun 10 23:49:17 2021 +0200

sw_layoutwriter: remove duplicated createDoc method

Change-Id: I25f995f06ce56ecec3411007bfd4f381cc7af207
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117021
Tested-by: Jenkins
Reviewed-by: Xisco Fauli 

diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx
index 4c69dc6dcf05..4940a37e41c4 100644
--- a/sw/qa/extras/layout/layout.cxx
+++ b/sw/qa/extras/layout/layout.cxx
@@ -61,22 +61,8 @@ class SwLayoutWriter : public SwModelTestBase
 protected:
 void CheckRedlineFootnotesHidden();
 void CheckRedlineSectionsHidden();
-
-SwDoc* createDoc(const char* pName = nullptr);
 };
 
-SwDoc* SwLayoutWriter::createDoc(const char* pName)
-{
-if (!pName)
-loadURL("private:factory/swriter", nullptr);
-else
-load(DATA_DIRECTORY, pName);
-
-SwXTextDocument* pTextDoc = 
dynamic_cast(mxComponent.get());
-CPPUNIT_ASSERT(pTextDoc);
-return pTextDoc->GetDocShell()->GetDoc();
-}
-
 // this is a member because our test classes have protected members :(
 void SwLayoutWriter::CheckRedlineFootnotesHidden()
 {
@@ -120,7 +106,7 @@ void SwLayoutWriter::CheckRedlineSectionsHidden()
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testRedlineFootnotes)
 {
-createDoc("redline_footnotes.odt");
+createSwDoc(DATA_DIRECTORY, "redline_footnotes.odt");
 SwXTextDocument* pTextDoc = 
dynamic_cast(mxComponent.get());
 CPPUNIT_ASSERT(pTextDoc);
 SwDoc* pDoc(pTextDoc->GetDocShell()->GetDoc());
@@ -493,7 +479,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testRedlineFlysInBody)
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf134272)
 {
-SwDoc* pDoc = createDoc("tdf134472.odt");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tdf134472.odt");
 CPPUNIT_ASSERT(pDoc);
 xmlDocUniquePtr pXmlDoc = parseLayoutDump();
 assertXPath(pXmlDoc, "/root/page[1]/header/txt[2]/infos/bounds", "height", 
"843");
@@ -502,7 +488,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf134272)
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestNestedTableMoveFwd)
 {
-SwDoc* pDoc = createDoc("tabellen_test_windows_1.odt");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tabellen_test_windows_1.odt");
 CPPUNIT_ASSERT(pDoc);
 xmlDocUniquePtr pXmlDoc = parseLayoutDump();
 // the row with the nested table should not be split but be the first row 
on page 2
@@ -514,7 +500,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestNestedTableMoveFwd)
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf136613)
 {
-SwDoc* pDoc = createDoc("tdf136613.docx");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tdf136613.docx");
 CPPUNIT_ASSERT(pDoc);
 
 //get the flys and the root frame
@@ -545,7 +531,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf136613)
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf88496)
 {
-SwDoc* pDoc = createDoc("tdf88496.docx");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tdf88496.docx");
 CPPUNIT_ASSERT(pDoc);
 xmlDocUniquePtr pXmlDoc = parseLayoutDump();
 // This was 4, table fallback "switch off repeating header" started on a 
new page
@@ -838,7 +824,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, 
testRedlineFlysInHeader)
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf137025)
 {
 // Check the padding of the textbox
-SwDoc* pDoc = createDoc("tdf137025.docx");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tdf137025.docx");
 CPPUNIT_ASSERT(pDoc);
 xmlDocUniquePtr pXmlDoc = parseLayoutDump();
 CPPUNIT_ASSERT(pXmlDoc);
@@ -1313,7 +1299,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, 
testTableOverlapFooterFly)
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf134277)
 {
-SwDoc* pDoc = createDoc("tdf134277.docx");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tdf134277.docx");
 CPPUNIT_ASSERT(pDoc);
 SwDocShell* pShell = pDoc->GetDocShell();
 
@@ -1331,7 +1317,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf134277)
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf116486)
 {
-SwDoc* pDoc = createDoc("tdf116486.docx");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tdf116486.docx");
 CPPUNIT_ASSERT(pDoc);
 OUString aTop = parseDump("/root/page/body/txt/Special", "nHeight");
 CPPUNIT_ASSERT_EQUAL(OUString("4006"), aTop);
@@ -1355,7 +1341,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf142080)
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf128198)
 {
-SwDoc* pDoc = createDoc("tdf128198-1.docx");
+SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tdf128198-1.docx");
 CPPUNIT_ASSERT(pDoc);
 xmlDocUniquePtr pLayout = parseLayoutDump();
 // the problem was that line 5 was truncated at 

[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sc/source

2021-06-10 Thread Noel Grandin (via logerrit)
 sc/source/ui/cctrl/tbzoomsliderctrl.cxx |   45 
 sc/source/ui/inc/tbzoomsliderctrl.hxx   |2 -
 2 files changed, 30 insertions(+), 17 deletions(-)

New commits:
commit 8619e743564a241eb951866616aec82e1ab3965f
Author: Noel Grandin 
AuthorDate: Thu Jun 10 14:04:17 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Jun 10 23:01:14 2021 +0200

tdf#136766 Zoom slider in calc print preview has white background

I cannot figure out any way to make transparent stuff on the toolbar
behave under all rendering backends, so just revert this

this reverts
commit 00cffc20e40b2412c7e9867eed24c9834504e24f
Date:   Mon Sep 7 13:28:33 2020 +0200
tdf#135181 Calc print preview zoom slider print preview not
transparent (gen)

commit 444c7c736be7545344298a9cbb3a69886edc5ecb
Date:   Mon May 18 18:23:13 2020 +0200
tdf#125538 fix background of zoom control

Change-Id: I7c351796b2c0778c1520fc8177d05567b2ae8a48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116982
Tested-by: Jenkins
Reviewed-by: Noel Grandin 
(cherry picked from commit d693223b84b518701d308678801ccc50877490dc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116904
Reviewed-by: Xisco Fauli 

diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx 
b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index 12d12c19beda..b7a6781dcd07 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -97,9 +97,8 @@ struct ScZoomSlider::ScZoomSliderWnd_Impl
 ImagemaIncreaseButton;
 ImagemaDecreaseButton;
 bool mbOmitPaint;
-VclPtr  mxParentWindow;
 
-explicit ScZoomSliderWnd_Impl( sal_uInt16 nCurrentZoom, vcl::Window* 
parentWindow ) :
+explicit ScZoomSliderWnd_Impl( sal_uInt16 nCurrentZoom ) :
 mnCurrentZoom( nCurrentZoom ),
 mnMinZoom( 10 ),
 mnMaxZoom( 400 ),
@@ -108,8 +107,7 @@ struct ScZoomSlider::ScZoomSliderWnd_Impl
 maSliderButton(),
 maIncreaseButton(),
 maDecreaseButton(),
-mbOmitPaint( false ),
-mxParentWindow(parentWindow)
+mbOmitPaint( false )
 {
 }
 };
@@ -209,7 +207,7 @@ ScZoomSliderWnd::ScZoomSliderWnd( vcl::Window* pParent,
 const css::uno::Reference< css::frame::XDispatchProvider >& 
rDispatchProvider,
 sal_uInt16 nCurrentZoom ):
 InterimItemWindow(pParent, "modules/scalc/ui/zoombox.ui", 
"ZoomBox"),
-mxWidget(new ScZoomSlider(rDispatchProvider, nCurrentZoom, 
pParent)),
+mxWidget(new ScZoomSlider(rDispatchProvider, nCurrentZoom)),
 mxWeld(new weld::CustomWeld(*m_xBuilder, "zoom", *mxWidget))
 {
 Size aLogicalSize( 115, 40 );
@@ -233,8 +231,8 @@ void ScZoomSliderWnd::dispose()
 }
 
 ScZoomSlider::ScZoomSlider(const css::uno::Reference< 
css::frame::XDispatchProvider>& rDispatchProvider,
-   sal_uInt16 nCurrentZoom, vcl::Window* parentWindow)
-: mpImpl(new ScZoomSliderWnd_Impl(nCurrentZoom, parentWindow))
+   sal_uInt16 nCurrentZoom)
+: mpImpl(new ScZoomSliderWnd_Impl(nCurrentZoom))
 , m_xDispatchProvider(rDispatchProvider)
 {
 mpImpl->maSliderButton  = Image(StockImage::Yes, 
RID_SVXBMP_SLIDERBUTTON);
@@ -277,8 +275,9 @@ bool ScZoomSlider::MouseButtonDown( const MouseEvent& rMEvt 
)
 if( nOldZoom == mpImpl->mnCurrentZoom )
 return true;
 
-// need to invalidate parent since we rely on the toolbox drawing it's 
fancy gradient background
-mpImpl->mxParentWindow->Invalidate();
+tools::Rectangle aRect( Point( 0, 0 ), aSliderWindowSize );
+
+Invalidate(aRect);
 mpImpl->mbOmitPaint = true;
 
 SvxZoomSliderItem   aZoomSliderItem( mpImpl->mnCurrentZoom );
@@ -312,8 +311,8 @@ bool ScZoomSlider::MouseMove( const MouseEvent& rMEvt )
 {
 mpImpl->mnCurrentZoom = Offset2Zoom( aPoint.X() );
 
-// need to invalidate parent since we rely on the toolbox drawing 
it's fancy gradient background
-mpImpl->mxParentWindow->Invalidate();
+tools::Rectangle aRect(Point(0, 0), aSliderWindowSize);
+Invalidate(aRect);
 
 mpImpl->mbOmitPaint = true; // optimization: paint before 
executing command,
 
@@ -379,9 +378,11 @@ void ScZoomSlider::UpdateFromItem(const SvxZoomSliderItem* 
pZoomSliderItem)
 }
 }
 
+Size aSliderWindowSize = GetOutputSizePixel();
+tools::Rectangle aRect(Point(0, 0), aSliderWindowSize);
+
 if ( !mpImpl->mbOmitPaint )
-// need to invalidate parent since we rely on the toolbox drawing it's 
fancy gradient background
-mpImpl->mxParentWindow->Invalidate();
+   Invalidate(aRect);
 }
 
 void ScZoomSlider::Paint(vcl::RenderContext& rRenderContext, const 
tools::Rectangle& /*rRect*/)
@@ -399,9 +400,6

[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - chart2/qa chart2/source

2021-06-10 Thread Tünde Tóth (via logerrit)
 chart2/qa/extras/chart2import.cxx|   22 ++
 chart2/qa/extras/data/docx/tdf139658.docx|binary
 chart2/source/tools/InternalDataProvider.cxx |   12 ++--
 3 files changed, 32 insertions(+), 2 deletions(-)

New commits:
commit 1d965fab93a573edf2028d6fc178b4533446fc54
Author: Tünde Tóth 
AuthorDate: Fri Jun 4 13:10:51 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Jun 10 22:54:19 2021 +0200

tdf#139658 OOXML: fix broken chart import at labels with quotes

During the import of the internal data table, incomplete
parsing of category labels with escaped quotation marks
resulted broken category labels and charts.

Change-Id: If5af3d527b80d1e055562f589bdaf17096ad49f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116714
Tested-by: László Németh 
Reviewed-by: László Németh 
Signed-off-by: Xisco Fauli 
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116998
Tested-by: Jenkins

diff --git a/chart2/qa/extras/chart2import.cxx 
b/chart2/qa/extras/chart2import.cxx
index fe9ebb5bc502..b3b5a3921d3a 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -174,6 +174,7 @@ public:
 void testTdf137734();
 void testTdf137874();
 void testTdfCustomShapePos();
+void testTdf139658();
 
 CPPUNIT_TEST_SUITE(Chart2ImportTest);
 CPPUNIT_TEST(Fdo60083);
@@ -295,6 +296,7 @@ public:
 CPPUNIT_TEST(testTdf137734);
 CPPUNIT_TEST(testTdf137874);
 CPPUNIT_TEST(testTdfCustomShapePos);
+CPPUNIT_TEST(testTdf139658);
 
 CPPUNIT_TEST_SUITE_END();
 
@@ -2845,6 +2847,26 @@ void Chart2ImportTest::testTdfCustomShapePos()
 }
 }
 
+void Chart2ImportTest::testTdf139658()
+{
+load(u"/chart2/qa/extras/data/docx/", "tdf139658.docx");
+uno::Reference xChartDoc(getChartDocFromWriter(0), 
uno::UNO_QUERY);
+CPPUNIT_ASSERT(xChartDoc.is());
+Reference 
xInternalProvider(xChartDoc->getDataProvider(),
+   uno::UNO_QUERY);
+CPPUNIT_ASSERT(xInternalProvider.is());
+
+Reference xDescAccess(xInternalProvider, 
uno::UNO_QUERY);
+CPPUNIT_ASSERT(xDescAccess.is());
+
+// Get the category labels.
+Sequence aCategories = xDescAccess->getRowDescriptions();
+CPPUNIT_ASSERT_EQUAL(sal_Int32(3), aCategories.getLength());
+CPPUNIT_ASSERT_EQUAL(OUString("category1"), aCategories[0]);
+CPPUNIT_ASSERT_EQUAL(OUString("\"category2\""), aCategories[1]);
+CPPUNIT_ASSERT_EQUAL(OUString("category\"3"), aCategories[2]);
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ImportTest);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/docx/tdf139658.docx 
b/chart2/qa/extras/data/docx/tdf139658.docx
new file mode 100644
index ..59deda9f83f9
Binary files /dev/null and b/chart2/qa/extras/data/docx/tdf139658.docx differ
diff --git a/chart2/source/tools/InternalDataProvider.cxx 
b/chart2/source/tools/InternalDataProvider.cxx
index c1d0008098ab..415f08ac3ea9 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -518,7 +518,14 @@ InternalDataProvider::createDataSequenceFromArray( const 
OUString& rArrayStr, co
 bool bInQuote = false;
 for (; p != pEnd; ++p)
 {
-if (*p == '"')
+// Skip next "" within the title text: it's an escaped double 
quotation mark.
+if (bInQuote && *p == '"' && *(p + 1) == '"')
+{
+if (!pElem)
+pElem = p;
+++p;
+}
+else if (*p == '"')
 {
 bInQuote = !bInQuote;
 if (bInQuote)
@@ -534,7 +541,8 @@ InternalDataProvider::createDataSequenceFromArray( const 
OUString& rArrayStr, co
 // Non empty string
 if (!aElem.isEmpty())
 bAllNumeric = false;
-aRawElems.push_back(aElem);
+// Restore also escaped double quotation marks
+aRawElems.push_back(aElem.replaceAll("\"\"", "\""));
 pElem = nullptr;
 aElem.clear();
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - dictionaries

2021-06-10 Thread Andras Timar (via logerrit)
 dictionaries |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 17fdaf166a360d39e7dce7960bb15562eeb3e516
Author: Andras Timar 
AuthorDate: Thu Jun 10 21:18:36 2021 +0200
Commit: Gerrit Code Review 
CommitDate: Thu Jun 10 21:18:36 2021 +0200

Update git submodules

* Update dictionaries from branch 'libreoffice-7-1'
  to 39658b5705671893f251e78655c3bb775a1b0d2f
  - tdf#141408 updated Ukraininan dictionaries

Change-Id: I56aea01cbff18871bee91118f3f0701284caf87e
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/114308
Tested-by: Andras Timar 
Reviewed-by: Andras Timar 
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/115723
Tested-by: Adolfo Jayme Barrientos 
Reviewed-by: Adolfo Jayme Barrientos 

diff --git a/dictionaries b/dictionaries
index 44c6b936184e..39658b570567 16
--- a/dictionaries
+++ b/dictionaries
@@ -1 +1 @@
-Subproject commit 44c6b936184e9f91d6d14fe65805640a0161fdfb
+Subproject commit 39658b5705671893f251e78655c3bb775a1b0d2f
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sc/source

2021-06-10 Thread Caolán McNamara (via logerrit)
 sc/source/ui/Accessibility/AccessibleEditObject.cxx |9 +
 sc/source/ui/app/inputwin.cxx   |2 +-
 sc/source/ui/inc/AccessibleEditObject.hxx   |8 
 3 files changed, 18 insertions(+), 1 deletion(-)

New commits:
commit 4b6af3412f72be85706fc5355a36bd8364726c13
Author: Caolán McNamara 
AuthorDate: Wed Jun 9 14:31:05 2021 +0100
Commit: Adolfo Jayme Barrientos 
CommitDate: Thu Jun 10 21:13:37 2021 +0200

tdf#141769 ScTextWnd has to be available before the editview is created

Change-Id: Iec3b4180c4dc83723224b7122a1513cb8fe3ea0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116921
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos 

diff --git a/sc/source/ui/Accessibility/AccessibleEditObject.cxx 
b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
index d0afd2c8196c..ea6787478abd 100644
--- a/sc/source/ui/Accessibility/AccessibleEditObject.cxx
+++ b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
@@ -27,6 +27,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -595,4 +596,12 @@ OutputDevice* 
ScAccessibleEditControlObject::GetOutputDeviceForView()
 return &m_pController->GetDrawingArea()->get_ref_device();
 }
 
+ScAccessibleEditLineObject::ScAccessibleEditLineObject(ScTextWnd* pTextWnd)
+: ScAccessibleEditControlObject(pTextWnd, ScAccessibleEditObject::EditLine)
+{
+// tdf#141769 set this early so its always available, even before the 
on-demand
+// editview is created
+mpTextWnd = pTextWnd;
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 2846ca43dc54..6307eee3edd7 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -2075,7 +2075,7 @@ void ScTextWnd::SetDrawingArea(weld::DrawingArea* 
pDrawingArea)
 
 css::uno::Reference< css::accessibility::XAccessible > 
ScTextWnd::CreateAccessible()
 {
-pAcc = new ScAccessibleEditControlObject(this, 
ScAccessibleEditObject::EditLine);
+pAcc = new ScAccessibleEditLineObject(this);
 return pAcc;
 }
 
diff --git a/sc/source/ui/inc/AccessibleEditObject.hxx 
b/sc/source/ui/inc/AccessibleEditObject.hxx
index 83dedda9b387..9244964cfae3 100644
--- a/sc/source/ui/inc/AccessibleEditObject.hxx
+++ b/sc/source/ui/inc/AccessibleEditObject.hxx
@@ -175,7 +175,9 @@ private:
 std::unique_ptr mpTextHelper;
 EditView*  mpEditView;
 VclPtr mpWindow;
+protected:
 ScTextWnd* mpTextWnd;
+private:
 EditObjectType meObjectType;
 bool   mbHasFocus;
 
@@ -222,6 +224,12 @@ public:
 virtual void SAL_CALL disposing() override;
 };
 
+class ScAccessibleEditLineObject : public ScAccessibleEditControlObject
+{
+public:
+ScAccessibleEditLineObject(ScTextWnd* pTextWnd);
+};
+
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: include/sot sot/source

2021-06-10 Thread Noel Grandin (via logerrit)
 include/sot/storage.hxx   |2 +-
 sot/source/sdstor/storage.cxx |3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 6e1bc19044dc154fee30263951e1122028b22b5b
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:49:20 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 20:09:29 2021 +0200

loplugin:unnecessaryreturn SotStorageStream::Commit

Change-Id: Icfd32ea8b29aa544b71d0c4fc6bc67c06f81e327
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116987
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx
index 65cde53d2a67..41b57506946c 100644
--- a/include/sot/storage.hxx
+++ b/include/sot/storage.hxx
@@ -64,7 +64,7 @@ public:
 
 virtual void SetSize(sal_uInt64 nNewSize) override;
 sal_uInt32 GetSize() const;
-bool Commit();
+void Commit();
 bool SetProperty(OUString const & rName, css::uno::Any const & rValue);
 virtual sal_uInt64 TellEnd() override;
 };
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 596a59d59785..cef5b3d7a02d 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -176,13 +176,12 @@ sal_uInt64 SotStorageStream::TellEnd()
 return pOwnStm->GetSize();
 }
 
-bool SotStorageStream::Commit()
+void SotStorageStream::Commit()
 {
 pOwnStm->Flush();
 if( pOwnStm->GetError() == ERRCODE_NONE )
 pOwnStm->Commit();
 SetError( pOwnStm->GetError() );
-return GetError() == ERRCODE_NONE;
 }
 
 bool SotStorageStream::SetProperty( const OUString& rName, const 
css::uno::Any& rValue )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


MacUpdate - your app listing has been updated

2021-06-10 Thread MacUpdate
Title: Untitled Document








  




  




  




  

  
  

  
  

  

  

   App Listing Updated
  Hi The Document Foundation, We have updated your application listing for LibreOffice 7.1.4.2 on MacUpdate.com. Please take a moment to review your application's information to make sure that everything is correct. 
 	
  
  

  
View your updated app listing 
  

  
  
You can login to your Developer Account to reply to comments and view stats, or submit new updates and changes to your app listing.
  

  

  
  

  

		
		
  

		
		
 
		
		
  
  
Desktop Install Compatibility
  MacUpdate Desktop 6 is helping developers  make it easier for users to fully install and use their apps. Download Desktop 6 and to ensure your app works with the “Install” link on our download pages.
		  
		  
   
		  
		  
		  
  
	  
	  
	  

  

  
  

  

Advertise With MacUpdate
The best Mac devs advertise their apps on MacUpdate.com because it’s the most targeted, highly performing Mac app advertising you can find on the web. Contact a...@macupdate.com to guarantee your annual ad campaigns get booked and expand your app’s audience.

  
  



  
Learn more

  



  

  
  

  
Questions? Contact our Content Update Team upda...@macupdate.com.
  

  
  

  
  

  
You are receiving this offer because you have an app listed on MacUpdate.com. Add us to your address book or white list to ensure reliable delivery.
	
  © 2018 MacUpdate  - All Rights Reserved
  526 W. 14th St. #100 • Traverse City, MI 49684
  

  




  




  




  








___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: schema/libreoffice schema/odf1.3 test/source

2021-06-10 Thread Michael Stahl (via logerrit)
 schema/libreoffice/OpenDocument-v1.3+libreoffice-dsig-schema.rng  |   22 --
 schema/libreoffice/OpenDocument-v1.3+libreoffice-manifest-schema.rng  |   27 
+--
 schema/libreoffice/OpenDocument-v1.3+libreoffice-metadata.owl |   40 
+
 schema/libreoffice/OpenDocument-v1.3+libreoffice-package-metadata.owl |   40 
+
 schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng   |2 
 schema/odf1.3/OpenDocument-v1.3-dsig-schema.rng   |   41 
+
 schema/odf1.3/OpenDocument-v1.3-manifest-schema.rng   |   51 
+-
 schema/odf1.3/OpenDocument-v1.3-metadata.owl  |   21 --
 schema/odf1.3/OpenDocument-v1.3-package-metadata.owl  |   21 --
 schema/odf1.3/OpenDocument-v1.3-schema.rng|   80 
--
 test/source/bootstrapfixture.cxx  |6 
 11 files changed, 124 insertions(+), 227 deletions(-)

New commits:
commit 7f3c9da5a0a8f27e3fe63c39a30fc08e34246420
Author: Michael Stahl 
AuthorDate: Fri Jun 4 19:55:55 2021 +0200
Commit: Michael Stahl 
CommitDate: Thu Jun 10 19:07:36 2021 +0200

schema: update to ODF 1.3 OS

Change-Id: I97e28612aeeebed709da9ad621250c6b26e55f92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116734
Tested-by: Jenkins
Reviewed-by: Michael Stahl 

diff --git a/schema/odf1.3/OpenDocument-dsig-schema-v1.3.rng 
b/schema/libreoffice/OpenDocument-v1.3+libreoffice-dsig-schema.rng
similarity index 78%
rename from schema/odf1.3/OpenDocument-dsig-schema-v1.3.rng
rename to schema/libreoffice/OpenDocument-v1.3+libreoffice-dsig-schema.rng
index be2e9788ca08..954add387957 100644
--- a/schema/odf1.3/OpenDocument-dsig-schema-v1.3.rng
+++ b/schema/libreoffice/OpenDocument-v1.3+libreoffice-dsig-schema.rng
@@ -1,25 +1,17 @@
 
 
-
-
 
 
 http://www.w3.org/2000/09/xmldsig#"; 
xmlns:dsig="urn:oasis:names:tc:opendocument:xmlns:digitalsignature:1.0" 
xmlns:rng="http://relaxng.org/ns/structure/1.0"; 
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes";>
diff --git a/schema/odf1.3/OpenDocument-manifest-schema-v1.3.rng 
b/schema/libreoffice/OpenDocument-v1.3+libreoffice-manifest-schema.rng
similarity index 92%
rename from schema/odf1.3/OpenDocument-manifest-schema-v1.3.rng
rename to schema/libreoffice/OpenDocument-v1.3+libreoffice-manifest-schema.rng
index 09f6bd35bc23..a2631facc7f5 100644
--- a/schema/odf1.3/OpenDocument-manifest-schema-v1.3.rng
+++ b/schema/libreoffice/OpenDocument-v1.3+libreoffice-manifest-schema.rng
@@ -1,24 +1,17 @@
 
 
-
-
 
 
 http://relaxng.org/ns/structure/1.0"; 
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes";>
@@ -169,7 +162,7 @@
   
 
   
-   PGP
+PGP
   
   
 
@@ -198,7 +191,7 @@
   
 
   
-
+  
   
 
   
@@ -206,7 +199,11 @@
   
   
 
+  
+  
+  1.2
   1.3
+  
 
   
   
diff --git a/schema/libreoffice/OpenDocument-v1.3+libreoffice-metadata.owl 
b/schema/libreoffice/OpenDocument-v1.3+libreoffice-metadata.owl
index 2c648cf6ce30..e35354ccd2fa 100644
--- a/schema/libreoffice/OpenDocument-v1.3+libreoffice-metadata.owl
+++ b/schema/libreoffice/OpenDocument-v1.3+libreoffice-metadata.owl
@@ -1,36 +1,20 @@
 
 
 
-   The limited permissions granted above are perpetual and will not be 
revoked by
-   OASIS or its successors or assigns.
+
 
-   This document and the information contained herein is provided on an 
"AS IS"
-   basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING 
BUT NOT
-   LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT
-   INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF 
MERCHANTABILITY OR
-   FITNESS FOR A PARTICULAR PURPOSE. 
--->
 http://purl.org/dc/elements/1.1/"; 
xmlns:odf="http://docs.oasis-open.org/ns/office/1.2/meta/odf#"; 
xmlns:owl="http://www.w3.org/2002/07/owl#"; 
xmlns:pkg="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#"; 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
xmlns="http://www.w3.org/2000/01/rdf-schema#";>
 
 http://docs.oasis-open.org/ns/office/1.2/meta/odf#";>
diff --git 
a/schema/libreoffice/OpenDocument-v1.3+libreoffice-package-metadata.owl 
b/schema/libreoffice/OpenDocument-v1.3+libreoffice-package-metadata.owl
index 9281dff7752f..2f0c35725f09 100644
--- a/schema/libreoffice/OpenDocument-v1.3+libreoffice-package-metadata.owl
+++ b/schema/libreoffice/OpenDocument-v1.3+libreoffice-package-metadata.owl
@@ -1,36 +1,20 @@
 
 
 
-   The limited permissions granted above are perpetual and will not be 
revoked by
-   OASIS or its successors or assigns.
+
 
-   This document and the information contained herein is provided on an 
"AS IS"
-   basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING 
BUT NOT
-   LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT
-   INFRINGE ANY 

[Libreoffice-commits] core.git: emfio/source

2021-06-10 Thread Bartosz Kosiorek (via logerrit)
 emfio/source/reader/emfreader.cxx |   39 +++---
 1 file changed, 20 insertions(+), 19 deletions(-)

New commits:
commit 363b98b268f317e7f2f9af392085856b938fb5f9
Author: Bartosz Kosiorek 
AuthorDate: Thu Jun 10 15:54:38 2021 +0200
Commit: Bartosz Kosiorek 
CommitDate: Thu Jun 10 18:49:52 2021 +0200

EMF tdf#142745 Improve performance of FILLRGN, PAINTRGN, EXTSELECTCLIPRGN

With previous implementation, during reading of rectangles
the optimizations were made after reading every single
rectangle. This was causing performance issues, with many
rectangles (eg. 2500 rectangles).

With this commit, the optimization is made after reading all
rectangles. It is improving performance of FILLRGN, PAINTRGN and
 EXTSELECTCLIPRGN records.

Change-Id: I1b8b844efddd08e9bf6f6726c3fdf213a629883f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116996
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek 

diff --git a/emfio/source/reader/emfreader.cxx 
b/emfio/source/reader/emfreader.cxx
index dc5941493058..064a8b0334c9 100644
--- a/emfio/source/reader/emfreader.cxx
+++ b/emfio/source/reader/emfreader.cxx
@@ -16,7 +16,8 @@
  *   except in compliance with the License. You may obtain a copy of
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
-
+#include 
+#include 
 #include 
 #include 
 #include 
@@ -329,7 +330,7 @@ SvStream& operator>>(SvStream& rInStream, BLENDFUNCTION& 
rBlendFun)
 return rInStream;
 }
 
-bool ImplReadRegion( tools::PolyPolygon& rPolyPoly, SvStream& rStream, 
sal_uInt32 nLen )
+bool ImplReadRegion( basegfx::B2DPolyPolygon& rPolyPoly, SvStream& rStream, 
sal_uInt32 nLen )
 {
 if (nLen < 32) // 32 bytes - Size of RegionDataHeader
 return false;
@@ -350,7 +351,7 @@ bool ImplReadRegion( tools::PolyPolygon& rPolyPoly, 
SvStream& rStream, sal_uInt3
 if (!rStream.good() || nCountRects == 0 || nType != RDH_RECTANGLES)
 return false;
 
-SAL_INFO("emfio", "\t\tLeft: " << nLeft << ", top: " << nTop << ", right: 
" << nRight << ", bottom: " << nBottom);
+SAL_INFO("emfio", "\t\tBounds Left: " << nLeft << ", top: " << nTop << ", 
right: " << nRight << ", bottom: " << nBottom);
 
 nLen -= 32;
 
@@ -360,23 +361,18 @@ bool ImplReadRegion( tools::PolyPolygon& rPolyPoly, 
SvStream& rStream, sal_uInt3
 if (nLen < nSize)
 return false;
 
-bool bIsFuzzing = utl::ConfigManager::IsFuzzing();
-
 for (sal_uInt32 i = 0; i < nCountRects; ++i)
 {
 rStream.ReadInt32(nLeft);
 rStream.ReadInt32(nTop);
 rStream.ReadInt32(nRight);
 rStream.ReadInt32(nBottom);
-
-SAL_INFO("emfio", "\t\tLeft: " << nLeft << ", top: " << nTop << ", 
right: " << nRight << ", bottom: " << nBottom);
-
-if (bIsFuzzing && i) // GetUnion is super slow, when fuzzing skip 
after first rect
-continue;
-
-tools::PolyPolygon aPolyPolyOr1(tools::Polygon(tools::Rectangle(nLeft, 
nTop, nRight, nBottom)));
-rPolyPoly.GetUnion(aPolyPolyOr1, rPolyPoly);
+rPolyPoly.append( basegfx::utils::createPolygonFromRect( 
::basegfx::B2DRectangle( nLeft, nTop, nRight, nBottom ) ) );
+SAL_INFO("emfio", "\t\t" << i << " Left: " << nLeft << ", top: " << 
nTop << ", right: " << nRight << ", bottom: " << nBottom);
 }
+rPolyPoly = basegfx::utils::solveCrossovers(rPolyPoly);
+rPolyPoly = basegfx::utils::stripNeutralPolygons(rPolyPoly);
+rPolyPoly = basegfx::utils::stripDispensablePolygons(rPolyPoly);
 return true;
 }
 
@@ -1461,10 +1457,11 @@ namespace emfio
 }
 else
 {
-tools::PolyPolygon aPolyPoly;
+basegfx::B2DPolyPolygon aPolyPoly;
 if (cbRgnData)
 ImplReadRegion(aPolyPoly, *mpInputStream, 
nRemainingRecSize);
-SetClipPath(aPolyPoly, nClippingMode, false);
+const tools::PolyPolygon 
aPolyPolygon(aPolyPoly);
+SetClipPath(aPolyPolygon, nClippingMode, 
false);
 }
 }
 }
@@ -1968,7 +1965,7 @@ namespace emfio
 else
 {
 sal_uInt32 nRgnDataSize;
-tools::PolyPolygon aPolyPoly;
+basegfx::B2DPolyPolygon aPolyPoly;
 mpInputStream->SeekRel(16);  // RectL bounds
 mpInputStream->ReadUInt32( nRgnDataSize 
).ReadUInt32( nIndex );
 nRemainingRecSize -= 24;
@@ -1977,7 +1974,8 @@ namespace emfio
 {
 Push();
 SelectObject( nIndex );
-  

[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - desktop/source include/vcl vcl/source

2021-06-10 Thread Luboš Luňák (via logerrit)
 desktop/source/lib/init.cxx |7 ++-
 include/vcl/lok.hxx |4 
 vcl/source/app/svapp.cxx|8 
 3 files changed, 18 insertions(+), 1 deletion(-)

New commits:
commit 90a3969c9ebec2553a469bd0443465e56b494bce
Author: Luboš Luňák 
AuthorDate: Wed Jun 9 17:11:15 2021 +0200
Commit: Michael Meeks 
CommitDate: Thu Jun 10 18:05:37 2021 +0200

scale VCL's scale cache according to the number of Online views

If a document is opened in several Online views, each of them using
a different zoom, then the scale cache is used for the scaling,
and each view is sent updated tiles, so if there are too many
views, the cache is not large enough.
(Collabora T28503)

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116928
Tested-by: Luboš Luňák 
Reviewed-by: Luboš Luňák 
(cherry picked from commit 53dd6aa5f3817d42bf676980f980051c3b7cdb03)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116898
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 
(cherry picked from commit c8522043b239aa0e463e6793b7c9b019d79b2d9d)

Change-Id: I3fa719b0515064773fe4584fedbc8aff98e6e213
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116901
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 9d4c8d5336cd..8428dc2343d4 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5298,6 +5298,8 @@ static int 
doc_createViewWithOptions(LibreOfficeKitDocument* pThis,
 LibLODocument_Impl* pDocument = static_cast(pThis);
 const int nId = SfxLokHelper::createView(pDocument->mnDocumentId);
 
+
vcl::lok::numberOfViewsChanged(SfxLokHelper::getViewsCount(pDocument->mnDocumentId));
+
 #ifdef IOS
 (void) pThis;
 #else
@@ -5312,7 +5314,7 @@ static int doc_createView(LibreOfficeKitDocument* pThis)
 return doc_createViewWithOptions(pThis, nullptr); // No options.
 }
 
-static void doc_destroyView(SAL_UNUSED_PARAMETER LibreOfficeKitDocument* 
/*pThis*/, int nId)
+static void doc_destroyView(SAL_UNUSED_PARAMETER LibreOfficeKitDocument* 
pThis, int nId)
 {
 comphelper::ProfileZone aZone("doc_destroyView");
 
@@ -5322,6 +5324,9 @@ static void doc_destroyView(SAL_UNUSED_PARAMETER 
LibreOfficeKitDocument* /*pThis
 LOKClipboardFactory::releaseClipboardForView(nId);
 
 SfxLokHelper::destroyView(nId);
+
+LibLODocument_Impl* pDocument = static_cast(pThis);
+
vcl::lok::numberOfViewsChanged(SfxLokHelper::getViewsCount(pDocument->mnDocumentId));
 }
 
 static void doc_setView(SAL_UNUSED_PARAMETER LibreOfficeKitDocument* 
/*pThis*/, int nId)
diff --git a/include/vcl/lok.hxx b/include/vcl/lok.hxx
index 7fc5479a25cd..dcf582991806 100644
--- a/include/vcl/lok.hxx
+++ b/include/vcl/lok.hxx
@@ -22,6 +22,10 @@ bool VCL_DLLPUBLIC isUnipoll();
 void VCL_DLLPUBLIC registerPollCallbacks(LibreOfficeKitPollCallback 
pPollCallback,
  LibreOfficeKitWakeCallback 
pWakeCallback, void* pData);
 void VCL_DLLPUBLIC unregisterPollCallbacks();
+
+// Called to tell VCL that the number of document views has changed, so that 
VCL
+// can adjust e.g. sizes of bitmap caches to scale well with larger number of 
users.
+void VCL_DLLPUBLIC numberOfViewsChanged(int count);
 }
 }
 
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 5831987937f7..3eb67e3f309a 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1687,6 +1687,14 @@ bool isUnipoll()
 return pSVData && pSVData->mpPollCallback != nullptr;
 }
 
+void numberOfViewsChanged(int count)
+{
+ImplSVData * pSVData = ImplGetSVData();
+auto& rCache = pSVData->maGDIData.maScaleCache;
+// Normally the cache size is set to 10, scale according to the number of 
users.
+rCache.setMaxSize(count * 10);
+}
+
 } } // namespace lok, namespace vcl
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: lingucomponent/source

2021-06-10 Thread Stephan Bergmann (via logerrit)
 lingucomponent/source/spellcheck/macosxspell/macspellimp.mm |3 ---
 1 file changed, 3 deletions(-)

New commits:
commit da905b57745a343aa922a4e9fb513b121cd6ad8b
Author: Stephan Bergmann 
AuthorDate: Thu Jun 10 16:02:02 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Jun 10 17:35:59 2021 +0200

-Werror,-Wunused-but-set-variable (Clang 13 trunk)

...ever since the code's introduction in
4e386a897cd43aae3664ce68e47dd46b271de780 "INTEGRATION: CWS 
macosxspellchecker"

Change-Id: I932b7ff4cc8aabf2e70379ed9ebe361881246c46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116997
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm 
b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index b4a206ada437..c20871b1e127 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -356,8 +356,6 @@ sal_Bool SAL_CALL MacSpellChecker::hasLocale(const Locale& 
rLocale)
 
 sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const 
Locale &rLocale )
 {
-rtl_TextEncoding aEnc;
-
 // initialize a myspell object for each dictionary once
 // (note: mutex is held higher up in isValid)
 
@@ -377,7 +375,6 @@ sal_Int16 MacSpellChecker::GetSpellFailure( const OUString 
&rWord, const Locale
 
 if (n)
 {
-aEnc = 0;
 NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
 NSString* aNSStr = [[[NSString alloc] initWithCharacters: 
reinterpret_cast(nWord.getStr()) length: 
nWord.getLength()]autorelease];
 NSString* aLang = [[[NSString alloc] initWithCharacters: 
reinterpret_cast(rLocale.Language.getStr()) length: 
rLocale.Language.getLength()]autorelease];
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'private/quwex/tdf59323' - 2342 commits - accessibility/inc accessibility/README.md accessibility/source android/.gitignore android/README.md android/source anim

2021-06-10 Thread Sarper Akdemir (via logerrit)
Rebased ref, commits from common ancestor:
commit 2b1c644e8e4013d6c1160d71c7b64a7cf3905a63
Author: Sarper Akdemir 
AuthorDate: Wed Jun 9 08:24:12 2021 +0300
Commit: Sarper Akdemir 
CommitDate: Thu Jun 10 18:27:54 2021 +0300

tdf#59323: pptx export: slide footers roundtrip unit test

Roundtrip test that checks the slide footers, and their placeholder indexes.

Change-Id: I9c4b819092ac6699617d71538c35b066d6e6f974

diff --git a/sd/qa/unit/data/pptx/tdf59323.pptx 
b/sd/qa/unit/data/pptx/tdf59323.pptx
new file mode 100755
index ..0660c0af4f23
Binary files /dev/null and b/sd/qa/unit/data/pptx/tdf59323.pptx differ
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx 
b/sd/qa/unit/export-tests-ooxml2.cxx
index b2d30225af44..f057dd8e7e05 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -149,6 +149,7 @@ public:
 void testTdf118825();
 void testTextColumns_tdf140852();
 void testTextColumns_3columns();
+void testTdf59323_slideFooters();
 
 CPPUNIT_TEST_SUITE(SdOOXMLExportTest2);
 
@@ -213,6 +214,7 @@ public:
 CPPUNIT_TEST(testTdf118825);
 CPPUNIT_TEST(testTextColumns_tdf140852);
 CPPUNIT_TEST(testTextColumns_3columns);
+CPPUNIT_TEST(testTdf59323_slideFooters);
 
 CPPUNIT_TEST_SUITE_END();
 
@@ -1742,6 +1744,41 @@ void SdOOXMLExportTest2::testTextColumns_3columns()
 tempFile.EnableKillingFile();
 }
 
+void SdOOXMLExportTest2::testTdf59323_slideFooters()
+{
+::sd::DrawDocShellRef xDocShRef
+= 
loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf59323.pptx"), 
PPTX);
+
+utl::TempFile tempFile;
+xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+
+uno::Reference 
xDoc(xDocShRef->GetDoc()->getUnoModel(),
+ uno::UNO_QUERY_THROW);
+CPPUNIT_ASSERT_EQUAL(sal_Int32(3), xDoc->getDrawPages()->getCount());
+
+for (int nPageIndex = 0; nPageIndex < 3; nPageIndex++)
+{
+uno::Reference xPage(getPage(0, xDocShRef));
+uno::Reference xPropSet(xPage, uno::UNO_QUERY);
+CPPUNIT_ASSERT(xPropSet->getPropertyValue("IsFooterVisible") == true);
+CPPUNIT_ASSERT(xPropSet->getPropertyValue("IsDateTimeVisible") == 
true);
+CPPUNIT_ASSERT(xPropSet->getPropertyValue("IsPageNumberVisible") == 
true);
+}
+
+// Test placeholder indexes
+xmlDocUniquePtr pXmlDocMaster = parseExport(tempFile, 
"ppt/slideMasters/slideMaster1.xml");
+assertXPath(pXmlDocMaster, "//p:ph [@type='dt']", "idx", "2");
+assertXPath(pXmlDocMaster, "//p:ph [@type='ftr']", "idx", "3");
+assertXPath(pXmlDocMaster, "//p:ph [@type='sldNum']", "idx", "4");
+
+xmlDocUniquePtr pXmlDocSlide1 = parseExport(tempFile, 
"ppt/slides/slide1.xml");
+assertXPath(pXmlDocSlide1, "//p:ph [@type='dt']", "idx", "2");
+assertXPath(pXmlDocSlide1, "//p:ph [@type='ftr']", "idx", "3");
+assertXPath(pXmlDocSlide1, "//p:ph [@type='sldNum']", "idx", "4");
+
+xDocShRef->DoClose();
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
commit 5990cbbb7b921a7967f1de56c2d39a24743a049a
Author: Sarper Akdemir 
AuthorDate: Wed Jun 9 08:21:27 2021 +0300
Commit: Sarper Akdemir 
CommitDate: Thu Jun 10 18:24:28 2021 +0300

tdf#59323: pptx export: add support for slide footers

Adds support for exporting slide footers to PPTX.

Slide footers are exported as shapes that use placeholder indexes to refer 
to
the shapes on master.

To make the references work they are exported to layout slides too.

Change-Id: I8bfde520b0aec66405523c719844e69c6fc15b79

diff --git a/sd/source/filter/eppt/epptooxml.hxx 
b/sd/source/filter/eppt/epptooxml.hxx
index f3a5377ac1cc..42fb0bf99bf1 100644
--- a/sd/source/filter/eppt/epptooxml.hxx
+++ b/sd/source/filter/eppt/epptooxml.hxx
@@ -124,6 +124,9 @@ private:
 @returns Placeholder index
 */
 unsigned CreateNewPlaceholderIndex(const 
css::uno::Reference& rXShape);
+css::uno::Reference 
GetReferencedPlaceholderXShape(const PlaceholderType eType, PageType ePageType) 
const;
+void WritePlaceholderReferenceShapes(PowerPointShapeExport& rDML, PageType 
ePageType);
+
 /// Should we export as .pptm, ie. do we contain macros?
 bool mbPptm;
 
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx 
b/sd/source/filter/eppt/pptx-epptooxml.cxx
index 85ac7ddf6b45..26f5d864cbb5 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -28,6 +28,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -57,6 +58,10 @@
 #include "pptx-animations.hxx"
 #include "../ppt/pptanimations.hxx"
 
+#include 
+#include 
+#include 
+
 #include 
 #include 
 #include 
@@ -115,7 +120,11 @@ public:
 ShapeExport&WriteTextShape(const Reference< XShape >& xShape) 
override;
 ShapeExport&WriteUnknownShape(const Reference< XSha

[Libreoffice-commits] core.git: fpicker/source

2021-06-10 Thread Stephan Bergmann (via logerrit)
 fpicker/source/aqua/ControlHelper.mm |2 --
 1 file changed, 2 deletions(-)

New commits:
commit 72bc2412db4f621d2c08e9b539fc9b9f441065e3
Author: Stephan Bergmann 
AuthorDate: Thu Jun 10 15:34:54 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Jun 10 16:54:48 2021 +0200

-Werror,-Wunused-but-set-variable (Clang 13 trunk)

...ever since the code block's introduction in
14bc62ad0d9e0179f4178d2913ebba7abf99755e "INTEGRATION: CWS
aquafilepicker02_DEV300"

Change-Id: Id4cda7ed087b350361b0207034fc31819d65efad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116992
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/fpicker/source/aqua/ControlHelper.mm 
b/fpicker/source/aqua/ControlHelper.mm
index 100e00dc662a..22b7f37b1a13 100644
--- a/fpicker/source/aqua/ControlHelper.mm
+++ b/fpicker/source/aqua/ControlHelper.mm
@@ -817,7 +817,6 @@ void ControlHelper::layoutControls()
 //get the control's bounds
 NSRect controlRect = [activeControl frame];
 int nControlHeight = controlRect.size.height;
-int nControlWidth = controlRect.size.width;
 
 //subtract the height from the current vertical position, because the 
control's bounds origin rect will be its lower left hand corner
 currenttop -= nControlHeight;
@@ -859,7 +858,6 @@ void ControlHelper::layoutControls()
 } else {
 currenttop += kAquaSpaceSwitchButtonFrameBoundsDiff;//from top
 
-nControlWidth = nCheckboxMaxWidth;
 int left = (nUsableWidth - nCheckboxMaxWidth) / 2;
 controlRect.origin.x = left;
 controlRect.origin.y = currenttop;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/osx

2021-06-10 Thread Stephan Bergmann (via logerrit)
 vcl/osx/printaccessoryview.mm |7 ---
 1 file changed, 7 deletions(-)

New commits:
commit e97a9211c08fe28d2b46d0a1371f0b391b5343b2
Author: Stephan Bergmann 
AuthorDate: Thu Jun 10 14:58:23 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Jun 10 16:44:43 2021 +0200

-Werror,-Wunused-but-set-variable (Clang 13 trunk)

...ever since the code's introduction in
adf0066a17538a394550237a54f6fc0027f6ed29 "#i91478# aqua implementation
(continued)"

Change-Id: I2dd7bbaba9e8068929f4792b7f953cbf01e03a7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116989
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm
index 7656c1b9df06..92c09f7dd47f 100644
--- a/vcl/osx/printaccessoryview.mm
+++ b/vcl/osx/printaccessoryview.mm
@@ -1063,7 +1063,6 @@ static void addEdit( NSView* pCurParent, CGFloat rCurX, 
CGFloat& rCurY, CGFloat
 OUString aPropertyName;
 OUString aGroupHint;
 Sequence< OUString > aChoices;
-bool bEnabled = true;
 sal_Int64 nMinValue = 0, nMaxValue = 0;
 CGFloat nAttachOffset = 0;
 bool bIgnore = false;
@@ -1089,12 +1088,6 @@ static void addEdit( NSView* pCurParent, CGFloat rCurX, 
CGFloat& rCurY, CGFloat
 rEntry.Value >>= aVal;
 aPropertyName = aVal.Name;
 }
-else if( rEntry.Name == "Enabled" )
-{
-bool bValue = true;
-rEntry.Value >>= bValue;
-bEnabled = bValue;
-}
 else if( rEntry.Name == "MinValue" )
 {
 rEntry.Value >>= nMinValue;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


ESC meeting minutes: 2021-06-10

2021-06-10 Thread Miklos Vajna
* Present:
+ Caolan, Michael S, Michael W, Markus, Cloph, Sophie, Stephan, Florian, 
Olivier, Eike, Heiko, Gabriel, Miklos, Xisco, Thorsten

* Completed Action Items:
+ None

* Pending Action Items:
+ None

* Release Engineering update (Cloph)
+ 7.2 status, beta1 will be tagged tomorrow
  + list label interop feature (Thorsten)
+ improves docx interop, just a few days are needed to polish that and 
get into master
+ 7.1.4 was announced as final today
+ Remotes: Android, iOS
+ Android viewer

* Documentation (Olivier)
+ New Help
   + Updates in the XHP editor
   + Improvements in CSS for CJK display (Kevin Suo)
+ Helpcontent2
   + new contributors: Ming Hua, Kevin Suo
  + Welcome!
   + Fixes after translations (ohallot, Fitoshido)
   + Updates and refactors (S. Fanning, ohallot)
   + New pages (R. Lima, A. Romedenne, Ohallot)
+ Guides
   + Work in progress
 + Updates in guides much faster → small update gaps to close
+ Wiki
   + Updates in Calc function pages ( S. Fanning)


* UX Update (Heiko)
+ Bugzilla (topicUI) statistics
252(252) (topicUI) bugs open, 175(175) (needsUXEval) needs to be 
evaluated by the UXteam
+ Updates:
BZ changes   1 week   1 month3 months   12 months
 added  3(-2) 8(-1) 25(-3)  77(-3)
 commented 53(6)228(-55)   877(-22)   3674(-62)
   removed  0(-1) 7(-1) 14(0)   33(-1)
  resolved  9(-7)48(-10)   140(2)  503(-11)
+ top 10 contributors:
  Heiko Tietze made 210 changes in 1 month, and 2358 changes in 1 year
  Foote, V Stuart made 48 changes in 1 month, and 594 changes in 1 year
  Xisco Fauli made 29 changes in 1 month, and 231 changes in 1 year
  Timur made 28 changes in 1 month, and 179 changes in 1 year
  Telesto made 26 changes in 1 month, and 833 changes in 1 year
  BogdanB made 21 changes in 1 month, and 163 changes in 1 year
  Kaganski, Mike made 21 changes in 1 month, and 183 changes in 1 year
  Ilmari Lauhakangas made 14 changes in 1 month, and 368 changes in 1 
year
  *UNKNOWN* made 12 changes in 1 month, and 18 changes in 1 year
  NISZ LibreOffice Team made 10 changes in 1 month, and 22 changes in 1 
year

+ 11 new tickets with needsUXEval Jun/03-10

   [Bug 142751] Cannot directly set Character Position properties
  for Impress styles
   [Bug 142744] Emphasis effects should support 'instantaneous' application
   [Bug 142724] In "Asian Phonetic Guide" dialog, Options in "Position"
  drop-down menu are mislabeled.
   [Bug 142704] what is %PRODUCTNAME?
   [Bug 140702] Removal of "To page" anchor context menu entries for frames,
  images, OLE objects (comment 3)
   [Bug 142695] Add info about double-click making commands sticky to all
  affected commands' tooltips
   [Bug 142653] Contextual Single user interface shows no toolbar
   ->  [Bug 142682] UI: Lacking 'border' around selected object
   [Bug 142681] UI: transparency slider active with fill set tot none
   ->  [Bug 142680] UI: Merge cells should be disabled instead of merging
  outside the selection [ Writer tables ]
   + Word UI seems to block complex merges
   [Bug 142644] UI: Languages without hyphenation shouldn't show
  a warning message

* Crash Testing (Caolan)
+ 17(+0) import failure, 9(+0) export failures
+ 3 coverity issues
+ 20 ossfuzz issues

* Crash Reporting (Xisco)
   + https://crashreport.libreoffice.org/stats/version/7.0.6.2
 + (+228) 1052 824 234 0
   + https://crashreport.libreoffice.org/stats/version/7.1.2.2
 + (-397) 3715 4112 4696 6083 7140 8516 7429 5495 3968 2046 0
   + https://crashreport.libreoffice.org/stats/version/7.1.3.2
 + (+571) 7105 6534 5427 3679 1730 0
+ 
https://crashreport.libreoffice.org/stats/signature/cppu::OInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject%20const%20&)
+ likely fixed. Thanks to Caolán

   + 
https://crashreport.libreoffice.org/stats/signature/com::sun::star::io::NotConnectedException::NotConnectedException(rtl::OUString%20const%20&,com::sun::star::uno::Reference%3Ccom::sun::star::uno::XInterface%3E%20const%20&)
+ Since 7.1.3.2, no steps to reproduce yet
+ maybe https://bugs.documentfoundation.org/show_bug.cgi?id=141115 ?

+ some symbols on the crashreport server are sometimes missing, breakpad 
binary just crashes frequently
  + currently the caller script doesn’t handle failures
  + it was discovered recently, not specific to the recent breakpad upgrade

* Mentoring/easyhack update (Hossein)
  committer...   1 week  1 month 3 months12 months
  open  85(13)  125(19) 161(27)  169(27)
   reviews 308(-36) 964

[Libreoffice-commits] core.git: sw/source

2021-06-10 Thread Miklos Vajna (via logerrit)
 sw/source/ui/frmdlg/frmpage.cxx |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 5951da5175b9d7e5b3b47bd0d90989d2ef528c79
Author: Miklos Vajna 
AuthorDate: Thu Jun 10 15:11:03 2021 +0200
Commit: Miklos Vajna 
CommitDate: Thu Jun 10 16:35:34 2021 +0200

sw image anchor type: add style UI for this

A frame style contains RES_ANCHOR, and SwFormatAnchor::m_eAnchorId
already describes an anchor type. This is even exposed on the UNO API as
the AnchorType property and its ODF import/export is also implemented.

Enable UI for this, so that templates can decide the default anchor type
when inserting images. Still keep the "to frame" anchor type disabled as
its meaning is unclear for frame styles.

Change-Id: I5d8ef63af9c8f2efa6485c4ec827ba9aef9b8956
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116990
Reviewed-by: Miklos Vajna 
Tested-by: Jenkins

diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx
index dc148972e277..09d732efce5a 100644
--- a/sw/source/ui/frmdlg/frmpage.cxx
+++ b/sw/source/ui/frmdlg/frmpage.cxx
@@ -884,8 +884,8 @@ void SwFramePage::Reset( const SfxItemSet *rSet )
 
 if (m_bFormat)
 {
-// at formats no anchor editing
-m_xAnchorFrame->set_sensitive(false);
+// at formats no to-fly anchor
+m_xAnchorAtFrameRB->set_sensitive(false);
 if (rSet->GetItemState(FN_KEEP_ASPECT_RATIO) != SfxItemState::SET)
 {
 m_xFixedRatioCB->set_sensitive(false);
@@ -1047,7 +1047,7 @@ bool SwFramePage::FillItemSet(SfxItemSet *rSet)
 
 RndStdIds eAnchorId = GetAnchor();
 
-if ( !m_bFormat )
+if ( !m_bFormat || eAnchorId != RndStdIds::FLY_AT_FLY )
 {
 pOldItem = GetOldItem(*rSet, RES_ANCHOR);
 if (m_bNew || !pOldItem || eAnchorId != static_cast(pOldItem)->GetAnchorId())
@@ -2287,7 +2287,7 @@ void SwFramePage::SetFormatUsed(bool bFormatUsed)
 {
 m_bFormat = bFormatUsed;
 if (m_bFormat)
-m_xAnchorFrame->hide();
+m_xAnchorAtFrameRB->hide();
 }
 
 void SwFramePage::EnableVerticalPositioning( bool bEnable )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2

2021-06-10 Thread Olivier Hallot (via logerrit)
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 71070e7df254ffdcf57f4c82b1597d9855218f23
Author: Olivier Hallot 
AuthorDate: Thu Jun 10 11:32:25 2021 -0300
Commit: Gerrit Code Review 
CommitDate: Thu Jun 10 16:32:25 2021 +0200

Update git submodules

* Update helpcontent2 from branch 'master'
  to 2b074d47c5f66d96576df2003b29d3cf09b4702a
  - tdf#130063 Add Help page for revamped B&N dialog for Impress and Draw

Change-Id: I770a45ff062056ee38d904324e1f0148a7eec9da
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116945
Tested-by: Jenkins
Reviewed-by: Olivier Hallot 

diff --git a/helpcontent2 b/helpcontent2
index db2d4a1373cc..2b074d47c5f6 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit db2d4a1373cc1a025888c4ef0359620eac3f88f6
+Subproject commit 2b074d47c5f66d96576df2003b29d3cf09b4702a
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: AllLangHelp_simpress.mk source/text

2021-06-10 Thread Olivier Hallot (via logerrit)
 AllLangHelp_simpress.mk   |1 
 source/text/shared/01/06050600.xhp|3 
 source/text/shared/guide/numbering_stop.xhp   |  191 --
 source/text/simpress/01/bulletandposition.xhp |   91 
 4 files changed, 185 insertions(+), 101 deletions(-)

New commits:
commit 2b074d47c5f66d96576df2003b29d3cf09b4702a
Author: Olivier Hallot 
AuthorDate: Wed Jun 9 19:20:47 2021 -0300
Commit: Olivier Hallot 
CommitDate: Thu Jun 10 16:32:25 2021 +0200

tdf#130063 Add Help page for revamped B&N dialog for Impress and Draw

Change-Id: I770a45ff062056ee38d904324e1f0148a7eec9da
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116945
Tested-by: Jenkins
Reviewed-by: Olivier Hallot 

diff --git a/AllLangHelp_simpress.mk b/AllLangHelp_simpress.mk
index 0ca10adbf..0b4dbf68c 100644
--- a/AllLangHelp_simpress.mk
+++ b/AllLangHelp_simpress.mk
@@ -111,6 +111,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,simpress,\
 helpcontent2/source/text/simpress/01/13180100 \
 helpcontent2/source/text/simpress/01/13180200 \
 helpcontent2/source/text/simpress/01/13180300 \
+helpcontent2/source/text/simpress/01/bulletandposition \
 helpcontent2/source/text/simpress/01/effectoptions \
 helpcontent2/source/text/simpress/01/effectoptionseffect \
 helpcontent2/source/text/simpress/01/effectoptionstext \
diff --git a/source/text/shared/01/06050600.xhp 
b/source/text/shared/01/06050600.xhp
index 0365ca5b3..8bcf41679 100644
--- a/source/text/shared/01/06050600.xhp
+++ b/source/text/shared/01/06050600.xhp
@@ -42,6 +42,7 @@
 
 Level
 Select the level(s) that 
you want to modify. To apply the options to all the levels, select 
“1-10”.
+
 
 
 
@@ -69,8 +70,10 @@
 Tab stop at
 If you select a tab stop to follow the numbering, you can enter a 
non-negative value as the tab stop position.
 
+
 Indent at
 Enter the distance from the left page margin to the start of all lines 
in the numbered paragraph that follow the first line.
+
 
 
 
diff --git a/source/text/shared/guide/numbering_stop.xhp 
b/source/text/shared/guide/numbering_stop.xhp
index a17e870d5..d1b1f62ea 100644
--- a/source/text/shared/guide/numbering_stop.xhp
+++ b/source/text/shared/guide/numbering_stop.xhp
@@ -1,107 +1,96 @@
 
 
-
+
 
-
-  
- Turning off Bullets and Numbering 
for Individual Paragraphs
- /text/shared/guide/numbering_stop.xhp
-  
-   
-   
+
+
+Turning off Bullets and Numbering 
for Individual Paragraphs
+/text/shared/guide/numbering_stop.xhp
+
+
+
 numbering; turning off
-  bullets; turning off
-  removing, see also deleting
-  removing;bullets and numbering
-  keyboard;removing numbering
+bullets; turning off
+removing, see also deleting
+removing;bullets and numbering
+keyboard;removing numbering
 
-Turning off Bullets and Numbering for 
Individual Paragraphs
-
-
-no bullets for Calc
-Bullets and Numbering of 
paragraphs is supported only in Writer, Impress and Draw.
-
-no bullets for Mathdon't care 
for Math by now. Issue 98726
-
-
-For the 
current paragraph or selected paragraphs you can switch off the automatic 
numbering or listing. Click the No List icon in the 
Formatting bar. The list indenting is also removed.
-
-   
- 
-   
-No List 
icon
- 
- 
-   No List 
icon
- 
-
-   
-
-
-Impress, Draw
-If the cursor 
is located within a numbered or bulleted list, you can turn off automatic 
numbers or bullets for the current paragraph or selected paragraphs by clicking 
the Toggle Unordered List icon on the Text Formatting 
bar.
-
-   
-  
-
-Icon
-   
-  
-  
-Toggle 
Unordered List icon
-  
-  
-
-
-
-
-  To remove a number or bullet from a paragraph while preserving the list 
indenting: 
-
-  
- 
-Place 
the cursor at the beginning of a paragraph in a list and press the 
Backspace key. 
-
- 
- 
-The 
numbering of the paragraph disappears and is removed from the numbering 
sequence. Numbering resumes in the following paragraph. 
-
- 
-  
-  
-   
- Press 
Shift+Backspace at the beginning of a list paragraph to 
return the number or bullet.
-   
- 
-  If you 
press the Enter key in an empty numbered paragraph, the numbering stops. 
-
-
-  
-
-  Format - 
Bullets and Numbering
-  
-  
-  
-  
-  
-  
-   
- 
-
+Turning off Bullets and Numbering for 
Individual Paragraphs
+
+no bullets for Calc
+Bullets and 
Numbering of paragraphs is supported only in Writer, Impress and Draw.
+
+no bullets for 
Mathdon't care for Math by now. Issue 98726
+
+
+For the current paragraph or selected paragraphs you can 
switch off the automatic numbering or listing. Click the No List 
icon in the Formatting bar.

[Libreoffice-commits] core.git: helpcontent2

2021-06-10 Thread Olivier Hallot (via logerrit)
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 57b80927410a2020c34ff0775931b08b2f7dfffd
Author: Olivier Hallot 
AuthorDate: Thu Jun 10 11:31:49 2021 -0300
Commit: Gerrit Code Review 
CommitDate: Thu Jun 10 16:31:49 2021 +0200

Update git submodules

* Update helpcontent2 from branch 'master'
  to db2d4a1373cc1a025888c4ef0359620eac3f88f6
  - tdf#112685 Advanced TSCP classification help page

* Refactor TSCP pages
* Add help page for Classification dialog
* Add Help page for Classification Toolbar

Change-Id: Id11c15d6937400b7cd28a5d80c4e9438693b28a1
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116874
Tested-by: Jenkins
Reviewed-by: Olivier Hallot 

diff --git a/helpcontent2 b/helpcontent2
index e5ac483bab25..db2d4a1373cc 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit e5ac483bab252537ccbd087e6a133230cb8bae70
+Subproject commit db2d4a1373cc1a025888c4ef0359620eac3f88f6
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: AllLangHelp_shared.mk AllLangHelp_swriter.mk source/text

2021-06-10 Thread Olivier Hallot (via logerrit)
 AllLangHelp_shared.mk  |3 
 AllLangHelp_swriter.mk |1 
 source/text/shared/01/classificationbar.xhp|   54 
 source/text/shared/01/classificationdialog.xhp |   81 +
 source/text/shared/guide/classification.xhp|   55 ++--
 5 files changed, 158 insertions(+), 36 deletions(-)

New commits:
commit db2d4a1373cc1a025888c4ef0359620eac3f88f6
Author: Olivier Hallot 
AuthorDate: Tue Jun 8 21:03:18 2021 -0300
Commit: Olivier Hallot 
CommitDate: Thu Jun 10 16:31:49 2021 +0200

tdf#112685 Advanced TSCP classification help page

* Refactor TSCP pages
* Add help page for Classification dialog
* Add Help page for Classification Toolbar

Change-Id: Id11c15d6937400b7cd28a5d80c4e9438693b28a1
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116874
Tested-by: Jenkins
Reviewed-by: Olivier Hallot 

diff --git a/AllLangHelp_shared.mk b/AllLangHelp_shared.mk
index 6ebe3e7db..efb7959be 100644
--- a/AllLangHelp_shared.mk
+++ b/AllLangHelp_shared.mk
@@ -331,6 +331,8 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,shared,\
 helpcontent2/source/text/shared/01/0708 \
 helpcontent2/source/text/shared/01/about_meta_tags \
 helpcontent2/source/text/shared/01/certificatepath \
+helpcontent2/source/text/shared/01/classificationbar \
+helpcontent2/source/text/shared/01/classificationdialog \
 helpcontent2/source/text/shared/01/digitalsignatures \
 helpcontent2/source/text/shared/01/digitalsignaturespdf \
 helpcontent2/source/text/shared/01/addsignatureline \
@@ -634,6 +636,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,shared,\
 helpcontent2/source/text/shared/guide/chart_insert \
 helpcontent2/source/text/shared/guide/chart_legend \
 helpcontent2/source/text/shared/guide/chart_title \
+helpcontent2/source/text/shared/guide/classification \
 helpcontent2/source/text/shared/guide/cmis-remote-files \
 helpcontent2/source/text/shared/guide/cmis-remote-files-setup \
 helpcontent2/source/text/shared/guide/collab \
diff --git a/AllLangHelp_swriter.mk b/AllLangHelp_swriter.mk
index 07ec0ed3d..05c173f55 100644
--- a/AllLangHelp_swriter.mk
+++ b/AllLangHelp_swriter.mk
@@ -412,7 +412,6 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,swriter,\
 helpcontent2/source/text/swriter/main0216 \
 helpcontent2/source/text/swriter/main0220 \
 helpcontent2/source/text/swriter/main0503 \
-helpcontent2/source/text/swriter/classificationbar \
 helpcontent2/source/text/swriter/menu/insert_header_footer \
 helpcontent2/source/text/swriter/menu/insert_footnote_endnote \
 helpcontent2/source/text/swriter/menu/insert_frame \
diff --git a/source/text/shared/01/classificationbar.xhp 
b/source/text/shared/01/classificationbar.xhp
new file mode 100644
index 0..e05fd9396
--- /dev/null
+++ b/source/text/shared/01/classificationbar.xhp
@@ -0,0 +1,54 @@
+
+
+
+
+
+  
+Classification Bar
+/text/shared/01/classificationbar.xhp
+  
+
+
+
+
+
+  classification toolbar;display
+
+
+Classification Toolbar
+The 
Classification bar contains tools to help secure document 
handling.
+The 
Classification toolbar contains listboxes to help in selecting the 
security of the document, according to the BAF 
category policy and BAILS levels. %PRODUCTNAME will 
add custom fields in the document properties (File - 
Properties, Custom Properties tab) to store the 
classification policy as document metadata.
+
+
+Choose View - Toolbars - TSCP 
Classification
+
+
+Levels
+
+
+
+
+Manage Document Classification
+Opens the Classification dialog for document classification.
+
+Manage Paragraph Classification
+Opens the Classification dialog for paragraph classification.
+
+
+
+
+
+
+
+
+https://wiki.documentfoundation.org/TSCP-classification"; name="wiki 
classification">Wiki page on document classification
+
+
+
diff --git a/source/text/shared/01/classificationdialog.xhp 
b/source/text/shared/01/classificationdialog.xhp
new file mode 100644
index 0..aa4c71079
--- /dev/null
+++ b/source/text/shared/01/classificationdialog.xhp
@@ -0,0 +1,81 @@
+
+
+
+
+
+  
+Classification Dialog
+/text/shared/01/classificationdialog.xhp
+  
+
+
+
+
+
+classification;contents
+classification;licenses
+classification;part numbers
+classification;markings
+classification;paragraph
+paragraph;classification
+
+
+Document and Paragraph Classification 
Dialog
+
+
+Applies classification 
policy to the current document or paragraph. The dialog helps to assemble the 
classification policy terms of the document or paragraph by using predefined 
classification terms or by entering custom classification terms. The dialog 
display several lists of predefined items, which are loaded from the BAILS-xml TSCP policy file.
+
+Enable the 
TSCP Classification toolbar in View - Toolbars - TSCP 
Classification  and click on t

[Libreoffice-commits] core.git: svx/uiconfig

2021-06-10 Thread Olivier Hallot (via logerrit)
 svx/uiconfig/ui/classificationdialog.ui |  310 ++--
 1 file changed, 181 insertions(+), 129 deletions(-)

New commits:
commit 0c8e119c9732e21b9391a4751200988b08594138
Author: Olivier Hallot 
AuthorDate: Wed Jun 9 10:05:45 2021 -0300
Commit: Olivier Hallot 
CommitDate: Thu Jun 10 16:30:06 2021 +0200

Add extended tips to document classification dialog

Change-Id: I41ffe5c66e56ec7add2d4fcbb129ae2e3ff13b20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116915
Tested-by: Jenkins
Reviewed-by: Olivier Hallot 

diff --git a/svx/uiconfig/ui/classificationdialog.ui 
b/svx/uiconfig/ui/classificationdialog.ui
index 713d3c3e0d78..e0f40e1edd03 100644
--- a/svx/uiconfig/ui/classificationdialog.ui
+++ b/svx/uiconfig/ui/classificationdialog.ui
@@ -1,11 +1,11 @@
 
-
+
 
   
   
 True
-False
-cmd/lc_bold.png
+False
+cmd/lc_bold.png
   
   
 
@@ -32,33 +32,30 @@
 
   
   
-False
-6
+False
+6
 Classification
 True
-0
-0
-dialog
-
-  
-
+0
+0
+dialog
 
   
-False
+False
 vertical
 12
 
   
-False
-end
+False
+end
 
   
 _OK
 True
-True
-True
-True
-True
+True
+True
+True
+True
 True
   
   
@@ -71,8 +68,8 @@
   
 _Cancel
 True
-True
-True
+True
+True
 True
   
   
@@ -85,8 +82,8 @@
   
 _Help
 True
-True
-True
+True
+True
 True
   
   
@@ -100,28 +97,28 @@
   
 False
 True
-end
+end
 0
   
 
 
-  
+  
   
 True
-False
-6
-6
+False
+6
+6
 
-  
+  
   
 True
-False
-6
-6
+False
+6
+6
 
   
 True
-False
+False
 Classification:
 0
 
@@ -129,14 +126,14 @@
 
   
   
-0
-1
+0
+1
   
 
 
   
 True
-False
+False
 International:
 0
 
@@ -144,41 +141,51 @@
 
   
   
-0
-2
+0
+2
   
 
 
   
 True
-False
+False
 True
 
   
 
+
+  
+Lists the 
translated document and paragraph classification levels of your 
installation.
+  
+
   
   
-1
-1
+1
+1
   
 
 
   
 True
-False
+False
 
   
 
+
+  
+Lists 
the international document and paragraph classification levels of your 
installation.
+  
+
   
   
-1
-2
+1
+2
   
 
 
   
 True
-False
+False
 Marking:
 0
 
@@ -186,15 +193,15 @@
 
   
   
-0
-3
+0
+3
 2
   
 
 
   
 True

[Libreoffice-commits] core.git: framework/source

2021-06-10 Thread Noel Grandin (via logerrit)
 framework/source/fwe/classes/addonsoptions.cxx |   20 
 1 file changed, 8 insertions(+), 12 deletions(-)

New commits:
commit 5c56ee765c570b31b0820ea1a228a0166b84843a
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:49:31 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 16:26:43 2021 +0200

loplugin:unnecessaryreturn AddonsOptions_Impl

Change-Id: Ic2adf9467af7118e8efbbae2132912f3cc3d6943
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116988
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/framework/source/fwe/classes/addonsoptions.cxx 
b/framework/source/fwe/classes/addonsoptions.cxx
index c67f3b65a06d..ba3693404d93 100644
--- a/framework/source/fwe/classes/addonsoptions.cxx
+++ b/framework/source/fwe/classes/addonsoptions.cxx
@@ -291,9 +291,9 @@ class AddonsOptions_Impl : public ConfigItem
 void ReadStatusbarMergeInstructions( 
MergeStatusbarInstructionContainer& rContainer );
 
 void ReadMergeMenuData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& rMergeMenu );
-bool ReadMergeToolbarData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& 
rMergeToolbarItems );
-bool ReadMergeNotebookBarData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& 
rMergeNotebookBarItems );
-bool ReadMergeStatusbarData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& 
rMergeStatusbar );
+void ReadMergeToolbarData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& 
rMergeToolbarItems );
+void ReadMergeNotebookBarData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& 
rMergeNotebookBarItems );
+void ReadMergeStatusbarData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& 
rMergeStatusbar );
 bool ReadMenuItem( std::u16string_view 
aMenuItemNodeName, Sequence< PropertyValue >& aMenuItem, bool bIgnoreSubMenu = 
false );
 bool ReadPopupMenu( std::u16string_view 
aPopupMenuNodeName, Sequence< PropertyValue >& aPopupMenu );
 void AppendPopupMenu( Sequence< PropertyValue >& 
aTargetPopupMenu, const Sequence< PropertyValue >& rSourcePopupMenu );
@@ -1065,12 +1065,12 @@ void AddonsOptions_Impl::ReadToolbarMergeInstructions( 
ToolbarMergingInstruction
 }
 }
 
-bool AddonsOptions_Impl::ReadMergeToolbarData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& 
rMergeToolbarItems )
+void AddonsOptions_Impl::ReadMergeToolbarData( std::u16string_view 
aMergeAddonInstructionBase, Sequence< Sequence< PropertyValue > >& 
rMergeToolbarItems )
 {
 OUString aMergeToolbarBaseNode = aMergeAddonInstructionBase +
 m_aPropMergeToolbarNames[ OFFSET_MERGETOOLBAR_TOOLBARITEMS ];
 
-return ReadToolBarItemSet( aMergeToolbarBaseNode, rMergeToolbarItems );
+ReadToolBarItemSet( aMergeToolbarBaseNode, rMergeToolbarItems );
 }
 
 void AddonsOptions_Impl::ReadNotebookBarMergeInstructions(
@@ -1138,14 +1138,14 @@ void 
AddonsOptions_Impl::ReadNotebookBarMergeInstructions(
 }
 }
 
-bool AddonsOptions_Impl::ReadMergeNotebookBarData(
+void AddonsOptions_Impl::ReadMergeNotebookBarData(
 std::u16string_view aMergeAddonInstructionBase,
 Sequence>& rMergeNotebookBarItems)
 {
 OUString aMergeNotebookBarBaseNode = aMergeAddonInstructionBase +
 m_aPropMergeNotebookBarNames[OFFSET_MERGENOTEBOOKBAR_NOTEBOOKBARITEMS];
 
-return ReadNotebookBarItemSet(aMergeNotebookBarBaseNode, 
rMergeNotebookBarItems);
+ReadNotebookBarItemSet(aMergeNotebookBarBaseNode, rMergeNotebookBarItems);
 }
 
 void AddonsOptions_Impl::ReadStatusbarMergeInstructions( 
MergeStatusbarInstructionContainer& aContainer )
@@ -1204,12 +1204,10 @@ void 
AddonsOptions_Impl::ReadStatusbarMergeInstructions( MergeStatusbarInstructi
 }
 }
 
-bool AddonsOptions_Impl::ReadMergeStatusbarData(
+void AddonsOptions_Impl::ReadMergeStatusbarData(
 std::u16string_view aMergeAddonInstructionBase,
 Sequence< Sequence< PropertyValue > >& rMergeStatusbarItems )
 {
-sal_uInt32 nStatusbarItemCount = rMergeStatusbarItems.getLength();
-
 OUString aMergeStatusbarBaseNode = aMergeAddonInstructionBase +
 m_aPropMergeStatusbarNames[ OFFSET_MERGESTATUSBAR_STATUSBARITEMS ];
 
@@ -1238,8 +1236,6 @@ bool AddonsOptions_Impl::ReadMergeStatusbarData(
 rMergeStatusbarItems[nAddonCount] = aStatusbarItem;
 }
 }
-
-return ( o3tl::make_unsigned(rMergeStatusbarItems.getLength()) > 
nStatusbarItemCount );
 }
 
 bool AddonsOptions_Impl::ReadStatusBarItem(
___
Libr

[Libreoffice-commits] core.git: svl/source

2021-06-10 Thread Noel Grandin (via logerrit)
 svl/source/notify/listener.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9614c3c97bdc544e358ac9979b5a1f2681cfa8d6
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:48:54 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 16:19:52 2021 +0200

small optimisation in SvtListener::EndListening

erase immediately after find so we're working with cache-hot data.

Instead of calling something else, which will load other stuff, then
reload the data to do the erase.

Change-Id: Ibbcca584b488ec3edc5b271efbd15d9a9ea2213f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116986
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/svl/source/notify/listener.cxx b/svl/source/notify/listener.cxx
index e1226f855f7c..172dbdb8b31d 100644
--- a/svl/source/notify/listener.cxx
+++ b/svl/source/notify/listener.cxx
@@ -58,9 +58,9 @@ void SvtListener::EndListening( SvtBroadcaster& rBroadcaster )
 if (it == maBroadcasters.end())
 // Not listening to this broadcaster.
 return;
+maBroadcasters.erase(it);
 
 rBroadcaster.Remove(this);
-maBroadcasters.erase(it);
 }
 
 // called from the SvtBroadcaster destructor, used to avoid calling
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: include/svl svl/source

2021-06-10 Thread Noel Grandin (via logerrit)
 include/svl/listener.hxx   |2 +-
 svl/source/notify/listener.cxx |5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 67cadbe2a9165f99de7d47a861954c6bc6c5f216
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:47:42 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 16:19:22 2021 +0200

loplugin:unnecessaryreturn SvtListener::EndListening

Change-Id: Ifa7092b31b6027eeb5d7df67ac8b7de9337faf66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116985
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/include/svl/listener.hxx b/include/svl/listener.hxx
index 38d72552618a..636e69d9cf8b 100644
--- a/include/svl/listener.hxx
+++ b/include/svl/listener.hxx
@@ -52,7 +52,7 @@ public:
 virtual ~SvtListener() COVERITY_NOEXCEPT_FALSE;
 
 bool StartListening( SvtBroadcaster& rBroadcaster );
-bool EndListening( SvtBroadcaster& rBroadcaster );
+void EndListening( SvtBroadcaster& rBroadcaster );
 void EndListeningAll();
 
 /// Overwrites existing broadcasters with the ones from the specified 
listener
diff --git a/svl/source/notify/listener.cxx b/svl/source/notify/listener.cxx
index 51564ce9b4b7..e1226f855f7c 100644
--- a/svl/source/notify/listener.cxx
+++ b/svl/source/notify/listener.cxx
@@ -52,16 +52,15 @@ bool SvtListener::StartListening( SvtBroadcaster& 
rBroadcaster )
 return r.second;
 }
 
-bool SvtListener::EndListening( SvtBroadcaster& rBroadcaster )
+void SvtListener::EndListening( SvtBroadcaster& rBroadcaster )
 {
 BroadcastersType::const_iterator it = maBroadcasters.find(&rBroadcaster);
 if (it == maBroadcasters.end())
 // Not listening to this broadcaster.
-return false;
+return;
 
 rBroadcaster.Remove(this);
 maBroadcasters.erase(it);
-return true;
 }
 
 // called from the SvtBroadcaster destructor, used to avoid calling
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'private/quwex/tdf59323' - 6 commits - chart2/qa include/oox oox/source sd/qa sd/source

2021-06-10 Thread Sarper Akdemir (via logerrit)
Rebased ref, commits from common ancestor:
commit 6a455227f23378728abb2ff7adb37d825b8a45b1
Author: Sarper Akdemir 
AuthorDate: Wed Jun 9 08:24:12 2021 +0300
Commit: Sarper Akdemir 
CommitDate: Thu Jun 10 17:02:15 2021 +0300

pptx export: slide footers roundtrip unit test

Change-Id: I9c4b819092ac6699617d71538c35b066d6e6f974

diff --git a/sd/qa/unit/data/pptx/tdf59323.pptx 
b/sd/qa/unit/data/pptx/tdf59323.pptx
new file mode 100755
index ..0660c0af4f23
Binary files /dev/null and b/sd/qa/unit/data/pptx/tdf59323.pptx differ
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx 
b/sd/qa/unit/export-tests-ooxml2.cxx
index 432bd79d1993..2822262cecd0 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -211,6 +211,7 @@ public:
 void testTdf128213ShapeRot();
 void testTdf125560_textDeflate();
 void testTdf125560_textInflateTop();
+void testTdf59323_slideFooters();
 
 CPPUNIT_TEST_SUITE(SdOOXMLExportTest2);
 
@@ -336,6 +337,7 @@ public:
 CPPUNIT_TEST(testTdf128213ShapeRot);
 CPPUNIT_TEST(testTdf125560_textDeflate);
 CPPUNIT_TEST(testTdf125560_textInflateTop);
+CPPUNIT_TEST(testTdf59323_slideFooters);
 
 CPPUNIT_TEST_SUITE_END();
 
@@ -3160,6 +3162,41 @@ void SdOOXMLExportTest2::testTdf125560_textInflateTop()
 assertXPath(pXmlDocRels, 
"/office:document-content/office:body/office:presentation/draw:page/draw:custom-shape/draw:enhanced-geometry",
 "type", "mso-spt164");
 }
 
+void SdOOXMLExportTest2::testTdf59323_slideFooters()
+{
+::sd::DrawDocShellRef xDocShRef
+= 
loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf59323.pptx"), 
PPTX);
+
+utl::TempFile tempFile;
+xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+
+uno::Reference 
xDoc(xDocShRef->GetDoc()->getUnoModel(),
+ uno::UNO_QUERY_THROW);
+CPPUNIT_ASSERT_EQUAL(sal_Int32(3), xDoc->getDrawPages()->getCount());
+
+for (int nPageIndex = 0; nPageIndex < 3; nPageIndex++)
+{
+uno::Reference xPage(getPage(0, xDocShRef));
+uno::Reference xPropSet(xPage, uno::UNO_QUERY);
+CPPUNIT_ASSERT(xPropSet->getPropertyValue("IsFooterVisible") == true);
+CPPUNIT_ASSERT(xPropSet->getPropertyValue("IsDateTimeVisible") == 
true);
+CPPUNIT_ASSERT(xPropSet->getPropertyValue("IsPageNumberVisible") == 
true);
+}
+
+// Test placeholder indexes
+xmlDocUniquePtr pXmlDocMaster = parseExport(tempFile, 
"ppt/slideMasters/slideMaster1.xml");
+assertXPath(pXmlDocMaster, "//p:ph [@type='dt']", "idx", "2");
+assertXPath(pXmlDocMaster, "//p:ph [@type='ftr']", "idx", "3");
+assertXPath(pXmlDocMaster, "//p:ph [@type='sldNum']", "idx", "4");
+
+xmlDocUniquePtr pXmlDocSlide1 = parseExport(tempFile, 
"ppt/slides/slide1.xml");
+assertXPath(pXmlDocSlide1, "//p:ph [@type='dt']", "idx", "2");
+assertXPath(pXmlDocSlide1, "//p:ph [@type='ftr']", "idx", "3");
+assertXPath(pXmlDocSlide1, "//p:ph [@type='sldNum']", "idx", "4");
+
+xDocShRef->DoClose();
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
commit 35de4bc6649fc5258a1f0f12076983464bf51f82
Author: Sarper Akdemir 
AuthorDate: Wed Jun 9 08:21:27 2021 +0300
Commit: Sarper Akdemir 
CommitDate: Thu Jun 10 17:02:14 2021 +0300

pptx export: add support for slide footers

Change-Id: I8bfde520b0aec66405523c719844e69c6fc15b79

diff --git a/sd/source/filter/eppt/epptooxml.hxx 
b/sd/source/filter/eppt/epptooxml.hxx
index 405c5b841ae9..d33db57a92a8 100644
--- a/sd/source/filter/eppt/epptooxml.hxx
+++ b/sd/source/filter/eppt/epptooxml.hxx
@@ -122,6 +122,9 @@ private:
 @returns Placeholder index
 */
 unsigned CreateNewPlaceholderIndex(const 
css::uno::Reference& rXShape);
+css::uno::Reference 
GetReferencedPlaceholderXShape(const PlaceholderType eType, PageType ePageType) 
const;
+void WritePlaceholderReferenceShapes(PowerPointShapeExport& rDML, PageType 
ePageType);
+
 /// Should we export as .pptm, ie. do we contain macros?
 bool mbPptm;
 
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx 
b/sd/source/filter/eppt/pptx-epptooxml.cxx
index db673d754eac..0245a20bbc3e 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -28,6 +28,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -53,6 +54,10 @@
 #include "pptx-animations.hxx"
 #include "../ppt/pptanimations.hxx"
 
+#include 
+#include 
+#include 
+
 #include 
 #include 
 #include 
@@ -107,7 +112,11 @@ public:
 ShapeExport&WriteTextShape(const Reference< XShape >& xShape) 
override;
 ShapeExport&WriteUnknownShape(const Reference< XShape >& xShape) 
override;
 ShapeExport&WritePlaceholderShape(const Reference< XShape >& 
xShape, PlaceholderType ePlaceholder);
+/** Writes a placeholder shape that references the plac

[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - svx/source svx/util

2021-06-10 Thread Mike Kaganski (via logerrit)
 svx/source/unodraw/SvxXTextColumns.cxx |9 -
 svx/util/svxcore.component |4 
 2 files changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 58ccee55e797666c0ac6d4e7602842ced6896395
Author: Mike Kaganski 
AuthorDate: Thu Jun 10 12:28:29 2021 +0300
Commit: Mike Kaganski 
CommitDate: Thu Jun 10 16:00:35 2021 +0200

svxcore: provide UNO constructor for com.sun.star.text.TextColumns

This allows to create it e.g. in Basic macros using CreateUnoService

Change-Id: I949d3b92c83cd9e763244f70b22f0f367b93cb48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116970
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 
(cherry picked from commit 01379acedcdad4fc08c61b73b8500e758b88d5ae)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116903
Tested-by: Jenkins CollaboraOffice 

diff --git a/svx/source/unodraw/SvxXTextColumns.cxx 
b/svx/source/unodraw/SvxXTextColumns.cxx
index d9c9b81cb9a7..3d4732cc9817 100644
--- a/svx/source/unodraw/SvxXTextColumns.cxx
+++ b/svx/source/unodraw/SvxXTextColumns.cxx
@@ -126,7 +126,7 @@ private:
 sal_Int16 m_nSepLineStyle = css::text::ColumnSeparatorStyle::NONE;
 };
 
-OUString SvxXTextColumns::getImplementationName() { return "SvxXTextColumns"; }
+OUString SvxXTextColumns::getImplementationName() { return 
"com.sun.star.comp.svx.TextColumns"; }
 
 sal_Bool SvxXTextColumns::supportsService(const OUString& rServiceName)
 {
@@ -324,4 +324,11 @@ css::uno::Reference 
SvxXTextColumns_createInstance() noexc
 return static_cast(new SvxXTextColumns);
 }
 
+extern "C" SVXCORE_DLLPUBLIC css::uno::XInterface*
+com_sun_star_comp_svx_TextColumns_get_implementation(css::uno::XComponentContext*,
+ 
css::uno::Sequence const&)
+{
+return cppu::acquire(new SvxXTextColumns);
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/svx/util/svxcore.component b/svx/util/svxcore.component
index b36a8d71bcb4..d8989b71f4e9 100644
--- a/svx/util/svxcore.component
+++ b/svx/util/svxcore.component
@@ -92,4 +92,8 @@
 
constructor="com_sun_star_comp_svx_StylesPreviewToolBoxControl_get_implementation">
 
   
+  
+
+  
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: apple_remote/source

2021-06-10 Thread Stephan Bergmann (via logerrit)
 apple_remote/source/HIDRemoteControlDevice.m |   16 +---
 1 file changed, 1 insertion(+), 15 deletions(-)

New commits:
commit 893c8fa232b0c78c5f390f7d35b6e1a7f6538ed1
Author: Stephan Bergmann 
AuthorDate: Thu Jun 10 14:29:52 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Jun 10 15:52:51 2021 +0200

-Werror,-Wunused-but-set-variable (Clang 13 trunk)

all three variables were unused ever since the code's introduction in
229a0de9c81554dfe6c96a0095a582476abc87ba "CWS-TOOLING: integrate CWS
appleremote01"

Change-Id: Ib755b86c81a6823c440f9f6a392b8f4b7de973ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116984
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/apple_remote/source/HIDRemoteControlDevice.m 
b/apple_remote/source/HIDRemoteControlDevice.m
index 9a875d1910c4..6ed20b8eb6bf 100644
--- a/apple_remote/source/HIDRemoteControlDevice.m
+++ b/apple_remote/source/HIDRemoteControlDevice.m
@@ -407,8 +407,6 @@ static void QueueCallbackFunction(void* target,  IOReturn 
result, void* refcon,
 - (BOOL) initializeCookies {
 IOHIDDeviceInterface122** handle = 
(IOHIDDeviceInterface122**)hidDeviceInterface;
 IOHIDElementCookie  cookie;
-longusage;
-longusagePage;
 id  object;
 NSArray*elements = nil;
 NSDictionary*   element;
@@ -439,16 +437,6 @@ static void QueueCallbackFunction(void* target,  IOReturn 
result, void* refcon,
 if (object == NULL || CFGetTypeID(object) != CFNumberGetTypeID()) 
continue;
 cookie = (IOHIDElementCookie) [object longValue];
 
-//Get usage
-object = [element valueForKey: 
(NSString*)CFSTR(kIOHIDElementUsageKey) ];
-if (object == nil || ![object isKindOfClass:[NSNumber class]]) 
continue;
-usage = [object longValue];
-
-//Get usage page
-object = [element valueForKey: 
(NSString*)CFSTR(kIOHIDElementUsagePageKey) ];
-if (object == nil || ![object isKindOfClass:[NSNumber class]]) 
continue;
-usagePage = [object longValue];
-
 [allCookies addObject: [NSNumber numberWithInt:(int)cookie]];
 }
 CFRelease(elements);
@@ -461,8 +449,6 @@ static void QueueCallbackFunction(void* target,  IOReturn 
result, void* refcon,
 }
 
 - (BOOL) openDevice {
-HRESULT  result;
-
 IOHIDOptionsType openMode = kIOHIDOptionsTypeNone;
 if ([self isOpenInExclusiveMode]) openMode = kIOHIDOptionsTypeSeizeDevice;
 IOReturn ioReturnValue = (*hidDeviceInterface)->open(hidDeviceInterface, 
openMode);
@@ -470,7 +456,7 @@ static void QueueCallbackFunction(void* target,  IOReturn 
result, void* refcon,
 if (ioReturnValue == KERN_SUCCESS) {
 queue = (*hidDeviceInterface)->allocQueue(hidDeviceInterface);
 if (queue) {
-result = (*queue)->create(queue, 0, 12);//depth: maximum 
number of elements in queue before oldest elements in queue begin to be lost.
+(*queue)->create(queue, 0, 12);//depth: maximum number of 
elements in queue before oldest elements in queue begin to be lost.
 
 IOHIDElementCookie cookie;
 NSEnumerator *allCookiesEnumerator = [allCookies objectEnumerator];
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/nisz/libreoffice-7-1' - configure.ac distro-configs/NISZ_32.conf distro-configs/NISZ_64.conf

2021-06-10 Thread Gabor Kelemen (via logerrit)
 configure.ac|2 +-
 distro-configs/NISZ_32.conf |   32 
 distro-configs/NISZ_64.conf |   33 +
 3 files changed, 66 insertions(+), 1 deletion(-)

New commits:
commit fd233dbf4e996ed1cb73c7883d2829c4b9560853
Author: Gabor Kelemen 
AuthorDate: Wed Jan 6 17:27:47 2021 +0100
Commit: Gabor Kelemen 
CommitDate: Thu Jun 10 15:43:12 2021 +0200

Add our own distro config files and first version bump

Change-Id: I70ad2e17184fdfc6bf82fba09be2f8a7fe8d6951
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108879
Tested-by: Gabor Kelemen 
Reviewed-by: Gabor Kelemen 
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116994

diff --git a/configure.ac b/configure.ac
index 986664f5e7f4..cdb8ee28d510 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,7 +9,7 @@ dnl in order to create a configure script.
 # several non-alphanumeric characters, those are split off and used only for 
the
 # ABOUTBOXPRODUCTVERSIONSUFFIX in openoffice.lst. Why that is necessary, no 
idea.
 
-AC_INIT([LibreOffice],[7.1.4.2.0+],[],[],[http://documentfoundation.org/])
+AC_INIT([LibreOffice],[7.1.4.2-N1],[],[],[http://documentfoundation.org/])
 
 dnl libnumbertext needs autoconf 2.68, but that can pick up autoconf268 just 
fine if it is installed
 dnl whereas aclocal (as run by autogen.sh) insists on using autoconf and fails 
hard
diff --git a/distro-configs/NISZ_32.conf b/distro-configs/NISZ_32.conf
new file mode 100644
index ..eef085b982c6
--- /dev/null
+++ b/distro-configs/NISZ_32.conf
@@ -0,0 +1,32 @@
+# NISZ Windows 32-bit config
+
+--enable-pch
+--without-junit
+--enable-extension-integration
+--enable-scripting-beanshell
+--enable-scripting-javascript
+--enable-ext-nlpsolver
+--with-myspell-dicts
+--enable-mergelibs
+--disable-ext-wiki-publisher
+--disable-online-update
+--disable-breakpad
+--disable-odk
+--disable-firebird-sdbc
+--with-help
+--enable-release-build
+--disable-cve-tests
+--with-package-format=msi
+--without-helppack-integration
+
+# NISZ build
+--with-vendor=NISZ Zrt.
+--with-lang=en-US hu de fr it ru hr sk pl ro
+
+--with-visual-studio=2019
+--with-windows-sdk=10.0
+
+# machine settings
+#--with-parallelism=4
+#--with-ucrt-dir=$core/../../packages/WindowsUCRT
+#--with-jdk-home=$core/../../../ojdk-32
diff --git a/distro-configs/NISZ_64.conf b/distro-configs/NISZ_64.conf
new file mode 100644
index ..8f55d2e6eeff
--- /dev/null
+++ b/distro-configs/NISZ_64.conf
@@ -0,0 +1,33 @@
+# NISZ Windows 64-bit config
+
+--enable-pch
+--without-junit
+--enable-extension-integration
+--enable-scripting-beanshell
+--enable-scripting-javascript
+--enable-ext-nlpsolver
+--with-myspell-dicts
+--enable-mergelibs
+--disable-ext-wiki-publisher
+--disable-online-update
+--disable-breakpad
+--disable-odk
+--disable-firebird-sdbc
+--with-help
+--enable-release-build
+--disable-cve-tests
+--with-package-format=msi
+--without-helppack-integration
+--enable-64-bit
+
+# NISZ build
+--with-vendor=NISZ Zrt.
+--with-lang=en-US hu de fr it ru hr sk pl ro
+
+--with-visual-studio=2019
+--with-windows-sdk=10.0
+
+# machine settings
+#--with-parallelism=4
+#--with-ucrt-dir=$core/../../packages/WindowsUCRT
+#--with-jdk-home=$core/../../../ojdk-32
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: compilerplugins/clang

2021-06-10 Thread Stephan Bergmann (via logerrit)
 compilerplugins/clang/compat.hxx|7 +++
 compilerplugins/clang/redundantcast.cxx |8 
 2 files changed, 11 insertions(+), 4 deletions(-)

New commits:
commit 3732bba5e2b5ca5890be1fc3d09455248b81c763
Author: Stephan Bergmann 
AuthorDate: Thu Jun 10 14:27:49 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Jun 10 15:42:45 2021 +0200

Adapt compilerplugins to Clang VK_RValue -> VK_PRValue rename



"[clang] NFC: Rename rvalue to prvalue"

Change-Id: I237e8a491465500e35637f8dae400402bcd9411d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116983
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx
index 897d9fe855c0..f62061ed48e4 100644
--- a/compilerplugins/clang/compat.hxx
+++ b/compilerplugins/clang/compat.hxx
@@ -17,6 +17,7 @@
 #include "clang/AST/Expr.h"
 #include "clang/AST/ExprCXX.h"
 #include "clang/Basic/SourceManager.h"
+#include "clang/Basic/Specifiers.h"
 #include "clang/Frontend/CompilerInstance.h"
 #include "clang/Lex/Lexer.h"
 #include "llvm/ADT/StringRef.h"
@@ -169,6 +170,12 @@ inline bool CPlusPlus17(clang::LangOptions const & opts) {
 #endif
 }
 
+#if CLANG_VERSION >= 13
+constexpr clang::ExprValueKind VK_PRValue = clang::VK_PRValue;
+#else
+constexpr clang::ExprValueKind VK_PRValue = clang::VK_RValue;
+#endif
+
 inline bool EvaluateAsInt(clang::Expr const * expr, llvm::APSInt& intRes, 
const clang::ASTContext& ctx) {
 #if CLANG_VERSION >= 8
 clang::Expr::EvalResult res;
diff --git a/compilerplugins/clang/redundantcast.cxx 
b/compilerplugins/clang/redundantcast.cxx
index afc1cb414681..088349fa1d9c 100644
--- a/compilerplugins/clang/redundantcast.cxx
+++ b/compilerplugins/clang/redundantcast.cxx
@@ -51,12 +51,12 @@ bool canConstCastFromTo(Expr const * from, Expr const * to) 
{
 auto const k2 = to->getValueKind();
 return (k2 == VK_LValue && k1 == VK_LValue)
 || (k2 == VK_XValue
-&& (k1 != VK_RValue || from->getType()->isRecordType()));
+&& (k1 != compat::VK_PRValue || from->getType()->isRecordType()));
 }
 
 char const * printExprValueKind(ExprValueKind k) {
 switch (k) {
-case VK_RValue:
+case compat::VK_PRValue:
 return "prvalue";
 case VK_LValue:
 return "lvalue";
@@ -539,7 +539,7 @@ bool 
RedundantCast::VisitCXXStaticCastExpr(CXXStaticCastExpr const * expr) {
  " written as an explicit construction of a temporary}4"),
 expr->getExprLoc())
 << t1 << printExprValueKind(k1) << t2 << printExprValueKind(k3)
-<< (k3 == VK_RValue && (k1 != VK_RValue || t1->isRecordType()))
+<< (k3 == compat::VK_PRValue && (k1 != compat::VK_PRValue || 
t1->isRecordType()))
 << expr->getSourceRange();
 return true;
 }
@@ -726,7 +726,7 @@ bool 
RedundantCast::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr const * exp
 auto const t1 = expr->getTypeAsWritten();
 bool const fnptr = t1->isFunctionPointerType() || 
t1->isMemberFunctionPointerType();
 auto const sub = fnptr ? stopAtFunctionPointerDecay(expr) : 
compat::getSubExprAsWritten(expr);
-if ((sub->getValueKind() != VK_RValue && !fnptr) || 
expr->getType()->isRecordType()
+if ((sub->getValueKind() != compat::VK_PRValue && !fnptr) || 
expr->getType()->isRecordType()
 || isa(sub) || isa(sub))
 {
 return true;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/nisz/libreoffice-7-1' - basctl/uiconfig chart2/uiconfig dbaccess/uiconfig extensions/uiconfig framework/uiconfig reportdesign/uiconfig sc/uiconfig sd/uic

2021-06-10 Thread Andras Timar (via logerrit)
 basctl/uiconfig/basicide/menubar/menubar.xml   |3 --
 chart2/uiconfig/menubar/menubar.xml|3 --
 dbaccess/uiconfig/dbapp/menubar/menubar.xml|3 --
 dbaccess/uiconfig/dbquery/menubar/menubar.xml  |3 --
 dbaccess/uiconfig/dbrelation/menubar/menubar.xml   |3 --
 dbaccess/uiconfig/dbtable/menubar/menubar.xml  |3 --
 dbaccess/uiconfig/dbtdata/menubar/menubar.xml  |3 --
 extensions/uiconfig/sbibliography/menubar/menubar.xml  |3 --
 framework/uiconfig/startmodule/menubar/menubar.xml |3 --
 reportdesign/uiconfig/dbreport/menubar/menubar.xml |3 --
 sc/uiconfig/scalc/menubar/menubar.xml  |3 --
 sc/uiconfig/scalc/popupmenu/notebookbar.xml|1 
 sc/uiconfig/scalc/ui/notebookbar.ui|   20 -
 sc/uiconfig/scalc/ui/notebookbar_compact.ui|7 -
 sc/uiconfig/scalc/ui/notebookbar_groupedbar_full.ui|7 -
 sd/uiconfig/sdraw/menubar/menubar.xml  |3 --
 sd/uiconfig/sdraw/popupmenu/notebookbar.xml|1 
 sd/uiconfig/sdraw/ui/notebookbar.ui|   20 -
 sd/uiconfig/sdraw/ui/notebookbar_compact.ui|   20 -
 sd/uiconfig/simpress/menubar/menubar.xml   |3 --
 sd/uiconfig/simpress/popupmenu/notebookbar.xml |1 
 sd/uiconfig/simpress/ui/notebookbar.ui |   20 -
 sd/uiconfig/simpress/ui/notebookbar_compact.ui |   20 -
 sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui |7 -
 starmath/uiconfig/smath/menubar/menubar.xml|3 --
 sw/uiconfig/sglobal/menubar/menubar.xml|3 --
 sw/uiconfig/sweb/menubar/menubar.xml   |3 --
 sw/uiconfig/swform/menubar/menubar.xml |3 --
 sw/uiconfig/swreport/menubar/menubar.xml   |3 --
 sw/uiconfig/swriter/menubar/menubar.xml|3 --
 sw/uiconfig/swriter/popupmenu/notebookbar.xml  |1 
 sw/uiconfig/swriter/ui/notebookbar.ui  |   20 -
 sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui  |7 -
 sw/uiconfig/swxform/menubar/menubar.xml|3 --
 34 files changed, 212 deletions(-)

New commits:
commit ecd2d37225a2845bfa71f52df062c4407e473ad5
Author: Andras Timar 
AuthorDate: Tue Apr 17 13:28:26 2018 +0200
Commit: Gabor Kelemen 
CommitDate: Thu Jun 10 15:42:26 2021 +0200

[cp] Remove Help - Donate to LibreOffice menu item

... and remove Help - Get Involved menu item, too

... also from all notebookbars

Change-Id: I7a701173f596306ee628ae4a12ad81d2d756caca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108794
Tested-by: Gabor Kelemen 
Reviewed-by: Gabor Kelemen 
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116993

diff --git a/basctl/uiconfig/basicide/menubar/menubar.xml 
b/basctl/uiconfig/basicide/menubar/menubar.xml
index ac59065c9daf..68f7cbab6742 100644
--- a/basctl/uiconfig/basicide/menubar/menubar.xml
+++ b/basctl/uiconfig/basicide/menubar/menubar.xml
@@ -166,9 +166,6 @@
 
 
 
-
-
-
 
 
 
diff --git a/chart2/uiconfig/menubar/menubar.xml 
b/chart2/uiconfig/menubar/menubar.xml
index 354ebbc1903a..dca2eaff7efe 100644
--- a/chart2/uiconfig/menubar/menubar.xml
+++ b/chart2/uiconfig/menubar/menubar.xml
@@ -167,9 +167,6 @@
   
   
   
-  
-  
-  
   
   
 
diff --git a/dbaccess/uiconfig/dbapp/menubar/menubar.xml 
b/dbaccess/uiconfig/dbapp/menubar/menubar.xml
index 7038a63608a7..34d8b8f5dc0e 100644
--- a/dbaccess/uiconfig/dbapp/menubar/menubar.xml
+++ b/dbaccess/uiconfig/dbapp/menubar/menubar.xml
@@ -154,9 +154,6 @@
   
   
   
-  
-  
-  
   
   
 
diff --git a/dbaccess/uiconfig/dbquery/menubar/menubar.xml 
b/dbaccess/uiconfig/dbquery/menubar/menubar.xml
index 8227446b4b89..e896abfa00da 100644
--- a/dbaccess/uiconfig/dbquery/menubar/menubar.xml
+++ b/dbaccess/uiconfig/dbquery/menubar/menubar.xml
@@ -109,9 +109,6 @@
   
   
   
-  
-  
-  
   
   
 
diff --git a/dbaccess/uiconfig/dbrelation/menubar/menubar.xml 
b/dbaccess/uiconfig/dbrelation/menubar/menubar.xml
index 6e3df781eca9..fbeda4a1e9c2 100644
--- a/dbaccess/uiconfig/dbrelation/menubar/menubar.xml
+++ b/dbaccess/uiconfig/dbrelation/menubar/menubar.xml
@@ -93,9 +93,6 @@
   
   
   
-  
-  
-  
   
   
 
diff --git a/dbaccess/uiconfig/dbtable/menubar/menubar.xml 
b/dbaccess/uiconfig/dbtable/menubar/menubar.xml
index bbd4a7428f74..4ef7c80a26a2 100644
--- a/dbaccess/uiconfig/dbtable/menubar/menubar.xml
+++ b/dbaccess/uiconfig/dbtable/menubar/menubar.xml
@@ -93,9 +93,6 @@
   
   
   
- 

[Libreoffice-commits] core.git: dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk dbaccess/Module_dbaccess.mk dbaccess/qa

2021-06-10 Thread Caolán McNamara (via logerrit)
 dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk |   70 -
 dbaccess/Module_dbaccess.mk   |6 
 dbaccess/qa/unit/firebird-regression.cxx  |  106 --
 dev/null  |binary
 4 files changed, 182 deletions(-)

New commits:
commit a774d3295f84c5c4df26274edec2778ea3c3dc59
Author: Caolán McNamara 
AuthorDate: Thu Jun 10 12:06:16 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jun 10 15:27:56 2021 +0200

drop firebird test of initial experimental period fdb-only format

Initially when the firebird embedded database support was first
experimental we saved the fdb firebird file format.

A test was added by 3f114eb4a2f3994b980aa607f2d4afc58e5aaa1d around then
(2013) to test loading firebird odbs

Then with

commit de899f0b350e51b1932fa4674f7ce2ae386cd1ce
Date:   Thu Jun 2 11:56:10 2016 +0200

connectivity: firebird: use ODS12 test database for Firebird 3

if building with firebird 3 a replacement odb was created in firebird
3.X ODS12 format to use instead of the 2.X ODS11 file.

Those fdb file formats were endian specific and database version
specific. Which was a well known problem documented in tdf#72987 and a
blocker for leaving 'experimental' at that point in time.

So finally with

commit 0cc1ddf2d8d6bc7df74fdd8f8f97381df681177d
Date:   Thu Aug 11 12:02:56 2016 +0200

tdf#72987 GSoC Use Firebird backup format

the save was changed to save the backup fbk file format and load
restores the database from that fbk file format (2016) when available.

later in

commit 860ecb9e583627ab43097784ad98b41afd983ff6
Date:   Thu Jan 5 12:58:26 2017 +0100

require firebird 3.0 for build (don't allow 2.5)

the firebird 2.X (ODS11) test of loading the fdb format was
dropped leaving just the firebird 3.X (ODS12) fdb case because firebird
3.X cannot directly load the ODS11 format

Now with the appearance of firebird 4 the same problem arises that
firebird doesn't load older binary formats directly.

In the end all we established here is that an odb containing only a fdb
is endian and version specific and a bad idea wrt compatibility so we
shouldn't do that. But we knew that, so embedded firebird databases were
an experiemental curosity until 0cc1ddf2d8d6bc7df74fdd8f8f97381df681177d
enabled use of the fbk format.

We're not gaining anything with the test of loading the binary only case
because we know that's an unsustainable route we abandoned.

Change-Id: I9f1715a817392de9f3f6e891966bbd838a9ce933
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116981
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk 
b/dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk
deleted file mode 100644
index c9d0f0f2ea44..
--- a/dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk
+++ /dev/null
@@ -1,70 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# 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/.
-#
-
-$(eval $(call gb_CppunitTest_CppunitTest,dbaccess_firebird_regression_test))
-
-$(eval $(call 
gb_CppunitTest_use_external,dbaccess_firebird_regression_test,boost_headers))
-
-$(eval $(call 
gb_CppunitTest_add_exception_objects,dbaccess_firebird_regression_test, \
-dbaccess/qa/unit/firebird-regression \
-))
-
-$(eval $(call gb_CppunitTest_use_libraries,dbaccess_firebird_regression_test, \
-comphelper \
-cppu \
-dbaxml \
-firebird_sdbc \
-sal \
-subsequenttest \
-svt \
-test \
-unotest \
-utl \
-xo \
-))
-
-$(eval $(call gb_CppunitTest_use_api,dbaccess_firebird_regression_test,\
-offapi \
-oovbaapi \
-udkapi \
-))
-
-$(eval $(call gb_CppunitTest_use_ure,dbaccess_firebird_regression_test))
-$(eval $(call gb_CppunitTest_use_vcl,dbaccess_firebird_regression_test))
-
-$(eval $(call gb_CppunitTest_use_components,dbaccess_firebird_regression_test,\
-basic/util/sb \
-comphelper/util/comphelp \
-configmgr/source/configmgr \
-connectivity/source/drivers/firebird/firebird_sdbc \
-connectivity/source/manager/sdbc2 \
-dbaccess/util/dba \
-dbaccess/source/filter/xml/dbaxml \
-dbaccess/util/dbu \
-filter/source/config/cache/filterconfig1 \
-framework/util/fwk \
-i18npool/util/i18npool \
-linguistic/source/lng \
-package/source/xstor/xstor \
-package/util/package2 \
-sax/source/expatwrap/expwrap \
-sfx2/util/sfx \
-svl/source/fsstor/fsstorage \
-

[Libreoffice-commits] core.git: dbaccess/qa

2021-06-10 Thread Caolán McNamara (via logerrit)
 dev/null |binary
 1 file changed

New commits:
commit eee3b63561a9f1a8ed3d05e9e7a060344878ffd4
Author: Caolán McNamara 
AuthorDate: Thu Jun 10 12:00:27 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jun 10 15:26:53 2021 +0200

drop unused dbaccess/qa/unit/data/firebird_integer_le.odb

Change-Id: Ic8ab7db1a0b2fd3425caf4714d26207ea2c35db8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116979
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/dbaccess/qa/unit/data/firebird_integer_le.odb 
b/dbaccess/qa/unit/data/firebird_integer_le.odb
deleted file mode 100644
index da2ec1499198..
Binary files a/dbaccess/qa/unit/data/firebird_integer_le.odb and /dev/null 
differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: svx/source svx/util

2021-06-10 Thread Mike Kaganski (via logerrit)
 svx/source/unodraw/SvxXTextColumns.cxx |9 -
 svx/util/svxcore.component |4 
 2 files changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 01379acedcdad4fc08c61b73b8500e758b88d5ae
Author: Mike Kaganski 
AuthorDate: Thu Jun 10 12:28:29 2021 +0300
Commit: Mike Kaganski 
CommitDate: Thu Jun 10 15:21:11 2021 +0200

svxcore: provide UNO constructor for com.sun.star.text.TextColumns

This allows to create it e.g. in Basic macros using CreateUnoService

Change-Id: I949d3b92c83cd9e763244f70b22f0f367b93cb48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116970
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 

diff --git a/svx/source/unodraw/SvxXTextColumns.cxx 
b/svx/source/unodraw/SvxXTextColumns.cxx
index 2ddaebc9f269..a98e0f9cf8a0 100644
--- a/svx/source/unodraw/SvxXTextColumns.cxx
+++ b/svx/source/unodraw/SvxXTextColumns.cxx
@@ -126,7 +126,7 @@ private:
 sal_Int16 m_nSepLineStyle = css::text::ColumnSeparatorStyle::NONE;
 };
 
-OUString SvxXTextColumns::getImplementationName() { return "SvxXTextColumns"; }
+OUString SvxXTextColumns::getImplementationName() { return 
"com.sun.star.comp.svx.TextColumns"; }
 
 sal_Bool SvxXTextColumns::supportsService(const OUString& rServiceName)
 {
@@ -324,4 +324,11 @@ css::uno::Reference 
SvxXTextColumns_createInstance() noexc
 return static_cast(new SvxXTextColumns);
 }
 
+extern "C" SVXCORE_DLLPUBLIC css::uno::XInterface*
+com_sun_star_comp_svx_TextColumns_get_implementation(css::uno::XComponentContext*,
+ 
css::uno::Sequence const&)
+{
+return cppu::acquire(new SvxXTextColumns);
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/svx/util/svxcore.component b/svx/util/svxcore.component
index b36a8d71bcb4..d8989b71f4e9 100644
--- a/svx/util/svxcore.component
+++ b/svx/util/svxcore.component
@@ -92,4 +92,8 @@
 
constructor="com_sun_star_comp_svx_StylesPreviewToolBoxControl_get_implementation">
 
   
+  
+
+  
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/source

2021-06-10 Thread Noel Grandin (via logerrit)
 sc/source/ui/cctrl/tbzoomsliderctrl.cxx |   45 
 sc/source/ui/inc/tbzoomsliderctrl.hxx   |2 -
 2 files changed, 30 insertions(+), 17 deletions(-)

New commits:
commit d693223b84b518701d308678801ccc50877490dc
Author: Noel Grandin 
AuthorDate: Thu Jun 10 14:04:17 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 15:17:33 2021 +0200

tdf#136766 Zoom slider in calc print preview has white background

I cannot figure out any way to make transparent stuff on the toolbar
behave under all rendering backends, so just revert this

this reverts
commit 00cffc20e40b2412c7e9867eed24c9834504e24f
Date:   Mon Sep 7 13:28:33 2020 +0200
tdf#135181 Calc print preview zoom slider print preview not
transparent (gen)

commit 444c7c736be7545344298a9cbb3a69886edc5ecb
Date:   Mon May 18 18:23:13 2020 +0200
tdf#125538 fix background of zoom control

Change-Id: I7c351796b2c0778c1520fc8177d05567b2ae8a48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116982
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx 
b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index ed8b05b3a0b4..ee0a5021fc66 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -95,9 +95,8 @@ struct ScZoomSlider::ScZoomSliderWnd_Impl
 ImagemaIncreaseButton;
 ImagemaDecreaseButton;
 bool mbOmitPaint;
-VclPtr  mxParentWindow;
 
-explicit ScZoomSliderWnd_Impl( sal_uInt16 nCurrentZoom, vcl::Window* 
parentWindow ) :
+explicit ScZoomSliderWnd_Impl( sal_uInt16 nCurrentZoom ) :
 mnCurrentZoom( nCurrentZoom ),
 mnMinZoom( 10 ),
 mnMaxZoom( 400 ),
@@ -106,8 +105,7 @@ struct ScZoomSlider::ScZoomSliderWnd_Impl
 maSliderButton(),
 maIncreaseButton(),
 maDecreaseButton(),
-mbOmitPaint( false ),
-mxParentWindow(parentWindow)
+mbOmitPaint( false )
 {
 }
 };
@@ -207,7 +205,7 @@ ScZoomSliderWnd::ScZoomSliderWnd( vcl::Window* pParent,
 const css::uno::Reference< css::frame::XDispatchProvider >& 
rDispatchProvider,
 sal_uInt16 nCurrentZoom ):
 InterimItemWindow(pParent, "modules/scalc/ui/zoombox.ui", 
"ZoomBox"),
-mxWidget(new ScZoomSlider(rDispatchProvider, nCurrentZoom, 
pParent)),
+mxWidget(new ScZoomSlider(rDispatchProvider, nCurrentZoom)),
 mxWeld(new weld::CustomWeld(*m_xBuilder, "zoom", *mxWidget))
 {
 Size aLogicalSize( 115, 40 );
@@ -231,8 +229,8 @@ void ScZoomSliderWnd::dispose()
 }
 
 ScZoomSlider::ScZoomSlider(const css::uno::Reference< 
css::frame::XDispatchProvider>& rDispatchProvider,
-   sal_uInt16 nCurrentZoom, vcl::Window* parentWindow)
-: mpImpl(new ScZoomSliderWnd_Impl(nCurrentZoom, parentWindow))
+   sal_uInt16 nCurrentZoom)
+: mpImpl(new ScZoomSliderWnd_Impl(nCurrentZoom))
 , m_xDispatchProvider(rDispatchProvider)
 {
 mpImpl->maSliderButton  = Image(StockImage::Yes, 
RID_SVXBMP_SLIDERBUTTON);
@@ -275,8 +273,9 @@ bool ScZoomSlider::MouseButtonDown( const MouseEvent& rMEvt 
)
 if( nOldZoom == mpImpl->mnCurrentZoom )
 return true;
 
-// need to invalidate parent since we rely on the toolbox drawing it's 
fancy gradient background
-mpImpl->mxParentWindow->Invalidate();
+tools::Rectangle aRect( Point( 0, 0 ), aSliderWindowSize );
+
+Invalidate(aRect);
 mpImpl->mbOmitPaint = true;
 
 SvxZoomSliderItem   aZoomSliderItem( mpImpl->mnCurrentZoom );
@@ -310,8 +309,8 @@ bool ScZoomSlider::MouseMove( const MouseEvent& rMEvt )
 {
 mpImpl->mnCurrentZoom = Offset2Zoom( aPoint.X() );
 
-// need to invalidate parent since we rely on the toolbox drawing 
it's fancy gradient background
-mpImpl->mxParentWindow->Invalidate();
+tools::Rectangle aRect(Point(0, 0), aSliderWindowSize);
+Invalidate(aRect);
 
 mpImpl->mbOmitPaint = true; // optimization: paint before 
executing command,
 
@@ -377,9 +376,11 @@ void ScZoomSlider::UpdateFromItem(const SvxZoomSliderItem* 
pZoomSliderItem)
 }
 }
 
+Size aSliderWindowSize = GetOutputSizePixel();
+tools::Rectangle aRect(Point(0, 0), aSliderWindowSize);
+
 if ( !mpImpl->mbOmitPaint )
-// need to invalidate parent since we rely on the toolbox drawing it's 
fancy gradient background
-mpImpl->mxParentWindow->Invalidate();
+   Invalidate(aRect);
 }
 
 void ScZoomSlider::Paint(vcl::RenderContext& rRenderContext, const 
tools::Rectangle& /*rRect*/)
@@ -397,9 +398,6 @@ void ScZoomSlider::DoPaint(vcl::RenderContext& 
rRenderContext)
 
 ScopedVclPtrInstance< VirtualDevice > pVDev(rRenderContext);
 pVDev->SetOutputSizePixel

Re: Problems with unittest testEffectExtentInline

2021-06-10 Thread Regina Henschel

Hi Miklos,

Miklos Vajna schrieb am 10.06.2021 um 09:30:

Hi Regina,

On Wed, Jun 09, 2021 at 03:33:59PM +0200, Regina Henschel 
 wrote:

I'm currently working on https://gerrit.libreoffice.org/c/core/+/115668
WIP improve wrap margins in docx filters

My current state is, that distances needed for shadow and glow, for rotation
and for fat stroke/border are read from docx, and they are written to docx
from docx and from odt. That works for "normal" cases besides +-1Twip
rounding errors somewhere and border thickness for frames, which is not yet
implemented.

But I have trouble with unittest testEffectExtentInline [1]. The document in
testEffectExtentInline would need a negative bottom margin (UI wrap distance
from text). But that is not possible in LO, bug tdf#141880. The test does
not fail in current LO, because it does not determine the actual values of
the image, but simple writes out the values from InteropGrabBag. If the user
changes the rotate angle to 90deg (and put it back to vertical 'top to base
line') or sets the bottom margin to 1cm for example, the exported docx file
has unsuitable effectExtent. That results currently in a wrong line height
in Word.


Would it help to empty the grab-bag when the user modifies the rotation
(or modifies the object in any way)?


The problem is more general. What should happen, if the Word document 
contains settings, that cannot (yet) be represented in LibreOffice? The 
difference in the test document is so small that it is not visible. If 
the difference would be larger, the following text lines will be shifted 
down, in the attached file about 2mm. Such difference can produce layout 
changes e.g. in position of automatic page break.


If the values of the grab-Bag are set on export instead of the values 
actually used in LibreOffice, the layout of the exported document would 
be the same as the original document in Word. But the layout of the 
exported document would be different in Word than in LibreOffice.


If the document is saved with the actual values uses by LibreOffice, 
then the layout of the exported document is the same in Word and 
LibreOffice, but different from the original one.


So I think, to remove the properties from grab-bag would not help. There 
are differences anyway.


Word has no UI to modify effectExtent directly. So I wonder how the test 
document was created. Creating it newly in Word would not result in the 
effectExtent values currently in the test document.




The idea with grab-bag was to use that during export, and the UI to
empty them grab-bag when the user modifies the object. In practice, I
think only impress shapes drop the smartart grab-gag on text edit,
nothing else implements such emptying.


Such removal would be far beyond my patch.

I could make a new test document. The original problem was, that zero 
effectExtent values were written. That would be caught with a new test 
document the same. Or adding a tolerance? Because we use Twip and not 
EMU there is a loss of accuracy anyway. What do you think?


Kind regards
Regina


ManualEffectExtent.docx
Description: MS-Word 2007 document
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: helpcontent2

2021-06-10 Thread Alain Romedenne (via logerrit)
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0963d6b25e6861591805c0d6ae8c0476adf177c0
Author: Alain Romedenne 
AuthorDate: Thu Jun 10 15:08:15 2021 +0200
Commit: Gerrit Code Review 
CommitDate: Thu Jun 10 15:08:15 2021 +0200

Update git submodules

* Update helpcontent2 from branch 'master'
  to e5ac483bab252537ccbd087e6a133230cb8bae70
  - tdf#141474 tdf#124066 Basic keyword arguments explanations

Change-Id: I9f05990a9c3513d171b7ae94e8d60e5d0d1ced2f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116468
Tested-by: Jenkins
Reviewed-by: Rafael Lima 

diff --git a/helpcontent2 b/helpcontent2
index fded06f95f73..e5ac483bab25 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit fded06f95f73fd0bfb27d861843c2f317db83d29
+Subproject commit e5ac483bab252537ccbd087e6a133230cb8bae70
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: 2 commits - source/text

2021-06-10 Thread Alain Romedenne (via logerrit)
 source/text/sbasic/shared/01020300.xhp   |   17 +-
 source/text/sbasic/shared/replace.xhp|   31 +++
 source/text/scalc/01/statistics_sampling.xhp |   18 +++
 3 files changed, 42 insertions(+), 24 deletions(-)

New commits:
commit e5ac483bab252537ccbd087e6a133230cb8bae70
Author: Alain Romedenne 
AuthorDate: Thu Jun 3 16:11:27 2021 +0200
Commit: Rafael Lima 
CommitDate: Thu Jun 10 15:08:15 2021 +0200

tdf#141474 tdf#124066 Basic keyword arguments explanations

Change-Id: I9f05990a9c3513d171b7ae94e8d60e5d0d1ced2f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116468
Tested-by: Jenkins
Reviewed-by: Rafael Lima 

diff --git a/source/text/sbasic/shared/01020300.xhp 
b/source/text/sbasic/shared/01020300.xhp
index 067746a1d..1238f0109 100644
--- a/source/text/sbasic/shared/01020300.xhp
+++ b/source/text/sbasic/shared/01020300.xhp
@@ -55,7 +55,7 @@
 
 The 
Sub is called using the following syntax:
 
-  SubName(Value1, Value2,...)
+  [Call] SubName( [Parameter1:=]Value1, [Parameter2:=]Value2, 
...)
 
 The parameters 
passed to a Sub must fit to those specified in the 
Sub declaration.
 The same 
process applies to a Function. In addition, functions always 
return a function result. The result of a function is defined by assigning the 
return value to the function name:
@@ -67,9 +67,9 @@
 
 The 
Function is called using the following syntax:
 
-  Variable=FunctionName(Parameter1, Parameter2,...)
+  Variable = FunctionName( [Parameter1:=]Value1, 
[Parameter2:=]Value2, ...)
 
-Properties combine the 
syntax of procedures and functions. A property usually requires up to one 
parameter.
+Properties combine the 
syntax of procedures and functions. A Property usually 
requires up to one parameter.
 
   Private _IsApproved As TYPENAME
   Property Get IsApproved As TYPENAME
@@ -86,7 +86,7 @@
   var = 
IsApproved
   IsApproved = some_value
 
-You can also use the fully qualified name to call a 
procedure, function or property: Library.Module.Macro() 
 For example, to call the Autotext macro from the Gimmicks library, use 
the following command: Gimmicks.AutoText.Main() 
+You can also use the fully qualified name to call a 
procedure, function or property: [Call] 
Library.Module.Macro(), where Call is 
optional. For example, to call the Autotext macro from the Gimmicks 
library, use the following command: 
Gimmicks.AutoText.Main()
 Passing Variables by Value or Reference
 Parameters can 
be passed to a procedure, a function or a property either by reference or by 
value. Unless otherwise specified, a parameter is always passed by reference. 
That means that a Sub, a Function or a 
Property gets the parameter and can read and modify its 
value.
 If you want to 
pass a parameter by value insert the key word ByVal in front 
of the parameter when you call a Sub, a 
Function or a Property, for 
example:
@@ -104,6 +104,11 @@
   ' your code 
goes here
   End 
Sub
 
+Positional or Keyword Arguments
+When you call a 
function or a subroutine, you may pass its arguments by position or by name. 
Passing by position means just listing the arguments in the order in which the 
parameters are defined in the function or subroutine. Passing by name requires 
you to prefix the argument with the name of the corresponding parameter 
followed by a colon and an equal sign (:=). Keyword 
arguments may appear in any order. Refer to Basic Replace() function for such 
examples.
+
+When needing to pass 
less parameters, use keywords arguments. Passing values for fewer parameters by 
position requires to supply values for all parameters before them, optional or 
not. This ensures that the values are in the correct positions. If you pass the 
parameters by name - using keyword arguments - you may omit all other 
intermediate arguments.
+
 Scope of Variables
 A variable 
defined within a Sub, a Function or a 
Property, only remains valid until the procedure is exited. 
This is known as a "local" variable. In many cases, you need a variable to be 
valid in all procedures, in every module of all libraries, or after a 
Sub, a Function or a 
Property is exited.
 Declaring Variables Outside a Sub a 
Function or a Property
@@ -124,7 +129,7 @@
 
 The variable 
is only valid in this module.
 Example for private variables
-  Enforce 
private variables to be private across modules by setting 
CompatibilityMode(True).from i17948, 
see i54894
+Enforce 
private variables to be private across modules by setting 
CompatibilityMode(True).from i17948, 
see i54894
 
   ' * 
Module1 *
   Private 
myText As String
@@ -161,4 +166,4 @@
   Static 
Statement
 
 
-
+
\ No newline at end of file
diff --git a/source/text/sbasic/shared/replace.xhp 
b/source/text/sbasic/shared/replace.xhp
index 7b8d819d9..091a2f082 100644
--- a/source/text/sbasic/shared/replace.xhp
+++ b/source/text/sbasic/shared/replace.xhp
@@ -25,33 +25,38 @@
 
 
 
-Replace (Text As String, 
Sea

[Libreoffice-commits] core.git: chart2/qa chart2/source

2021-06-10 Thread Tünde Tóth (via logerrit)
 chart2/qa/extras/chart2import.cxx|   22 ++
 chart2/qa/extras/data/docx/tdf139658.docx|binary
 chart2/source/tools/InternalDataProvider.cxx |   12 ++--
 3 files changed, 32 insertions(+), 2 deletions(-)

New commits:
commit c9f071ff49bace0809d3a55d4d4b76a26d933f9c
Author: Tünde Tóth 
AuthorDate: Fri Jun 4 13:10:51 2021 +0200
Commit: László Németh 
CommitDate: Thu Jun 10 15:04:50 2021 +0200

tdf#139658 OOXML: fix broken chart import at labels with quotes

During the import of the internal data table, incomplete
parsing of category labels with escaped quotation marks
resulted broken category labels and charts.

Change-Id: If5af3d527b80d1e055562f589bdaf17096ad49f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116714
Tested-by: László Németh 
Reviewed-by: László Németh 

diff --git a/chart2/qa/extras/chart2import.cxx 
b/chart2/qa/extras/chart2import.cxx
index 3a8b77f48cdd..0c142a4e7f97 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -174,6 +174,7 @@ public:
 void testTdf137874();
 void testTdfCustomShapePos();
 void testTdf121281();
+void testTdf139658();
 
 CPPUNIT_TEST_SUITE(Chart2ImportTest);
 CPPUNIT_TEST(Fdo60083);
@@ -297,6 +298,7 @@ public:
 CPPUNIT_TEST(testTdf137874);
 CPPUNIT_TEST(testTdfCustomShapePos);
 CPPUNIT_TEST(testTdf121281);
+CPPUNIT_TEST(testTdf139658);
 
 CPPUNIT_TEST_SUITE_END();
 
@@ -2895,6 +2897,26 @@ void Chart2ImportTest::testTdf121281()
 CPPUNIT_ASSERT_GREATEREQUAL(static_cast(0), aLabelPosition.Y);
 }
 
+void Chart2ImportTest::testTdf139658()
+{
+load(u"/chart2/qa/extras/data/docx/", "tdf139658.docx");
+uno::Reference xChartDoc(getChartDocFromWriter(0), 
uno::UNO_QUERY);
+CPPUNIT_ASSERT(xChartDoc.is());
+Reference 
xInternalProvider(xChartDoc->getDataProvider(),
+   uno::UNO_QUERY);
+CPPUNIT_ASSERT(xInternalProvider.is());
+
+Reference xDescAccess(xInternalProvider, 
uno::UNO_QUERY);
+CPPUNIT_ASSERT(xDescAccess.is());
+
+// Get the category labels.
+Sequence aCategories = xDescAccess->getRowDescriptions();
+CPPUNIT_ASSERT_EQUAL(sal_Int32(3), aCategories.getLength());
+CPPUNIT_ASSERT_EQUAL(OUString("category1"), aCategories[0]);
+CPPUNIT_ASSERT_EQUAL(OUString("\"category2\""), aCategories[1]);
+CPPUNIT_ASSERT_EQUAL(OUString("category\"3"), aCategories[2]);
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ImportTest);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/docx/tdf139658.docx 
b/chart2/qa/extras/data/docx/tdf139658.docx
new file mode 100644
index ..59deda9f83f9
Binary files /dev/null and b/chart2/qa/extras/data/docx/tdf139658.docx differ
diff --git a/chart2/source/tools/InternalDataProvider.cxx 
b/chart2/source/tools/InternalDataProvider.cxx
index 1b2f6ae28351..9595cf2375d7 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -518,7 +518,14 @@ InternalDataProvider::createDataSequenceFromArray( const 
OUString& rArrayStr, st
 bool bInQuote = false;
 for (; p != pEnd; ++p)
 {
-if (*p == '"')
+// Skip next "" within the title text: it's an escaped double 
quotation mark.
+if (bInQuote && *p == '"' && *(p + 1) == '"')
+{
+if (!pElem)
+pElem = p;
+++p;
+}
+else if (*p == '"')
 {
 bInQuote = !bInQuote;
 if (bInQuote)
@@ -534,7 +541,8 @@ InternalDataProvider::createDataSequenceFromArray( const 
OUString& rArrayStr, st
 // Non empty string
 if (!aElem.isEmpty())
 bAllNumeric = false;
-aRawElems.push_back(aElem);
+// Restore also escaped double quotation marks
+aRawElems.push_back(aElem.replaceAll("\"\"", "\""));
 pElem = nullptr;
 aElem.clear();
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: oox/source sw/qa

2021-06-10 Thread Tünde Tóth (via logerrit)
 oox/source/drawingml/chart/axisconverter.cxx |   10 ++
 sw/qa/extras/layout/data/tdf15.docx  |binary
 sw/qa/extras/layout/layout2.cxx  |   16 +++-
 3 files changed, 17 insertions(+), 9 deletions(-)

New commits:
commit 6185d1ff0130b3d178d5e50eeb6944ab70db41f9
Author: Tünde Tóth 
AuthorDate: Wed Jun 2 11:51:13 2021 +0200
Commit: László Németh 
CommitDate: Thu Jun 10 15:03:52 2021 +0200

tdf#140623 Chart OOXML import: set text overlap to false

of category axis label unless the rotation is 0 in xml.

Regression from commit: 21620f9d2f50e66dffc45a5afb539edb8d54434c
(tdf#138194 Chart OOXML import: set text break to true)

Change-Id: I18db7483f49c84a83760200037f8858a3b471994
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116575
Tested-by: László Németh 
Reviewed-by: László Németh 

diff --git a/oox/source/drawingml/chart/axisconverter.cxx 
b/oox/source/drawingml/chart/axisconverter.cxx
index 1a8e23024612..7aa141c0f798 100644
--- a/oox/source/drawingml/chart/axisconverter.cxx
+++ b/oox/source/drawingml/chart/axisconverter.cxx
@@ -271,10 +271,12 @@ void AxisConverter::convertFromModel(const 
Reference& rxCoord
 }
 else
 {
-// do not overlap text when the rotation is undefined in 
xml
-bool bTextOverlap
-= mrModel.mxTextProp.is()
-  && 
mrModel.mxTextProp->getTextProperties().moRotation.has();
+// do not overlap text unless the rotation is 0 in xml
+bool bTextOverlap = false;
+if (mrModel.mxTextProp.is()
+&& 
mrModel.mxTextProp->getTextProperties().moRotation.has())
+bTextOverlap
+= 
mrModel.mxTextProp->getTextProperties().moRotation.get() == 0;
 aAxisProp.setProperty(PROP_TextOverlap, bTextOverlap);
 /* do not break text into several lines unless the 
rotation is 0 degree,
or the rotation is 90 degree and the inner size of the 
chart is not fixed,
diff --git a/sw/qa/extras/layout/data/tdf15.docx 
b/sw/qa/extras/layout/data/tdf15.docx
index 2b2b24a5548d..e4f0cc35f0e8 100644
Binary files a/sw/qa/extras/layout/data/tdf15.docx and 
b/sw/qa/extras/layout/data/tdf15.docx differ
diff --git a/sw/qa/extras/layout/layout2.cxx b/sw/qa/extras/layout/layout2.cxx
index 27488737e536..3b14e16ac943 100644
--- a/sw/qa/extras/layout/layout2.cxx
+++ b/sw/qa/extras/layout/layout2.cxx
@@ -409,7 +409,6 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter2, testTdf131707)
 assertXPath(pXmlDoc, 
"//body/tab/row[3]/cell[2]/txt/anchored/fly/infos/bounds", "top", "2185");
 }
 
-#if HAVE_MORE_FONTS
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter2, testTdf15)
 {
 SwDoc* pDoc = createDoc("tdf15.docx");
@@ -421,12 +420,19 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter2, testTdf15)
 xmlDocUniquePtr pXmlDoc = dumpAndParse(dumper, *xMetaFile);
 CPPUNIT_ASSERT(pXmlDoc);
 
-assertXPathContent(pXmlDoc,
-   
"/metafile/push[1]/push[1]/push[1]/push[4]/push[1]/textarray[8]/text",
-   "Advanced Diploma");
+// Bug 15 - FILEOPEN DOCX Textbox of Column chart legend reduces and 
text of legend disappears
+const sal_Int32 nLegendLabelLines
+= getXPathContent(pXmlDoc, "count(//text[contains(text(),\"Advanced 
Diploma\")])")
+  .toInt32();
 // This failed, if the legend label is not "Advanced Diploma".
+CPPUNIT_ASSERT_EQUAL(static_cast(1), nLegendLabelLines);
+
+// Bug 140623 - Fileopen DOCX: Text Orientation of X-Axis 0 instead of 45 
degrees
+const sal_Int32 nThirdLabelLines
+= getXPathContent(pXmlDoc, 
"count(//text[contains(text(),\"Hispanic\")])").toInt32();
+// This failed, if the third X axis label broke to multiple lines.
+CPPUNIT_ASSERT_EQUAL(static_cast(1), nThirdLabelLines);
 }
-#endif
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter2, testTdf125335)
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: writerfilter/source

2021-06-10 Thread Noel Grandin (via logerrit)
 writerfilter/source/dmapper/FontTable.cxx |4 ++--
 writerfilter/source/dmapper/FontTable.hxx |2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit ff44c5f6bc6a3ca71c87cced03b0cb8ca3c889d6
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:35:41 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 14:35:38 2021 +0200

loplugin:unnecessaryreturn FontTable::addEmbeddedFont

Change-Id: Ib64799f06ee1fbcc43132df6ad44975a0dff347e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116973
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/writerfilter/source/dmapper/FontTable.cxx 
b/writerfilter/source/dmapper/FontTable.cxx
index 7973a42938ec..470deff835ad 100644
--- a/writerfilter/source/dmapper/FontTable.cxx
+++ b/writerfilter/source/dmapper/FontTable.cxx
@@ -224,13 +224,13 @@ sal_uInt32 FontTable::size()
 return m_pImpl->aFontEntries.size();
 }
 
-bool FontTable::addEmbeddedFont(const 
css::uno::Reference& stream,
+void FontTable::addEmbeddedFont(const 
css::uno::Reference& stream,
 const OUString& fontName, const char* extra,
 std::vector const & key)
 {
 if (!m_pImpl->xEmbeddedFontHelper)
 m_pImpl->xEmbeddedFontHelper.reset(new EmbeddedFontsHelper);
-return m_pImpl->xEmbeddedFontHelper->addEmbeddedFont(stream, fontName, 
extra, key);
+m_pImpl->xEmbeddedFontHelper->addEmbeddedFont(stream, fontName, extra, 
key);
 }
 
 EmbeddedFontHandler::EmbeddedFontHandler(FontTable& rFontTable, const 
OUString& _fontName, const char* _style )
diff --git a/writerfilter/source/dmapper/FontTable.hxx 
b/writerfilter/source/dmapper/FontTable.hxx
index 0a360b2f14ca..ff4d11fba83e 100644
--- a/writerfilter/source/dmapper/FontTable.hxx
+++ b/writerfilter/source/dmapper/FontTable.hxx
@@ -51,7 +51,7 @@ class FontTable : public LoggedProperties, public LoggedTable
 sal_uInt32  size();
 FontEntry::Pointer_t  getFontEntry(sal_uInt32 nIndex);
 
-bool addEmbeddedFont(const css::uno::Reference& 
stream,
+void addEmbeddedFont(const css::uno::Reference& 
stream,
  const OUString& fontName, const char* extra,
  std::vector const & key);
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: config_host/config_firebird.h.in configure.ac

2021-06-10 Thread Caolán McNamara (via logerrit)
 config_host/config_firebird.h.in |2 --
 configure.ac |1 -
 2 files changed, 3 deletions(-)

New commits:
commit b5e6a478e88f45bd690045aaf12f664c4d1daa10
Author: Caolán McNamara 
AuthorDate: Thu Jun 10 11:36:52 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jun 10 14:07:16 2021 +0200

HAVE_FIREBIRD_30 is not used anymore

Change-Id: If318cd33356c0082a63cbd941cdfc753c9d800e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116977
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/config_host/config_firebird.h.in b/config_host/config_firebird.h.in
index b56056cf6ae9..edfbb2df62b4 100644
--- a/config_host/config_firebird.h.in
+++ b/config_host/config_firebird.h.in
@@ -7,6 +7,4 @@ Settings for Firebird
 
 #define ENABLE_FIREBIRD_SDBC 0
 
-#define HAVE_FIREBIRD_30 0
-
 #endif
diff --git a/configure.ac b/configure.ac
index fea4aff131cc..7fc03600df25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10127,7 +10127,6 @@ int fb_api_is_30(void) { return 0; }
 AC_MSG_RESULT([none])
 else
 dnl Embedded Firebird has version 3.0
-AC_DEFINE(HAVE_FIREBIRD_30, 1)
 dnl We need libatomic_ops for any non X86/X64 system
 if test "${CPUNAME}" != INTEL -a "${CPUNAME}" != X86_64; then
 dnl 
===
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk dbaccess/CppunitTest_dbaccess_firebird_test.mk

2021-06-10 Thread Caolán McNamara (via logerrit)
 dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk |   18 +++---
 dbaccess/CppunitTest_dbaccess_firebird_test.mk|   18 +++---
 2 files changed, 18 insertions(+), 18 deletions(-)

New commits:
commit 5d684acf33b6244c5eba332da7419e20126f1a08
Author: Caolán McNamara 
AuthorDate: Thu Jun 10 10:26:31 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jun 10 14:06:45 2021 +0200

fix firebird Cppunit targets

so

make CppunitTest_dbaccess_firebird_test
make CppunitTest_dbaccess_firebird_regression_test

work

which is presumably a problem since...

Commit 36befb3aca96907a14e71e82497dbb8f03ead5ab
Date:   Sun Sep 23 19:40:59 2018 +0200

tdf#72987 split firebird test into a regression test and a "new" test

Change-Id: I3509364ba496c01c4a8a53674ec1c65495210274
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116969
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk 
b/dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk
index 654d2f6168cc..c9d0f0f2ea44 100644
--- a/dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk
+++ b/dbaccess/CppunitTest_dbaccess_firebird_regression_test.mk
@@ -7,15 +7,15 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-$(eval $(call gb_CppunitTest_CppunitTest,dbaccess_firebird_regression))
+$(eval $(call gb_CppunitTest_CppunitTest,dbaccess_firebird_regression_test))
 
-$(eval $(call 
gb_CppunitTest_use_external,dbaccess_firebird_regression,boost_headers))
+$(eval $(call 
gb_CppunitTest_use_external,dbaccess_firebird_regression_test,boost_headers))
 
-$(eval $(call 
gb_CppunitTest_add_exception_objects,dbaccess_firebird_regression, \
+$(eval $(call 
gb_CppunitTest_add_exception_objects,dbaccess_firebird_regression_test, \
 dbaccess/qa/unit/firebird-regression \
 ))
 
-$(eval $(call gb_CppunitTest_use_libraries,dbaccess_firebird_regression, \
+$(eval $(call gb_CppunitTest_use_libraries,dbaccess_firebird_regression_test, \
 comphelper \
 cppu \
 dbaxml \
@@ -29,16 +29,16 @@ $(eval $(call 
gb_CppunitTest_use_libraries,dbaccess_firebird_regression, \
 xo \
 ))
 
-$(eval $(call gb_CppunitTest_use_api,dbaccess_firebird_regression,\
+$(eval $(call gb_CppunitTest_use_api,dbaccess_firebird_regression_test,\
 offapi \
 oovbaapi \
 udkapi \
 ))
 
-$(eval $(call gb_CppunitTest_use_ure,dbaccess_firebird_regression))
-$(eval $(call gb_CppunitTest_use_vcl,dbaccess_firebird_regression))
+$(eval $(call gb_CppunitTest_use_ure,dbaccess_firebird_regression_test))
+$(eval $(call gb_CppunitTest_use_vcl,dbaccess_firebird_regression_test))
 
-$(eval $(call gb_CppunitTest_use_components,dbaccess_firebird_regression,\
+$(eval $(call gb_CppunitTest_use_components,dbaccess_firebird_regression_test,\
 basic/util/sb \
 comphelper/util/comphelp \
 configmgr/source/configmgr \
@@ -65,6 +65,6 @@ $(eval $(call 
gb_CppunitTest_use_components,dbaccess_firebird_regression,\
 xmloff/util/xo \
 ))
 
-$(eval $(call gb_CppunitTest_use_configuration,dbaccess_firebird_regression))
+$(eval $(call 
gb_CppunitTest_use_configuration,dbaccess_firebird_regression_test))
 
 # vim: set noet sw=4 ts=4:
diff --git a/dbaccess/CppunitTest_dbaccess_firebird_test.mk 
b/dbaccess/CppunitTest_dbaccess_firebird_test.mk
index 88592d922cbd..5065520993e2 100644
--- a/dbaccess/CppunitTest_dbaccess_firebird_test.mk
+++ b/dbaccess/CppunitTest_dbaccess_firebird_test.mk
@@ -7,15 +7,15 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-$(eval $(call gb_CppunitTest_CppunitTest,dbaccess_firebird))
+$(eval $(call gb_CppunitTest_CppunitTest,dbaccess_firebird_test))
 
-$(eval $(call gb_CppunitTest_use_external,dbaccess_firebird,boost_headers))
+$(eval $(call 
gb_CppunitTest_use_external,dbaccess_firebird_test,boost_headers))
 
-$(eval $(call gb_CppunitTest_add_exception_objects,dbaccess_firebird, \
+$(eval $(call gb_CppunitTest_add_exception_objects,dbaccess_firebird_test, \
 dbaccess/qa/unit/firebird \
 ))
 
-$(eval $(call gb_CppunitTest_use_libraries,dbaccess_firebird, \
+$(eval $(call gb_CppunitTest_use_libraries,dbaccess_firebird_test, \
 comphelper \
 cppu \
 dbaxml \
@@ -29,16 +29,16 @@ $(eval $(call 
gb_CppunitTest_use_libraries,dbaccess_firebird, \
 xo \
 ))
 
-$(eval $(call gb_CppunitTest_use_api,dbaccess_firebird,\
+$(eval $(call gb_CppunitTest_use_api,dbaccess_firebird_test,\
 offapi \
 oovbaapi \
 udkapi \
 ))
 
-$(eval $(call gb_CppunitTest_use_ure,dbaccess_firebird))
-$(eval $(call gb_CppunitTest_use_vcl,dbaccess_firebird))
+$(eval $(call gb_CppunitTest_use_ure,dbaccess_firebird_test))
+$(eval $(call gb_CppunitTest_use_vcl,dbaccess_firebird_test))
 
-$(eval $(call gb_CppunitTest_use_components,dbaccess_firebird,\
+$(eval $(call gb_CppunitTest_use_components,dbaccess_firebird_test,\
 basic/util/sb \
 comphelper/ut

[Libreoffice-commits] core.git: configure.ac

2021-06-10 Thread Caolán McNamara (via logerrit)
 configure.ac |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0dbe3845bc3583dd6a8e285a8bdfd5b3939bbc6f
Author: Caolán McNamara 
AuthorDate: Thu Jun 10 09:38:26 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jun 10 14:06:11 2021 +0200

firebird support accidentally defaulted to disabled

since...

commit ffc6d564b91692cd9d99a0eb3b1ceaf54f7db89e
Date:   Tue Jun 1 07:40:12 2021 +0200

configure: Refactor disabling DB drivers

Change-Id: I94e5e0aca54e1d6d0355d63b27d8fd73dd433083
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116964
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/configure.ac b/configure.ac
index e860d4a5f199..fea4aff131cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10121,7 +10121,7 @@ int fb_api_is_30(void) { return 0; }
 fi
 ENABLE_FIREBIRD_SDBC=TRUE
 AC_DEFINE([ENABLE_FIREBIRD_SDBC],1)
-elif test "$enable_database_connectivity" != yes; then
+elif test "$enable_database_connectivity" = no; then
 AC_MSG_RESULT([none])
 elif test "$cross_compiling" = "yes"; then
 AC_MSG_RESULT([none])
@@ -10317,7 +10317,7 @@ if test "$with_system_odbc" = "yes" -o '(' 
"$with_system_headers" = "yes" -a "$w
 AC_CHECK_HEADER(sqlext.h, [],
 [AC_MSG_ERROR(odbc not found. install odbc)],[])
 fi
-elif test "$enable_database_connectivity" != yes; then
+elif test "$enable_database_connectivity" = no; then
 AC_MSG_RESULT([none])
 else
 AC_MSG_RESULT([internal])
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - chart2/qa helpcontent2 include/oox oox/source

2021-06-10 Thread Olivier Hallot (via logerrit)
 chart2/qa/extras/chart2export.cxx |   20 +
 chart2/qa/extras/data/xlsx/testSecondaryAxis.xlsx |binary
 helpcontent2  |2 
 include/oox/export/chartexport.hxx|4 
 oox/source/export/chartexport.cxx |  336 --
 5 files changed, 208 insertions(+), 154 deletions(-)

New commits:
commit 7930a1c5de1dfea458ba52502259b4ff702fd3f4
Author: Olivier Hallot 
AuthorDate: Thu Jun 10 09:02:01 2021 -0300
Commit: Gerrit Code Review 
CommitDate: Thu Jun 10 14:02:01 2021 +0200

Update git submodules

* Update helpcontent2 from branch 'master'
  to fded06f95f73fd0bfb27d861843c2f317db83d29
  - tdf#132906 Update Sampling statistics dialog

Change-Id: Ibe4132cfb80455dfc3338b17155bf449aad6e840
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116925
Tested-by: Jenkins
Reviewed-by: Eike Rathke 

diff --git a/helpcontent2 b/helpcontent2
index 9fffc3e09d2c..fded06f95f73 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit 9fffc3e09d2cddfc614e5520d8d33942572dd5a5
+Subproject commit fded06f95f73fd0bfb27d861843c2f317db83d29
commit 3b4c11350a631e27345e87ecfe258d12983cbfbc
Author: Balazs Varga 
AuthorDate: Tue Jun 8 09:24:48 2021 +0200
Commit: Balazs Varga 
CommitDate: Thu Jun 10 14:01:52 2021 +0200

tdf#142713 OOXML: export secondary axis of all chart types

where the secondary axis is supported by the chart model
and OOXML.

Change-Id: Ifbcc905139487965510063aa87991ce6f8df73ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116809
Tested-by: Jenkins
Reviewed-by: Balazs Varga 

diff --git a/chart2/qa/extras/chart2export.cxx 
b/chart2/qa/extras/chart2export.cxx
index dd8b40182d05..89dcdeb529fd 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -128,6 +128,7 @@ public:
 void testTdf96161();
 void testMultipleAxisXLSX();
 void testSecondaryAxisXLSX();
+void testBarChartSecondaryAxisXLSX();
 
 CPPUNIT_TEST_SUITE(Chart2ExportTest);
 CPPUNIT_TEST(testErrorBarXLSX);
@@ -221,6 +222,7 @@ public:
 CPPUNIT_TEST(testTdf96161);
 CPPUNIT_TEST(testMultipleAxisXLSX);
 CPPUNIT_TEST(testSecondaryAxisXLSX);
+CPPUNIT_TEST(testBarChartSecondaryAxisXLSX);
 
 CPPUNIT_TEST_SUITE_END();
 };
@@ -1925,6 +1927,24 @@ void Chart2ExportTest::testSecondaryAxisXLSX()
 assertXPathContent(pXmlDoc, 
"/c:chartSpace/c:chart/c:plotArea/c:lineChart[2]/c:ser[1]/c:tx/c:strRef/c:strCache/c:pt/c:v",
 "a");
 }
 
+void Chart2ExportTest::testBarChartSecondaryAxisXLSX()
+{
+load(u"/chart2/qa/extras/data/xlsx/", "testSecondaryAxis.xlsx");
+xmlDocUniquePtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open 
XML");
+CPPUNIT_ASSERT(pXmlDoc);
+// Collect barchart axID on primary Axis
+OUString XValueIdOf1Barchart = getXPath(pXmlDoc, 
"/c:chartSpace/c:chart/c:plotArea/c:barChart[1]/c:axId[1]", "val");
+OUString YValueIdOf1Barchart = getXPath(pXmlDoc, 
"/c:chartSpace/c:chart/c:plotArea/c:barChart[1]/c:axId[2]", "val");
+// Collect barchart axID on secondary Axis
+OUString XValueIdOf2Barchart = getXPath(pXmlDoc, 
"/c:chartSpace/c:chart/c:plotArea/c:barChart[2]/c:axId[1]", "val");
+OUString YValueIdOf2Barchart = getXPath(pXmlDoc, 
"/c:chartSpace/c:chart/c:plotArea/c:barChart[2]/c:axId[2]", "val");
+// Check which c:catAx and c:valAx contain the AxisId of barcharts
+assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:catAx[1]/c:axId", 
"val", XValueIdOf1Barchart);
+assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:valAx[1]/c:axId", 
"val", YValueIdOf1Barchart);
+assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:catAx[2]/c:axId", 
"val", XValueIdOf2Barchart);
+assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:valAx[2]/c:axId", 
"val", YValueIdOf2Barchart);
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/xlsx/testSecondaryAxis.xlsx 
b/chart2/qa/extras/data/xlsx/testSecondaryAxis.xlsx
new file mode 100644
index ..6faa39b29480
Binary files /dev/null and b/chart2/qa/extras/data/xlsx/testSecondaryAxis.xlsx 
differ
diff --git a/include/oox/export/chartexport.hxx 
b/include/oox/export/chartexport.hxx
index b6ed39c72dbb..5dbf8c20ac0b 100644
--- a/include/oox/export/chartexport.hxx
+++ b/include/oox/export/chartexport.hxx
@@ -158,7 +158,7 @@ private:
 void exportRadarChart( const css::uno::Reference< css::chart2::XChartType 
>& xChartType );
 void exportScatterChart( const css::uno::Reference< 
css::chart2::XChartType >& xChartType );
 void exportScatterChartSeries( const css::uno::Reference< 
css::chart2::XChartType >& xChartType,
-css::uno::Sequence>* 
pSeries);
+const 
css::uno::Sequence>* pSeries);
 void exportStockChart( const css::uno::Reference< css::char

[Libreoffice-commits] core.git: officecfg/registry

2021-06-10 Thread Gabor Kelemen (via logerrit)
 officecfg/registry/data/org/openoffice/Office/Accelerators.xcu |   56 
++
 1 file changed, 56 insertions(+)

New commits:
commit 8d2d627a13de56bb95802d8ca1086933314fee46
Author: Gabor Kelemen 
AuthorDate: Mon May 31 00:15:04 2021 +0200
Commit: Balazs Varga 
CommitDate: Thu Jun 10 13:58:16 2021 +0200

tdf#142257 Add Word-compatible secondary shortcuts for Grow/Shrink

Only for Hungarian, so we are not clashing with /
wasting precious combinations for other languages.

This would provide UX-interop with Word, yet the new default which
is consistent with Impress is kept so it's the best of both worlds.

Change-Id: Ia74c570bb94835d4a173a536f49d5a4f50e23542
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116418
Tested-by: Jenkins
Reviewed-by: Balazs Varga 

diff --git a/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu 
b/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu
index 8e7f749bc096..0e14b89668e2 100644
--- a/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu
@@ -7957,6 +7957,20 @@ Ctrl+Shift+e aka E_SHIFT_MOD1 under GTK/IBUS is for some 
emoji thing
 .uno:Undo
   
 
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:Shrink
+  
+
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:Grow
+  
+
   
   
 
@@ -8079,6 +8093,20 @@ Ctrl+Shift+e aka E_SHIFT_MOD1 under GTK/IBUS is for some 
emoji thing
 .uno:Undo
   
 
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:Shrink
+  
+
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:Grow
+  
+
   
   
 
@@ -8139,6 +8167,20 @@ Ctrl+Shift+e aka E_SHIFT_MOD1 under GTK/IBUS is for some 
emoji thing
 .uno:Undo
   
 
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:Shrink
+  
+
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:Grow
+  
+
   
   
 
@@ -8159,6 +8201,20 @@ Ctrl+Shift+e aka E_SHIFT_MOD1 under GTK/IBUS is for some 
emoji thing
 .uno:Undo
   
 
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:Shrink
+  
+
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:Grow
+  
+
   
   
   
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/inc vcl/source

2021-06-10 Thread Noel Grandin (via logerrit)
 vcl/inc/wizdlg.hxx   |8 
 vcl/source/control/wizardmachine.cxx |   21 +++--
 2 files changed, 11 insertions(+), 18 deletions(-)

New commits:
commit 3455c3efff86b12835261e2165ec563b2e0df2d3
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:36:48 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 13:55:33 2021 +0200

loplugin:unnecessaryreturn RoadmapWizard

Change-Id: I269fd92a6076fe9ebe18646e537e7031aec47fef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116976
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/vcl/inc/wizdlg.hxx b/vcl/inc/wizdlg.hxx
index 7c6af8636260..d1dd68f0cde3 100644
--- a/vcl/inc/wizdlg.hxx
+++ b/vcl/inc/wizdlg.hxx
@@ -120,7 +120,7 @@ namespace vcl
 virtual voidqueue_resize(StateChangedType eReason = 
StateChangedType::Layout) override;
 
 boolShowPage( sal_uInt16 nLevel );
-boolFinish( tools::Long nResult = 0 );
+voidFinish( tools::Long nResult = 0 );
 sal_uInt16  GetCurLevel() const { return mnCurLevel; }
 
 voidAddPage( TabPage* pPage );
@@ -182,10 +182,10 @@ namespace vcl
 WizardTypes::WizardState determineNextState(WizardTypes::WizardState 
nCurrentState) const;
 
 /// travel to the next state
-booltravelNext();
+voidtravelNext();
 
 /// travel to the previous state
-booltravelPrevious();
+voidtravelPrevious();
 
 /** enables the automatic enabled/disabled state of the "Next" button
 
@@ -270,7 +270,7 @@ namespace vcl
 bool   isTravelingSuspended() const;
 
 protected:
-TabPage* GetOrCreatePage(const WizardTypes::WizardState i_nState);
+void GetOrCreatePage(const WizardTypes::WizardState i_nState);
 
 private:
 void ImplCalcSize( Size& rSize );
diff --git a/vcl/source/control/wizardmachine.cxx 
b/vcl/source/control/wizardmachine.cxx
index 919b54bbdc00..59554f275663 100644
--- a/vcl/source/control/wizardmachine.cxx
+++ b/vcl/source/control/wizardmachine.cxx
@@ -484,7 +484,7 @@ namespace vcl
 return Dialog::EventNotify( rNEvt );
 }
 
-TabPage* RoadmapWizard::GetOrCreatePage( const WizardTypes::WizardState 
i_nState )
+void RoadmapWizard::GetOrCreatePage( const WizardTypes::WizardState 
i_nState )
 {
 if ( nullptr == GetPage( i_nState ) )
 {
@@ -508,7 +508,6 @@ namespace vcl
 // already had this page - just change it
 SetPage( i_nState, pNewPage );
 }
-return GetPage( i_nState );
 }
 
 void RoadmapWizard::ActivatePage()
@@ -527,13 +526,12 @@ namespace vcl
 return true;
 }
 
-bool RoadmapWizard::Finish( tools::Long nResult )
+void RoadmapWizard::Finish( tools::Long nResult )
 {
 if ( IsInExecute() )
 EndDialog( nResult );
 else if ( GetStyle() & WB_CLOSEABLE )
 Close();
-return true;
 }
 
 void RoadmapWizard::AddPage( TabPage* pPage )
@@ -753,17 +751,17 @@ namespace vcl
 return true;
 }
 
-bool RoadmapWizard::travelNext()
+void RoadmapWizard::travelNext()
 {
 // allowed to leave the current page?
 if ( !prepareLeaveCurrentState( WizardTypes::eTravelForward ) )
-return false;
+return;
 
 // determine the next state to travel to
 WizardTypes::WizardState nCurrentState = getCurrentState();
 WizardTypes::WizardState nNextState = 
determineNextState(nCurrentState);
 if (WZS_INVALID_STATE == nNextState)
-return false;
+return;
 
 // the state history is used by the enterState method
 // all fine
@@ -771,19 +769,16 @@ namespace vcl
 if (!ShowPage(nNextState))
 {
 m_xWizardImpl->aStateHistory.pop();
-return false;
 }
-
-return true;
 }
 
-bool RoadmapWizard::travelPrevious()
+void RoadmapWizard::travelPrevious()
 {
 DBG_ASSERT(!m_xWizardImpl->aStateHistory.empty(), 
"RoadmapWizard::travelPrevious: have no previous page!");
 
 // allowed to leave the current page?
 if ( !prepareLeaveCurrentState( WizardTypes::eTravelBackward ) )
-return false;
+return;
 
 // the next state to switch to
 WizardTypes::WizardState nPreviousState = 
m_xWizardImpl->aStateHistory.top();
@@ -794,11 +789,9 @@ namespace vcl
 if (!ShowPage(nPreviousState))
 {
 m_xWizardImpl->aStateHistory.push(nPreviousState);
-return false;
 }
 
 // all fine
-return true;
 }
 
 void  RoadmapWizard::removePageFromHistory( WizardTypes::WizardState 
nToRemove )
___
Libre

[Libreoffice-commits] core.git: 2 commits - editeng/source officecfg/registry

2021-06-10 Thread Gabor Kelemen (via logerrit)
 editeng/source/rtf/svxrtf.cxx  |6 --
 officecfg/registry/data/org/openoffice/Office/Accelerators.xcu |8 
 2 files changed, 8 insertions(+), 6 deletions(-)

New commits:
commit 3882a1811155415cba63ffc08f0f4863c0dbb3b7
Author: Gabor Kelemen 
AuthorDate: Wed Jun 2 00:13:28 2021 +0200
Commit: Balazs Varga 
CommitDate: Thu Jun 10 13:55:13 2021 +0200

tdf#142612 Replace Show Formula command shortcut for Hungarian

Use the Excel-compatible shortcut that can be entered with
Hungarian keyboard layout on Windows. Backtick is AltGr+7
which does not work correctly when combined with Ctrl.

Change-Id: I9f5da857a041733c63c124b3aff3d1834f8405f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116562
Tested-by: Jenkins
Reviewed-by: Balazs Varga 

diff --git a/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu 
b/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu
index 435e29ae96c6..8e7f749bc096 100644
--- a/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu
@@ -1167,10 +1167,18 @@ Ctrl+Shift+e aka E_SHIFT_MOD1 under GTK/IBUS is for 
some emoji thing
 .uno:SuperScript
   
 
+
+  
+I10N SHORTCUTS - NO 
TRANSLATE
+
+.uno:ToggleFormula
+  
+
 
   
 I10N SHORTCUTS - NO 
TRANSLATE
 .uno:ToggleFormula
+
   
 
 
commit 5bd31b7116abbb61f330783ab12aa302f9e8c43c
Author: Caolán McNamara 
AuthorDate: Thu Jun 10 09:54:20 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jun 10 13:55:02 2021 +0200

cid#1485166 silence Uninitialized scalar variable harder

Change-Id: Ic9d841109cbcc1201e13cebea423139fd760c680
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116966
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx
index e94159e29e77..fe1f18adcb0d 100644
--- a/editeng/source/rtf/svxrtf.cxx
+++ b/editeng/source/rtf/svxrtf.cxx
@@ -943,9 +943,6 @@ SvxRTFItemStackType::SvxRTFItemStackType(
 , nEndCnt(nSttCnt)
 , nStyleNo(0)
 {
-#if defined(__COVERITY__)
-mxEndNodeIdx = mxStartNodeIdx;
-#endif
 }
 
 SvxRTFItemStackType::SvxRTFItemStackType(
@@ -962,9 +959,6 @@ SvxRTFItemStackType::SvxRTFItemStackType(
 , nEndCnt(nSttCnt)
 , nStyleNo(rCpy.nStyleNo)
 {
-#if defined(__COVERITY__)
-mxEndNodeIdx = mxStartNodeIdx;
-#endif
 aAttrSet.SetParent( &rCpy.aAttrSet );
 if( bCopyAttr )
 aAttrSet.Put( rCpy.aAttrSet );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sw/qa

2021-06-10 Thread Xisco Fauli (via logerrit)
 sw/qa/extras/ww8export/data/tdf64997.doc |binary
 sw/qa/extras/ww8export/ww8export3.cxx|8 
 2 files changed, 8 insertions(+)

New commits:
commit 02af9b8ef1f87bb6bc5fee22ad184681b20f201a
Author: Xisco Fauli 
AuthorDate: Thu Jun 10 10:51:45 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Jun 10 13:37:31 2021 +0200

tdf#64997: sw_ww8export3: Add unittest

Change-Id: Iba81551157484274f90fea3e9f9f2c34c1daeaf0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116968
Tested-by: Jenkins
Reviewed-by: Xisco Fauli 

diff --git a/sw/qa/extras/ww8export/data/tdf64997.doc 
b/sw/qa/extras/ww8export/data/tdf64997.doc
new file mode 100644
index ..d17ef5b84e26
Binary files /dev/null and b/sw/qa/extras/ww8export/data/tdf64997.doc differ
diff --git a/sw/qa/extras/ww8export/ww8export3.cxx 
b/sw/qa/extras/ww8export/ww8export3.cxx
index ecf30b99806b..ffdf64cf5f1c 100644
--- a/sw/qa/extras/ww8export/ww8export3.cxx
+++ b/sw/qa/extras/ww8export/ww8export3.cxx
@@ -272,6 +272,14 @@ DECLARE_WW8EXPORT_TEST(testTdf96840, "tdf96840.doc")
 {
 // Without the fix in place, this test would have hung at import time
 CPPUNIT_ASSERT_EQUAL(3, getPages());
+CPPUNIT_ASSERT_EQUAL(4, getShapes());
+}
+
+DECLARE_WW8EXPORT_TEST(testTdf64997, "tdf64997.doc")
+{
+// Without the fix in place, this test would have hung at import time
+CPPUNIT_ASSERT_EQUAL(1, getPages());
+CPPUNIT_ASSERT_EQUAL(4, getShapes());
 }
 
 DECLARE_WW8EXPORT_TEST(testTdf139495_tinyHeader, "tdf139495_tinyHeader.doc")
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


What do you think about some changes in PSGTBehavior.java?

2021-06-10 Thread Todor Balabanov
https://github.com/LibreOffice/core/blob/105ad5dc174d9e894b0c4f9e24d068090ca8c3aa/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/behavior/PSGTBehavior.java#L94

  @Override

  public void generateBehavior(SearchPoint trailPoint, ProblemEncoder
problemEncoder) {

DesignSpace designSpace = problemEncoder.getDesignSpace();


double[] pold_t_location = pold_t.getLocation();

double[] pbest_t_location = pbest_t.getLocation();

double[] pcurrent_t_location = pcurrent_t.getLocation();

double[] gbest_t_location = socialLib.getGbest().getLocation();

double[] trailPointLocation = trailPoint.getLocation();



int DIMENSION = designSpace.getDimension();

for (int b = 0; b < DIMENSION; b++) {

  if (Math.random() < CL) {

designSpace.mutationAt(trailPointLocation, b);

continue;

  }



  double deltaxb = weight * (pcurrent_t_location[b] - pold_t_location[b
])

+ c1 * Math.random() * (pbest_t_location[b] -
pcurrent_t_location[b])

+ c2 * Math.random() * (gbest_t_location[b] -
pcurrent_t_location[b]);


  // limitation for delta_x

  double deltaxbm = 0.5 * designSpace.getMagnitudeIn(b);



  if (deltaxb < -deltaxbm) {

deltaxb = -deltaxbm;

  } else if (deltaxb > deltaxbm) {

deltaxb = deltaxbm;

  }



  trailPointLocation[b] = pcurrent_t_location[b] + deltaxb;

}

  }
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: vcl/inc vcl/source

2021-06-10 Thread Noel Grandin (via logerrit)
 vcl/inc/svimpbox.hxx |2 +-
 vcl/source/treelist/svimpbox.cxx |4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 0098d36c07d8a6cd4ad59bf4f4c7ad69fdaf6dfd
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:36:39 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 13:36:28 2021 +0200

loplugin:unnecessaryreturn SvImpLBox::SetMostRight

Change-Id: Id556d8c86c1229a51bd600da433d564979c1cd40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116975
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/vcl/inc/svimpbox.hxx b/vcl/inc/svimpbox.hxx
index 54382ea6e5d7..554c5a8070ae 100644
--- a/vcl/inc/svimpbox.hxx
+++ b/vcl/inc/svimpbox.hxx
@@ -165,7 +165,7 @@ private:
 voidInitScrollBarBox();
 SvLBoxTab*  NextTab( SvLBoxTab const * );
 
-boolSetMostRight( SvTreeListEntry* pEntry );
+voidSetMostRight( SvTreeListEntry* pEntry );
 voidFindMostRight( SvTreeListEntry* pParent );
 voidFindMostRight_Impl( SvTreeListEntry* pParent );
 voidNotifyTabsChanged();
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 60b8a5962e42..11a8fb344998 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -2961,7 +2961,7 @@ void SvImpLBox::SetUpdateMode( bool bMode )
 }
 }
 
-bool SvImpLBox::SetMostRight( SvTreeListEntry* pEntry )
+void SvImpLBox::SetMostRight( SvTreeListEntry* pEntry )
 {
 if( m_pView->nTreeFlags & SvTreeFlags::RECALCTABS )
 {
@@ -2997,10 +2997,8 @@ bool SvImpLBox::SetMostRight( SvTreeListEntry* pEntry )
 {
 m_nMostRight = nRight;
 m_pMostRightEntry = pEntry;
-return true;
 }
 }
-return false;
 }
 
 void SvImpLBox::FindMostRight()
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/inc vcl/unx

2021-06-10 Thread Noel Grandin (via logerrit)
 vcl/inc/unx/saldisp.hxx |4 ++--
 vcl/unx/generic/app/saldisp.cxx |   16 
 2 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 7ad41a7767c666f6707adb1449e501f8581d0d3b
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:36:12 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 13:22:01 2021 +0200

loplugin:unnecessaryreturn SalX11Display::Dispatch

Change-Id: I270f6538d921ad2116cc29ada3e4543027531764
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116974
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx
index c109a4335e62..591423df7683 100644
--- a/vcl/inc/unx/saldisp.hxx
+++ b/vcl/inc/unx/saldisp.hxx
@@ -304,7 +304,7 @@ protected:
 
 mutable Timem_nLastUserEventTime; // mutable because changed on first 
access
 
-virtual boolDispatch( XEvent *pEvent ) = 0;
+virtual voidDispatch( XEvent *pEvent ) = 0;
 voidInitXinerama();
 voidInitRandR( ::Window aRoot ) const;
 static void DeInitRandR();
@@ -400,7 +400,7 @@ public:
  SalX11Display( Display* pDisp );
 virtual ~SalX11Display() override;
 
-virtual boolDispatch( XEvent *pEvent ) override;
+virtual voidDispatch( XEvent *pEvent ) override;
 virtual voidYield();
 virtual voidTriggerUserEventProcessing() override;
 
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index 4272f9e89812..9399cab30527 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -1907,7 +1907,7 @@ void SalX11Display::Yield()
 GetX11SalData()->ResetXErrorOccurred();
 }
 
-bool SalX11Display::Dispatch( XEvent *pEvent )
+void SalX11Display::Dispatch( XEvent *pEvent )
 {
 SalI18N_InputMethod* const pInputMethod =
 pXLib_ ? pXLib_->GetInputMethod() : nullptr;
@@ -1930,7 +1930,7 @@ bool SalX11Display::Dispatch( XEvent *pEvent )
 }
 }
 if( pInputMethod->FilterEvent( pEvent, aFrameWindow ) )
-return false;
+return;
 }
 
 SalInstance* pInstance = GetSalData()->m_pInstance;
@@ -1955,7 +1955,7 @@ bool SalX11Display::Dispatch( XEvent *pEvent )
 {
 for (auto pSalFrame : m_aFrames )
  pSalFrame->CallCallback( 
SalEvent::SettingsChanged, nullptr );
-return false;
+return;
 }
 }
 }
@@ -1981,7 +1981,7 @@ bool SalX11Display::Dispatch( XEvent *pEvent )
 && GetKbdExtension()->GetEventBase() == pEvent->type )
 {
 GetKbdExtension()->Dispatch( pEvent );
-return true;
+return;
 }
 break;
 }
@@ -1996,11 +1996,13 @@ bool SalX11Display::Dispatch( XEvent *pEvent )
 || pFrame->GetForeignParent() == aDispatchWindow
 )
 {
-return pFrame->Dispatch( pEvent );
+pFrame->Dispatch( pEvent );
+return;
 }
 if( pEvent->type == ConfigureNotify && pEvent->xconfigure.window == 
pFrame->GetStackingWindow() )
 {
-return pFrame->Dispatch( pEvent );
+pFrame->Dispatch( pEvent );
+return;
 }
 }
 
@@ -2009,8 +2011,6 @@ bool SalX11Display::Dispatch( XEvent *pEvent )
 
 // is this perhaps a root window that changed size ?
 processRandREvent( pEvent );
-
-return false;
 }
 
 #ifdef DBG_UTIL
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/headless vcl/inc vcl/osx vcl/qt5 vcl/unx vcl/win

2021-06-10 Thread Noel Grandin (via logerrit)
 vcl/headless/svpframe.cxx   |3 +--
 vcl/inc/headless/svpframe.hxx   |2 +-
 vcl/inc/osx/salframe.h  |2 +-
 vcl/inc/qt5/Qt5Frame.hxx|2 +-
 vcl/inc/salframe.hxx|2 +-
 vcl/inc/unx/gtk/gtkframe.hxx|2 +-
 vcl/inc/unx/salframe.h  |2 +-
 vcl/inc/win/salframe.h  |2 +-
 vcl/osx/salframe.cxx|3 +--
 vcl/qt5/Qt5Frame.cxx|3 +--
 vcl/unx/generic/window/salframe.cxx |4 +---
 vcl/unx/gtk3/gtkframe.cxx   |3 +--
 vcl/win/window/salframe.cxx |3 +--
 13 files changed, 13 insertions(+), 20 deletions(-)

New commits:
commit e2644dc93e0c9577e3d6d1e8c4918481165d1378
Author: Noel Grandin 
AuthorDate: Thu Jun 10 11:35:19 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 13:19:28 2021 +0200

loplugin:unnecessaryreturn SalFrame::SetPluginParent

Change-Id: If927a834f5b5d722fc36cce40e161597af6234ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116972
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx
index fb7a81d08b7a..ab82a90a4faa 100644
--- a/vcl/headless/svpframe.cxx
+++ b/vcl/headless/svpframe.cxx
@@ -482,9 +482,8 @@ void SvpSalFrame::SetParent( SalFrame* pNewParent )
 m_pParent = static_cast(pNewParent);
 }
 
-bool SvpSalFrame::SetPluginParent( SystemParentData* )
+void SvpSalFrame::SetPluginParent( SystemParentData* )
 {
-return true;
 }
 
 void SvpSalFrame::ResetClipRegion()
diff --git a/vcl/inc/headless/svpframe.hxx b/vcl/inc/headless/svpframe.hxx
index 1d8622d586b9..145ccf5b3655 100644
--- a/vcl/inc/headless/svpframe.hxx
+++ b/vcl/inc/headless/svpframe.hxx
@@ -106,7 +106,7 @@ public:
 virtual KeyIndicatorState   GetIndicatorState() override;
 virtual voidSimulateKeyPress( sal_uInt16 nKeyCode ) 
override;
 virtual voidSetParent( SalFrame* pNewParent ) override;
-virtual boolSetPluginParent( SystemParentData* pNewParent 
) override;
+virtual voidSetPluginParent( SystemParentData* pNewParent 
) override;
 virtual voidResetClipRegion() override;
 virtual voidBeginSetClipRegion( sal_uInt32 nRects ) 
override;
 virtual voidUnionClipRegion( tools::Long nX, tools::Long 
nY, tools::Long nWidth, tools::Long nHeight ) override;
diff --git a/vcl/inc/osx/salframe.h b/vcl/inc/osx/salframe.h
index d634647715ce..47f8e62981b8 100644
--- a/vcl/inc/osx/salframe.h
+++ b/vcl/inc/osx/salframe.h
@@ -149,7 +149,7 @@ public:
 virtual KeyIndicatorState   GetIndicatorState() override;
 virtual voidSimulateKeyPress( sal_uInt16 nKeyCode ) 
override;
 virtual voidSetParent( SalFrame* pNewParent ) override;
-virtual boolSetPluginParent( SystemParentData* pNewParent 
) override;
+virtual voidSetPluginParent( SystemParentData* pNewParent 
) override;
 virtual voidSetExtendedFrameStyle( SalExtStyle ) override;
 virtual voidSetScreenNumber(unsigned int) override;
 virtual voidSetApplicationID( const OUString 
&rApplicationID ) override;
diff --git a/vcl/inc/qt5/Qt5Frame.hxx b/vcl/inc/qt5/Qt5Frame.hxx
index 828f212babfb..62877e15e89a 100644
--- a/vcl/inc/qt5/Qt5Frame.hxx
+++ b/vcl/inc/qt5/Qt5Frame.hxx
@@ -197,7 +197,7 @@ public:
 virtual KeyIndicatorState GetIndicatorState() override;
 virtual void SimulateKeyPress(sal_uInt16 nKeyCode) override;
 virtual void SetParent(SalFrame* pNewParent) override;
-virtual bool SetPluginParent(SystemParentData* pNewParent) override;
+virtual void SetPluginParent(SystemParentData* pNewParent) override;
 virtual void ResetClipRegion() override;
 virtual void BeginSetClipRegion(sal_uInt32 nRects) override;
 virtual void UnionClipRegion(tools::Long nX, tools::Long nY, tools::Long 
nWidth,
diff --git a/vcl/inc/salframe.hxx b/vcl/inc/salframe.hxx
index 20eab00d7989..6525ab14b1c9 100644
--- a/vcl/inc/salframe.hxx
+++ b/vcl/inc/salframe.hxx
@@ -237,7 +237,7 @@ public:
 // reparent window to act as a plugin; implementation
 // may choose to use a new system window internally
 // return false to indicate failure
-virtual boolSetPluginParent( SystemParentData* pNewParent ) = 
0;
+virtual voidSetPluginParent( SystemParentData* pNewParent ) = 
0;
 
 // move the frame to a new screen
 virtual voidSetScreenNumber( unsigned int nScreen ) = 0;
diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx
index 645dbd9ac794..b1ddd52913b8 100644
--- a/vcl/inc/unx/gtk/gtkframe.hxx
+++ b/vcl/inc/unx/gtk/gtkframe.hxx
@@ -551,7 +551,7 @@ public:
 // reparent window to act as a plugin; implementation
 // may choose to use a new system window internally
 

[Libreoffice-commits] core.git: editeng/source oox/inc oox/source

2021-06-10 Thread Noel Grandin (via logerrit)
 editeng/source/editeng/impedit.hxx  |1 
 editeng/source/editeng/impedit2.cxx |   69 
 oox/inc/drawingml/textbody.hxx  |2 -
 oox/source/drawingml/textbody.cxx   |5 --
 4 files changed, 77 deletions(-)

New commits:
commit cea5df84466fb7cbecada6840b918d736f9b89c3
Author: Noel Grandin 
AuthorDate: Thu Jun 10 09:39:00 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 13:19:07 2021 +0200

loplugin:unusedmethods

Change-Id: I2890e29b3e18cdf7822bf93ee7c17cd8221497a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116971
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/editeng/source/editeng/impedit.hxx 
b/editeng/source/editeng/impedit.hxx
index 4a39269507ff..2c17b0882631 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -625,7 +625,6 @@ private:
 tools::Long GetXPos(const ParaPortion* pParaPortion, const EditLine* 
pLine, sal_Int32 nIndex, bool bPreferPortionStart = false) const;
 tools::Long GetPortionXOffset(const ParaPortion* pParaPortion, const 
EditLine* pLine, sal_Int32 nTextPortion) const;
 sal_Int32 GetChar(const ParaPortion* pParaPortion, const EditLine* pLine, 
tools::Long nX, bool bSmart = true);
-Range   GetInvalidYOffsets( ParaPortion* pPortion );
 Range GetLineXPosStartEnd( const ParaPortion* pParaPortion, const 
EditLine* pLine ) const;
 
 voidParaAttribsToCharAttribs( ContentNode* pNode );
diff --git a/editeng/source/editeng/impedit2.cxx 
b/editeng/source/editeng/impedit2.cxx
index 05ae8ee6a464..14685e7e1314 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -3869,75 +3869,6 @@ EditSelection ImpEditEngine::PasteText( uno::Reference< 
datatransfer::XTransfera
 return aNewSelection;
 }
 
-Range ImpEditEngine::GetInvalidYOffsets( ParaPortion* pPortion )
-{
-Range aRange( 0, 0 );
-
-if ( pPortion->IsVisible() )
-{
-const SvxULSpaceItem& rULSpace = 
pPortion->GetNode()->GetContentAttribs().GetItem( EE_PARA_ULSPACE );
-const SvxLineSpacingItem& rLSItem = 
pPortion->GetNode()->GetContentAttribs().GetItem( EE_PARA_SBL );
-sal_uInt16 nSBL = ( rLSItem.GetInterLineSpaceRule() == 
SvxInterLineSpaceRule::Fix )
-? GetYValue( rLSItem.GetInterLineSpace() ) : 0;
-
-// only from the top ...
-sal_Int32 nFirstInvalid = -1;
-sal_Int32 nLine;
-for ( nLine = 0; nLine < pPortion->GetLines().Count(); nLine++ )
-{
-const EditLine& rL = pPortion->GetLines()[nLine];
-if ( rL.IsInvalid() )
-{
-nFirstInvalid = nLine;
-break;
-}
-if ( nLine && !aStatus.IsOutliner() )   // not the first line
-aRange.Min() += nSBL;
-aRange.Min() += rL.GetHeight();
-}
-OSL_ENSURE( nFirstInvalid != -1, "No invalid line found in 
GetInvalidYOffset(1)" );
-
-
-// Syndicate and more ...
-aRange.Max() = aRange.Min();
-aRange.Max() += pPortion->GetFirstLineOffset();
-if (nFirstInvalid >= 0)   // Only if the first line is invalid
-aRange.Min() = aRange.Max();
-
-sal_Int32 nLastInvalid = pPortion->GetLines().Count()-1;
-if (nFirstInvalid >= 0)
-{
-for ( nLine = nFirstInvalid; nLine < pPortion->GetLines().Count(); 
nLine++ )
-{
-const EditLine& rL = pPortion->GetLines()[nLine];
-if ( rL.IsValid() )
-{
-nLastInvalid = nLine;
-break;
-}
-if ( nLine && !aStatus.IsOutliner() )
-aRange.Max() += nSBL;
-aRange.Max() += rL.GetHeight();
-}
-
-sal_uInt16 nPropLineSpace = rLSItem.GetPropLineSpace();
-if ( ( rLSItem.GetInterLineSpaceRule() == 
SvxInterLineSpaceRule::Prop )
-&& nPropLineSpace && ( nPropLineSpace < 100 ) )
-{
-const EditLine& rL = pPortion->GetLines()[nFirstInvalid];
-auto n = rL.GetTxtHeight() * ( 100 - nPropLineSpace );
-n /= 100;
-aRange.Min() -= n;
-aRange.Max() += n;
-}
-
-if ( ( nLastInvalid == pPortion->GetLines().Count()-1 ) && ( 
!aStatus.IsOutliner() ) )
-aRange.Max() += GetYValue( rULSpace.GetLower() );
-}
-}
-return aRange;
-}
-
 sal_Int32 ImpEditEngine::GetChar(
 const ParaPortion* pParaPortion, const EditLine* pLine, tools::Long nXPos, 
bool bSmart)
 {
diff --git a/oox/inc/drawingml/textbody.hxx b/oox/inc/drawingml/textbody.hxx
index 093642f30d97..ac6c66b49515 100644
--- a/oox/inc/drawingml/textbody.hxx
+++ b/oox/inc/drawingml/textbody.hxx
@@ -46,8 +46,6 @@ public:
 
 const TextParagraphVector&  getParagr

[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - include/o3tl o3tl/qa

2021-06-10 Thread Luboš Luňák (via logerrit)
 include/o3tl/lru_map.hxx |9 -
 o3tl/qa/test-lru_map.cxx |   14 ++
 2 files changed, 22 insertions(+), 1 deletion(-)

New commits:
commit 76287fdb4b7176124f5ff7d1b6ffc1624fec8ba7
Author: Luboš Luňák 
AuthorDate: Wed Jun 9 17:10:42 2021 +0200
Commit: Michael Meeks 
CommitDate: Thu Jun 10 13:14:42 2021 +0200

allow altering the max size of o3tl::lru_cache

Change-Id: Id119b70275e1c88a8c57f89d915241427be9dbf5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116927
Tested-by: Jenkins
Reviewed-by: Luboš Luňák 
(cherry picked from commit 62b58e88d897f51a7c4e12b41d14121ab8d3396f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116897
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 
(cherry picked from commit cb10c29a3255620bf69480aa7b653962fb04786e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116900

diff --git a/include/o3tl/lru_map.hxx b/include/o3tl/lru_map.hxx
index 33a1487fa239..19d037dbdc38 100644
--- a/include/o3tl/lru_map.hxx
+++ b/include/o3tl/lru_map.hxx
@@ -49,7 +49,7 @@ private:
 
 list_t mLruList;
 map_t mLruMap;
-const size_t mMaxSize;
+size_t mMaxSize;
 
 void checkLRU()
 {
@@ -79,6 +79,13 @@ public:
 aLruListTemp.swap(mLruList);
 }
 
+void setMaxSize(size_t nMaxSize)
+{
+mMaxSize = nMaxSize ? nMaxSize : std::min(mLruMap.max_size(), 
mLruList.max_size());
+while (mLruMap.size() > mMaxSize)
+checkLRU();
+}
+
 void insert(key_value_pair_t& rPair)
 {
 map_iterator_t i = mLruMap.find(rPair.first);
diff --git a/o3tl/qa/test-lru_map.cxx b/o3tl/qa/test-lru_map.cxx
index 5ceec149571c..fe616ee3d026 100644
--- a/o3tl/qa/test-lru_map.cxx
+++ b/o3tl/qa/test-lru_map.cxx
@@ -29,6 +29,7 @@ public:
 void testCustomHash();
 void testRemoveIf();
 void testNoAutoCleanup();
+void testChangeMaxSize();
 
 CPPUNIT_TEST_SUITE(lru_map_test);
 CPPUNIT_TEST(testBaseUsage);
@@ -38,6 +39,7 @@ public:
 CPPUNIT_TEST(testCustomHash);
 CPPUNIT_TEST(testRemoveIf);
 CPPUNIT_TEST(testNoAutoCleanup);
+CPPUNIT_TEST(testChangeMaxSize);
 CPPUNIT_TEST_SUITE_END();
 };
 
@@ -309,6 +311,18 @@ void lru_map_test::testNoAutoCleanup()
 }
 }
 
+void lru_map_test::testChangeMaxSize()
+{
+o3tl::lru_map lru(3);
+CPPUNIT_ASSERT_EQUAL(size_t(0), lru.size());
+lru.insert({ 0, 0 });
+lru.insert({ 1, 1 });
+lru.insert({ 2, 2 });
+CPPUNIT_ASSERT_EQUAL(size_t(3), lru.size());
+lru.setMaxSize(1);
+CPPUNIT_ASSERT_EQUAL(size_t(1), lru.size());
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(lru_map_test);
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - vcl/headless vcl/inc

2021-06-10 Thread Luboš Luňák (via logerrit)
 vcl/headless/svpframe.cxx |   26 +++---
 vcl/inc/headless/svpframe.hxx |2 ++
 2 files changed, 17 insertions(+), 11 deletions(-)

New commits:
commit 48fbc6eaa09db1993752ecf27396131700f11656
Author: Luboš Luňák 
AuthorDate: Thu May 27 20:22:51 2021 +0200
Commit: Michael Meeks 
CommitDate: Thu Jun 10 12:58:18 2021 +0200

avoid possible repeated cairo surface creation

Doing the frame size adjustments only after the if condition meant
that in headless mode the surface could be destroyed and created
again for the same size. Also AcquireGraphics() passed different
frame size to SetGraphics() than SetPosSize().

Change-Id: I9d6884a3917dfbd7b2cfe4fcd4e350c8bc9f4305
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116272
Tested-by: Jenkins
Reviewed-by: Luboš Luňák 
(cherry picked from commit 11925224a53a46837d3a32b126ff2be55c96fb13)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116902
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 

diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx
index 3f79ead63783..fb7a81d08b7a 100644
--- a/vcl/headless/svpframe.cxx
+++ b/vcl/headless/svpframe.cxx
@@ -141,11 +141,24 @@ void SvpSalFrame::LoseFocus()
 }
 }
 
+basegfx::B2IVector SvpSalFrame::GetSurfaceFrameSize() const
+{
+basegfx::B2IVector aFrameSize( maGeometry.nWidth, maGeometry.nHeight );
+if( aFrameSize.getX() == 0 )
+aFrameSize.setX( 1 );
+if( aFrameSize.getY() == 0 )
+aFrameSize.setY( 1 );
+// Creating backing surfaces for invisible windows costs a big chunk of 
RAM.
+if (Application::IsHeadlessModeEnabled())
+ aFrameSize = basegfx::B2IVector( 1, 1 );
+return aFrameSize;
+}
+
 SalGraphics* SvpSalFrame::AcquireGraphics()
 {
 SvpSalGraphics* pGraphics = new SvpSalGraphics();
 #ifndef IOS
-pGraphics->setSurface(m_pSurface, basegfx::B2IVector(maGeometry.nWidth, 
maGeometry.nHeight));
+pGraphics->setSurface(m_pSurface, GetSurfaceFrameSize());
 #endif
 m_aGraphics.push_back( pGraphics );
 return pGraphics;
@@ -252,22 +265,13 @@ void SvpSalFrame::SetPosSize( tools::Long nX, tools::Long 
nY, tools::Long nWidth
 maGeometry.nHeight = m_nMinHeight;
 }
 #ifndef IOS
-basegfx::B2IVector aFrameSize( maGeometry.nWidth, maGeometry.nHeight );
+basegfx::B2IVector aFrameSize = GetSurfaceFrameSize();
 if (!m_pSurface || cairo_image_surface_get_width(m_pSurface) != 
aFrameSize.getX() ||
cairo_image_surface_get_height(m_pSurface) != 
aFrameSize.getY() )
 {
-if( aFrameSize.getX() == 0 )
-aFrameSize.setX( 1 );
-if( aFrameSize.getY() == 0 )
-aFrameSize.setY( 1 );
-
 if (m_pSurface)
 cairo_surface_destroy(m_pSurface);
 
-// Creating backing surfaces for invisible windows costs a big chunk 
of RAM.
-if (Application::IsHeadlessModeEnabled())
- aFrameSize = basegfx::B2IVector( 1, 1 );
-
 m_pSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
 aFrameSize.getX(),
 aFrameSize.getY());
diff --git a/vcl/inc/headless/svpframe.hxx b/vcl/inc/headless/svpframe.hxx
index 6d003d545398..1d8622d586b9 100644
--- a/vcl/inc/headless/svpframe.hxx
+++ b/vcl/inc/headless/svpframe.hxx
@@ -116,6 +116,8 @@ public:
 virtual voidSetScreenNumber( unsigned int ) override {}
 virtual voidSetApplicationID(const OUString &) override {}
 
+private:
+basegfx::B2IVector GetSurfaceFrameSize() const;
 };
 
 #endif // INCLUDED_VCL_INC_HEADLESS_SVPFRAME_HXX
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: connectivity/source

2021-06-10 Thread Caolán McNamara (via logerrit)
 connectivity/source/drivers/firebird/Blob.cxx|4 ++--
 connectivity/source/drivers/firebird/Blob.hxx|4 ++--
 connectivity/source/drivers/firebird/Catalog.cxx |5 +++--
 connectivity/source/drivers/firebird/Catalog.hxx |4 ++--
 connectivity/source/drivers/firebird/Clob.cxx|5 ++---
 connectivity/source/drivers/firebird/Clob.hxx|4 ++--
 connectivity/source/drivers/firebird/Column.cxx  |4 ++--
 connectivity/source/drivers/firebird/Column.hxx  |4 ++--
 connectivity/source/drivers/firebird/Columns.cxx |4 ++--
 connectivity/source/drivers/firebird/Columns.hxx |4 ++--
 connectivity/source/drivers/firebird/Connection.cxx  |4 ++--
 connectivity/source/drivers/firebird/Connection.hxx  |4 ++--
 connectivity/source/drivers/firebird/DatabaseMetaData.cxx|5 ++---
 connectivity/source/drivers/firebird/DatabaseMetaData.hxx|4 ++--
 connectivity/source/drivers/firebird/Driver.cxx  |5 ++---
 connectivity/source/drivers/firebird/Driver.hxx  |4 ++--
 connectivity/source/drivers/firebird/Indexes.cxx |4 +++-
 connectivity/source/drivers/firebird/Indexes.hxx |4 ++--
 connectivity/source/drivers/firebird/Keys.cxx|4 ++--
 connectivity/source/drivers/firebird/Keys.hxx|4 ++--
 connectivity/source/drivers/firebird/PreparedStatement.cxx   |2 +-
 connectivity/source/drivers/firebird/PreparedStatement.hxx   |4 ++--
 connectivity/source/drivers/firebird/ResultSet.cxx   |2 +-
 connectivity/source/drivers/firebird/ResultSet.hxx   |4 ++--
 connectivity/source/drivers/firebird/ResultSetMetaData.cxx   |5 ++---
 connectivity/source/drivers/firebird/ResultSetMetaData.hxx   |4 ++--
 connectivity/source/drivers/firebird/Statement.cxx   |5 +++--
 connectivity/source/drivers/firebird/Statement.hxx   |4 ++--
 connectivity/source/drivers/firebird/StatementCommonBase.cxx |5 +++--
 connectivity/source/drivers/firebird/StatementCommonBase.hxx |5 ++---
 connectivity/source/drivers/firebird/SubComponent.hxx|4 ++--
 connectivity/source/drivers/firebird/Table.cxx   |4 ++--
 connectivity/source/drivers/firebird/Table.hxx   |4 ++--
 connectivity/source/drivers/firebird/Tables.cxx  |4 ++--
 connectivity/source/drivers/firebird/Tables.hxx  |4 ++--
 connectivity/source/drivers/firebird/User.cxx|4 +++-
 connectivity/source/drivers/firebird/User.hxx|4 ++--
 connectivity/source/drivers/firebird/Users.cxx   |4 ++--
 connectivity/source/drivers/firebird/Users.hxx   |4 ++--
 connectivity/source/drivers/firebird/Util.cxx|5 +++--
 connectivity/source/drivers/firebird/Util.hxx|4 ++--
 41 files changed, 86 insertions(+), 83 deletions(-)

New commits:
commit 5de138edf041ea56652f8a41471f63859ef3318a
Author: Caolán McNamara 
AuthorDate: Thu Jun 10 09:21:34 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jun 10 12:01:19 2021 +0200

update firebird modelines

with solenv/bin/add-modelines -p connectivity/source/drivers/firebird

because a bunch are missing the trailing ones

Change-Id: I168c22586744cd666e6c18a569e143b6caccd421
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116963
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/connectivity/source/drivers/firebird/Blob.cxx 
b/connectivity/source/drivers/firebird/Blob.cxx
index 9cbc0a1b6d03..d254ba49431a 100644
--- a/connectivity/source/drivers/firebird/Blob.cxx
+++ b/connectivity/source/drivers/firebird/Blob.cxx
@@ -1,4 +1,4 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
 /*
  * This file is part of the LibreOffice project.
  *
@@ -385,4 +385,4 @@ void SAL_CALL Blob::closeInput()
 }
 }
 
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/connectivity/source/drivers/firebird/Blob.hxx 
b/connectivity/source/drivers/firebird/Blob.hxx
index adaafac1452d..322649762c71 100644
--- a/connectivity/source/drivers/firebird/Blob.hxx
+++ b/connectivity/source/drivers/firebird/Blob.hxx
@@ -1,4 +1,4 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
 /*
  * This file is part of the LibreOffice project.
  *
@@ -95,4 +95,4 @@ namespace connectivity::firebird
 
 }
 
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+/* vim:set shift

[Libreoffice-commits] core.git: vcl/qa

2021-06-10 Thread Xisco Fauli (via logerrit)
 vcl/qa/cppunit/graphicfilter/data/psd/tdf142629.psd |binary
 vcl/qa/cppunit/graphicfilter/filters-psd-test.cxx   |   27 ++--
 2 files changed, 25 insertions(+), 2 deletions(-)

New commits:
commit 266a3bad6d0537e309922ddafe3a6d4119e2c50c
Author: Xisco Fauli 
AuthorDate: Thu Jun 10 10:24:13 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Jun 10 12:00:05 2021 +0200

tdf#142629: vcl_filters_test: Add unittest

Change-Id: Id0397bc8e16eb22853ce3388f8ef3cc8f8558692
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116961
Tested-by: Jenkins
Reviewed-by: Xisco Fauli 

diff --git a/vcl/qa/cppunit/graphicfilter/data/psd/tdf142629.psd 
b/vcl/qa/cppunit/graphicfilter/data/psd/tdf142629.psd
new file mode 100644
index ..097536bcc484
Binary files /dev/null and 
b/vcl/qa/cppunit/graphicfilter/data/psd/tdf142629.psd differ
diff --git a/vcl/qa/cppunit/graphicfilter/filters-psd-test.cxx 
b/vcl/qa/cppunit/graphicfilter/filters-psd-test.cxx
index 4ff25b18636a..bf181f811e76 100644
--- a/vcl/qa/cppunit/graphicfilter/filters-psd-test.cxx
+++ b/vcl/qa/cppunit/graphicfilter/filters-psd-test.cxx
@@ -12,6 +12,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 using namespace css;
@@ -29,13 +30,20 @@ public:
 const OUString &rURL, const OUString &,
 SfxFilterFlags, SotClipboardFormatId, unsigned int) override;
 
+OUString getUrl() const
+{
+return 
m_directories.getURLFromSrc(u"/vcl/qa/cppunit/graphicfilter/data/psd/");
+}
+
 /**
  * Ensure CVEs remain unbroken
  */
 void testCVEs();
+void testTdf142629();
 
 CPPUNIT_TEST_SUITE(PsdFilterTest);
 CPPUNIT_TEST(testCVEs);
+CPPUNIT_TEST(testTdf142629);
 CPPUNIT_TEST_SUITE_END();
 };
 
@@ -51,11 +59,26 @@ bool PsdFilterTest::load(const OUString &,
 void PsdFilterTest::testCVEs()
 {
 #ifndef DISABLE_CVE_TESTS
-testDir(OUString(),
-
m_directories.getURLFromSrc(u"/vcl/qa/cppunit/graphicfilter/data/psd/"));
+testDir(OUString(), getUrl());
 #endif
 }
 
+void PsdFilterTest::testTdf142629()
+{
+OUString aURL = getUrl() + "tdf142629.psd";
+SvFileStream aFileStream(aURL, StreamMode::READ);
+Graphic aGraphic;
+GraphicFilter& rFilter = GraphicFilter::GetGraphicFilter();
+
+ErrCode bResult = rFilter.ImportGraphic(aGraphic, aURL, aFileStream);
+
+// Without the fix in place, the following asserts would have failed
+CPPUNIT_ASSERT_EQUAL(ERRCODE_NONE, bResult);
+
+CPPUNIT_ASSERT(aGraphic.IsAlpha());
+CPPUNIT_ASSERT(aGraphic.IsTransparent());
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(PsdFilterTest);
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: solenv/bin

2021-06-10 Thread Caolán McNamara (via logerrit)
 solenv/bin/add-modelines |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 76e2c20876319cbeea24d40104fac1ba7d6b5278
Author: Caolán McNamara 
AuthorDate: Thu Jun 10 09:14:21 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jun 10 11:46:14 2021 +0200

update add-modelines to the TEMPLATE.SOURCECODE.HEADER pattern

to match

commit f75cd22118a58c8a8827723c890885a500562465
Date:   Tue Nov 8 14:51:20 2016 +0200

Add fill-column: 100 to the Emacs mode line

and

commit 6a0081642633eb406059295b90fd0c9b0cd1130f
Date:   Wed May 18 20:00:00 2016 +0200

add Vim C-indent options to C/C++ template modeline

changes to TEMPLATE.SOURCECODE.HEADER

Change-Id: Ic323cd7dcce9ece23325a23160b0936819bb634b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116962
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/solenv/bin/add-modelines b/solenv/bin/add-modelines
index 09c8d88b16e8..3fa358cc2909 100755
--- a/solenv/bin/add-modelines
+++ b/solenv/bin/add-modelines
@@ -32,8 +32,8 @@ set -f
 set -o posix
 
 # Change these to taste
-FirstLine='/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; 
c-basic-offset: 4 -*- */'
-LastLine='/* vim:set shiftwidth=4 softtabstop=4 expandtab: */'
+FirstLine='/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; 
c-basic-offset: 4; fill-column: 100 -*- */'
+LastLine='/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */'
 SourceFiles='*.cxx *.cpp *.hxx *.hpp *.c *.h *.m *.mm *.idl *.src *.hrc'
 
 # Set defaults (don't change these)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - include/sfx2 sfx2/source vcl/jsdialog

2021-06-10 Thread Szymon Kłos (via logerrit)
 include/sfx2/sidebar/SidebarDockingWindow.hxx |4 -
 sfx2/source/sidebar/SidebarController.cxx |   22 ---
 sfx2/source/sidebar/SidebarDockingWindow.cxx  |   77 --
 vcl/jsdialog/jsdialogbuilder.cxx  |4 -
 4 files changed, 2 insertions(+), 105 deletions(-)

New commits:
commit 64bd4dd2f80b247cb5df3f3e6c54bf2d47bc41a7
Author: Szymon Kłos 
AuthorDate: Thu Jun 10 10:43:05 2021 +0200
Commit: Szymon Kłos 
CommitDate: Thu Jun 10 11:29:53 2021 +0200

jsdialog: sidebar: remove code for tunneled one

Change-Id: Idb60fdfc03729dd3755d5ef1ba61b2f9376e9556
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116965
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Szymon Kłos 

diff --git a/include/sfx2/sidebar/SidebarDockingWindow.hxx 
b/include/sfx2/sidebar/SidebarDockingWindow.hxx
index 903db6f42bf0..ff7f2d2aff38 100644
--- a/include/sfx2/sidebar/SidebarDockingWindow.hxx
+++ b/include/sfx2/sidebar/SidebarDockingWindow.hxx
@@ -32,8 +32,6 @@ class SidebarChildWindow;
 
 class SidebarController;
 
-class SidebarNotifyIdle;
-
 class SFX2_DLLPUBLIC SidebarDockingWindow final : public SfxDockingWindow
 {
 public:
@@ -66,8 +64,6 @@ private:
 ::rtl::Reference mpSidebarController;
 bool mbIsReadyToDrag;
 std::unique_ptr mpAccel;
-
-std::unique_ptr mpIdleNotify;
 };
 
 } // end of namespace sfx2::sidebar
diff --git a/sfx2/source/sidebar/SidebarController.cxx 
b/sfx2/source/sidebar/SidebarController.cxx
index 51304f07bc9d..c120a9cc301c 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -1210,28 +1210,6 @@ IMPL_LINK(SidebarController, OnSubMenuItemSelected, 
const OString&, rCurItemId,
 
 void SidebarController::RequestCloseDeck()
 {
-if (comphelper::LibreOfficeKit::isActive() && mpCurrentDeck)
-{
-const vcl::ILibreOfficeKitNotifier* pNotifier = 
mpCurrentDeck->GetLOKNotifier();
-auto pMobileNotifier = SfxViewShell::Current();
-const SfxViewShell* pViewShell = SfxViewShell::Current();
-if (pMobileNotifier && pViewShell && pViewShell->isLOKMobilePhone())
-{
-// Mobile phone.
-std::stringstream aStream;
-boost::property_tree::ptree aTree;
-aTree.put("id", mpParentWindow->get_id()); // TODO could be 
missing - sort out
-aTree.put("type", "dockingwindow");
-aTree.put("text", mpParentWindow->GetText());
-aTree.put("enabled", false);
-boost::property_tree::write_json(aStream, aTree);
-const std::string message = aStream.str();
-pMobileNotifier->libreOfficeKitViewCallback(LOK_CALLBACK_JSDIALOG, 
message.c_str());
-}
-else if (pNotifier)
-pNotifier->notifyWindow(mpCurrentDeck->GetLOKWindowId(), "close");
-}
-
 mbIsDeckRequestedOpen = false;
 UpdateDeckOpenState();
 
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx 
b/sfx2/source/sidebar/SidebarDockingWindow.cxx
index a7b752af67eb..c40cc06a952b 100644
--- a/sfx2/source/sidebar/SidebarDockingWindow.cxx
+++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx
@@ -41,81 +41,11 @@ using namespace css::uno;
 
 namespace sfx2::sidebar {
 
-class SidebarNotifyIdle : public Idle
-{
-SidebarDockingWindow& m_rSidebarDockingWin;
-std::string m_LastNotificationMessage;
-vcl::LOKWindowId m_LastLOKWindowId;
-
-public:
-SidebarNotifyIdle(SidebarDockingWindow &rSidebarDockingWin) :
-Idle("Sidebar notify"),
-m_rSidebarDockingWin(rSidebarDockingWin),
-m_LastNotificationMessage(),
-m_LastLOKWindowId(0)
-{
-SetPriority(TaskPriority::POST_PAINT);
-}
-
-void Invoke() override
-{
-auto pNotifier = m_rSidebarDockingWin.GetLOKNotifier();
-if (!pNotifier || !comphelper::LibreOfficeKit::isActive())
-return;
-
-try
-{
-const SfxViewShell* pOwnerView = dynamic_cast(pNotifier);
-if (pOwnerView && pOwnerView->isLOKMobilePhone())
-{
-// Mobile phone.
-tools::JsonWriter aJsonWriter;
-m_rSidebarDockingWin.DumpAsPropertyTree(aJsonWriter);
-aJsonWriter.put("id", m_rSidebarDockingWin.GetLOKWindowId());
-std::unique_ptr data( aJsonWriter.extractData());
-std::string_view message(data.get());
-if (message != m_LastNotificationMessage)
-{
-m_LastNotificationMessage = message;
-
pOwnerView->libreOfficeKitViewCallback(LOK_CALLBACK_JSDIALOG, 
m_LastNotificationMessage.c_str());
-}
-}
-
-// Notify the sidebar is created, and its LOKWindowId, which
-// is needed on mobile phones, tablets, and desktop.
-const Point pos(m_rSidebarDockingWin.GetOutOffXPixel(),
-m_rSidebarDo

[Libreoffice-commits] core.git: vcl/headless vcl/inc

2021-06-10 Thread Luboš Luňák (via logerrit)
 vcl/headless/svpframe.cxx |   26 +++---
 vcl/inc/headless/svpframe.hxx |2 ++
 2 files changed, 17 insertions(+), 11 deletions(-)

New commits:
commit 11925224a53a46837d3a32b126ff2be55c96fb13
Author: Luboš Luňák 
AuthorDate: Thu May 27 20:22:51 2021 +0200
Commit: Luboš Luňák 
CommitDate: Thu Jun 10 11:22:22 2021 +0200

avoid possible repeated cairo surface creation

Doing the frame size adjustments only after the if condition meant
that in headless mode the surface could be destroyed and created
again for the same size. Also AcquireGraphics() passed different
frame size to SetGraphics() than SetPosSize().

Change-Id: I9d6884a3917dfbd7b2cfe4fcd4e350c8bc9f4305
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116272
Tested-by: Jenkins
Reviewed-by: Luboš Luňák 

diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx
index 3f79ead63783..fb7a81d08b7a 100644
--- a/vcl/headless/svpframe.cxx
+++ b/vcl/headless/svpframe.cxx
@@ -141,11 +141,24 @@ void SvpSalFrame::LoseFocus()
 }
 }
 
+basegfx::B2IVector SvpSalFrame::GetSurfaceFrameSize() const
+{
+basegfx::B2IVector aFrameSize( maGeometry.nWidth, maGeometry.nHeight );
+if( aFrameSize.getX() == 0 )
+aFrameSize.setX( 1 );
+if( aFrameSize.getY() == 0 )
+aFrameSize.setY( 1 );
+// Creating backing surfaces for invisible windows costs a big chunk of 
RAM.
+if (Application::IsHeadlessModeEnabled())
+ aFrameSize = basegfx::B2IVector( 1, 1 );
+return aFrameSize;
+}
+
 SalGraphics* SvpSalFrame::AcquireGraphics()
 {
 SvpSalGraphics* pGraphics = new SvpSalGraphics();
 #ifndef IOS
-pGraphics->setSurface(m_pSurface, basegfx::B2IVector(maGeometry.nWidth, 
maGeometry.nHeight));
+pGraphics->setSurface(m_pSurface, GetSurfaceFrameSize());
 #endif
 m_aGraphics.push_back( pGraphics );
 return pGraphics;
@@ -252,22 +265,13 @@ void SvpSalFrame::SetPosSize( tools::Long nX, tools::Long 
nY, tools::Long nWidth
 maGeometry.nHeight = m_nMinHeight;
 }
 #ifndef IOS
-basegfx::B2IVector aFrameSize( maGeometry.nWidth, maGeometry.nHeight );
+basegfx::B2IVector aFrameSize = GetSurfaceFrameSize();
 if (!m_pSurface || cairo_image_surface_get_width(m_pSurface) != 
aFrameSize.getX() ||
cairo_image_surface_get_height(m_pSurface) != 
aFrameSize.getY() )
 {
-if( aFrameSize.getX() == 0 )
-aFrameSize.setX( 1 );
-if( aFrameSize.getY() == 0 )
-aFrameSize.setY( 1 );
-
 if (m_pSurface)
 cairo_surface_destroy(m_pSurface);
 
-// Creating backing surfaces for invisible windows costs a big chunk 
of RAM.
-if (Application::IsHeadlessModeEnabled())
- aFrameSize = basegfx::B2IVector( 1, 1 );
-
 m_pSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
 aFrameSize.getX(),
 aFrameSize.getY());
diff --git a/vcl/inc/headless/svpframe.hxx b/vcl/inc/headless/svpframe.hxx
index 6d003d545398..1d8622d586b9 100644
--- a/vcl/inc/headless/svpframe.hxx
+++ b/vcl/inc/headless/svpframe.hxx
@@ -116,6 +116,8 @@ public:
 virtual voidSetScreenNumber( unsigned int ) override {}
 virtual voidSetApplicationID(const OUString &) override {}
 
+private:
+basegfx::B2IVector GetSurfaceFrameSize() const;
 };
 
 #endif // INCLUDED_VCL_INC_HEADLESS_SVPFRAME_HXX
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: cui/source

2021-06-10 Thread Armin Le Grand (Allotropia) (via logerrit)
 cui/source/tabpages/paragrph.cxx |   10 +++---
 1 file changed, 3 insertions(+), 7 deletions(-)

New commits:
commit a292fb847dade1912d281adc44c92a9ba3e8b61d
Author: Armin Le Grand (Allotropia) 
AuthorDate: Wed Jun 9 19:53:24 2021 +0200
Commit: Armin Le Grand 
CommitDate: Thu Jun 10 11:11:26 2021 +0200

tdf#130428 remove unnecessary usage of SfxItemState::UNKNOWN

In this case, avoid single, re-used local variable. It gets
newly processed at locations used anyways.

Change-Id: I89463736cbc28925adc304adb4624ab2740bdfbb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116936
Tested-by: Jenkins
Reviewed-by: Armin Le Grand 

diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx
index cb59cc8c8010..83613a78938a 100644
--- a/cui/source/tabpages/paragrph.cxx
+++ b/cui/source/tabpages/paragrph.cxx
@@ -214,7 +214,6 @@ std::unique_ptr SvxStdParagraphTabPage::Create( 
weld::Container* pPa
 
 bool SvxStdParagraphTabPage::FillItemSet( SfxItemSet* rOutSet )
 {
-SfxItemState eState = SfxItemState::UNKNOWN;
 const SfxPoolItem* pOld = nullptr;
 SfxItemPool* pPool = rOutSet->GetPool();
 DBG_ASSERT( pPool, "Where is the pool?" );
@@ -260,12 +259,11 @@ bool SvxStdParagraphTabPage::FillItemSet( SfxItemSet* 
rOutSet )
 OSL_FAIL( "unknown LineDist entry" );
 break;
 }
-eState = GetItemSet().GetItemState( nWhich );
 pOld = GetOldItem( *rOutSet, SID_ATTR_PARA_LINESPACE );
 
 if ( m_bLineDistToggled ||
  !pOld || !( *static_cast(pOld) == 
aSpacing ) ||
- SfxItemState::DONTCARE == eState )
+ SfxItemState::DONTCARE == GetItemSet().GetItemState( nWhich ) )
 {
 rOutSet->Put( aSpacing );
 bModified = true;
@@ -306,10 +304,9 @@ bool SvxStdParagraphTabPage::FillItemSet( SfxItemSet* 
rOutSet )
 
aMargin.SetLower(static_cast(m_xBottomDist->GetCoreValue(eUnit)));
 }
 aMargin.SetContextValue(m_xContextualCB->get_active());
-eState = GetItemSet().GetItemState( nWhich );
 
 if ( !pOld || *static_cast(pOld) != aMargin ||
- SfxItemState::DONTCARE == eState )
+ SfxItemState::DONTCARE == GetItemSet().GetItemState( nWhich ) )
 {
 rOutSet->Put( aMargin );
 bModified = true;
@@ -361,10 +358,9 @@ bool SvxStdParagraphTabPage::FillItemSet( SfxItemSet* 
rOutSet )
 aMargin.SetAutoFirst(m_xAutoCB->get_active());
 if ( aMargin.GetTextFirstLineOffset() < 0 )
 bNullTab = true;
-eState = GetItemSet().GetItemState( nWhich );
 
 if ( !pOld || *static_cast(pOld) != aMargin ||
- SfxItemState::DONTCARE == eState )
+ SfxItemState::DONTCARE == GetItemSet().GetItemState( nWhich ) )
 {
 rOutSet->Put( aMargin );
 bModified = true;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: svx/source

2021-06-10 Thread Armin Le Grand (Allotropia) (via logerrit)
 svx/source/toolbars/extrusionbar.cxx |  106 +++
 1 file changed, 23 insertions(+), 83 deletions(-)

New commits:
commit e11c3740845959ab25f9b644681c97a7ded24d1c
Author: Armin Le Grand (Allotropia) 
AuthorDate: Wed Jun 9 20:55:52 2021 +0200
Commit: Armin Le Grand 
CommitDate: Thu Jun 10 11:11:12 2021 +0200

tdf#130428 remove unnecessary usage of SfxItemState::UNKNOWN

No need to check for SfxItemState::UNKNOWN, all states depend on
selected SdrObejcts/E3DObjects anyways

Change-Id: I13be6494229c18f514da3e0229d0896b237508c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116939
Tested-by: Jenkins
Reviewed-by: Armin Le Grand 

diff --git a/svx/source/toolbars/extrusionbar.cxx 
b/svx/source/toolbars/extrusionbar.cxx
index 6fe0da43449d..51fecface297 100644
--- a/svx/source/toolbars/extrusionbar.cxx
+++ b/svx/source/toolbars/extrusionbar.cxx
@@ -1227,93 +1227,33 @@ bool checkForSelectedCustomShapes( SdrView const * 
pSdrView, bool bOnlyExtruded
 
 void ExtrusionBar::getState( SdrView const * pSdrView, SfxItemSet& rSet )
 {
-if (rSet.GetItemState(SID_EXTRUSION_DIRECTION) != SfxItemState::UNKNOWN)
-{
-getExtrusionDirectionState( pSdrView, rSet );
-}
-if (rSet.GetItemState(SID_EXTRUSION_PROJECTION) != SfxItemState::UNKNOWN)
-{
-getExtrusionProjectionState( pSdrView, rSet );
-}
-const bool bOnlyExtrudedCustomShapes =
-checkForSelectedCustomShapes( pSdrView, true );
-if (rSet.GetItemState(SID_EXTRUSION_TILT_DOWN) != SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_TILT_DOWN );
-}
-if (rSet.GetItemState(SID_EXTRUSION_TILT_DOWN) != SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_TILT_DOWN );
-}
-if (rSet.GetItemState(SID_EXTRUSION_TILT_UP) != SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_TILT_UP );
-}
-if (rSet.GetItemState(SID_EXTRUSION_TILT_LEFT) != SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_TILT_LEFT );
-}
-if (rSet.GetItemState(SID_EXTRUSION_TILT_RIGHT) != SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_TILT_RIGHT );
-}
-if (rSet.GetItemState(SID_EXTRUSION_3D_COLOR) != SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_3D_COLOR );
-}
-if (rSet.GetItemState(SID_EXTRUSION_DEPTH_FLOATER) != 
SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_DEPTH_FLOATER );
-}
-if (rSet.GetItemState(SID_EXTRUSION_DIRECTION_FLOATER) != 
SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_DIRECTION_FLOATER );
-}
-if (rSet.GetItemState(SID_EXTRUSION_LIGHTING_FLOATER) != 
SfxItemState::UNKNOWN)
-{
-if (! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_LIGHTING_FLOATER );
-}
-if (rSet.GetItemState(SID_EXTRUSION_SURFACE_FLOATER) != 
SfxItemState::UNKNOWN)
-{
-if(! bOnlyExtrudedCustomShapes)
-rSet.DisableItem( SID_EXTRUSION_SURFACE_FLOATER );
-}
-if (rSet.GetItemState(SID_EXTRUSION_TOGGLE) != SfxItemState::UNKNOWN)
-{
-if( !checkForSelectedCustomShapes( pSdrView, false ) )
-rSet.DisableItem( SID_EXTRUSION_TOGGLE );
-}
-if (rSet.GetItemState(SID_EXTRUSION_DEPTH) != SfxItemState::UNKNOWN)
-{
-getExtrusionDepthState( pSdrView, rSet );
-}
-if (rSet.GetItemState(SID_EXTRUSION_SURFACE) != SfxItemState::UNKNOWN)
-{
-getExtrusionSurfaceState( pSdrView, rSet );
-}
-if (rSet.GetItemState(SID_EXTRUSION_LIGHTING_INTENSITY) != 
SfxItemState::UNKNOWN)
-{
-getExtrusionLightingIntensityState( pSdrView, rSet );
-}
+getExtrusionDirectionState( pSdrView, rSet );
+getExtrusionProjectionState( pSdrView, rSet );
 
-if (rSet.GetItemState(SID_EXTRUSION_LIGHTING_DIRECTION) != 
SfxItemState::UNKNOWN)
-{
-getExtrusionLightingDirectionState( pSdrView, rSet );
-}
+const bool bOnlyExtrudedCustomShapes(checkForSelectedCustomShapes( 
pSdrView, true ));
 
-if (rSet.GetItemState(SID_EXTRUSION_3D_COLOR) != SfxItemState::UNKNOWN)
+if (! bOnlyExtrudedCustomShapes)
 {
-getExtrusionColorState( pSdrView, rSet );
+rSet.DisableItem( SID_EXTRUSION_TILT_DOWN );
+rSet.DisableItem( SID_EXTRUSION_TILT_DOWN );
+rSet.DisableItem( SID_EXTRUSION_TILT_UP );
+rSet.DisableItem( SID_EXTRUSION_TILT_LEFT );
+rSet.DisableItem( SID_EXTRUSION_TILT_RIGHT );
+rSet.DisableItem( SID_EXTRUSION_3D_COLOR );
+   

[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - 2 commits - desktop/source sfx2/source vcl/source

2021-06-10 Thread Szymon Kłos (via logerrit)
 desktop/source/lib/init.cxx  |  103 +++
 sfx2/source/sidebar/Deck.cxx |4 +
 vcl/source/window/window.cxx |4 +
 3 files changed, 14 insertions(+), 97 deletions(-)

New commits:
commit 2fe8db830056a7cddf58f487a8b4aed4c718e589
Author: Szymon Kłos 
AuthorDate: Wed Jun 9 17:44:27 2021 +0200
Commit: Szymon Kłos 
CommitDate: Thu Jun 10 11:05:23 2021 +0200

jsdialog: remove UITest based events execution

Change-Id: I393893389d82a54a8d689caba3f2acb10cff533a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116930
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Szymon Kłos 

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index f730ab0a4c09..a1006fa43015 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -950,29 +950,6 @@ void hideSidebar()
 SetLastExceptionMsg("No view shell or sidebar");
 }
 
-VclPtr getSidebarWindow()
-{
-VclPtr xRet;
-
-setupSidebar();
-SfxViewShell* pViewShell = SfxViewShell::Current();
-SfxViewFrame* pViewFrame = pViewShell? pViewShell->GetViewFrame(): nullptr;
-if (!pViewFrame)
-return xRet;
-
-// really a SidebarChildWindow
-SfxChildWindow *pChild = pViewFrame->GetChildWindow(SID_SIDEBAR);
-if (!pChild)
-return xRet;
-
-// really a SidebarDockingWindow
-vcl::Window *pWin = pChild->GetWindow();
-if (!pWin)
-return xRet;
-xRet = pWin;
-return xRet;
-}
-
 }  // end anonymous namespace
 
 // Could be anonymous in principle, but for the unit testing purposes, we
@@ -3778,92 +3755,28 @@ static void lcl_sendDialogEvent(unsigned long long int 
nWindowId, const char* pA
 SolarMutexGuard aGuard;
 
 StringMap aMap(jsdialog::jsonToStringMap(pArguments));
-VclPtr pWindow = vcl::Window::FindLOKWindow(nWindowId);
-
-if (!pWindow && nWindowId >= 10 /* why unsigned? */)
-pWindow = getSidebarWindow();
 
 if (aMap.find("id") == aMap.end())
 return;
 
-static constexpr OUStringLiteral sClickAction(u"CLICK");
-static constexpr OUStringLiteral sSelectAction(u"SELECT");
-static constexpr OUStringLiteral sClearAction(u"CLEAR");
-static constexpr OUStringLiteral sTypeAction(u"TYPE");
-static constexpr OUStringLiteral sUpAction(u"UP");
-static constexpr OUStringLiteral sDownAction(u"DOWN");
-static constexpr OUStringLiteral sValue(u"VALUE");
-
-bool bExecutedWeldedAction = false;
+sal_uInt64 nCurrentShellId = 
reinterpret_cast(SfxViewShell::Current());
 
 try
 {
 OString sControlId = OUStringToOString(aMap["id"], 
RTL_TEXTENCODING_ASCII_US);
 
-bExecutedWeldedAction = jsdialog::ExecuteAction(nWindowId, sControlId, 
aMap);
-if (!bExecutedWeldedAction)
-bExecutedWeldedAction = 
jsdialog::ExecuteAction(reinterpret_cast(SfxViewShell::Current()),
-  sControlId, aMap);
+// dialogs send own id but notebookbar and sidebar controls are 
remembered by SfxViewShell id
+bool bFoundWeldedControl = jsdialog::ExecuteAction(nWindowId, 
sControlId, aMap);
+if (!bFoundWeldedControl)
+bFoundWeldedControl = jsdialog::ExecuteAction(nCurrentShellId, 
sControlId, aMap);
 
-if (bExecutedWeldedAction)
+if (bFoundWeldedControl)
 return;
 
-if (!pWindow)
-{
-SetLastExceptionMsg("Document doesn't support dialog rendering, or 
window not found.");
-return;
-}
-
-WindowUIObject aUIObject(pWindow);
-std::unique_ptr 
pUIWindow(aUIObject.get_visible_child(aMap["id"]));
-if (pUIWindow) {
-OUString sAction((aMap.find("cmd") != aMap.end())? aMap["cmd"]: 
"");
-
-if (sAction == "selected")
-{
-aMap["POS"] = aMap["data"];
-aMap["TEXT"] = aMap["data"];
+// force resend - used in mobile-wizard
+jsdialog::SendFullUpdate(nCurrentShellId, "Panel");
 
-pUIWindow->execute(sSelectAction, aMap);
-}
-else if (sAction == "plus")
-{
-pUIWindow->execute(sUpAction, aMap);
-}
-else if (sAction == "minus")
-{
-pUIWindow->execute(sDownAction, aMap);
-}
-else if (sAction == "set")
-{
-aMap["TEXT"] = aMap["data"];
-
-pUIWindow->execute(sClearAction, aMap);
-pUIWindow->execute(sTypeAction, aMap);
-}
-else if (sAction == "value")
-{
-aMap["VALUE"] = aMap["data"];
-pUIWindow->execute(sValue, aMap);
-}
-else if (sAction == "click" && aMap["type"] == "drawingarea")
-{
-int separatorPos = aMap["data"].indexOf(';');
-if (separatorPos > 0)
-   

[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - framework/dtd i18npool/source officecfg/registry package/dtd xmerge/source xmloff/dtd xmlscript/dtd

2021-06-10 Thread Caolán McNamara (via logerrit)
 framework/dtd/accelerator.dtd  |1 -
 framework/dtd/event.dtd|1 -
 framework/dtd/groupuinames.dtd |1 -
 framework/dtd/image.dtd|1 -
 framework/dtd/menubar.dtd  |1 -
 framework/dtd/statusbar.dtd|1 -
 framework/dtd/toolbar.dtd  |1 -
 i18npool/source/localedata/data/locale.dtd |1 -
 officecfg/registry/component-schema.dtd|1 -
 officecfg/registry/component-update.dtd|1 -
 package/dtd/Manifest.dtd   |1 -
 xmerge/source/xmerge/converter.dtd |1 -
 xmloff/dtd/office.dtd  |1 -
 xmlscript/dtd/dialog.dtd   |1 -
 xmlscript/dtd/libraries.dtd|2 --
 xmlscript/dtd/library.dtd  |2 --
 xmlscript/dtd/module.dtd   |2 --
 17 files changed, 20 deletions(-)

New commits:
commit a9cbb242b308c9a15f1c4d610067c902fcc29195
Author: Caolán McNamara 
AuthorDate: Wed Jun 9 10:20:57 2021 +0100
Commit: Michael Stahl 
CommitDate: Thu Jun 10 10:54:26 2021 +0200

dtd files are not xml files and shouldn't have xml headers

so rpminspect is correct in complaining that they are not valid xml
on inspecting files claiming to be xml

Change-Id: I70379989326c2ea63e6a54b3658ebea4684fa5df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116892
Tested-by: Jenkins
Reviewed-by: Michael Stahl 

diff --git a/framework/dtd/accelerator.dtd b/framework/dtd/accelerator.dtd
index f4dcac65242d..912b652d3cf5 100644
--- a/framework/dtd/accelerator.dtd
+++ b/framework/dtd/accelerator.dtd
@@ -1,4 +1,3 @@
-
 

[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - dbaccess/uiconfig

2021-06-10 Thread Caolán McNamara (via logerrit)
 dbaccess/uiconfig/dbapp/toolbar/formobjectbar.xml |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 429aa829073a3140e7cd83d7318f77703baa3cbc
Author: Caolán McNamara 
AuthorDate: Wed Jun 9 09:35:28 2021 +0100
Commit: Michael Stahl 
CommitDate: Thu Jun 10 10:52:00 2021 +0200

xmllint: Namespace prefix menu on menuseparator is not defined

xmllint --noout dbaccess/uiconfig/dbapp/toolbar/formobjectbar.xml
dbaccess/uiconfig/dbapp/toolbar/formobjectbar.xml:24: namespace error : 
Namespace prefix menu on menuseparator is not defined
 

should be a toolbarseparator here

a problem since...

commit 4f810905fa74128871f2fe924a3d28a79f4e4261
Date:   Tue Mar 5 15:42:19 2019 +0100

sync dbaccess ui files with swriter ui file structure

Change-Id: I000efac56a0af10bca7c22fba6f88f469ae9b272
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116711
Tested-by: Jenkins
Reviewed-by: Michael Stahl 

diff --git a/dbaccess/uiconfig/dbapp/toolbar/formobjectbar.xml 
b/dbaccess/uiconfig/dbapp/toolbar/formobjectbar.xml
index b3c2c9c37eef..78e698df3883 100644
--- a/dbaccess/uiconfig/dbapp/toolbar/formobjectbar.xml
+++ b/dbaccess/uiconfig/dbapp/toolbar/formobjectbar.xml
@@ -21,7 +21,7 @@
  
  
  
- 
+ 
  
  
  
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: external/mdds

2021-06-10 Thread Stephan Bergmann (via logerrit)
 external/mdds/UnpackedTarball_mdds.mk |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 105ad5dc174d9e894b0c4f9e24d068090ca8c3aa
Author: Stephan Bergmann 
AuthorDate: Thu Jun 10 09:49:18 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Jun 10 10:29:25 2021 +0200

external/mdds: Mark patch as upstreamed

Change-Id: Id61fbaafb575a8c745e5b3cc5b2ff8ae4526d94c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116960
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/external/mdds/UnpackedTarball_mdds.mk 
b/external/mdds/UnpackedTarball_mdds.mk
index 225e5d8938d3..3c664336430b 100644
--- a/external/mdds/UnpackedTarball_mdds.mk
+++ b/external/mdds/UnpackedTarball_mdds.mk
@@ -13,6 +13,9 @@ $(eval $(call 
gb_UnpackedTarball_set_tarball,mdds,$(MDDS_TARBALL)))
 
 $(eval $(call gb_UnpackedTarball_set_patchlevel,mdds,0))
 
+# * external/mdds/Wunused-but-set-variable.patch upstream at
+#    
"-Werror,-Wunused-but-set-variable (Clang 13
+#   trunk)":
 $(eval $(call gb_UnpackedTarball_add_patches,mdds,\
 external/mdds/Wunused-but-set-variable.patch \
 ))
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - offapi/com

2021-06-10 Thread Mike Kaganski (via logerrit)
 offapi/com/sun/star/drawing/TextProperties.idl |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit faa94e959ff1bb92c26bf305e4c536786f043858
Author: Mike Kaganski 
AuthorDate: Tue Jun 8 16:57:41 2021 +0300
Commit: Mike Kaganski 
CommitDate: Thu Jun 10 10:27:57 2021 +0200

This API change is since 7-2.

Change-Id: I5ca672a9c67f9a7082ef72c63b388c953d77c22c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116843
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 
(cherry picked from commit 25bd0c7ddf0b45c8628f0c7b1b57d3eb428bf1e5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116710
Tested-by: Jenkins CollaboraOffice 

diff --git a/offapi/com/sun/star/drawing/TextProperties.idl 
b/offapi/com/sun/star/drawing/TextProperties.idl
index 40f8f89acd0a..eb045624aba0 100644
--- a/offapi/com/sun/star/drawing/TextProperties.idl
+++ b/offapi/com/sun/star/drawing/TextProperties.idl
@@ -254,7 +254,7 @@ published service TextProperties
 
 /** Column layout properties for the text.
 
-@since LibreOffice 7.3
+@since LibreOffice 7.2
  */
 [optional, property] ::com::sun::star::text::XTextColumns TextColumns;
 };
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - sw/source

2021-06-10 Thread Luboš Luňák (via logerrit)
 sw/source/core/view/viewsh.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ca2023620081416846bd6bf83a0c81a2cf65b0bd
Author: Luboš Luňák 
AuthorDate: Wed Jun 9 15:32:52 2021 +0200
Commit: Michael Meeks 
CommitDate: Thu Jun 10 10:19:55 2021 +0200

do not draw directly in SwViewShell in LOK mode

Online mode draws tiles as necessary, so there's no need to care
about flickering, and this drawing is in fact not needed at all
for Online.

Change-Id: I19d981ad6ab6890ada1f415dc251a3492fd054ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116920
Tested-by: Jenkins
Reviewed-by: Luboš Luňák 
(cherry picked from commit 2aa2d03ec4e775d9399420c21cd1f2e972984154)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116899
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 

diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 2f4aee28b52b..c00f585d6711 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -472,7 +472,7 @@ void SwViewShell::ImplUnlockPaint( bool bVirDev )
 CurrShell aCurr( this );
 if ( GetWin() && GetWin()->IsVisible() )
 {
-if ( (bInSizeNotify || bVirDev ) && VisArea().HasArea() )
+if ( (bInSizeNotify || bVirDev ) && VisArea().HasArea() && 
!comphelper::LibreOfficeKit::isActive())
 {
 //Refresh with virtual device to avoid flickering.
 VclPtrInstance pVout( *mpOut );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - include/oox oox/inc oox/source sd/qa

2021-06-10 Thread Mike Kaganski (via logerrit)
 dev/null   |binary
 include/oox/ppt/pptimport.hxx  |2 
 include/oox/ppt/pptshape.hxx   |3 
 oox/inc/drawingml/table/tableproperties.hxx|3 
 oox/inc/drawingml/textbodyproperties.hxx   |2 
 oox/source/drawingml/table/tableproperties.cxx |   61 --
 oox/source/drawingml/textbodypropertiescontext.cxx |   14 ++
 oox/source/export/drawingml.cxx|   19 +++
 oox/source/ppt/pptimport.cxx   |1 
 oox/source/ppt/pptshape.cxx|   33 -
 oox/source/ppt/slidepersist.cxx|   33 -
 oox/source/token/properties.txt|1 
 sd/qa/unit/data/pptx/3columns.pptx |binary
 sd/qa/unit/data/pptx/tdf140852.pptx|binary
 sd/qa/unit/export-tests-ooxml2.cxx |  120 +
 sd/qa/unit/import-tests.cxx|   96 
 16 files changed, 181 insertions(+), 207 deletions(-)

New commits:
commit 3e72e178487c30eb7aa9343ece31937a4500da24
Author: Mike Kaganski 
AuthorDate: Sat Jun 5 00:19:06 2021 +0300
Commit: Miklos Vajna 
CommitDate: Thu Jun 10 10:17:38 2021 +0200

editengine-columns: PPTX support (tdf#118458)

The unit tests that used to check the workaround using tables to
emulate columns (implemented in tdf#120028) are changed to test
import of the columns.

This reverts some commits related to the mentioned workaround,
namely aef569ed83a3ccc02639e5b2a1c7cc131ba262fc,
   c50ae6a282ed83762bf634fed5c91033eb305c88,
   7b64bd90637a6722438bf873b1ded74ab3424c46,
   33696b2820ce3c8b21b753d2c2bf92345ecb9276,
   99dff69b561a8fe2d9437e6aa67a9581af41.

Change-Id: I97693ad4a981780e822070938992f274920df5a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116738
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116881
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Miklos Vajna 

diff --git a/include/oox/ppt/pptimport.hxx b/include/oox/ppt/pptimport.hxx
index e96f04b70374..f04cb632e574 100644
--- a/include/oox/ppt/pptimport.hxx
+++ b/include/oox/ppt/pptimport.hxx
@@ -77,8 +77,6 @@ public:
 
 ::Color getSchemeColor( sal_Int32 nToken ) const;
 
-static std::vector< PPTShape* > maPPTShapes;
-
 #if OSL_DEBUG_LEVEL > 0
 static XmlFilterBase* mpDebugFilterBase;
 #endif
diff --git a/include/oox/ppt/pptshape.hxx b/include/oox/ppt/pptshape.hxx
index e67a77635111..f452e585abcf 100644
--- a/include/oox/ppt/pptshape.hxx
+++ b/include/oox/ppt/pptshape.hxx
@@ -66,8 +66,7 @@ public:
 const oox::drawingml::Theme* pTheme,
 const css::uno::Reference< css::drawing::XShapes >& rxShapes,
 basegfx::B2DHomMatrix& aTransformation,
-::oox::drawingml::ShapeIdMap* pShapeMap,
-bool bhasSameSubTypeIndex = false );
+::oox::drawingml::ShapeIdMap* pShapeMap );
 
 ShapeLocation getShapeLocation() const { return meShapeLocation; };
 void setReferenced( bool bReferenced ){ mbReferenced = bReferenced; };
diff --git a/oox/inc/drawingml/table/tableproperties.hxx 
b/oox/inc/drawingml/table/tableproperties.hxx
index ec8b3c4c5b60..34e361b18add 100644
--- a/oox/inc/drawingml/table/tableproperties.hxx
+++ b/oox/inc/drawingml/table/tableproperties.hxx
@@ -58,9 +58,6 @@ public:
 const css::uno::Reference < css::beans::XPropertySet > & xPropSet,
 const ::oox::drawingml::TextListStylePtr& pMasterTextListStyle );
 
-/// Distributes text body with multiple columns in table cells.
-void pullFromTextBody(oox::drawingml::TextBodyPtr pTextBody, sal_Int32 
nShapeWidth, bool bhasSameSubTypeIndex, bool bMaster);
-
 private:
 
 const TableStyle&   getUsedTableStyle(const 
::oox::core::XmlFilterBase& rFilterBase, std::unique_ptr& 
rTableStyleToDelete);
diff --git a/oox/inc/drawingml/textbodyproperties.hxx 
b/oox/inc/drawingml/textbodyproperties.hxx
index 8a51c2bb906e..41fbb832a5d8 100644
--- a/oox/inc/drawingml/textbodyproperties.hxx
+++ b/oox/inc/drawingml/textbodyproperties.hxx
@@ -42,8 +42,6 @@ struct TextBodyProperties
 std::optional< sal_Int32 >moTextOffRight;
 css::drawing::TextVerticalAdjustmeVA;
 OUStringmsPrst;
-/// Number of requested columns.
-sal_Int32 mnNumCol = 1;
 /// Normal autofit: font scale (default: 100%).
 sal_Int32 mnFontScale = 10;
 OUString msHorzOverflow;
diff --git a/oox/source/drawingml/table/tableproperties.cxx 
b/oox/source/drawingml/table/tableproperties.cxx
index 1c12c10eda47..69117123dca8 100644
--- a/oox/source/drawingml/table/tableproperties.cxx
+++ b/oox/source/drawingml/table/tableproperties.cxx
@@ -145,7 +145,7 @@ void TableProperties::pushToPropSet(

[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - chart2/qa editeng/source include/editeng sc/qa sd/qa svx/source test/source

2021-06-10 Thread Mike Kaganski (via logerrit)
 chart2/qa/extras/xshape/data/reference/tdf90839-1.xml |   74 +-
 chart2/qa/extras/xshape/data/reference/tdf90839-2.xml |   64 +-
 chart2/qa/extras/xshape/data/reference/tdf90839-3.xml |   64 +-
 chart2/qa/extras/xshape/data/reference/tdf90839-4.xml |   64 +-
 editeng/source/editeng/editeng.cxx|   26 
 editeng/source/editeng/impedit.cxx|  131 ++--
 editeng/source/editeng/impedit.hxx|   78 +-
 editeng/source/editeng/impedit2.cxx   |  573 +++---
 editeng/source/editeng/impedit3.cxx   |  223 ---
 editeng/source/editeng/impedit4.cxx   |4 
 editeng/source/outliner/outlin2.cxx   |5 
 include/editeng/editeng.hxx   |2 
 include/editeng/outliner.hxx  |2 
 sc/qa/uitest/chart/chartLegend.py |4 
 sc/qa/unit/filters-test.cxx   |2 
 sd/qa/uitest/impress_tests/tdf91762.py|8 
 sd/qa/unit/data/xml/n593612_0.xml |4 
 sd/qa/unit/data/xml/n758621_1.xml |4 
 sd/qa/unit/layout-tests.cxx   |  107 +++
 sd/qa/unit/tiledrendering/LOKitSearchTest.cxx |4 
 svx/source/svdraw/svdotext.cxx|2 
 svx/source/svdraw/svdotextdecomposition.cxx   |4 
 test/source/sheet/xsheetannotationshapesupplier.cxx   |2 
 23 files changed, 921 insertions(+), 530 deletions(-)

New commits:
commit e6ab0cd94e02b5a6be80a0052100175424311455
Author: Mike Kaganski 
AuthorDate: Thu May 6 14:14:56 2021 +0300
Commit: Miklos Vajna 
CommitDate: Thu Jun 10 10:13:17 2021 +0200

editengine-columns: Implement layout

This changes the way how different parts access positions of lines and
paragraphs. Now there is ImpEditEngine::IterateLineAreas, which performs
uniform iteration over all ParaPortions and lines in order, calling a
user-provided callback function for each portion and line; it passes
all information about current portion, line, area, and column to the
callback, and checks the return from the callback, to decide if it needs
to continue iteration (in case when callback indicated that if doesn't
need further data), and if it needs calling the callback for the rest of
current portion's lines.

This allows to have the code that calculates and iterates dimensions of
lines in one central place, without the need to have duplicating logic
in several places.

One important exception is ImpEditEngine::Paint, which iterates without
ImpEditEngine::IterateLineAreas, because it does many atomic paint
operations in different points of iteration process, and implementing
ImpEditEngine::IterateLineAreas to call callback in the required places
would require increased complexity, which is left for a future change.
To make that possible, ImpEditEngine::IterFlag should be extended to
indicate additional requirements.

Note that in fact, ImpEditEngine::Paint was taken as the model for
implementation of ImpEditEngine::IterateLineAreas, with its detailed
handling of all the vertical offsets like additional line spacing and
interparagraph spacings that depend on context.

The notable result of the centralization of the iteration code is slight
change of heights reported by ImpEditEngine::CalcTextHeight. Previously
it simply added all pre-calculated heights of portions, and not taking
into account all the spacing handling that ImpEditEngine::Paint did,
which was inconsistent (calculated height was different from painted
height). Now ImpEditEngine::CalcTextHeight should provide more accurate
results, which required small changes in the unit tests.

Change-Id: I33cbb978deb974b314d36fda8674186a03991107
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116034
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116876
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Miklos Vajna 

diff --git a/chart2/qa/extras/xshape/data/reference/tdf90839-1.xml 
b/chart2/qa/extras/xshape/data/reference/tdf90839-1.xml
index 2af62c344940..3586969602c1 100644
--- a/chart2/qa/extras/xshape/data/reference/tdf90839-1.xml
+++ b/chart2/qa/extras/xshape/data/reference/tdf90839-1.xml
@@ -175,15 +175,15 @@

   
  
- 
+ 
   
-   
+   
 
- 
+ 
   
-   
+   
 
- 
+ 
   
   
   
@@ -192,21 +192,21 @@
   
   
   
-   
-   
+   
+   

   
  
 
 
- 
- 
+ 
+ 

[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - include/svl include/svx offapi/com sd/qa sd/source svx/Library_svxcore.mk svx/source sw/inc sw/source xmloff/source

2021-06-10 Thread Mike Kaganski (via logerrit)
 include/svl/solar.hrc |2 
 include/svx/SvxXTextColumns.hxx   |   22 +
 include/svx/svdotext.hxx  |4 
 include/svx/unoshprp.hxx  |6 
 offapi/com/sun/star/drawing/TextProperties.idl|8 
 sd/qa/unit/data/odg/two_columns.odg   |binary
 sd/qa/unit/export-tests.cxx   |   69 
 sd/source/core/stlsheet.cxx   |   13 
 svx/Library_svxcore.mk|1 
 svx/source/svdraw/svdotext.cxx|   20 +
 svx/source/unodraw/SvxXTextColumns.cxx|  327 ++
 svx/source/unodraw/unomod.cxx |5 
 svx/source/unodraw/unopool.cxx|7 
 svx/source/unodraw/unoshape.cxx   |   39 ++
 sw/inc/unomap.hxx |   11 
 sw/inc/unosett.hxx|   65 
 sw/source/core/layout/atrfrm.cxx  |  116 ++-
 sw/source/core/unocore/unocoll.cxx|3 
 sw/source/core/unocore/unomap.cxx |   17 -
 sw/source/core/unocore/unomap1.cxx|6 
 sw/source/core/unocore/unosett.cxx|  291 ---
 xmloff/source/draw/XMLShapePropertySetContext.cxx |3 
 xmloff/source/draw/sdpropls.cxx   |6 
 xmloff/source/text/XMLTextColumnsExport.cxx   |2 
 xmloff/source/text/txtprhdl.cxx   |3 
 25 files changed, 639 insertions(+), 407 deletions(-)

New commits:
commit 90d9ef313d514eedb91e770039407c3286ea6d9a
Author: Mike Kaganski 
AuthorDate: Thu May 27 13:00:10 2021 +0300
Commit: Miklos Vajna 
CommitDate: Thu Jun 10 10:12:07 2021 +0200

editengine-columns: ODF support [API CHANGE]

This uses existing ODF markup, as used by Writer's text frame:
style::columns child element of style:graphic-properties, its
fo:column-count and fo:column-gap attributes. No ODF extension
is required.

Since currently only columns with same width and spacing are
implemented, without additional settings, style:column child
elements are exported, but ignored on import.

This adds new property to css::drawing::TextProperties service:
TextColumns (of type css::text::XTextColumns).

Change-Id: I7e63293e5814b281ceec8a9632e696322d3629e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116035
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116871
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Miklos Vajna 

diff --git a/include/svl/solar.hrc b/include/svl/solar.hrc
index 317d45a84bc1..521e24365f9f 100644
--- a/include/svl/solar.hrc
+++ b/include/svl/solar.hrc
@@ -23,7 +23,7 @@
 // defines --
 
 #define OWN_ATTR_VALUE_START3900
-#define OWN_ATTR_VALUE_END  4005
+#define OWN_ATTR_VALUE_END  4006
 
 #define RID_LIB_START   1
 #define RID_LIB_END 1
diff --git a/include/svx/SvxXTextColumns.hxx b/include/svx/SvxXTextColumns.hxx
new file mode 100644
index ..0dbc92ba9611
--- /dev/null
+++ b/include/svx/SvxXTextColumns.hxx
@@ -0,0 +1,22 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*- */
+/*
+ * 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
+
+#include 
+
+#include 
+#include 
+
+#include 
+
+SVXCORE_DLLPUBLIC css::uno::Reference
+SvxXTextColumns_createInstance() noexcept;
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx
index 637211f1d02f..26ed2d4c6e2c 100644
--- a/include/svx/svdotext.hxx
+++ b/include/svx/svdotext.hxx
@@ -436,8 +436,12 @@ public:
 SdrTextAniKind GetTextAniKind() const;
 SdrTextAniDirection GetTextAniDirection() const;
 
+bool HasTextColumnsNumber() const;
 sal_Int16 GetTextColumnsNumber() const;
+void SetTextColumnsNumber(sal_Int16 nColumns);
+bool HasTextColumnsSpacing() const;
 sal_Int32 GetTextColumnsSpacing() const;
+void SetTextColumnsSpacing(sal_Int32 nSpacing);
 
 // react on model/page change
 virtual void handlePageChange(SdrPage* pOldPage, SdrPage* pNewPage) 
override;
diff --git a/include/svx/unoshprp.hxx b/include/svx/unoshprp.hxx
index 20a49f1f4d62..98bea3cd1c09 100644
--- a/include/svx/unoshprp.hxx
+++ b/include/svx/unoshprp.hxx
@@ -60,6 +60,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -193,7 +194,9 @@
 #define OWN_A

[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - cui/Library_cui.mk cui/source cui/uiconfig cui/UIConfig_cui.mk editeng/source include/editeng include/svx sd/qa svx/source uitest/ui

2021-06-10 Thread Mike Kaganski (via logerrit)
 cui/Library_cui.mk  |1 
 cui/UIConfig_cui.mk |1 
 cui/source/factory/dlgfact.cxx  |5 
 cui/source/inc/TextColumnsPage.hxx  |   40 +++
 cui/source/tabpages/TextColumnsPage.cxx |   82 ++
 cui/source/tabpages/textanim.cxx|2 
 cui/uiconfig/ui/textcolumnstabpage.ui   |  111 
 cui/uiconfig/ui/textdialog.ui   |   48 
 editeng/source/editeng/editeng.cxx  |5 
 editeng/source/editeng/impedit.hxx  |5 
 editeng/source/editeng/impedit3.cxx |   14 ++
 editeng/source/outliner/outlin2.cxx |5 
 include/editeng/editeng.hxx |2 
 include/editeng/outliner.hxx|2 
 include/svx/dialogs.hrc |1 
 include/svx/strings.hrc |2 
 include/svx/svddef.hxx  |8 +
 include/svx/svdotext.hxx|3 
 sd/qa/uitest/impress_tests/textColumnsDialog.py |   53 +
 sd/qa/unit/misc-tests.cxx   |   49 
 svx/source/sdr/properties/attributeproperties.cxx   |3 
 svx/source/sdr/properties/captionproperties.cxx |1 
 svx/source/sdr/properties/circleproperties.cxx  |1 
 svx/source/sdr/properties/connectorproperties.cxx   |1 
 svx/source/sdr/properties/customshapeproperties.cxx |2 
 svx/source/sdr/properties/graphicproperties.cxx |2 
 svx/source/sdr/properties/measureproperties.cxx |1 
 svx/source/sdr/properties/textproperties.cxx|7 +
 svx/source/svdraw/svdattr.cxx   |9 +
 svx/source/svdraw/svdotext.cxx  |   10 +
 svx/source/svdraw/svdotxed.cxx  |1 
 svx/source/svdraw/svdoutl.cxx   |1 
 uitest/uitest/uihelper/guarded.py   |   20 +++
 33 files changed, 494 insertions(+), 4 deletions(-)

New commits:
commit 16064329c4c4385ca53b243354b04e0d794b1ca6
Author: Mike Kaganski 
AuthorDate: Sun May 23 15:40:08 2021 +0300
Commit: Miklos Vajna 
CommitDate: Thu Jun 10 10:10:45 2021 +0200

editengine-columns: Create document model and dialog page

Change-Id: I056aad9474ca18134d1f1686a53618cc9ab3d525
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116038
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116868
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Miklos Vajna 

diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk
index ff221a9cc55a..e702d6ae94ff 100644
--- a/cui/Library_cui.mk
+++ b/cui/Library_cui.mk
@@ -212,6 +212,7 @@ $(eval $(call gb_Library_add_exception_objects,cui,\
 cui/source/tabpages/tabstpge \
 cui/source/tabpages/textanim \
 cui/source/tabpages/textattr \
+cui/source/tabpages/TextColumnsPage \
 cui/source/tabpages/tparea \
 cui/source/tabpages/tpbitmap \
 cui/source/tabpages/tpcolor \
diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk
index 153d6fe98fda..58fd66525310 100644
--- a/cui/UIConfig_cui.mk
+++ b/cui/UIConfig_cui.mk
@@ -200,6 +200,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/swpossizepage \
cui/uiconfig/ui/textattrtabpage \
cui/uiconfig/ui/textanimtabpage \
+   cui/uiconfig/ui/textcolumnstabpage \
cui/uiconfig/ui/textdialog \
cui/uiconfig/ui/textflowpage \
cui/uiconfig/ui/thesaurus \
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index d371224ffa20..e731ae7fe3d9 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -90,6 +90,7 @@
 #include 
 #include 
 #include 
+#include 
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::frame;
@@ -1488,6 +1489,8 @@ CreateTabPage 
AbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId
 return SvxGrfCropPage::Create;
 case RID_SVXPAGE_MACROASSIGN :
 return SfxMacroTabPage::Create;
+case RID_SVXPAGE_TEXTCOLUMNS:
+return SvxTextColumnsPage::Create;
 default:
 break;
 }
@@ -1551,6 +1554,8 @@ GetTabPageRanges 
AbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nI
 return SvxPageDescPage::GetRanges;
 case RID_SVXPAGE_ASIAN_LAYOUT:
 return SvxAsianLayoutPage::GetRanges;
+case RID_SVXPAGE_TEXTCOLUMNS:
+return SvxTextColumnsPage::GetRanges;
 default:
 break;
 }
diff --git a/cui/source/inc/TextColumnsPage.hxx 
b/cui/source/inc/TextColumnsPage.hxx
new file mode 100644
index ..6153cd27a520
--- /dev/null
+++ b/cui/source/inc/TextColumnsPage.hxx
@@ -0,0 +1,40 @@
+/* -*- Mode: C++; tab-widt

[Libreoffice-commits] core.git: vcl/source

2021-06-10 Thread Stephan Bergmann (via logerrit)
 vcl/source/uitest/uiobject.cxx |3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 19885d9395a8481f93ca667c07a306368f2cab79
Author: Stephan Bergmann 
AuthorDate: Tue Jun 8 09:56:25 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Jun 10 10:07:28 2021 +0200

-Werror,-Wunused-but-set-variable (Clang 13 trunk)

26ee34d1332e164cf938fcf78902df7d0cc3fe8f "uitest: add logging for UI 
actions"
had added the original

> return "Action on element: " + mxWindow->get_id() + " with action : " 
+ aActionName;

That commit had stated

> The long term goal for this logging is that it generates content in a
> DSL for the UI testing. The generated file can then be interpreted by
> the UI testing and replay the interaction with the UI.
>
> For now the plan is to have a readable output of what happens in the UI
> layer that allows to quickly transform it to a UI test.

Later, 5578bc99542953b6318a117a4e4b99f12964d9d2 "uitest: Some new features 
in
ui_logger project", apparently as part of working on such a Python-from-DSL 
code
generator, commented out the original return statement.  The comment at
 "Lets assume this was
commented out in error" has instructions how to test that (the generated
test.log is in the UserInstallation rather than in instdir, though), and the
comment at  suggests returning just
aActionName instead of the dressed-up, human-readable "Action on element 
..."

However, when I tried out those instructions, the dsl_core.py generation 
failed
(with an arpeggio.NoMatch exception) both when just returning aActionName 
and
when returning the full dressed-up, human-readable "Action on element ..."  
But
it also generally failed if WindowUIObject::get_action returns an empty 
string
(i.e., the status quo), with e.g.

> AttributeError: 'CloseDialog' object has no attribute 'uno_command_name'

apparently due to some

> Close Dialog

lines in my generated test.log.

So it appears that dsl_core.py is unfinished work in progress, which does 
not
work properly regardless of what WindowUIObject::get_action returns.  Coming
back to the original commit that produced "readable output of what happens 
in
the UI layer", it is thus probably best to leave it at that output for now, 
and
reinstate the original full dressed-up, human-readable "Action on element 
..."
That addresses the -Werror,-Wunused-but-set-variable.  If anybody wants to 
fix
that dsl_core.py generation, that can happen in later commits.

Change-Id: Ie1123df53d9505fc5f039405f666977550f967d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116811
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index f04e8c54cc95..3c3d224024f4 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -582,8 +582,7 @@ OUString WindowUIObject::get_action(VclEventId nEvent) const
 default:
 aActionName = OUString::number(static_cast(nEvent));
 }
-return "";
-//return "Action on element: " + mxWindow->get_id() + " with action : " + 
aActionName;
+return "Action on element: " + mxWindow->get_id() + " with action : " + 
aActionName;
 }
 
 std::unique_ptr WindowUIObject::create(vcl::Window* pWindow)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - desktop/source include/vcl vcl/source

2021-06-10 Thread Luboš Luňák (via logerrit)
 desktop/source/lib/init.cxx |7 ++-
 include/vcl/lok.hxx |4 
 vcl/source/app/svapp.cxx|8 
 3 files changed, 18 insertions(+), 1 deletion(-)

New commits:
commit c8522043b239aa0e463e6793b7c9b019d79b2d9d
Author: Luboš Luňák 
AuthorDate: Wed Jun 9 17:11:15 2021 +0200
Commit: Michael Meeks 
CommitDate: Thu Jun 10 09:47:07 2021 +0200

scale VCL's scale cache according to the number of Online views

If a document is opened in several Online views, each of them using
a different zoom, then the scale cache is used for the scaling,
and each view is sent updated tiles, so if there are too many
views, the cache is not large enough.
(Collabora T28503)

Change-Id: I3fa719b0515064773fe4584fedbc8aff98e6e213
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116928
Tested-by: Luboš Luňák 
Reviewed-by: Luboš Luňák 
(cherry picked from commit 53dd6aa5f3817d42bf676980f980051c3b7cdb03)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116898
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 1466c04ffcf1..f730ab0a4c09 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5276,6 +5276,8 @@ static int 
doc_createViewWithOptions(LibreOfficeKitDocument* pThis,
 LibLODocument_Impl* pDocument = static_cast(pThis);
 const int nId = SfxLokHelper::createView(pDocument->mnDocumentId);
 
+
vcl::lok::numberOfViewsChanged(SfxLokHelper::getViewsCount(pDocument->mnDocumentId));
+
 #ifdef IOS
 (void) pThis;
 #else
@@ -5290,7 +5292,7 @@ static int doc_createView(LibreOfficeKitDocument* pThis)
 return doc_createViewWithOptions(pThis, nullptr); // No options.
 }
 
-static void doc_destroyView(SAL_UNUSED_PARAMETER LibreOfficeKitDocument* 
/*pThis*/, int nId)
+static void doc_destroyView(SAL_UNUSED_PARAMETER LibreOfficeKitDocument* 
pThis, int nId)
 {
 comphelper::ProfileZone aZone("doc_destroyView");
 
@@ -5300,6 +5302,9 @@ static void doc_destroyView(SAL_UNUSED_PARAMETER 
LibreOfficeKitDocument* /*pThis
 LOKClipboardFactory::releaseClipboardForView(nId);
 
 SfxLokHelper::destroyView(nId);
+
+LibLODocument_Impl* pDocument = static_cast(pThis);
+
vcl::lok::numberOfViewsChanged(SfxLokHelper::getViewsCount(pDocument->mnDocumentId));
 }
 
 static void doc_setView(SAL_UNUSED_PARAMETER LibreOfficeKitDocument* 
/*pThis*/, int nId)
diff --git a/include/vcl/lok.hxx b/include/vcl/lok.hxx
index 9f3f30ab7977..108f46def8aa 100644
--- a/include/vcl/lok.hxx
+++ b/include/vcl/lok.hxx
@@ -20,6 +20,10 @@ bool VCL_DLLPUBLIC isUnipoll();
 void VCL_DLLPUBLIC registerPollCallbacks(LibreOfficeKitPollCallback 
pPollCallback,
  LibreOfficeKitWakeCallback 
pWakeCallback, void* pData);
 void VCL_DLLPUBLIC unregisterPollCallbacks();
+
+// Called to tell VCL that the number of document views has changed, so that 
VCL
+// can adjust e.g. sizes of bitmap caches to scale well with larger number of 
users.
+void VCL_DLLPUBLIC numberOfViewsChanged(int count);
 }
 
 #endif // INCLUDE_VCL_LOK_HXX
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 2494bfcaf92e..10ca0e206325 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1720,6 +1720,14 @@ bool isUnipoll()
 return pSVData && pSVData->mpPollCallback != nullptr;
 }
 
+void numberOfViewsChanged(int count)
+{
+ImplSVData * pSVData = ImplGetSVData();
+auto& rCache = pSVData->maGDIData.maScaleCache;
+// Normally the cache size is set to 10, scale according to the number of 
users.
+rCache.setMaxSize(count * 10);
+}
+
 } // namespace lok, namespace vcl
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - include/o3tl o3tl/qa

2021-06-10 Thread Luboš Luňák (via logerrit)
 include/o3tl/lru_map.hxx |9 -
 o3tl/qa/test-lru_map.cxx |   14 ++
 2 files changed, 22 insertions(+), 1 deletion(-)

New commits:
commit cb10c29a3255620bf69480aa7b653962fb04786e
Author: Luboš Luňák 
AuthorDate: Wed Jun 9 17:10:42 2021 +0200
Commit: Michael Meeks 
CommitDate: Thu Jun 10 09:42:17 2021 +0200

allow altering the max size of o3tl::lru_cache

Change-Id: Id119b70275e1c88a8c57f89d915241427be9dbf5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116927
Tested-by: Jenkins
Reviewed-by: Luboš Luňák 
(cherry picked from commit 62b58e88d897f51a7c4e12b41d14121ab8d3396f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116897
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 

diff --git a/include/o3tl/lru_map.hxx b/include/o3tl/lru_map.hxx
index 96fb3161782d..a38d35bdb1c8 100644
--- a/include/o3tl/lru_map.hxx
+++ b/include/o3tl/lru_map.hxx
@@ -49,7 +49,7 @@ private:
 
 list_t mLruList;
 map_t mLruMap;
-const size_t mMaxSize;
+size_t mMaxSize;
 
 void checkLRU()
 {
@@ -80,6 +80,13 @@ public:
 aLruListTemp.swap(mLruList);
 }
 
+void setMaxSize(size_t nMaxSize)
+{
+mMaxSize = nMaxSize ? nMaxSize : std::min(mLruMap.max_size(), 
mLruList.max_size());
+while (mLruMap.size() > mMaxSize)
+checkLRU();
+}
+
 void insert(key_value_pair_t& rPair)
 {
 map_iterator_t i = mLruMap.find(rPair.first);
diff --git a/o3tl/qa/test-lru_map.cxx b/o3tl/qa/test-lru_map.cxx
index ba9ee71835ce..d13ab8273a00 100644
--- a/o3tl/qa/test-lru_map.cxx
+++ b/o3tl/qa/test-lru_map.cxx
@@ -29,6 +29,7 @@ public:
 void testCustomHash();
 void testRemoveIf();
 void testNoAutoCleanup();
+void testChangeMaxSize();
 
 CPPUNIT_TEST_SUITE(lru_map_test);
 CPPUNIT_TEST(testBaseUsage);
@@ -38,6 +39,7 @@ public:
 CPPUNIT_TEST(testCustomHash);
 CPPUNIT_TEST(testRemoveIf);
 CPPUNIT_TEST(testNoAutoCleanup);
+CPPUNIT_TEST(testChangeMaxSize);
 CPPUNIT_TEST_SUITE_END();
 };
 
@@ -310,6 +312,18 @@ void lru_map_test::testNoAutoCleanup()
 }
 }
 
+void lru_map_test::testChangeMaxSize()
+{
+o3tl::lru_map lru(3);
+CPPUNIT_ASSERT_EQUAL(size_t(0), lru.size());
+lru.insert({ 0, 0 });
+lru.insert({ 1, 1 });
+lru.insert({ 2, 2 });
+CPPUNIT_ASSERT_EQUAL(size_t(3), lru.size());
+lru.setMaxSize(1);
+CPPUNIT_ASSERT_EQUAL(size_t(1), lru.size());
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(lru_map_test);
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Changes to 'distro/nisz/libreoffice-7-1'

2021-06-10 Thread Christian Lohmaier (via logerrit)
New branch 'distro/nisz/libreoffice-7-1' available with the following commits:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] translations.git: Changes to 'distro/nisz/libreoffice-7-1'

2021-06-10 Thread Christian Lohmaier (via logerrit)
New branch 'distro/nisz/libreoffice-7-1' available with the following commits:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: Changes to 'distro/nisz/libreoffice-7-1'

2021-06-10 Thread Christian Lohmaier (via logerrit)
New branch 'distro/nisz/libreoffice-7-1' available with the following commits:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] dictionaries.git: Changes to 'distro/nisz/libreoffice-7-1'

2021-06-10 Thread Christian Lohmaier (via logerrit)
New branch 'distro/nisz/libreoffice-7-1' available with the following commits:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Problems with unittest testEffectExtentInline

2021-06-10 Thread Miklos Vajna
Hi Regina,

On Wed, Jun 09, 2021 at 03:33:59PM +0200, Regina Henschel 
 wrote:
> I'm currently working on https://gerrit.libreoffice.org/c/core/+/115668
> WIP improve wrap margins in docx filters
> 
> My current state is, that distances needed for shadow and glow, for rotation
> and for fat stroke/border are read from docx, and they are written to docx
> from docx and from odt. That works for "normal" cases besides +-1Twip
> rounding errors somewhere and border thickness for frames, which is not yet
> implemented.
> 
> But I have trouble with unittest testEffectExtentInline [1]. The document in
> testEffectExtentInline would need a negative bottom margin (UI wrap distance
> from text). But that is not possible in LO, bug tdf#141880. The test does
> not fail in current LO, because it does not determine the actual values of
> the image, but simple writes out the values from InteropGrabBag. If the user
> changes the rotate angle to 90deg (and put it back to vertical 'top to base
> line') or sets the bottom margin to 1cm for example, the exported docx file
> has unsuitable effectExtent. That results currently in a wrong line height
> in Word.

Would it help to empty the grab-bag when the user modifies the rotation
(or modifies the object in any way)?

The idea with grab-bag was to use that during export, and the UI to
empty them grab-bag when the user modifies the object. In practice, I
think only impress shapes drop the smartart grab-gag on text edit,
nothing else implements such emptying.

Regards,

Miklos
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - filter/source include/vcl

2021-06-10 Thread Noel Grandin (via logerrit)
 filter/source/graphicfilter/ipsd/ipsd.cxx |9 +
 include/vcl/RawBitmap.hxx |6 ++
 2 files changed, 11 insertions(+), 4 deletions(-)

New commits:
commit 289a9f906bdef65f12ee0acb7069d6f39ac825f4
Author: Noel Grandin 
AuthorDate: Wed Jun 9 15:24:19 2021 +0200
Commit: Noel Grandin 
CommitDate: Thu Jun 10 09:11:02 2021 +0200

tdf#142629 import psd image with transparent background

regression from
commit 2168d709805a847ac012ff87b06e081ca139d064
Date:   Mon Feb 12 15:29:10 2018 +0200
use RawBitmap in PSDReader

Change-Id: I8d547d3cca7fb8fc90a8d9382e054b4d4b2f3519
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116916
Tested-by: Jenkins
Reviewed-by: Noel Grandin 
Signed-off-by: Xisco Fauli 
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116941

diff --git a/filter/source/graphicfilter/ipsd/ipsd.cxx 
b/filter/source/graphicfilter/ipsd/ipsd.cxx
index 3c219870f1d2..90b7746029b8 100644
--- a/filter/source/graphicfilter/ipsd/ipsd.cxx
+++ b/filter/source/graphicfilter/ipsd/ipsd.cxx
@@ -119,7 +119,7 @@ bool PSDReader::ReadPSD(Graphic & rGraphic )
 }
 
 Size aBitmapSize( mpFileHeader->nColumns, mpFileHeader->nRows );
-mpBitmap.reset( new vcl::bitmap::RawBitmap( aBitmapSize, 24 ) );
+mpBitmap.reset( new vcl::bitmap::RawBitmap( aBitmapSize, mbTransparent ? 
32 : 24 ) );
 if ( mpPalette && mbStatus )
 {
 mvPalette.resize( 256 );
@@ -129,8 +129,9 @@ bool PSDReader::ReadPSD(Graphic & rGraphic )
 }
 }
 
-if ((mnDestBitDepth == 1 || mnDestBitDepth == 8 || mbTransparent) && 
mvPalette.empty())
+if ((mnDestBitDepth == 1 || mnDestBitDepth == 8) && mvPalette.empty())
 {
+SAL_WARN("vcl", "no palette, but bit depth is " << mnDestBitDepth);
 mbStatus = false;
 return mbStatus;
 }
@@ -721,7 +722,7 @@ bool PSDReader::ImplReadBody()
 m_rPSD.ReadUChar( nDummy );
 for ( sal_uInt16 i = 0; i < ( -nRunCount + 1 ); i++ )
 {
-mpBitmap->SetPixel(nY, nX, SanitizePaletteIndex(mvPalette, 
nDat));
+mpBitmap->SetAlpha(nY, nX, nDat ? 0 : 255);
 if ( ++nX == mpFileHeader->nColumns )
 {
 nX = 0;
@@ -742,7 +743,7 @@ bool PSDReader::ImplReadBody()
 nDat = 1;
 if ( mpFileHeader->nDepth == 16 )   // 16 bit depth is to 
be skipped
 m_rPSD.ReadUChar( nDummy );
-mpBitmap->SetPixel(nY, nX, SanitizePaletteIndex(mvPalette, 
nDat));
+mpBitmap->SetAlpha(nY, nX, nDat ? 0 : 255);
 if ( ++nX == mpFileHeader->nColumns )
 {
 nX = 0;
diff --git a/include/vcl/RawBitmap.hxx b/include/vcl/RawBitmap.hxx
index 7fac44a166af..710559d11d48 100644
--- a/include/vcl/RawBitmap.hxx
+++ b/include/vcl/RawBitmap.hxx
@@ -49,6 +49,12 @@ public:
 if (mnBitCount == 32)
 mpData[p] = nColor.GetTransparency();
 }
+void SetAlpha(tools::Long nY, tools::Long nX, sal_uInt8 nAlpha)
+{
+assert(mnBitCount == 32);
+tools::Long p = (nY * maSize.getWidth() + nX) * (mnBitCount / 8) + 3;
+mpData[p] = nAlpha;
+}
 Color GetPixel(tools::Long nY, tools::Long nX) const
 {
 tools::Long p = (nY * maSize.getWidth() + nX) * mnBitCount / 8;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sw/qa sw/source

2021-06-10 Thread László Németh (via logerrit)
 sw/qa/extras/uiwriter/data/ole2.png |binary
 sw/qa/extras/uiwriter/uiwriter2.cxx |   29 +
 sw/source/core/frmedt/fefly1.cxx|   12 
 sw/source/uibase/wrtsh/wrtsh1.cxx   |5 +
 4 files changed, 46 insertions(+)

New commits:
commit 68b6004fe9df184bcbaf46dd53abfec228219df6
Author: László Németh 
AuthorDate: Wed Jun 9 15:56:09 2021 +0200
Commit: László Németh 
CommitDate: Thu Jun 10 09:07:03 2021 +0200

tdf#141994 track changes: record insertion of images

by adding a SwRangeRedline to the anchoring point of
the image inserted with Insert->Image... or
"Insert Image" of the Standard toolbar.

Note: Only images anchored as characters can be
recorded this way, so change the default to-character
anchoring at enabled change tracking. (In other office
suites, as-character insertion is the default anchoring
for inserted images with disabled change tracking, too.)

Follow-up to commit d6322bcedc197a654abc7d64bfea8cf570f123bf
"tdf#59463 track changes: record deletion of images".

Change-Id: I593abbdb6f9f2b1a5265f112103479c1833166af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116924
Tested-by: László Németh 
Reviewed-by: László Németh 

diff --git a/sw/qa/extras/uiwriter/data/ole2.png 
b/sw/qa/extras/uiwriter/data/ole2.png
new file mode 100644
index ..fdad35484e7c
Binary files /dev/null and b/sw/qa/extras/uiwriter/data/ole2.png differ
diff --git a/sw/qa/extras/uiwriter/uiwriter2.cxx 
b/sw/qa/extras/uiwriter/uiwriter2.cxx
index 736704b45d04..5e6cfb1fc0f4 100644
--- a/sw/qa/extras/uiwriter/uiwriter2.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter2.cxx
@@ -26,6 +26,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -3533,6 +3534,34 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, 
testTrackImageDeletion)
 CPPUNIT_ASSERT_EQUAL(static_cast(1), 
rTable.size());
 }
 
+CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testTrackImageInsertion)
+{
+loadURL("private:factory/swriter", nullptr);
+SwXTextDocument* pTextDoc = 
dynamic_cast(mxComponent.get());
+SwDoc* pDoc = pTextDoc->GetDocShell()->GetDoc();
+
+// turn on red-lining and show changes
+IDocumentRedlineAccess& rIDRA(pDoc->getIDocumentRedlineAccess());
+
+rIDRA.SetRedlineFlags(RedlineFlags::On | RedlineFlags::ShowDelete | 
RedlineFlags::ShowInsert);
+CPPUNIT_ASSERT_MESSAGE("redlining should be on",
+   pDoc->getIDocumentRedlineAccess().IsRedlineOn());
+CPPUNIT_ASSERT_MESSAGE(
+"redlines should be visible",
+
IDocumentRedlineAccess::IsShowChanges(pDoc->getIDocumentRedlineAccess().GetRedlineFlags()));
+
+// Insert an image with change tracking
+OUString aImageURL = m_directories.getURLFromSrc(DATA_DIRECTORY) + 
"ole2.png";
+uno::Sequence aArgs = {
+comphelper::makePropertyValue("FileName", aImageURL),
+};
+dispatchCommand(mxComponent, ".uno:InsertGraphic", aArgs);
+
+const SwRedlineTable& rTable = rIDRA.GetRedlineTable();
+// this was 0 (missing recording of insertion of images)
+CPPUNIT_ASSERT_EQUAL(static_cast(1), 
rTable.size());
+}
+
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testTdf120338)
 {
 load(DATA_DIRECTORY, "tdf120338.docx");
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index 6ecb3c2c2a20..18e46f9bce47 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -48,6 +48,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 #include 
 #include 
 #include 
@@ -890,6 +892,16 @@ void SwFEShell::Insert( const OUString& rGrfName, const 
OUString& rFltName,
 
 if( pFrame )
 {
+// add a redline to the anchor point at tracked insertion of picture
+if ( IsRedlineOn() )
+{
+SwPosition aPos(*pFormat->GetAnchor().GetContentAnchor());
+SwPaM aPaM(aPos.nNode.GetNode(), aPos.nContent.GetIndex(),
+aPos.nNode.GetNode(), aPos.nContent.GetIndex() + 1);
+GetDoc()->getIDocumentRedlineAccess().AppendRedline(
+new SwRangeRedline( RedlineType::Insert, aPaM ), true);
+}
+
 // fdo#36681: Invalidate the content and layout to refresh
 // the picture anchoring properly
 SwPageFrame* pPageFrame = pFrame->FindPageFrameOfAnchor();
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx 
b/sw/source/uibase/wrtsh/wrtsh1.cxx
index b26af831754d..d32a6154146d 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -336,6 +336,11 @@ void SwWrtShell::Insert( const OUString &rPath, const 
OUString &rFilter,
 pFrameMgr->SetHeightSizeType(SwFrameSize::Fixed);
 }
 
+// during change tracking, insert the image anchored as character
+// (to create an SwRangeRedline on its anchor point)
+if ( IsRedlineOn() && nAnchorType != RndStdIds::FLY_AS_CHAR )
+pFrameMgr->SetAnchor

[Libreoffice-commits] core.git: xmlsecurity/CppunitTest_xmlsecurity_signing.mk

2021-06-10 Thread Miklos Vajna (via logerrit)
 xmlsecurity/CppunitTest_xmlsecurity_signing.mk |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 2693ef720d9aaabe4fca0183f0c91ab34cf47fb4
Author: Miklos Vajna 
AuthorDate: Wed Jun 9 21:05:20 2021 +0200
Commit: Miklos Vajna 
CommitDate: Thu Jun 10 09:01:53 2021 +0200

CppunitTest_xmlsecurity_signing: remove not needed direct pdfium dependency

This test only calls pdfium indirectly via vcl.

Change-Id: I37ba3f9803d5dd0ead9e3614f3c899d6029107d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116940
Tested-by: Jenkins
Reviewed-by: Miklos Vajna 

diff --git a/xmlsecurity/CppunitTest_xmlsecurity_signing.mk 
b/xmlsecurity/CppunitTest_xmlsecurity_signing.mk
index a3cdc25e6d7d..52cd621fe084 100644
--- a/xmlsecurity/CppunitTest_xmlsecurity_signing.mk
+++ b/xmlsecurity/CppunitTest_xmlsecurity_signing.mk
@@ -35,7 +35,6 @@ $(eval $(call 
gb_CppunitTest_use_libraries,xmlsecurity_signing, \
 $(eval $(call gb_CppunitTest_use_externals,xmlsecurity_signing,\
 boost_headers \
 libxml2 \
-$(if $(filter PDFIUM,$(BUILD_TYPE)),pdfium) \
 ))
 
 $(eval $(call gb_CppunitTest_set_include,xmlsecurity_signing,\
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits