Re: Unit Test Failure: CppunitTest_cppcanvas_emfplus

2018-02-16 Thread Luke Benes
This was fixed by 
https://cgit.freedesktop.org/libreoffice/core/commit/?id=4beed2ba7335fdb211aca7f70a144ffecf90a781


Thanks Noel!




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


Re: Unit Test Failure: CppunitTest_cppcanvas_emfplus

2018-02-16 Thread Noel Grandin
should be fixed now with

https://cgit.freedesktop.org/libreoffice/core/commit/?id=4beed2ba7335fdb211aca7f70a144ffecf90a781
​
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: UITest_writerperfect_epubexport hang (only sometimes)

2018-02-16 Thread Noel Grandin
at the very least we should make that wait command use a timeout, and fail
the test, rather than hanging indefinitely​
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: editeng/qa editeng/source include/editeng include/svx sd/qa sd/source svx/source

2018-02-16 Thread Tamás Zolnai
 editeng/qa/unit/core-test.cxx|  111 +++
 editeng/source/editeng/editeng.cxx   |   14 +++-
 editeng/source/editeng/impedit.hxx   |9 ++
 editeng/source/editeng/impedit2.cxx  |   14 ++--
 editeng/source/editeng/impedit3.cxx  |   12 +++
 editeng/source/outliner/outliner.cxx |   10 +++
 include/editeng/editeng.hxx  |6 +
 include/editeng/outliner.hxx |4 +
 include/svx/svdmodel.hxx |4 +
 sd/qa/unit/data/odp/tdf115639.odp|binary
 sd/qa/unit/data/ppt/tdf115639.ppt|binary
 sd/qa/unit/data/pptx/tdf115639.pptx  |binary
 sd/qa/unit/import-tests.cxx  |   33 ++
 sd/source/ui/docshell/docshel4.cxx   |   16 +
 sd/source/ui/view/Outliner.cxx   |1 
 svx/source/svdraw/svdetc.cxx |1 
 svx/source/svdraw/svdmodel.cxx   |   22 ++
 17 files changed, 245 insertions(+), 12 deletions(-)

New commits:
commit 1da3a3cb74a415a76fa547ef0c8f61780e260e7f
Author: Tamás Zolnai 
Date:   Sat Feb 17 06:35:29 2018 +0100

tdf#115639: Align right/center with trailing spaces the same as MS 
PowerPoint

* Add HoriAlignIgnoreTrailingWhitespace compatibility option.
** For MSO file formats it is set to true
** For ODP format it's set to false by default
** The flag is saved to ODP format as user data if the document
comes from an MSO format.

Change-Id: Ie22233d33a25e605de46120bfc2195038dffd63c
Reviewed-on: https://gerrit.libreoffice.org/49889
Tested-by: Jenkins 
Reviewed-by: Tamás Zolnai 

diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx
index 2e122cc59c1d..195fae1bcb4a 100644
--- a/editeng/qa/unit/core-test.cxx
+++ b/editeng/qa/unit/core-test.cxx
@@ -33,6 +33,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 
@@ -97,6 +98,9 @@ public:
 
 void testTransliterate();
 
+/// Test HoriAlignIgnoreTrailingWhitespace compatibility flag
+void testHoriAlignIgnoreTrailingWhitespace();
+
 DECL_STATIC_LINK( Test, CalcFieldValueHdl, EditFieldInfo*, void );
 
 CPPUNIT_TEST_SUITE(Test);
@@ -117,6 +121,7 @@ public:
 CPPUNIT_TEST(testSectionAttributes);
 CPPUNIT_TEST(testLargeParaCopyPaste);
 CPPUNIT_TEST(testTransliterate);
+CPPUNIT_TEST(testHoriAlignIgnoreTrailingWhitespace);
 CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -1848,6 +1853,112 @@ void Test::testTransliterate()
 CPPUNIT_ASSERT_EQUAL(aExpected, aEditEngine.GetText());
 }
 
+void Test::testHoriAlignIgnoreTrailingWhitespace()
+{
+// Create EditEngine's instance
+EditEngine aEditEngine(mpItemPool);
+
+// Get EditDoc for current EditEngine's instance
+EditDoc &rDoc = aEditEngine.GetEditDoc();
+
+// Initially no text should be there
+CPPUNIT_ASSERT_EQUAL(sal_uLong(0), rDoc.GetTextLen());
+CPPUNIT_ASSERT_EQUAL(OUString(), rDoc.GetParaAsString(sal_Int32(0)));
+
+// Set initial text
+OUString aText = "Some text";
+sal_Int32 aTextLen = aText.getLength();
+aEditEngine.SetText(aText);
+
+// Assert changes - text insertion
+CPPUNIT_ASSERT_EQUAL(static_cast(aTextLen), rDoc.GetTextLen());
+CPPUNIT_ASSERT_EQUAL(aText, 
rDoc.GetParaAsString(static_cast(0)));
+
+// First test case: center alignment with compatibility option enabled
+{
+aEditEngine.SetHoriAlignIgnoreTrailingWhitespace(true);
+std::unique_ptr pSet(new 
SfxItemSet(aEditEngine.GetEmptyItemSet()));
+pSet->Put(SvxAdjustItem( SvxAdjust::Center, EE_PARA_JUST ));
+CPPUNIT_ASSERT_EQUAL(static_cast(1), pSet->Count());
+
+// Select all paragraphs and apply changes
+ESelection aSelection(0, 0, 0, aTextLen);
+aEditEngine.QuickSetAttribs(*pSet, aSelection);
+
+// Use a one line paragraph
+aEditEngine.SetPaperSize(Size(1, 6000));
+CPPUNIT_ASSERT_EQUAL(static_cast(1), 
aEditEngine.GetLineCount(0));
+
+// Check horizontal position
+ParaPortion* pParaPortion = aEditEngine.GetParaPortions()[0];
+EditLine* pLine = &pParaPortion->GetLines()[0];
+CPPUNIT_ASSERT_DOUBLES_EQUAL(static_cast(4527), 
pLine->GetStartPosX(), 10);
+}
+
+// Second test case: center alignment with compatibility option disabled
+{
+aEditEngine.SetHoriAlignIgnoreTrailingWhitespace(false);
+std::unique_ptr pSet(new 
SfxItemSet(aEditEngine.GetEmptyItemSet()));
+pSet->Put(SvxAdjustItem( SvxAdjust::Center, EE_PARA_JUST ));
+CPPUNIT_ASSERT_EQUAL(static_cast(1), pSet->Count());
+
+// Select all paragraphs and apply changes
+ESelection aSelection(0, 0, 0, aTextLen);
+aEditEngine.QuickSetAttribs(*pSet, aSelection);
+
+// Use a one line paragraph
+aEditEngine.SetPaperSize(Size(1, 6000));
+CPPUNIT_ASSERT_EQUAL(static_cast(1), 
aEditEngine.GetLineCount(0));
+
+// Check horizontal position
+ParaPortion* pParaPortion = aEditEngine.GetParaPortions()[0];
+EditLin

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

2018-02-16 Thread Noel Grandin
 include/svx/svdundo.hxx   |   12 +++-
 svx/source/svdraw/svdundo.cxx |   36 ++--
 2 files changed, 21 insertions(+), 27 deletions(-)

New commits:
commit 71545d500e4b88e960a73d499328504ce99397a8
Author: Noel Grandin 
Date:   Mon Feb 5 13:51:25 2018 +0200

loplugin:useuniqueptr in SdrUndoAttrObj

Change-Id: I4174c1f1746dd501ce7428c3c2051dfed7042f7b
Reviewed-on: https://gerrit.libreoffice.org/49870
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx
index 9cb4271d0a86..642b67954073 100644
--- a/include/svx/svdundo.hxx
+++ b/include/svx/svdundo.hxx
@@ -144,8 +144,8 @@ protected:
 class SVX_DLLPUBLIC SdrUndoAttrObj : public SdrUndoObj
 {
 protected:
-SfxItemSet* pUndoSet;
-SfxItemSet* pRedoSet;
+std::unique_ptr pUndoSet;
+std::unique_ptr pRedoSet;
 
 // FIXME: Or should we better remember the StyleSheetNames?
 rtl::Reference< SfxStyleSheetBase > mxUndoStyleSheet;
@@ -154,13 +154,15 @@ protected:
 boolbHaveToTakeRedoSet;
 
 // When assigning TextItems to a drawing object with text:
-OutlinerParaObject* pTextUndo;
+std::unique_ptr
+pTextUndo;
 // #i8508#
 // The text rescue mechanism needs also to be implemented for redo actions.
-OutlinerParaObject* pTextRedo;
+std::unique_ptr
+pTextRedo;
 
 // If we have a group object:
-SdrUndoGroup*   pUndoGroup;
+std::unique_ptr pUndoGroup;
 
 // Helper to ensure StyleSheet is in pool (provided by SdrModel from 
SdrObject)
 static void ensureStyleSheetInStyleSheetPool(SfxStyleSheetBasePool& 
rStyleSheetPool, SfxStyleSheet& rSheet);
diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index 3f607186f87f..1c6ec236f34b 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -262,14 +262,9 @@ void 
SdrUndoAttrObj::ensureStyleSheetInStyleSheetPool(SfxStyleSheetBasePool& rSt
 
 SdrUndoAttrObj::SdrUndoAttrObj(SdrObject& rNewObj, bool bStyleSheet1, bool 
bSaveText)
 : SdrUndoObj(rNewObj)
-, pUndoSet(nullptr)
-, pRedoSet(nullptr)
 , mxUndoStyleSheet()
 , mxRedoStyleSheet()
 , bHaveToTakeRedoSet(true)
-, pTextUndo(nullptr)
-, pTextRedo(nullptr)
-, pUndoGroup(nullptr)
 {
 bStyleSheet = bStyleSheet1;
 
@@ -280,7 +275,7 @@ SdrUndoAttrObj::SdrUndoAttrObj(SdrObject& rNewObj, bool 
bStyleSheet1, bool bSave
 if(bIsGroup)
 {
 // it's a group object!
-pUndoGroup = new SdrUndoGroup(*pObj->GetModel());
+pUndoGroup.reset( new SdrUndoGroup(*pObj->GetModel()) );
 const size_t nObjCount(pOL->GetObjCount());
 
 for(size_t nObjNum = 0; nObjNum < nObjCount; ++nObjNum)
@@ -292,27 +287,27 @@ SdrUndoAttrObj::SdrUndoAttrObj(SdrObject& rNewObj, bool 
bStyleSheet1, bool bSave
 
 if(!bIsGroup || bIs3DScene)
 {
-pUndoSet = new SfxItemSet(pObj->GetMergedItemSet());
+pUndoSet.reset( new SfxItemSet(pObj->GetMergedItemSet()) );
 
 if(bStyleSheet)
 mxUndoStyleSheet = pObj->GetStyleSheet();
 
 if(bSaveText)
 {
-pTextUndo = pObj->GetOutlinerParaObject();
-if(pTextUndo)
-pTextUndo = new OutlinerParaObject(*pTextUndo);
+auto p = pObj->GetOutlinerParaObject();
+if(p)
+pTextUndo.reset( new OutlinerParaObject(*p) );
 }
 }
 }
 
 SdrUndoAttrObj::~SdrUndoAttrObj()
 {
-delete pUndoSet;
-delete pRedoSet;
-delete pUndoGroup;
-delete pTextUndo;
-delete pTextRedo;
+pUndoSet.reset();
+pRedoSet.reset();
+pUndoGroup.reset();
+pTextUndo.reset();
+pTextRedo.reset();
 }
 
 void SdrUndoAttrObj::Undo()
@@ -329,9 +324,7 @@ void SdrUndoAttrObj::Undo()
 {
 bHaveToTakeRedoSet = false;
 
-delete pRedoSet;
-
-pRedoSet = new SfxItemSet(pObj->GetMergedItemSet());
+pRedoSet.reset( new SfxItemSet(pObj->GetMergedItemSet()) );
 
 if(bStyleSheet)
 mxRedoStyleSheet = pObj->GetStyleSheet();
@@ -339,10 +332,9 @@ void SdrUndoAttrObj::Undo()
 if(pTextUndo)
 {
 // #i8508#
-pTextRedo = pObj->GetOutlinerParaObject();
-
-if(pTextRedo)
-pTextRedo = new OutlinerParaObject(*pTextRedo);
+auto p = pObj->GetOutlinerParaObject();
+if(p)
+pTextRedo.reset( new OutlinerParaObject(*p) );
 }
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2018-02-16 Thread Noel Grandin
 svx/source/form/fmexpl.cxx |7 +++
 svx/source/inc/fmexpl.hxx  |5 +++--
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit d4be0bfedf8497ad3b4244aeeb0b761b5c6b128b
Author: Noel Grandin 
Date:   Tue Feb 6 11:40:14 2018 +0200

loplugin:useuniqueptr in FmEntryData

Change-Id: I6356807ad2b4e0e22908d59713de54842e1a0e00
Reviewed-on: https://gerrit.libreoffice.org/49878
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/svx/source/form/fmexpl.cxx b/svx/source/form/fmexpl.cxx
index 96166a275440..9e96bd6db2d5 100644
--- a/svx/source/form/fmexpl.cxx
+++ b/svx/source/form/fmexpl.cxx
@@ -176,7 +176,7 @@ void FmEntryDataList::clear()
 FmEntryData::FmEntryData( FmEntryData* pParentData, const Reference< 
XInterface >& _rxIFace )
 :pParent( pParentData )
 {
-pChildList = new FmEntryDataList();
+pChildList.reset( new FmEntryDataList() );
 
 newObject( _rxIFace );
 }
@@ -184,8 +184,7 @@ FmEntryData::FmEntryData( FmEntryData* pParentData, const 
Reference< XInterface
 
 FmEntryData::~FmEntryData()
 {
-GetChildList()->clear();
-delete pChildList;
+pChildList->clear();
 }
 
 
@@ -200,7 +199,7 @@ void FmEntryData::newObject( const css::uno::Reference< 
css::uno::XInterface >&
 
 FmEntryData::FmEntryData( const FmEntryData& rEntryData )
 {
-pChildList = new FmEntryDataList();
+pChildList.reset( new FmEntryDataList() );
 aText = rEntryData.GetText();
 m_aNormalImage = rEntryData.GetNormalImage();
 pParent = rEntryData.GetParent();
diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx
index a089f10f015d..76142653fe7a 100644
--- a/svx/source/inc/fmexpl.hxx
+++ b/svx/source/inc/fmexpl.hxx
@@ -144,7 +144,8 @@ protected:
 Image   m_aNormalImage;
 OUStringaText;
 
-FmEntryDataList*pChildList;
+std::unique_ptr
+pChildList;
 FmEntryData*pParent;
 
 protected:
@@ -163,7 +164,7 @@ public:
 
 const OUString& GetText() const { return aText; }
 FmEntryData*GetParent() const { return pParent; }
-FmEntryDataList* GetChildList() const { return pChildList; }
+FmEntryDataList* GetChildList() const { return pChildList.get(); }
 
 virtual bool IsEqualWithoutChildren( FmEntryData* pEntryData );
 virtual FmEntryData* Clone() = 0;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2018-02-16 Thread Noel Grandin
 sc/source/core/data/documen3.cxx   |   16 +--
 sc/source/core/data/dpoutput.cxx   |   24 ++---
 sc/source/core/data/drwlayer.cxx   |   50 +-
 sc/source/core/data/postit.cxx |4 
 sc/source/core/tool/detfunc.cxx|   22 ++--
 sc/source/core/tool/editutil.cxx   |6 -
 sc/source/filter/excel/xiescher.cxx|   16 +--
 sc/source/filter/html/htmlexp2.cxx |4 
 sc/source/filter/html/htmlimp.cxx  |4 
 sc/source/filter/rtf/eeimpars.cxx  |   12 +-
 sc/source/ui/app/client.cxx|   16 +--
 sc/source/ui/app/inputhdl.cxx  |2 
 sc/source/ui/app/inputwin.cxx  |8 -
 sc/source/ui/cctrl/cbuttonw.cxx|   14 +-
 sc/source/ui/cctrl/checklistmenu.cxx   |   36 +++
 sc/source/ui/cctrl/dpcontrol.cxx   |2 
 sc/source/ui/cctrl/tbzoomsliderctrl.cxx|   22 ++--
 sc/source/ui/condformat/condformatdlg.cxx  |4 
 sc/source/ui/drawfunc/fuins1.cxx   |4 
 sc/source/ui/drawfunc/fuins2.cxx   |2 
 sc/source/ui/miscdlgs/anyrefdg.cxx |6 -
 sc/source/ui/miscdlgs/autofmt.cxx  |   16 +--
 sc/source/ui/miscdlgs/solveroptions.cxx|2 
 sc/source/ui/namedlg/namemgrtable.cxx  |2 
 sc/source/ui/navipi/scenwnd.cxx|2 
 sc/source/ui/sidebar/CellLineStyleValueSet.cxx |4 
 sc/source/ui/unoobj/viewuno.cxx|2 
 sc/source/ui/view/gridwin.cxx  |   76 
 sc/source/ui/view/gridwin4.cxx |   40 
 sc/source/ui/view/gridwin5.cxx |4 
 sc/source/ui/view/hdrcont.cxx  |   22 ++--
 sc/source/ui/view/hintwin.cxx  |2 
 sc/source/ui/view/notemark.cxx |8 -
 sc/source/ui/view/output.cxx   |   22 ++--
 sc/source/ui/view/output2.cxx  |  118 -
 sc/source/ui/view/output3.cxx  |   16 +--
 sc/source/ui/view/preview.cxx  |   20 ++--
 sc/source/ui/view/prevwsh.cxx  |   24 ++---
 sc/source/ui/view/printfun.cxx |   58 ++--
 sc/source/ui/view/tabview.cxx  |   18 +--
 sc/source/ui/view/tabview2.cxx |   12 +-
 sc/source/ui/view/tabview3.cxx |   28 ++---
 sc/source/ui/view/tabview4.cxx |6 -
 sc/source/ui/view/tabview5.cxx |   10 +-
 sc/source/ui/view/tabvwsh2.cxx |4 
 sc/source/ui/view/tabvwsh4.cxx |   12 +-
 sc/source/ui/view/tabvwshb.cxx |4 
 sc/source/ui/view/tabvwshg.cxx |2 
 sc/source/ui/view/viewdata.cxx |   18 +--
 sc/source/ui/view/viewfun5.cxx |8 -
 sc/source/ui/view/viewfun7.cxx |   12 +-
 51 files changed, 421 insertions(+), 425 deletions(-)

New commits:
commit e2e4798b35ecd33a09dda85c575d7a7709ab9414
Author: Noel Grandin 
Date:   Fri Feb 16 10:23:51 2018 +0200

Revert "loplugin:changetoolsgen in sc" and reapply plugin

because I
(a) forgot to insert parentheses which changes the meaning of some 
expressions and
(b) I now use the AdjustFoo calls when changing unary operations, which 
reads much better
This reverts commit 95fab7cbf2f0576d0f728bed8898b7ff769d90e6.

Change-Id: Icbdcc0f4227d88812be12e18ba6961088db80c3e
Reviewed-on: https://gerrit.libreoffice.org/49840
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 12a8a525e785..8f37ada3dcbb 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -1698,13 +1698,13 @@ tools::Rectangle ScDocument::GetEmbeddedRect() const // 
1/100 mm
 SCCOL i;
 
 for (i=0; iGetColWidth(i) );
-aRect.SetTop( aRect.Top() + pTable->GetRowHeight( 0, 
aEmbedRange.aStart.Row() - 1) );
+aRect.AdjustLeft(pTable->GetColWidth(i) );
+aRect.AdjustTop(pTable->GetRowHeight( 0, aEmbedRange.aStart.Row() - 1) 
);
 aRect.SetRight( aRect.Left() );
 for (i=aEmbedRange.aStart.Col(); i<=aEmbedRange.aEnd.Col(); i++)
-aRect.SetRight( aRect.Right() + pTable->GetColWidth(i) );
+aRect.AdjustRight(pTable->GetColWidth(i) );
 aRect.SetBottom( aRect.Top() );
-aRect.SetBottom( aRect.Bottom() + pTable->GetRowHeight( 
aEmbedRange.aStart.Row(), aEmbedRange.aEnd.Row()) );
+aRect.AdjustBottom(pTable->GetRowHeight( aEmbedRange.aStart.Row(), 
aEmbedRange.aEnd.Row()) );
 
 aRect.SetLeft( static_cast( aRect.Left()   * HMM_PER_TWIPS ) );
 aRect.SetRight( static_cast( aRect.Right()  * HMM_PER_TWIPS ) );
@@ -1970,15 +1970,15 @@ tools::Rectangle ScDocument::GetMMRect( SCCOL 

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

2018-02-16 Thread Noel Grandin
 include/svx/fmgridif.hxx  |3 
 lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx |   68 ++
 lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx |7 -
 lingucomponent/source/thesaurus/libnth/nthesimp.cxx   |   83 --
 lingucomponent/source/thesaurus/libnth/nthesimp.hxx   |   17 ++-
 svx/source/fmcomp/fmgridif.cxx|7 -
 6 files changed, 66 insertions(+), 119 deletions(-)

New commits:
commit 794066fa1ac67b6e352c17e78245a2698b0c470b
Author: Noel Grandin 
Date:   Tue Feb 6 11:38:34 2018 +0200

loplugin:useuniqueptr in FmXGridPeer

Change-Id: Ie9a705852035eb99c9d0e5862c4d9f6bdb4c6a05
Reviewed-on: https://gerrit.libreoffice.org/49877
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/include/svx/fmgridif.hxx b/include/svx/fmgridif.hxx
index 5aa857005c69..fbec6ea6435f 100644
--- a/include/svx/fmgridif.hxx
+++ b/include/svx/fmgridif.hxx
@@ -48,6 +48,7 @@
 #include 
 #include 
 #include 
+#include 
 
 class DbGridColumn;
 enum class DbGridControlNavigationBarState;
@@ -359,7 +360,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FmXGridPeer:
 
 class GridListenerDelegator;
 friend class GridListenerDelegator;
-GridListenerDelegator*  m_pGridListener;
+std::unique_ptr  m_pGridListener;
 
 protected:
 css::uno::Reference< css::uno::XComponentContext >m_xContext;
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index 31280a401825..262d4d47f5bc 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -1041,11 +1041,10 @@ FmXGridPeer::FmXGridPeer(const Reference< 
XComponentContext >& _rxContext)
 ,m_bInterceptingDispatch(false)
 ,m_pStateCache(nullptr)
 ,m_pDispatchers(nullptr)
-,m_pGridListener(nullptr)
 ,m_xContext(_rxContext)
 {
 // Create must be called after this constructor
-m_pGridListener = new GridListenerDelegator( this );
+m_pGridListener.reset( new GridListenerDelegator( this ) );
 }
 
 
@@ -1064,7 +1063,7 @@ void FmXGridPeer::Create(vcl::Window* pParent, WinBits 
nStyle)
 pWin->SetSlotExecutor(LINK(this, FmXGridPeer, OnExecuteGridSlot));
 
 // want to hear about row selections
-pWin->setGridListener( m_pGridListener );
+pWin->setGridListener( m_pGridListener.get() );
 
 // Init must always be called
 pWin->Init();
@@ -1078,8 +1077,6 @@ FmXGridPeer::~FmXGridPeer()
 {
 setRowSet(Reference< XRowSet > ());
 setColumns(Reference< XIndexContainer > ());
-
-delete m_pGridListener;
 }
 
 namespace
commit c503df794f942488840ac2d69e61895e42a35b2a
Author: Noel Grandin 
Date:   Tue Feb 6 11:35:31 2018 +0200

loplugin:useuniqueptr in Hyphenator

Change-Id: Icc45a38858004e1b8ea3a19df40f3cd71c469fdf
Reviewed-on: https://gerrit.libreoffice.org/49876
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx 
b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index 4da78de3995b..8f9480e3ff0f 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -64,28 +64,19 @@ Hyphenator::Hyphenator() :
 aEvtListeners   ( GetLinguMutex() )
 {
 bDisposing = false;
-pPropHelper = nullptr;
-aDicts = nullptr;
-numdict = 0;
 }
 
 Hyphenator::~Hyphenator()
 {
-if (numdict && aDicts)
+for (auto & rInfo : mvDicts)
 {
-for (int i=0; i < numdict; ++i)
-{
-delete aDicts[i].apCC;
-if (aDicts[i].aPtr)
-hnj_hyphen_free(aDicts[i].aPtr);
-}
+if (rInfo.aPtr)
+hnj_hyphen_free(rInfo.aPtr);
 }
-delete[] aDicts;
 
 if (pPropHelper)
 {
 pPropHelper->RemoveAsPropListener();
-delete pPropHelper;
 }
 }
 
@@ -95,7 +86,7 @@ PropertyHelper_Hyphenation& Hyphenator::GetPropHelper_Impl()
 {
 Reference< XLinguProperties >   xPropSet( GetLinguProperties(), 
UNO_QUERY );
 
-pPropHelper = new PropertyHelper_Hyphenation (static_cast(this), xPropSet );
+pPropHelper.reset( new PropertyHelper_Hyphenation 
(static_cast(this), xPropSet ) );
 pPropHelper->AddAsPropListener();   //! after a reference is 
established
 }
 return *pPropHelper;
@@ -107,7 +98,7 @@ Sequence< Locale > SAL_CALL Hyphenator::getLocales()
 
 // this routine should return the locales supported by the installed
 // dictionaries.
-if (!numdict)
+if (!mvDicts.size())
 {
 SvtLinguConfig aLinguCfg;
 
@@ -137,7 +128,7 @@ Sequence< Locale > SAL_CALL Hyphenator::getLocales()
 // is not yet supported by the list od new style dictionaries
 MergeNewStyleDicsAndOldStyleDics( aDics, aOldStyleDics );
 
-numdict = aDics.size();
+sal_Int32 numdict = aDics.size();
 if (numdict)
 {
 // ge

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

2018-02-16 Thread Noel Grandin
 hwpfilter/source/hfont.cxx   |   13 -
 hwpfilter/source/hfont.h |3 ++-
 lingucomponent/source/spellcheck/spell/sspellimp.cxx |9 +++--
 lingucomponent/source/spellcheck/spell/sspellimp.hxx |2 +-
 scaddins/source/analysis/analysis.cxx|   13 -
 scaddins/source/analysis/analysis.hxx|6 +++---
 scaddins/source/pricing/pricing.cxx  |   15 +++
 scaddins/source/pricing/pricing.hxx  |5 +++--
 8 files changed, 23 insertions(+), 43 deletions(-)

New commits:
commit 35ba29e093d41ce88a827ab145ba8df09ff0ee2f
Author: Noel Grandin 
Date:   Tue Feb 6 10:49:49 2018 +0200

loplugin:useuniqueptr in SpellChecker

Change-Id: I36a9fe01e228f3f2f5e441c369291da4c461f735
Reviewed-on: https://gerrit.libreoffice.org/49874
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx 
b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 12b9e240fa24..db6c183a8cef 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -72,7 +72,6 @@ using namespace linguistic;
 
 SpellChecker::SpellChecker() :
 m_aEvtListeners(GetLinguMutex()),
-m_pPropHelper(nullptr),
 m_bDisposing(false)
 {
 }
@@ -87,7 +86,6 @@ SpellChecker::~SpellChecker()
 if (m_pPropHelper)
 {
 m_pPropHelper->RemoveAsPropListener();
-delete m_pPropHelper;
 }
 }
 
@@ -97,7 +95,7 @@ PropertyHelper_Spelling & SpellChecker::GetPropHelper_Impl()
 {
 Reference< XLinguProperties >   xPropSet( GetLinguProperties(), 
UNO_QUERY );
 
-m_pPropHelper = new PropertyHelper_Spelling( static_cast(this), xPropSet );
+m_pPropHelper.reset( new PropertyHelper_Spelling( 
static_cast(this), xPropSet ) );
 m_pPropHelper->AddAsPropListener();   //! after a reference is 
established
 }
 return *m_pPropHelper;
@@ -577,7 +575,7 @@ void SAL_CALL SpellChecker::initialize( const Sequence< Any 
>& rArguments )
 //! And the reference to the UNO-functions while increasing
 //! the ref-count and will implicitly free the memory
 //! when the object is no longer used.
-m_pPropHelper = new PropertyHelper_Spelling( 
static_cast(this), xPropSet );
+m_pPropHelper.reset( new PropertyHelper_Spelling( 
static_cast(this), xPropSet ) );
 m_pPropHelper->AddAsPropListener();   //! after a reference is 
established
 }
 else {
@@ -598,8 +596,7 @@ void SAL_CALL SpellChecker::dispose()
 if (m_pPropHelper)
 {
 m_pPropHelper->RemoveAsPropListener();
-delete m_pPropHelper;
-m_pPropHelper = nullptr;
+m_pPropHelper.reset();
 }
 }
 }
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.hxx 
b/lingucomponent/source/spellcheck/spell/sspellimp.hxx
index d8e5581463da..82ddbedf0af3 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.hxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.hxx
@@ -69,7 +69,7 @@ class SpellChecker :
 Sequence< Locale > m_aSuppLocales;
 
 ::comphelper::OInterfaceContainerHelper2   m_aEvtListeners;
-linguistic::PropertyHelper_Spelling*m_pPropHelper;
+std::unique_ptr m_pPropHelper;
 boolm_bDisposing;
 
 SpellChecker(const SpellChecker &) = delete;
commit cc85db4c4e2ca9ef8e1c9fc0af6d314767678faa
Author: Noel Grandin 
Date:   Tue Feb 6 10:42:23 2018 +0200

loplugin:useuniqueptr in scaddins

Change-Id: I5c2c8301078d19824fb35966b158471ce6650c10
Reviewed-on: https://gerrit.libreoffice.org/49873
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/scaddins/source/analysis/analysis.cxx 
b/scaddins/source/analysis/analysis.cxx
index 6c6a94afdb42..34414abd0f50 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -73,12 +73,10 @@ void AnalysisAddIn::InitData()
 {
 aResLocale = Translate::Create("sca", LanguageTag(aFuncLoc));
 
-delete pFD;
-pFD = new FuncDataList;
+pFD.reset(new FuncDataList);
 InitFuncDataList(*pFD);
 
-delete pDefLocales;
-pDefLocales = nullptr;
+pDefLocales.reset();
 }
 
 AnalysisAddIn::AnalysisAddIn( const uno::Reference< uno::XComponentContext >& 
xContext ) :
@@ -92,9 +90,6 @@ AnalysisAddIn::AnalysisAddIn( const uno::Reference< 
uno::XComponentContext >& xC
 
 AnalysisAddIn::~AnalysisAddIn()
 {
-delete pCDL;
-delete pFD;
-delete[] pDefLocales;
 }
 
 sal_Int32 AnalysisAddIn::getDateMode(
@@ -337,7 +332,7 @@ static const sal_uInt32 nNumOfLoc = 
SAL_N_ELEMENTS(pLang);
 
 void AnalysisAddIn::InitDefLocales()
 {
-pDefLocales = new lang::Locale[ nNumOfLoc ];
+pDefLocales.reset( new lang::Locale[ nNumOfLoc

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

2018-02-16 Thread Szymon Kłos
 sd/qa/unit/export-tests-ooxml2.cxx |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 7a510effa4566d405d2033b6635b42c08d34dec8
Author: Szymon Kłos 
Date:   Fri Feb 16 22:13:49 2018 +0100

Fix fontScale test

Change-Id: Idd16270cc6af0108442ba26db62ed933bbb0a63a
Reviewed-on: https://gerrit.libreoffice.org/49881
Tested-by: Jenkins 
Reviewed-by: Szymon Kłos 

diff --git a/sd/qa/unit/export-tests-ooxml2.cxx 
b/sd/qa/unit/export-tests-ooxml2.cxx
index 51e13eb80a5e..9fc5302f0325 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -1415,7 +1415,10 @@ void SdOOXMLExportTest2::testFontScale()
 xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
 xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml");
 
-assertXPath(pXmlDocContent, 
"/p:sld/p:cSld/p:spTree/p:sp/p:txBody/a:bodyPr/a:normAutofit", "fontScale", 
"73000");
+// Rounding errors possible, approximate value
+OUString sScale = getXPath(pXmlDocContent, 
"/p:sld/p:cSld/p:spTree/p:sp/p:txBody/a:bodyPr/a:normAutofit", "fontScale");
+if (sScale != "73000" && sScale != "72000" && sScale != "74000")
+CPPUNIT_ASSERT_EQUAL(OUString("73000"), sScale);
 
 xDocShRef->DoClose();
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Unit Test Failure: CppunitTest_cppcanvas_emfplus

2018-02-16 Thread Luke Benes
After 
https://cgit.freedesktop.org/libreoffice/core/commit/?id=0d9f3f7628f88fa66aaeea1f7148db620e17e728

I'm seeing the following Unit Test Failure under Arch with both gcc and clang:

[CUT] cppcanvas_emfplus
[DEP] LNK:CppunitTest/libtest_sd_import_tests.so
[LNK] CppunitTest/libtest_sd_import_tests.so
/core/cppcanvas/qa/extras/emfplus/emfplus.cxx:84:Test::testFdo77229
equality assertion failed
- Expected: 
- Actual  : �

Test::testFdo77229 finished in: 1885ms
emfplus.cxx:84:Assertion
Test name: Test::testFdo77229
equality assertion failed
- Expected: 
- Actual  : �

Failures !!!
Run: 1   Failure total: 1   Failures: 1   Errors: 0

Error: a unit test failed, please do one of:

make CppunitTest_cppcanvas_emfplus CPPUNITTRACE="gdb --args"
# for interactive debugging on Linux
make CppunitTest_cppcanvas_emfplus VALGRIND=memcheck
# for memory checking
make CppunitTest_cppcanvas_emfplus DEBUGCPPUNIT=TRUE
# for exception catching

You can limit the execution to just one particular test by:

make CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...

make[1]: *** [/core/solenv/gbuild/CppunitTest.mk:115: 
/core/workdir/CppunitTest/cppcanvas_emfplus.test] Error 1
make[1]: *** Waiting for unfinished jobs
make: *** [Makefile:280: build] Error 2

Noel,
Any idea why that change may have caused this regression? 



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


[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - helpcontent2

2018-02-16 Thread Olivier Hallot
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 82bbb94dea3291d740ee4b0bb4b3c331f3e2a45b
Author: Olivier Hallot 
Date:   Thu Jan 4 07:08:56 2018 -0200

Updated core
Project: help  c084a6cc7a44ecd652b78351a35dd5c3ae9624f1

Fix some help page contents

Change-Id: Ida1bfdaf86690a95df3949b5287dc0b10223e907
Reviewed-on: https://gerrit.libreoffice.org/47371
Reviewed-by: Olivier Hallot 
Tested-by: Olivier Hallot 
(cherry picked from commit 9219a96f5e75fc59492259f354051ce980697c95)
Reviewed-on: https://gerrit.libreoffice.org/47384

diff --git a/helpcontent2 b/helpcontent2
index 6d883096dc27..c084a6cc7a44 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit 6d883096dc275e1b384ed9ad08fd9ab4ad26bb3f
+Subproject commit c084a6cc7a44ecd652b78351a35dd5c3ae9624f1
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: Branch 'libreoffice-6-0' - source/text

2018-02-16 Thread Olivier Hallot
 source/text/shared/01/01060001.xhp |2 +-
 source/text/shared/01/01060002.xhp |2 +-
 source/text/shared/02/2005.xhp |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c084a6cc7a44ecd652b78351a35dd5c3ae9624f1
Author: Olivier Hallot 
Date:   Thu Jan 4 07:08:56 2018 -0200

Fix some help page contents

Change-Id: Ida1bfdaf86690a95df3949b5287dc0b10223e907
Reviewed-on: https://gerrit.libreoffice.org/47371
Reviewed-by: Olivier Hallot 
Tested-by: Olivier Hallot 
(cherry picked from commit 9219a96f5e75fc59492259f354051ce980697c95)
Reviewed-on: https://gerrit.libreoffice.org/47384

diff --git a/source/text/shared/01/01060001.xhp 
b/source/text/shared/01/01060001.xhp
index c3fe8e397..40d9f2b03 100644
--- a/source/text/shared/01/01060001.xhp
+++ b/source/text/shared/01/01060001.xhp
@@ -30,7 +30,7 @@
 Long click on the Save icon and select Save 
Remote Files...
 
 
-A 
remote file server is web service that stores documents with or without 
check-in, check-out, version controls and backups.
+A 
remote file server is a web service that stores documents with or without 
check-in, check-out, version controls and backups.
 
 Opening and saving files in remote servers
 
diff --git a/source/text/shared/01/01060002.xhp 
b/source/text/shared/01/01060002.xhp
index 1d2ed50cc..1d6c032c7 100644
--- a/source/text/shared/01/01060002.xhp
+++ b/source/text/shared/01/01060002.xhp
@@ -28,7 +28,7 @@
 
 Choose File - Save a 
Copy
 
-Creates another file with same contents of the current file. 
The current file is kept opened for edition.
+Creates another file with same contents of the current file. 
The current file is kept open for editing.
 
 Save
 Save 
as
diff --git a/source/text/shared/02/2005.xhp 
b/source/text/shared/02/2005.xhp
index b79d80a58..4d76be719 100644
--- a/source/text/shared/02/2005.xhp
+++ b/source/text/shared/02/2005.xhp
@@ -67,7 +67,7 @@
 Extending selection (F8)
 
 
-By using the arrow keys or the Home and End keys you can 
extend or crop the current selection. Clicking into the text selects the text 
between the current cursor position and the click position. You also can use 
(with or without Shift key) the arrow keys and the 
keys Home and End to 
increase or decrease the current selection.
+By using the arrow keys or the Home and End keys you can 
extend or crop the current selection. Clicking into the text selects the text 
between the current cursor position and the click position.
 
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2018-02-16 Thread Kohei Yoshida
 sc/qa/unit/data/xml/named-exp-global.xml |   92 +
 sc/qa/unit/data/xml/named-exp-local.xml  |  131 +++
 sc/qa/unit/subsequent_filters-test.cxx   |   45 ++
 3 files changed, 268 insertions(+)

New commits:
commit 05986e7f98ea1c0bd8092500968774ef3f6bcef4
Author: Kohei Yoshida 
Date:   Fri Feb 16 16:37:31 2018 -0500

Add a test case for global and sheet-local named expressions.

Change-Id: I44247b55f3541214b515378744ee2c1982051e27
Reviewed-on: https://gerrit.libreoffice.org/49882
Tested-by: Jenkins 
Reviewed-by: Kohei Yoshida 

diff --git a/sc/qa/unit/data/xml/named-exp-global.xml 
b/sc/qa/unit/data/xml/named-exp-global.xml
new file mode 100644
index ..151ed7037e02
--- /dev/null
+++ b/sc/qa/unit/data/xml/named-exp-global.xml
@@ -0,0 +1,92 @@
+
+
+http://www.w3.org/TR/REC-html40";>
+ 
+  Kohei Yoshida
+  Kohei Yoshida
+  2016-12-17T20:46:03Z
+  2016-12-17T20:49:13Z
+  15.00
+ 
+ 
+  
+ 
+ 
+  14385
+  24000
+  0
+  0
+  
+  False
+  False
+ 
+ 
+  
+   
+   
+   
+   
+   
+   
+  
+ 
+ 
+  
+  
+ 
+ 
+  
+   
+1
+6
+   
+   
+2
+7
+   
+   
+3
+8
+   
+   
+4
+9
+   
+   
+5
+10
+   
+   
+15
+55
+   
+  
+  
+   
+
+
+
+   
+   
+   
+
+ 3
+ 6
+ 1
+
+   
+   False
+   False
+  
+ 
+
diff --git a/sc/qa/unit/data/xml/named-exp-local.xml 
b/sc/qa/unit/data/xml/named-exp-local.xml
new file mode 100644
index ..46f110bf3da7
--- /dev/null
+++ b/sc/qa/unit/data/xml/named-exp-local.xml
@@ -0,0 +1,131 @@
+
+
+http://www.w3.org/TR/REC-html40";>
+ 
+  Kohei Yoshida
+  Kohei Yoshida
+  2017-02-08T02:38:34Z
+  2017-02-08T02:41:56Z
+  15.00
+ 
+ 
+  
+ 
+ 
+  14385
+  24000
+  0
+  0
+  False
+  False
+ 
+ 
+  
+   
+   
+   
+   
+   
+   
+  
+ 
+ 
+  
+   
+  
+  
+   
+1
+6
+   
+   
+2
+7
+   
+   
+3
+8
+   
+   
+4
+9
+   
+   
+5
+10
+   
+   
+27
+   
+  
+  
+   
+
+
+
+   
+   
+   
+   
+
+ 3
+ 6
+
+   
+   False
+   False
+  
+ 
+ 
+  
+   
+  
+  
+   
+10
+20
+   
+   
+11
+21
+   
+   
+12
+22
+   
+   
+13
+23
+   
+   
+14
+24
+   
+   
+74
+   
+  
+  
+   
+
+
+
+   
+   
+   
+
+ 3
+ 6
+
+   
+   False
+   False
+  
+ 
+
diff --git a/sc/qa/unit/subsequent_filters-test.cxx 
b/sc/qa/unit/subsequent_filters-test.cxx
index 5eb5303b397f..f93af35a0aab 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -237,6 +237,7 @@ public:
 
 void testMergedCellsXLSXML();
 void testBackgroundColorStandardXLSXML();
+void testNamedExpressionsXLSXML();
 
 CPPUNIT_TEST_SUITE(ScFiltersTest);
 CPPUNIT_TEST(testBooleanFormatXLSX);
@@ -361,6 +362,7 @@ public:
 #endif
 CPPUNIT_TEST(testMergedCellsXLSXML);
 CPPUNIT_TEST(testBackgroundColorStandardXLSXML);
+CPPUNIT_TEST(testNamedExpressionsXLSXML);
 
 CPPUNIT_TEST_SUITE_END();
 
@@ -3584,6 +3586,49 @@ void ScFiltersTest::testBackgroundColorStandardXLSXML()
 xDocSh->DoClose();
 }
 
+void ScFiltersTest::testNamedExpressionsXLSXML()
+{
+{
+// global named expressions
+
+ScDocShellRef xDocSh = loadDoc("named-exp-global.", FORMAT_XLS_XML);
+CPPUNIT_ASSERT_MESSAGE("Failed to load named-exp-global.xml", 
xDocSh.is());
+ScDocument& rDoc = xDocSh->GetDocument();
+
+// A7
+ScAddress aPos(0,6,0);
+CPPUNIT_ASSERT_EQUAL(15.0, rDoc.GetValue(aPos));
+ASSERT_FORMULA_EQUAL(rDoc, aPos, "SUM(MyRange)", nullptr);
+
+// B7
+aPos.IncCol();
+CPPUNIT_ASSERT_EQUAL(55.0, rDoc.GetValue(aPos));
+ASSERT_FORMULA_EQUAL(rDoc, aPos, "SUM(MyRange2)", nullptr);
+
+xDocSh->DoClose();
+}
+
+{
+// sheet-local named expressions
+
+ScDocShellRef xDocSh = loadDoc("named-exp-local.", FORMAT_XLS_XML);
+CPPUNIT_ASSERT_MESSAGE("Failed to load named-exp-local.xml", 
xDocSh.is());
+ScDocument& rDoc = xDocSh->GetDocument();
+
+// A7 on Sheet1
+ScAddress aPos(0,6,0);
+CPPUNIT_ASSERT_EQUAL(27.0, rDoc.GetValue(aPos));
+ASSERT_FORMULA_EQUAL(rDoc, aPos, "SUM(MyRange)", nullptr);
+
+// A7 on Sheet2
+aPos.IncTab();
+CPPUNIT_ASSERT_EQUAL(74.0, rDoc.GetValue(aPos));
+ASSERT_FORMULA_EQUAL(rDoc, aPos, "SUM(MyRange)", nullptr);
+
+xDocSh->DoClose();
+}
+}
+
 void ScFiltersTest::testCondFormatXLSB()
 {
 ScDocShellRef xDocSh = loadDoc("cond_format.", FORMAT_XLSB);
__

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

 sc/inc/global.hxx  |3 +++
 sc/source/ui/docshell/arealink.cxx |2 +-
 sc/source/ui/docshell/docsh.cxx|2 +-
 sc/source/ui/miscdlgs/linkarea.cxx |2 +-
 sc/source/ui/vba/vbaworkbook.cxx   |4 ++--
 sc/source/ui/vba/vbaworkbooks.cxx  |2 +-
 6 files changed, 9 insertions(+), 6 deletions(-)

New commits:
commit b87fe45e8b087a315a65b92bf9c168b1e4c5cc00
Author: Eike Rathke 
Date:   Fri Feb 16 23:52:04 2018 +0100

Consolidate the dreaded "Text - txt - csv (StarCalc)" filter name

... into one define SC_TEXT_CSV_FILTER_NAME. This might prevent
typos and doesn't look as ugly.

Change-Id: If954852e5e6673331b29c4994f9d97c77b6564a6

diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index 438cfe804b44..78600a827954 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -50,6 +50,9 @@ enum class SvNumFormatType : sal_Int16;
 
 #define STRING_STANDARD "Standard"
 
+// Have the dreaded programmatic filter name defined in one place.
+#define SC_TEXT_CSV_FILTER_NAME "Text - txt - csv (StarCalc)"
+
 // characters
 
 const sal_Unicode CHAR_NBSP = 0x00A0;
diff --git a/sc/source/ui/docshell/arealink.cxx 
b/sc/source/ui/docshell/arealink.cxx
index 81e2c7cf5b0d..63ea2ad325f0 100644
--- a/sc/source/ui/docshell/arealink.cxx
+++ b/sc/source/ui/docshell/arealink.cxx
@@ -272,7 +272,7 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const 
OUString& rNewFilter,
 SCROW nHeight = 0;
 ScRangeList aSourceRanges;
 
-if (rNewFilter == "Text - txt - csv (StarCalc)" && aTempArea == "CSV_all")
+if (rNewFilter == SC_TEXT_CSV_FILTER_NAME && aTempArea == "CSV_all")
 {
 // The dummy All range. All data, including top/left empty
 // rows/columns.
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 8d1117af8d48..7815e68d5566 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -145,7 +145,7 @@ using ::std::vector;
 
 static const sal_Char pFilterSc50[] = "StarCalc 5.0";
 static const sal_Char pFilterXML[]  = "StarOffice XML (Calc)";
-static const sal_Char pFilterAscii[]= "Text - txt - csv (StarCalc)";
+static const sal_Char pFilterAscii[]= SC_TEXT_CSV_FILTER_NAME;
 static const sal_Char pFilterLotus[]= "Lotus";
 static const sal_Char pFilterQPro6[]= "Quattro Pro 6.0";
 static const sal_Char pFilterExcel4[]   = "MS Excel 4.0";
diff --git a/sc/source/ui/miscdlgs/linkarea.cxx 
b/sc/source/ui/miscdlgs/linkarea.cxx
index 96f613ffa7a1..c66534c91839 100644
--- a/sc/source/ui/miscdlgs/linkarea.cxx
+++ b/sc/source/ui/miscdlgs/linkarea.cxx
@@ -258,7 +258,7 @@ void ScLinkedAreaDlg::UpdateSourceRanges()
 if ( pSourceShell )
 {
 std::shared_ptr pFilter = 
pSourceShell->GetMedium()->GetFilter();
-if (pFilter && pFilter->GetFilterName() == "Text - txt - csv 
(StarCalc)")
+if (pFilter && pFilter->GetFilterName() == SC_TEXT_CSV_FILTER_NAME)
 {
 // Insert dummy All range to have something selectable.
 m_pLbRanges->InsertEntry("CSV_all");
diff --git a/sc/source/ui/vba/vbaworkbook.cxx b/sc/source/ui/vba/vbaworkbook.cxx
index 978915ef71d6..f0a6432df330 100644
--- a/sc/source/ui/vba/vbaworkbook.cxx
+++ b/sc/source/ui/vba/vbaworkbook.cxx
@@ -103,7 +103,7 @@ bool ScVbaWorkbook::setFilterPropsFromFormat( sal_Int32 
nFormat, uno::Sequence<
 switch( nFormat )
 {
 case excel::XlFileFormat::xlCSV:
-rProps[ index ].Value <<= OUString("Text - txt - csv 
(StarCalc)");
+rProps[ index ].Value <<= 
OUString(SC_TEXT_CSV_FILTER_NAME);
 break;
 case excel::XlFileFormat::xlDBF4:
 rProps[ index ].Value <<= OUString("DBF");
@@ -150,7 +150,7 @@ ScVbaWorkbook::getFileFormat(  )
aArgs[1].Value >>= aFilterName;
 }
 
-if (aFilterName == "Text - txt - csv (StarCalc)") {
+if (aFilterName == SC_TEXT_CSV_FILTER_NAME) {
 aFileFormat = excel::XlFileFormat::xlCSV; //xlFileFormat.
 }
 
diff --git a/sc/source/ui/vba/vbaworkbooks.cxx 
b/sc/source/ui/vba/vbaworkbooks.cxx
index 1fd605d8b972..fa12faae8f1e 100644
--- a/sc/source/ui/vba/vbaworkbooks.cxx
+++ b/sc/source/ui/vba/vbaworkbooks.cxx
@@ -254,7 +254,7 @@ ScVbaWorkbooks::Open( const OUString& rFileName, const 
uno::Any& /*UpdateLinks*/
 sFormat = OUString::number( nDelim ) + ",34,0,1";
 sProps[ nIndex++ ].Value <<= sFormat;
 sProps[ nIndex ].Name = "FilterName";
-sProps[ nIndex++ ].Value <<= OUString( "Text - txt - csv (StarCalc)" );
+sProps[ nIndex++ ].Value <<= OUString( SC_TEXT_CSV_FILTER_NAME );
 // Ensure WORKAROUND_CSV_TXT_BUG_i60158 gets called in 
typedetection.cxx so
 // csv is forced for deep detected 'writerxxx' types
 sProps[ nIndex ].Name = "DocumentService";
___
Libreoffice-commits

[Libreoffice-commits] core.git: editeng/source include/editeng sd/qa sd/source

 editeng/source/editeng/editeng.cxx|7 ++
 editeng/source/outliner/outliner.cxx  |5 +
 include/editeng/editeng.hxx   |2 
 include/editeng/outliner.hxx  |2 
 sd/qa/unit/tiledrendering/data/tdf115783.fodp |   52 +++
 sd/qa/unit/tiledrendering/tiledrendering.cxx  |   71 ++
 sd/source/ui/view/sdview.cxx  |   13 
 7 files changed, 151 insertions(+), 1 deletion(-)

New commits:
commit f0c25c751cf8e166a84b289746bce6202a40391d
Author: Miklos Vajna 
Date:   Fri Feb 16 18:08:46 2018 +0100

tdf#115783 sd: fix lost char attributes during in-table copy&paste

The SvxFontHeightItem (12pt) is originally a character-level property on
the table cell (covering the whole cell text) but when the user sets the
font height of the cell,
sdr::properties::CellProperties::ItemSetChanged() will turn that into a
paragraph-level property. This is fine, except that this way the
property has unclear semantics when the user pastes single-paragraph
content into an existing paragraph. (Keep the old paragraph properties?
Use the new ones?)

The current behavior is that sd::View::OnEndPasteOrDrop() calls into
ContentAttribs::SetStyleSheet() at the end of the paste, which removes
paragraph-level formatting (giving visibility to the from-style 18pt
font height this way for the existing content), so both the old and the
new paragraph formatting is lost.

Improve the situation by copying these paragraph-level character
properties back to character-level before paste at the paste position
(so doc model is back to the state after load), that way font height and
similar properties are not removed by the on-end-paste handler.

Change-Id: I43d321dedcda6c0df9b009b9d99c3544f783473c
Reviewed-on: https://gerrit.libreoffice.org/49868
Reviewed-by: Miklos Vajna 
Tested-by: Jenkins 

diff --git a/editeng/source/editeng/editeng.cxx 
b/editeng/source/editeng/editeng.cxx
index d434114b9119..dcadbdc03db9 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -1738,6 +1738,13 @@ const SfxPoolItem& EditEngine::GetParaAttrib( sal_Int32 
nPara, sal_uInt16 nWhich
 return pImpEditEngine->GetParaAttrib( nPara, nWhich );
 }
 
+void EditEngine::SetCharAttribs(sal_Int32 nPara, const SfxItemSet& rSet)
+{
+EditSelection aSel(pImpEditEngine->ConvertSelection(nPara, 0, nPara, 
GetTextLen(nPara)));
+pImpEditEngine->SetAttribs(aSel, rSet);
+pImpEditEngine->FormatAndUpdate();
+}
+
 void EditEngine::GetCharAttribs( sal_Int32 nPara, std::vector& 
rLst ) const
 {
 pImpEditEngine->GetCharAttribs( nPara, rLst );
diff --git a/editeng/source/outliner/outliner.cxx 
b/editeng/source/outliner/outliner.cxx
index 5c310ceab03a..869ecb72a2e2 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -746,6 +746,11 @@ void Outliner::SetParaAttribs( sal_Int32 nPara, const 
SfxItemSet& rSet )
 pEditEngine->SetParaAttribs( nPara, rSet );
 }
 
+void Outliner::SetCharAttribs(sal_Int32 nPara, const SfxItemSet& rSet)
+{
+pEditEngine->SetCharAttribs(nPara, rSet);
+}
+
 bool Outliner::Expand( Paragraph const * pPara )
 {
 if ( pParaList->HasHiddenChildren( pPara ) )
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index c47c281f22bb..fc3a6713707a 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -313,6 +313,8 @@ public:
 virtual voidSetParaAttribs( sal_Int32 nPara, const SfxItemSet& 
rSet );
 const SfxItemSet&   GetParaAttribs( sal_Int32 nPara ) const;
 
+/// Set attributes from rSet an all characters of nPara.
+void SetCharAttribs(sal_Int32 nPara, const SfxItemSet& rSet);
 voidGetCharAttribs( sal_Int32 nPara, 
std::vector& rLst ) const;
 
 SfxItemSet  GetAttribs( sal_Int32 nPara, sal_Int32 nStart, sal_Int32 
nEnd, GetAttribsFlags nFlags = GetAttribsFlags::ALL ) const;
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index aad54a179ae4..1b65a7bf215f 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -892,6 +892,8 @@ public:
 // Only for EditEngine mode
 voidQuickInsertText( const OUString& rText, const ESelection& 
rSel );
 voidQuickDelete( const ESelection& rSel );
+/// Set attributes from rSet an all characters of nPara.
+void SetCharAttribs(sal_Int32 nPara, const SfxItemSet& rSet);
 voidRemoveCharAttribs( sal_Int32 nPara, sal_uInt16 nWhich = 0 
);
 voidQuickFormatDoc();
 
diff --git a/sd/qa/unit/tiledrendering/data/tdf115783.fodp 
b/sd/qa/unit/tiledrendering/data/tdf115783.fodp
new file mode 100644
index ..d9ada63ad15e
--- /dev/null
+++ b/sd/qa/unit/tiledrendering/data/tdf115783.fodp
@@ -0,0 +1,52 @@
+
+http://www.w3.org/1999/xlink"; 

Re: UITest_writerperfect_epubexport hang (only sometimes)


On 31.01.2018 11:20, Stephan Bergmann wrote:

On 23.01.2018 09:18, Miklos Vajna wrote:

I've added UITest_writerperfect_epubexport a while ago, and while I did
not see it hanging in the recent past, both Noel and Stephan run into
a hang of it from time to time.

The code is here:

writerperfect/qa/uitest/epubexport/epubexport.py

The backtrace always looks like this:
self.ui_test.execute_blocking_action() gets an UNO method where invoking
it opens a dialog and the python method also gets a callback. When the
hang happens, then it seems the problem is that the Python thread waits
for the dialog to be closed, but in fact it's already closed, so it
waits forever joining the python thread.

I don't think there is anything really special in this test, rather I
guess the problem happens here more frequently (than elsewhere) because
normally these dialogs are invoked via UNO commands, where we just
execute the UNO command, wait for the dialog to appear then work with
it. (I did not look at the implementation, perhaps in this case there is
no Python thread involved?)

So I wonder -- do you think it would be possible or would make sense to
have a way similar to self.xUITest.executeCommand (execute a blocking
command async), but for UNO methods that open a dialog? I.e. also
similar to self.ui_test.execute_blocking_action, but without an actual
callback.

Perhaps that would be a fix for these strange hangs.


Is anything blocking this? 
 
is yet another hung Gerrit/Jenkins build that might or might not be 
caused by this issue.


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


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

 sc/qa/unit/data/xml/background-color-standard.xml |  150 ++
 sc/qa/unit/subsequent_filters-test.cxx|   49 +++
 2 files changed, 199 insertions(+)

New commits:
commit 028d4f9025c0d285bc5acdd0250b9e8120156925
Author: Kohei Yoshida 
Date:   Fri Feb 16 15:54:15 2018 -0500

Add a test case for importing cell background colors...

... from an Excel 2003 XML file via orcus.

Change-Id: I58783acf80de7935e98673b982d8cfb0d4f085ce
Reviewed-on: https://gerrit.libreoffice.org/49880
Tested-by: Jenkins 
Reviewed-by: Kohei Yoshida 

diff --git a/sc/qa/unit/data/xml/background-color-standard.xml 
b/sc/qa/unit/data/xml/background-color-standard.xml
new file mode 100644
index ..7ccfef8a2e23
--- /dev/null
+++ b/sc/qa/unit/data/xml/background-color-standard.xml
@@ -0,0 +1,150 @@
+
+
+http://www.w3.org/TR/REC-html40";>
+ 
+  Kohei Yoshida
+  Kohei Yoshida
+  2013-10-21T23:43:59Z
+  2013-10-21T23:51:49Z
+  16.00
+ 
+ 
+  
+ 
+ 
+  9270
+  24915
+  480
+  120
+  False
+  False
+ 
+ 
+  
+   
+   
+   
+   
+   
+   
+  
+  
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+ 
+ 
+  
+   
+   
+Background 
Color
+   
+   
+Dark Red
+   
+   
+Red
+   
+   
+Orange
+   
+   
+Yellow
+   
+   
+Light Green
+   
+   
+Green
+   
+   
+Light Blue
+   
+   
+Blue
+   
+   
+Dark Blue
+   
+   
+Purple
+   
+  
+  
+   
+
+
+
+   
+   
+
+600
+600
+   
+   
+   
+
+ 3
+ 12
+
+   
+   False
+   False
+  
+ 
+
diff --git a/sc/qa/unit/subsequent_filters-test.cxx 
b/sc/qa/unit/subsequent_filters-test.cxx
index a38396ceb674..5eb5303b397f 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -236,6 +236,7 @@ public:
 #endif
 
 void testMergedCellsXLSXML();
+void testBackgroundColorStandardXLSXML();
 
 CPPUNIT_TEST_SUITE(ScFiltersTest);
 CPPUNIT_TEST(testBooleanFormatXLSX);
@@ -359,6 +360,7 @@ public:
 CPPUNIT_TEST(testUnicodeFileNameGnumeric);
 #endif
 CPPUNIT_TEST(testMergedCellsXLSXML);
+CPPUNIT_TEST(testBackgroundColorStandardXLSXML);
 
 CPPUNIT_TEST_SUITE_END();
 
@@ -3535,6 +3537,53 @@ void ScFiltersTest::testMergedCellsXLSXML()
 xDocSh->DoClose();
 }
 
+void ScFiltersTest::testBackgroundColorStandardXLSXML()
+{
+ScDocShellRef xDocSh = loadDoc("background-color-standard.", 
FORMAT_XLS_XML);
+CPPUNIT_ASSERT_MESSAGE("Failed to load background-color-standard.xml", 
xDocSh.is());
+ScDocument& rDoc = xDocSh->GetDocument();
+
+struct Check
+{
+OUString aCellValue;
+Color aFontColor;
+Color aBgColor;
+};
+
+const std::vector aChecks =
+{
+{ OUString("Background Color"), Color(COL_BLACK), 
Color(COL_TRANSPARENT) },
+{ OUString("Dark Red"), Color(COL_WHITE), Color(192,  0,0) 
  },
+{ OUString("Red"),  Color(COL_WHITE), Color(255,  0,0) 
  },
+{ OUString("Orange"),   Color(COL_WHITE), Color(255, 192,   0) 
  },
+{ OUString("Yellow"),   Color(COL_WHITE), Color(255, 255

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

 sc/source/ui/docshell/arealink.cxx |   79 +
 sc/source/ui/miscdlgs/linkarea.cxx |7 +++
 2 files changed, 52 insertions(+), 34 deletions(-)

New commits:
commit 40530d0ce4883ac999d53f86c0483e1a47c9fd74
Author: Eike Rathke 
Date:   Fri Feb 16 22:47:02 2018 +0100

Resolves: tdf#114995 support CSV as Link to External Data

... with one CSV_all range for all data.

Change-Id: Ibe7a8f5141394eb4592e83a69e620e4b1a6b5221

diff --git a/sc/source/ui/docshell/arealink.cxx 
b/sc/source/ui/docshell/arealink.cxx
index cc98d0744adc..81e2c7cf5b0d 100644
--- a/sc/source/ui/docshell/arealink.cxx
+++ b/sc/source/ui/docshell/arealink.cxx
@@ -270,16 +270,32 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const 
OUString& rNewFilter,
 // find total size of source area
 SCCOL nWidth = 0;
 SCROW nHeight = 0;
+ScRangeList aSourceRanges;
+
+if (rNewFilter == "Text - txt - csv (StarCalc)" && aTempArea == "CSV_all")
+{
+// The dummy All range. All data, including top/left empty
+// rows/columns.
+aTempArea.clear();
+SCCOL nEndCol = 0;
+SCROW nEndRow = 0;
+if (rSrcDoc.GetCellArea( 0, nEndCol, nEndRow))
+{
+aSourceRanges.Append( ScRange( 0,0,0, nEndCol, nEndRow, 0));
+nWidth = nEndCol + 1;
+nHeight = nEndRow + 2;
+}
+}
+
 sal_Int32 nTokenCnt = comphelper::string::getTokenCount(aTempArea, ';');
 sal_Int32 nStringIx = 0;
-sal_Int32 nToken;
-
-for( nToken = 0; nToken < nTokenCnt; nToken++ )
+for (sal_Int32 nToken = 0; nToken < nTokenCnt; ++nToken)
 {
 OUString aToken( aTempArea.getToken( 0, ';', nStringIx ) );
 ScRange aTokenRange;
 if( FindExtRange( aTokenRange, &rSrcDoc, aToken ) )
 {
+aSourceRanges.Append( aTokenRange);
 // columns: find maximum
 nWidth = std::max( nWidth, 
static_cast(aTokenRange.aEnd.Col() - aTokenRange.aStart.Col() + 1) );
 // rows: add row range + 1 empty row
@@ -355,40 +371,35 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const 
OUString& rNewFilter,
 {
 ScDocument aClipDoc( SCDOCMODE_CLIP );
 ScRange aNewTokenRange( aNewRange.aStart );
-nStringIx = 0;
-for( nToken = 0; nToken < nTokenCnt; nToken++ )
+for (size_t nRange = 0; nRange < aSourceRanges.size(); ++nRange)
 {
-OUString aToken( aTempArea.getToken( 0, ';', nStringIx ) );
-ScRange aTokenRange;
-if( FindExtRange( aTokenRange, &rSrcDoc, aToken ) )
+ScRange aTokenRange( *aSourceRanges[nRange]);
+SCTAB nSrcTab = aTokenRange.aStart.Tab();
+ScMarkData aSourceMark;
+aSourceMark.SelectOneTable( nSrcTab );  // selecting for 
CopyToClip
+aSourceMark.SetMarkArea( aTokenRange );
+
+ScClipParam aClipParam(aTokenRange, false);
+rSrcDoc.CopyToClip(aClipParam, &aClipDoc, &aSourceMark, false, 
false);
+
+if ( aClipDoc.HasAttrib( 0,0,nSrcTab, MAXCOL,MAXROW,nSrcTab,
+HasAttrFlags::Merged | HasAttrFlags::Overlapped ) )
 {
-SCTAB nSrcTab = aTokenRange.aStart.Tab();
-ScMarkData aSourceMark;
-aSourceMark.SelectOneTable( nSrcTab );  // selecting 
for CopyToClip
-aSourceMark.SetMarkArea( aTokenRange );
-
-ScClipParam aClipParam(aTokenRange, false);
-rSrcDoc.CopyToClip(aClipParam, &aClipDoc, &aSourceMark, 
false, false);
-
-if ( aClipDoc.HasAttrib( 0,0,nSrcTab, 
MAXCOL,MAXROW,nSrcTab,
-HasAttrFlags::Merged | 
HasAttrFlags::Overlapped ) )
-{
-//! ResetAttrib at document !!!
-
-ScPatternAttr aPattern( rSrcDoc.GetPool() );
-aPattern.GetItemSet().Put( ScMergeAttr() );
 // Defaults
-aPattern.GetItemSet().Put( ScMergeFlagAttr() );
-aClipDoc.ApplyPatternAreaTab( 0,0, MAXCOL,MAXROW, 
nSrcTab, aPattern );
-}
-
-aNewTokenRange.aEnd.SetCol( aNewTokenRange.aStart.Col() + 
(aTokenRange.aEnd.Col() - aTokenRange.aStart.Col()) );
-aNewTokenRange.aEnd.SetRow( aNewTokenRange.aStart.Row() + 
(aTokenRange.aEnd.Row() - aTokenRange.aStart.Row()) );
-ScMarkData aDestMark;
-aDestMark.SelectOneTable( nDestTab );
-aDestMark.SetMarkArea( aNewTokenRange );
-rDoc.CopyFromClip( aNewTokenRange, aDestMark, 
InsertDeleteFlags::ALL, nullptr, &aClipDoc, false );
-aNewTokenRange.aStart.SetRow( aNewTokenRange.aEnd.Row() + 
2 );
+

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

 vcl/source/window/builder.cxx |   24 
 1 file changed, 24 insertions(+)

New commits:
commit 608272840a799e783fd15197c78bfa2b58145cf4
Author: Caolán McNamara 
Date:   Fri Feb 16 14:08:24 2018 +

convert any canonical negative gtk responses to our own

Change-Id: Ie51d843061157190003ccbc91b4392409249c6e3
Reviewed-on: https://gerrit.libreoffice.org/49865
Tested-by: Jenkins 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index d36bc390f319..cd7ffe99d051 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -3388,6 +3388,30 @@ short VclBuilder::get_response(const vcl::Window 
*pWindow) const
 
 void VclBuilder::set_response(const OString& sID, short nResponse)
 {
+switch (nResponse)
+{
+case -5:
+nResponse = RET_OK;
+break;
+case -6:
+nResponse = RET_CANCEL;
+break;
+case -7:
+nResponse = RET_CLOSE;
+break;
+case -8:
+nResponse = RET_YES;
+break;
+case -9:
+nResponse = RET_NO;
+break;
+case -11:
+nResponse = RET_HELP;
+break;
+};
+
+assert(nResponse >= 0);
+
 for (auto & child : m_aChildren)
 {
 if (child.m_sID == sID)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 editeng/source/editeng/editdoc.cxx  |4 
 editeng/source/editeng/editeng.cxx  |   14 +-
 editeng/source/editeng/editview.cxx |8 -
 editeng/source/editeng/impedit.cxx  |   56 
 editeng/source/editeng/impedit2.cxx |   16 +-
 editeng/source/editeng/impedit3.cxx |  154 
 editeng/source/items/numitem.cxx|4 
 editeng/source/items/svxfont.cxx|   18 +-
 editeng/source/outliner/outliner.cxx|   18 +-
 editeng/source/outliner/outlvw.cxx  |8 -
 editeng/source/uno/unoviwou.cxx |8 -
 emfio/source/reader/mtftools.cxx|6 
 emfio/source/reader/wmfreader.cxx   |   12 -
 extensions/source/propctrlr/browserline.cxx |8 -
 extensions/source/propctrlr/browserlistbox.cxx  |8 -
 extensions/source/propctrlr/browserpage.cxx |4 
 extensions/source/propctrlr/standardcontrol.cxx |4 
 extensions/source/scanner/grid.cxx  |8 -
 extensions/source/scanner/sanedlg.cxx   |   12 -
 extensions/source/update/ui/updatecheckui.cxx   |4 
 20 files changed, 187 insertions(+), 187 deletions(-)

New commits:
commit 6d9d8a723f7d92057f26c884ced975f13fc90d8f
Author: Noel Grandin 
Date:   Fri Feb 16 12:18:39 2018 +0200

Revert "loplugin:changetoolsgen in editeng..extensions" and reapply plugin

because I
(a) forgot to insert parentheses which changes the meaning of some 
expressions and
(b) I now use the AdjustFoo calls when changing unary operations, which 
reads much better

This reverts commit 2096aac8b958db66b3ddce16b06dca87edc8ba0a.

Change-Id: I4b5941c4119b95aaefb9180a0ca95a1dbb4ec317
Reviewed-on: https://gerrit.libreoffice.org/49844
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/editeng/source/editeng/editdoc.cxx 
b/editeng/source/editeng/editdoc.cxx
index 55fe0bac0114..50e16d6ba63b 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1027,14 +1027,14 @@ Size EditLine::CalcTextSize( ParaPortion& rParaPortion )
 case PortionKind::HYPHENATOR:
 {
 aTmpSz = rPortion.GetSize();
-aSz.setWidth( aSz.Width() + aTmpSz.Width() );
+aSz.AdjustWidth(aTmpSz.Width() );
 if ( aSz.Height() < aTmpSz.Height() )
 aSz.setHeight( aTmpSz.Height() );
 }
 break;
 case PortionKind::TAB:
 {
-aSz.setWidth( aSz.Width() + rPortion.GetSize().Width() );
+aSz.AdjustWidth(rPortion.GetSize().Width() );
 }
 break;
 case PortionKind::LINEBREAK: break;
diff --git a/editeng/source/editeng/editeng.cxx 
b/editeng/source/editeng/editeng.cxx
index cd383839e4be..d434114b9119 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -222,7 +222,7 @@ void EditEngine::Draw( OutputDevice* pOutDev, const Point& 
rStartPos, short nOri
 Point aStartPos( rStartPos );
 if ( IsVertical() )
 {
-aStartPos.setX( aStartPos.X() + GetPaperSize().Width() );
+aStartPos.AdjustX(GetPaperSize().Width() );
 aStartPos = Rotate( aStartPos, nOrientation, rStartPos );
 }
 pImpEditEngine->Paint( pOutDev, aBigRect, aStartPos, false, nOrientation );
@@ -283,8 +283,8 @@ void EditEngine::Draw( OutputDevice* pOutDev, const 
tools::Rectangle& rOutRect,
 {
 Size aPixSz( 1, 0 );
 aPixSz = pOutDev->PixelToLogic( aPixSz );
-aClipRect.SetRight( aClipRect.Right() + aPixSz.Width() );
-aClipRect.Bottom() += aPixSz.Width();
+aClipRect.AdjustRight(aPixSz.Width() );
+aClipRect.AdjustBottom(aPixSz.Width() );
 }
 pOutDev->IntersectClipRegion( aClipRect );
 }
@@ -1024,12 +1024,12 @@ bool EditEngine::PostKeyEvent( const KeyEvent& 
rKeyEvent, EditView* pEditView, v
 long nH = GetTextHeight( n );
 Point P1( aViewStart.X() + n20 + n20*(n%2), 
aViewStart.Y() + aPos.Y() );
 Point P2( P1 );
-P2.setX( P2.X() + n20 );
-P2.setY( P2.Y() + nH );
+P2.AdjustX(n20 );
+P2.AdjustY(nH );
 pEditView->GetWindow()->SetLineColor();
 pEditView->GetWindow()->SetFillColor( Color( (n%2) ? 
COL_YELLOW : COL_LIGHTGREEN ) );
 pEditView->GetWindow()->DrawRect( tools::Rectangle( 
P1, P2 ) );
-aPos.setY( aPos.Y() + nH );
+aPos.AdjustY(nH );
 }
 }
 bDone = false;
@@ -1346,7 +1346,7 @@ bool EditEngine::PostKeyEvent( const KeyEvent&

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

 include/svx/svdobj.hxx   |   11 +---
 svx/source/svdraw/svdobj.cxx |   55 +--
 2 files changed, 24 insertions(+), 42 deletions(-)

New commits:
commit 1a839524d46cc6cf5924db7f9dcd6847f050ec0f
Author: Noel Grandin 
Date:   Mon Feb 5 10:53:58 2018 +0200

loplugin:useuniqueptr in BaseProperties

Change-Id: Ib503f3ac8e400fa833d31c597fa539d26a91ff08
Reviewed-on: https://gerrit.libreoffice.org/49864
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx
index 36b4b51303a7..2f9542659cb0 100644
--- a/include/svx/svdobj.hxx
+++ b/include/svx/svdobj.hxx
@@ -849,7 +849,8 @@ protected:
 SdrPage*pPage;
 SdrModel*   pModel;
 SdrObjUserCall* pUserCall;
-SdrObjPlusData* pPlusData;// Broadcaster, UserData, 
connectors, ... (this is the Bitsack)
+std::unique_ptr
+pPlusData;// Broadcaster, UserData, 
connectors, ... (this is the Bitsack)
 // object is only pointing to another one
 boolbVirtObj : 1;
 boolbSnapRectDirty : 1;
@@ -932,7 +933,7 @@ private:
 Point aGridOffset;  // hack (Calc)
 SdrObjList*   pObjList; // list that includes this 
object
 sal_uInt32nOrdNum;  // order number of the 
object in the list
-SfxGrabBagItem*   pGrabBagItem; // holds the GrabBagItem 
property
+std::unique_ptr   pGrabBagItem; // holds the GrabBagItem 
property
 // Position in the navigation order. SAL_MAX_UINT32 when not used.
 sal_uInt32mnNavigationPosition;
 SdrLayerIDmnLayerID;
@@ -943,8 +944,10 @@ private:
 // on import of OLE object from MS documents the BLIP size might be 
retrieved,
 // in this case the following member is initialized as nonempty rectangle
 tools::Rectangle maBLIPSizeRectangle;
-sdr::properties::BaseProperties*  mpProperties;
-sdr::contact::ViewContact*mpViewContact;
+std::unique_ptr
+  mpProperties;
+std::unique_ptr
+  mpViewContact;
 bool  mbDelayBroadcastObjectChange : 1;
 mutable bool  mbBroadcastObjectChangePending : 1;
 
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index bcbd47923633..7daf499746de 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -225,8 +225,8 @@ sdr::properties::BaseProperties& SdrObject::GetProperties() 
const
 {
 if(!mpProperties)
 {
-const_cast< SdrObject* >(this)->mpProperties =
-const_cast< SdrObject* >(this)->CreateObjectSpecificProperties();
+const_cast< SdrObject* >(this)->mpProperties.reset(
+const_cast< SdrObject* >(this)->CreateObjectSpecificProperties() );
 }
 
 return *mpProperties;
@@ -262,8 +262,8 @@ sdr::contact::ViewContact& SdrObject::GetViewContact() const
 {
 if(!mpViewContact)
 {
-const_cast< SdrObject* >(this)->mpViewContact =
-const_cast< SdrObject* >(this)->CreateObjectSpecificViewContact();
+const_cast< SdrObject* >(this)->mpViewContact.reset(
+const_cast< SdrObject* >(this)->CreateObjectSpecificViewContact() 
);
 }
 
 return *mpViewContact;
@@ -358,21 +358,11 @@ SdrObject::~SdrObject()
 }
 
 SendUserCall(SdrUserCallType::Delete, GetLastBoundRect());
-delete pPlusData;
+pPlusData.reset();
 
-delete pGrabBagItem;
-
-if(mpProperties)
-{
-delete mpProperties;
-mpProperties = nullptr;
-}
-
-if(mpViewContact)
-{
-delete mpViewContact;
-mpViewContact = nullptr;
-}
+pGrabBagItem.reset();
+mpProperties.reset();
+mpViewContact.reset();
 }
 
 void SdrObject::Free( SdrObject*& _rpObject )
@@ -792,7 +782,7 @@ void SdrObject::GetGrabBagItem(css::uno::Any& rVal) const
 void SdrObject::SetGrabBagItem(const css::uno::Any& rVal)
 {
 if (pGrabBagItem == nullptr)
-pGrabBagItem = new SfxGrabBagItem;
+pGrabBagItem.reset(new SfxGrabBagItem);
 
 pGrabBagItem->PutValue(rVal, 0);
 
@@ -947,22 +937,13 @@ SdrObject& SdrObject::operator=(const SdrObject& rObj)
 if( this == &rObj )
 return *this;
 
-if(mpProperties)
-{
-delete mpProperties;
-mpProperties = nullptr;
-}
-
-if(mpViewContact)
-{
-delete mpViewContact;
-mpViewContact = nullptr;
-}
+mpProperties.reset();
+mpViewContact.reset();
 
 // The Clone() method uses the local copy constructor from the individual
 // sdr::properties::BaseProperties class. Since the target class maybe for 
another
 // draw object, an SdrObject ne

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

 include/svtools/grfmgr.hxx |1 
 sc/source/ui/sidebar/CellBorderUpdater.cxx |   99 ++---
 2 files changed, 22 insertions(+), 78 deletions(-)

New commits:
commit fe96d07621f75e6e5a106407c8ef80ace1b7f137
Author: Noel Grandin 
Date:   Fri Feb 16 13:32:47 2018 +0200

move CellBorderUpdater bitmap update to VirtualDevice

part of the process of making Bitmap an internal detail of vcl/

and remove last outside-of-vcl use of BitmapWriteAccess from
header file.

Change-Id: I59a4353e11f881d24a7be50cf0f91f4f0dcffcaa
Reviewed-on: https://gerrit.libreoffice.org/49850
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx
index 84e60975891f..f4a9d88244b2 100644
--- a/include/svtools/grfmgr.hxx
+++ b/include/svtools/grfmgr.hxx
@@ -74,7 +74,6 @@ enum class GraphicDrawMode
 
 class GraphicManager;
 class SvStream;
-class BitmapWriteAccess;
 class GraphicCache;
 class VirtualDevice;
 struct GrfSimpleCacheObj;
diff --git a/sc/source/ui/sidebar/CellBorderUpdater.cxx 
b/sc/source/ui/sidebar/CellBorderUpdater.cxx
index 64912d6f3898..cc7edb54d63a 100644
--- a/sc/source/ui/sidebar/CellBorderUpdater.cxx
+++ b/sc/source/ui/sidebar/CellBorderUpdater.cxx
@@ -18,7 +18,7 @@
  */
 
 #include "CellBorderUpdater.hxx"
-#include 
+#include 
 #include 
 #include 
 
@@ -38,85 +38,30 @@ CellBorderUpdater::~CellBorderUpdater()
 
 void CellBorderUpdater::UpdateCellBorder(bool bTop, bool bBot, bool bLeft, 
bool bRight, Image const & aImg, bool bVer, bool bHor)
 {
-BitmapExaBmpEx( aImg.GetBitmapEx() );
-Bitmap  aBmp( aBmpEx.GetBitmap() );
-BitmapWriteAccess*  pBmpAcc = aBmp.AcquireWriteAccess();
-const Size aBmpSize = aBmp.GetSizePixel();
+const Size aBmpSize = aImg.GetBitmapEx().GetSizePixel();
+if(aBmpSize.Width() != 43 || aBmpSize.Height() != 43)
+return;
 
-if( pBmpAcc )
-{
-Bitmap  aMsk;
-BitmapWriteAccess*  pMskAcc;
+ScopedVclPtr pVirDev(VclPtr::Create());
+pVirDev->SetOutputSizePixel(aBmpSize);
+pVirDev->SetLineColor( 
::Application::GetSettings().GetStyleSettings().GetFieldTextColor() ) ;
+pVirDev->SetFillColor( COL_BLACK);
 
-if( aBmpEx.IsAlpha() )
-pMskAcc = ( aMsk = aBmpEx.GetAlpha().GetBitmap() 
).AcquireWriteAccess();
-else if( aBmpEx.IsTransparent() )
-pMskAcc = ( aMsk = aBmpEx.GetMask() ).AcquireWriteAccess();
-else
-pMskAcc = nullptr;
+Point aTL(2, 1), aTR(42,1), aBL(2, 41), aBR(42, 41), aHL(2,21), aHR(42, 
21), aVT(22,1), aVB(22, 41);
+if(bLeft)
+pVirDev->DrawLine( aTL,aBL );
+if(bRight)
+pVirDev->DrawLine( aTR,aBR );
+if(bTop)
+pVirDev->DrawLine( aTL,aTR );
+if(bBot)
+pVirDev->DrawLine( aBL,aBR );
+if(bVer)
+pVirDev->DrawLine( aVT,aVB );
+if(bHor)
+pVirDev->DrawLine( aHL,aHR );
 
-pBmpAcc->SetLineColor( 
::Application::GetSettings().GetStyleSettings().GetFieldTextColor() ) ;
-pBmpAcc->SetFillColor( COL_BLACK);
-
-if(aBmpSize.Width() == 43 && aBmpSize.Height() == 43)
-{
-Point aTL(2, 1), aTR(42,1), aBL(2, 41), aBR(42, 41), aHL(2,21), 
aHR(42, 21), aVT(22,1), aVB(22, 41);
-if( pMskAcc )
-{
-pMskAcc->SetLineColor( COL_BLACK );
-pMskAcc->SetFillColor( COL_BLACK );
-}
-if(bLeft)
-{
-pBmpAcc->DrawLine( aTL,aBL );
-if( pMskAcc )
-pMskAcc->DrawLine( aTL,aBL );
-}
-if(bRight)
-{
-pBmpAcc->DrawLine( aTR,aBR );
-if( pMskAcc )
-pMskAcc->DrawLine( aTR,aBR );
-}
-if(bTop)
-{
-pBmpAcc->DrawLine( aTL,aTR );
-if( pMskAcc )
-pMskAcc->DrawLine( aTL,aTR );
-}
-if(bBot)
-{
-pBmpAcc->DrawLine( aBL,aBR );
-if( pMskAcc )
-pMskAcc->DrawLine( aBL,aBR );
-}
-if(bVer)
-{
-pBmpAcc->DrawLine( aVT,aVB );
-if( pMskAcc )
-pMskAcc->DrawLine( aVT,aVB );
-}
-if(bHor)
-{
-pBmpAcc->DrawLine( aHL,aHR );
-if( pMskAcc )
-pMskAcc->DrawLine( aHL,aHR );
-}
-}
-
-Bitmap::ReleaseAccess( pBmpAcc );
-if( pMskAcc )
-Bitmap::ReleaseAccess( pMskAcc );
-
-if( aBmpEx.IsAlpha() )
-aBmpEx = BitmapEx( aBmp, AlphaMask( aMsk ) );
-else if( aBmpEx.IsTransparent() )
-aBmpEx = BitmapEx( aBmp, aMsk );
-else
-aBmpEx = aBmp;
-
-mrTbx.SetItemImage( mnBtnId, Image( aBmpEx 

[Libreoffice-commits] core.git: 2 commits - avmedia/source basctl/source basic/source canvas/source chart2/source cui/source

 avmedia/source/framework/mediacontrol.cxx   |   42 
 basctl/source/basicide/baside2.cxx  |   10 +--
 basctl/source/basicide/baside2b.cxx |   18 +++---
 basctl/source/basicide/basides1.cxx |6 +-
 basctl/source/basicide/objdlg.cxx   |4 -
 basctl/source/dlged/dlged.cxx   |   24 -
 basctl/source/dlged/dlgedobj.cxx|   24 -
 basctl/source/dlged/propbrw.cxx |8 +--
 basic/source/runtime/inputbox.cxx   |6 +-
 canvas/source/vcl/canvashelper_texturefill.cxx  |4 -
 chart2/source/controller/dialogs/DataBrowser.cxx|2 
 chart2/source/controller/dialogs/dlg_CreationWizard.cxx |2 
 chart2/source/controller/main/DrawCommandDispatch.cxx   |4 -
 cui/source/customize/macropg.cxx|6 +-
 cui/source/dialogs/colorpicker.cxx  |   20 +++
 cui/source/dialogs/cuicharmap.cxx   |8 +--
 cui/source/dialogs/hangulhanjadlg.cxx   |   26 -
 cui/source/dialogs/thesdlg.cxx  |6 +-
 cui/source/options/dbregister.cxx   |4 -
 cui/source/options/optlingu.cxx |6 +-
 cui/source/tabpages/autocdlg.cxx|4 -
 cui/source/tabpages/backgrnd.cxx|4 -
 cui/source/tabpages/grfpage.cxx |8 +--
 cui/source/tabpages/numpages.cxx|8 +--
 cui/source/tabpages/page.cxx|6 +-
 25 files changed, 130 insertions(+), 130 deletions(-)

New commits:
commit bddd6c77811e0489a5632437116f5eec356cc397
Author: Noel Grandin 
Date:   Fri Feb 16 13:01:37 2018 +0200

Revert "loplugin:changetoolsgen in avmedia..basic" and reapply plugin

because I
(a) forgot to insert parentheses which changes the meaning of some 
expressions and
(b) I now use the AdjustFoo calls when changing unary operations, which 
reads much better

This reverts commit 1adb1a320a7e9832a41545bde13fd59d27ce7954.

Change-Id: I52924b35008c8e4b44c8a6b6657cc3a1ac513886
Reviewed-on: https://gerrit.libreoffice.org/49848
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/avmedia/source/framework/mediacontrol.cxx 
b/avmedia/source/framework/mediacontrol.cxx
index e7ea43d2eb4c..59f6c3cce90e 100644
--- a/avmedia/source/framework/mediacontrol.cxx
+++ b/avmedia/source/framework/mediacontrol.cxx
@@ -71,22 +71,22 @@ MediaControl::MediaControl( vcl::Window* pParent, 
MediaControlStyle eControlStyl
 mpTimeSlider->SetEndSlideHdl( LINK( this, MediaControl, implTimeEndHdl ) );
 mpTimeSlider->SetSizePixel( Size( 128, 
mpPlayToolBox->GetSizePixel().Height() ) );
 mpTimeSlider->Show();
-maMinSize.Width() += mpTimeSlider->GetSizePixel().Width();
+maMinSize.AdjustWidth(mpTimeSlider->GetSizePixel().Width() );
 
 const OUString aTimeText( " 00:00:00/00:00:00 " );
 mpTimeEdit->SetSizePixel( Size( mpTimeEdit->GetTextWidth( aTimeText ) + 8, 
mpPlayToolBox->GetSizePixel().Height() ) );
 mpTimeEdit->SetControlBackground( 
Application::GetSettings().GetStyleSettings().GetWindowColor() );
-maMinSize.Width() += mpTimeEdit->GetSizePixel().Width();
+maMinSize.AdjustWidth(mpTimeEdit->GetSizePixel().Width() );
 
 mpMuteToolBox->SetSelectHdl( LINK( this, MediaControl, implSelectHdl ) );
 mpMuteToolBox->SetSizePixel( mpMuteToolBox->CalcWindowSizePixel() );
 mpMuteToolBox->Show();
-maMinSize.Width() += mpMuteToolBox->GetSizePixel().Width();
+maMinSize.AdjustWidth(mpMuteToolBox->GetSizePixel().Width() );
 
 mpVolumeSlider->SetSlideHdl( LINK( this, MediaControl, implVolumeHdl ) );
 mpVolumeSlider->SetSizePixel( Size( 48, 
mpPlayToolBox->GetSizePixel().Height() ) );
 mpVolumeSlider->Show();
-maMinSize.Width() += mpVolumeSlider->GetSizePixel().Width();
+maMinSize.AdjustWidth(mpVolumeSlider->GetSizePixel().Width() );
 
 mpZoomListBox->SetSizePixel( Size( mpTimeEdit->GetSizePixel().Width(), 260 
) );
 mpZoomListBox->SetSelectHdl( LINK( this, MediaControl, implZoomSelectHdl ) 
);
@@ -98,7 +98,7 @@ MediaControl::MediaControl( vcl::Window* pParent, 
MediaControlStyle eControlStyl
 mpZoomToolBox->SetSelectHdl( LINK( this, MediaControl, implSelectHdl ) );
 mpZoomToolBox->SetSizePixel( mpZoomToolBox->CalcWindowSizePixel() );
 mpZoomToolBox->Show();
-maMinSize.Width() += mpZoomToolBox->GetSizePixel().Width();
+maMinSize.AdjustWidth(mpZoomToolBox->GetSizePixel().Width() );
 
 const OUString aMediaPath( AvmResId( AVMEDIA_MEDIA_PATH_DEFAULT ) );
 mpMediaPath->SetText(aMediaPath);
@@ -106,12 +106,12 @@ MediaControl::MediaControl( vcl::Window* pParent, 
MediaControlStyle eControlStyl
 mpMediaPath->SetSizePixel( Size( mpMediaPath

[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - loleaflet/src loleaflet/unocommands.js

 loleaflet/src/control/Control.Menubar.js |9 +
 loleaflet/unocommands.js |8 
 2 files changed, 17 insertions(+)

New commits:
commit 785fb7e34a16e7d60f13256b306fd74598fea06b
Author: Henry Castro 
Date:   Fri Feb 16 10:23:01 2018 -0400

loleaflet: add "Insert Fields" menu

Field
Page Number
Page Count
Date
Time
Title
Author
Subject

Change-Id: I4360372312abab04c34411bdca317b59c93141c4
Reviewed-on: https://gerrit.libreoffice.org/49866
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/loleaflet/src/control/Control.Menubar.js 
b/loleaflet/src/control/Control.Menubar.js
index 349b7b5f..f2ba32ef 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -64,6 +64,15 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:InsertGraphic', 'text'), id: 
'insertgraphic', type: 'action'},
{name: _UNO('.uno:InsertAnnotation', 'text'), 
id: 'insertcomment', type: 'action'},
{type: 'separator'},
+   {name: _UNO('.uno:InsertField', 'text'), type: 
'menu', menu: [
+   {uno: '.uno:InsertPageNumberField'},
+   {uno: '.uno:InsertPageCountField'},
+   {uno: '.uno:InsertDateField'},
+   {uno: '.uno:InsertTimeField'},
+   {uno: '.uno:InsertTitleField'},
+   {uno: '.uno:InsertAuthorField'},
+   {uno: '.uno:InsertTopicField'}
+   ]},
{name: _UNO('.uno:InsertHeaderFooterMenu', 
'text'), type: 'menu', menu: [
{name: _UNO('.uno:InsertPageHeader', 
'text'), type: 'menu', menu: [
{name: _('All'), disabled: 
true, id: 'insertheader', tag: '_ALL_', uno: '.uno:InsertPageHeader?'}]},
diff --git a/loleaflet/unocommands.js b/loleaflet/unocommands.js
index b11631ce..d537e01c 100644
--- a/loleaflet/unocommands.js
+++ b/loleaflet/unocommands.js
@@ -84,12 +84,15 @@ var unoCommandsArray = {
IncrementLevel:{text:{menu:_('Promote One Level'),},},
IncrementSubLevels:{text:{menu:_('Promote One Level With 
Subpoints'),},},
InsertAnnotation:{global:{context:_('Insert 
Comment'),menu:_('Comme~nt'),},presentation:{menu:_('Comme~nt'),},spreadsheet:{context:_('Insert
 Co~mment'),menu:_('Comm~ent'),},},
+   
InsertAuthorField:{presentation:{menu:_('~Author'),},text:{menu:_('~Author'),},},
InsertBreakMenu:{spreadsheet:{menu:_('Insert Page ~Break'),},},
InsertColumnBreak:{spreadsheet:{menu:_('~Column 
Break'),},text:{menu:_('Insert Column Break'),},},
InsertColumnsAfter:{presentation:{menu:_('Insert Column 
Right'),},spreadsheet:{context:_('Insert Columns ~Right'),menu:_('Columns 
~Right'),},text:{menu:_('Columns R~ight'),},},
InsertColumnsBefore:{presentation:{menu:_('Insert Column 
Left'),},spreadsheet:{context:_('Insert Columns ~Left'),menu:_('Columns 
~Left'),},text:{menu:_('Columns ~Left'),},},
InsertColumnsMenu:{spreadsheet:{menu:_('Insert Co~lumns'),},},
+   InsertDateField:{text:{menu:_('~Date'),},},
InsertEndnote:{text:{menu:_('~Endnote'),},},
+   InsertField:{text:{menu:_('~Fields'),},},
InsertFootnote:{text:{menu:_('~Footnote'),},},
InsertGraphic:{global:{context:_('Insert 
Image'),menu:_('~Image...'),},},
InsertHardHyphen:{global:{menu:_('Non-br~eaking hyphen'),},},
@@ -101,6 +104,8 @@ var unoCommandsArray = {
InsertNonBreakingSpace:{global:{menu:_('~Non-breaking space'),},},
InsertPageFooter:{text:{menu:_('Foote~r'),},},
InsertPageHeader:{text:{menu:_('He~ader'),},},
+   InsertPageCountField:{text:{menu:_('Page ~Count'),},},
+   InsertPageNumberField:{global:{menu:_('~Page 
Numbers...'),},text:{menu:_('~Page Number'),},},
InsertPagebreak:{text:{menu:_('~Page Break'),},},
InsertRLM:{global:{menu:_('~Right-to-left mark'),},},
InsertRowBreak:{spreadsheet:{menu:_('~Row Break'),},},
@@ -110,6 +115,9 @@ var unoCommandsArray = {
InsertSlide:{presentation:{menu:_('New Slid~e'),},},
InsertSoftHyphen:{global:{menu:_('S~oft hyphen'),},},
InsertSymbol:{global:{context:_('Insert Special 
Character'),menu:_('S~pecial Character...'),},},
+   InsertTimeField:{global:{menu:_('Time 
Field'),},text:{menu:_('~Time'),},},
+   InsertTitleField:{text:{menu:_('T~itle'),},},
+   InsertTopicField:{text:{menu:_('~Subject'),},},
InsertZWNBSP:{global:{menu:_('No-width no ~break'),},},
InsertZWSP:{global:{menu:_('No-~width optiona

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

 vcl/source/window/window.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 11fab5aeaaa72012c63b2c812656a932ef0debf9
Author: Telesto 
Date:   Fri Feb 16 13:44:38 2018 +0200

tdf#115315 Cursor not in focus with new document

Partial revert of 7aae8772aa18744cb1bbd8348272be99cc882c47
("Clear VclPtr instance reference on removed UserEvents.")
Disposing of child controls should not affect focus events
of the parent frame.

Change-Id: I583311050560a2851cfcc372741b675b52375d06
Reviewed-on: https://gerrit.libreoffice.org/49855
Reviewed-by: Maxim Monastirsky 
Tested-by: Jenkins 
Reviewed-by: Michael Meeks 

diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 6a9612f36e8e..388c793c03d7 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -489,7 +489,7 @@ void Window::dispose()
 if ( pSVData->maWinData.mpLastDeacWin == this )
 pSVData->maWinData.mpLastDeacWin = nullptr;
 
-if ( mpWindowImpl->mpFrameData )
+if ( mpWindowImpl->mbFrame && mpWindowImpl->mpFrameData )
 {
 if ( mpWindowImpl->mpFrameData->mnFocusId )
 Application::RemoveUserEvent( mpWindowImpl->mpFrameData->mnFocusId 
);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

 odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1ce138c74bfa46c7fa5a80f71e977f95591d5f34
Author: Stephan Bergmann 
Date:   Fri Feb 16 14:33:47 2018 +0100

Adding props to extensible group must use op "replace" (or "fuse")

Change-Id: Ic0101b4baee78096d9ee3b2a6a086a7e808d4d1e
Reviewed-on: https://gerrit.libreoffice.org/49862
Tested-by: Jenkins 
Reviewed-by: Stephan Bergmann 

diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu 
b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu
index ff1baf5e38ec..f97f202c651e 100644
--- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu
+++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/Jobs.xcu
@@ -23,7 +23,7 @@
 
com.sun.star.comp.framework.java.services.AsyncJob
 
 
-
+
 val_1
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/examples

 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
  |6 --
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
 |6 --
 odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu  
 |6 --
 3 files changed, 18 deletions(-)

New commits:
commit b4550ff54f55829a5c9266d0058168e7e8d69a34
Author: Stephan Bergmann 
Date:   Fri Feb 16 14:31:48 2018 +0100

PopupMenu template doesn't have Target/ImageIdentifier properties

Change-Id: Ic36f4c6fcf657a7a10e4872856cbb7fc1928c3eb
Reviewed-on: https://gerrit.libreoffice.org/49861
Tested-by: Jenkins 
Reviewed-by: Stephan Bergmann 

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
index 350b24e554ba..e891edaaef15 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu
@@ -66,12 +66,6 @@
 
 Add-On example
 
-
-_self
-
-
-
-
 
 
 
diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
index bf2e26fc54f5..4e23a827e945 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Addons.xcu
@@ -66,12 +66,6 @@
 
 Add-On example
 
-
-_self
-
-
-
-
 
 
 
diff --git a/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu 
b/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu
index 89136e9dc09a..2cae636272c1 100644
--- a/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu
+++ b/odk/examples/DevelopersGuide/Extensions/DialogWithHelp/Addons.xcu
@@ -24,12 +24,6 @@
   
   Foo E~xtension
 
-
-  _self
-
-
-  
-
 
   
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: odk/CustomTarget_build-examples.mk

 odk/CustomTarget_build-examples.mk |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 7b468e1d11b41678232dc05f80c853165fbbacc2
Author: Stephan Bergmann 
Date:   Fri Feb 16 14:29:49 2018 +0100

Start each run of CustomTarget_odk/build-examples with a clean slate

Change-Id: Icf6a12254b32c6fcdb7e9cbe1057c73907cf3005
Reviewed-on: https://gerrit.libreoffice.org/49860
Tested-by: Jenkins 
Reviewed-by: Stephan Bergmann 

diff --git a/odk/CustomTarget_build-examples.mk 
b/odk/CustomTarget_build-examples.mk
index f7dc1db1e30d..d8d64d353927 100644
--- a/odk/CustomTarget_build-examples.mk
+++ b/odk/CustomTarget_build-examples.mk
@@ -93,6 +93,7 @@ ifneq ($(gb_SUPPRESS_TESTS),)
@true
 else
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1)
+   rm -fr $(call gb_CustomTarget_get_workdir,odk/build-examples)/{out,user}
 ifeq (MACOSX,$(OS))
$(eval ODK_BUILD_SHELL := $(shell $(gb_MKTEMP)))
cp /bin/sh "$(ODK_BUILD_SHELL)"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 sfx2/uiconfig/ui/helpmanual.ui |6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 7acca8bfe3c1e73ad1b52687370c04d319a88588
Author: Caolán McNamara 
Date:   Fri Feb 16 13:42:03 2018 +

take defaults and add missing cancel response

Change-Id: I778ecfa3aa552389dceb4921385b4a723d110b37
Reviewed-on: https://gerrit.libreoffice.org/49863
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/sfx2/uiconfig/ui/helpmanual.ui b/sfx2/uiconfig/ui/helpmanual.ui
index e750ed0c7a96..08bfd238bd23 100644
--- a/sfx2/uiconfig/ui/helpmanual.ui
+++ b/sfx2/uiconfig/ui/helpmanual.ui
@@ -1,5 +1,5 @@
 
-
+
 
   
   
@@ -15,12 +15,9 @@
   
 False
 vertical
-6
 
   
 False
-True
-end
 
   
 Read Help Online
@@ -62,6 +59,7 @@
 
 
   website
+  cancel
 
   
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: include/svx oox/source sd/qa svx/source

 include/svx/svdotext.hxx |2 +
 oox/source/export/drawingml.cxx  |   19 ++
 sd/qa/unit/data/pptx/font-scale.pptx |binary
 sd/qa/unit/export-tests-ooxml2.cxx   |   14 +++
 svx/source/svdraw/svdotext.cxx   |   63 +++
 5 files changed, 97 insertions(+), 1 deletion(-)

New commits:
commit 2c2919cb591d88b11bb2e25e45d6f75923821457
Author: Szymon Kłos 
Date:   Tue Feb 13 17:47:23 2018 +0100

PPTX export scale for TextFitToSize

MSO requires to save fontScale attribute to have
all the text shown properly (with FitToSize property)

Values are approximated, after any modification in MSO
scale is recalculated.

Change-Id: I73657fdd663b540b436747cfeeef3c76e8fe388c
Reviewed-on: https://gerrit.libreoffice.org/49742
Tested-by: Jenkins 
Reviewed-by: Szymon Kłos 

diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx
index 4f862638ce8b..dd9972b3ce56 100644
--- a/include/svx/svdotext.hxx
+++ b/include/svx/svdotext.hxx
@@ -213,6 +213,7 @@ protected:
 
 virtual SdrObject* getFullDragClone() const override;
 
+
 public:
 const Point& GetTextEditOffset() const { return maTextEditOffset; }
 void SetTextEditOffset(const Point& rNew) { maTextEditOffset = rNew; }
@@ -385,6 +386,7 @@ public:
 // FitToSize and Fontwork are not taken into account in GetTextSize()!
 virtual const Size& GetTextSize() const;
 void FitFrameToTextSize();
+double GetFontScaleY() const;
 
 // Simultaneously sets the text into the Outliner (possibly
 // the one of the EditOutliner) and sets the PaperSize.
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 0503a088faf7..52807f28be3d 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -2553,8 +2553,25 @@ void DrawingML::WriteText( const Reference< XInterface 
>& rXIface, const OUStrin
 TextFitToSizeType eFit = TextFitToSizeType_NONE;
 if (GETA(TextFitToSize))
 mAny >>= eFit;
+
 if (eFit == TextFitToSizeType_AUTOFIT)
-mpFS->singleElementNS(XML_a, XML_normAutofit, FSEND);
+{
+const sal_Int32 MAX_SCALE_VAL = 10;
+sal_Int32 nFontScale = MAX_SCALE_VAL;
+SvxShapeText* pTextShape = 
dynamic_cast(rXIface.get());
+if (pTextShape)
+{
+SdrTextObj* pTextObject = 
dynamic_cast(pTextShape->GetSdrObject());
+if (pTextObject)
+{
+double fScaleY = pTextObject->GetFontScaleY();
+nFontScale = static_cast(fScaleY * 100) * 
1000;
+}
+}
+
+mpFS->singleElementNS(XML_a, XML_normAutofit, XML_fontScale,
+( nFontScale < MAX_SCALE_VAL && nFontScale > 0 ) ? 
I32S(nFontScale) : nullptr, FSEND);
+}
 }
 mpFS->endElementNS((nXmlNamespace ? nXmlNamespace : XML_a), 
XML_bodyPr);
 }
diff --git a/sd/qa/unit/data/pptx/font-scale.pptx 
b/sd/qa/unit/data/pptx/font-scale.pptx
new file mode 100644
index ..df33b20cebca
Binary files /dev/null and b/sd/qa/unit/data/pptx/font-scale.pptx differ
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx 
b/sd/qa/unit/export-tests-ooxml2.cxx
index 062dab0c4cd0..51e13eb80a5e 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -128,6 +128,7 @@ public:
 void testTdf90626();
 void testTdf107608();
 void testTdf111786();
+void testFontScale();
 void testTdf115394();
 void testTdf115394Zero();
 
@@ -183,6 +184,7 @@ public:
 CPPUNIT_TEST(testTdf90626);
 CPPUNIT_TEST(testTdf107608);
 CPPUNIT_TEST(testTdf111786);
+CPPUNIT_TEST(testFontScale);
 CPPUNIT_TEST(testTdf115394);
 CPPUNIT_TEST(testTdf115394Zero);
 
@@ -1406,6 +1408,18 @@ void SdOOXMLExportTest2::testTdf111786()
 xDocShRef->DoClose();
 }
 
+void SdOOXMLExportTest2::testFontScale()
+{
+sd::DrawDocShellRef xDocShRef = 
loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/pptx/font-scale.pptx"), 
PPTX);
+utl::TempFile tempFile;
+xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml");
+
+assertXPath(pXmlDocContent, 
"/p:sld/p:cSld/p:spTree/p:sp/p:txBody/a:bodyPr/a:normAutofit", "fontScale", 
"73000");
+
+xDocShRef->DoClose();
+}
+
 void SdOOXMLExportTest2::testTdf115394()
 {
 sd::DrawDocShellRef xDocShRef = 
loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/pptx/tdf115394.pptx"), 
PPTX);
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index a0cf962a7671..4a9f69d1afe3 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1259,6 +1259,69 @@ void SdrTextObj::ImpSetupDrawOutlinerForPaint( bool  
   bCon

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

 sw/source/filter/ww8/ww8par2.cxx |   16 +++-
 sw/source/filter/ww8/ww8par2.hxx |2 +-
 2 files changed, 8 insertions(+), 10 deletions(-)

New commits:
commit 168c5e4994e1b9e742911273ecb0b959396d5bf0
Author: Caolán McNamara 
Date:   Fri Feb 16 10:45:43 2018 +

ofz#6360 Direct-leak

Change-Id: Ie38a0fce48f1c3bedda08b866b4b5d838b496c77
Reviewed-on: https://gerrit.libreoffice.org/49846
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 3120179717f6..d53929288c57 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -1695,7 +1695,6 @@ WW8TabDesc::WW8TabDesc(SwWW8ImplReader* pIoClass, WW8_CP 
nStartCp) :
 m_pIo(pIoClass),
 m_pFirstBand(nullptr),
 m_pActBand(nullptr),
-m_pTmpPos(nullptr),
 m_pTableNd(nullptr),
 m_pTabLines(nullptr),
 m_pTabLine(nullptr),
@@ -2362,7 +2361,7 @@ void WW8TabDesc::CreateSwTable()
 if (bInsNode)
 m_pIo->AppendTextNode(*pPoint);
 
-m_pTmpPos = new SwPosition( *m_pIo->m_pPaM->GetPoint() );
+m_xTmpPos.reset(new SwPosition(*m_pIo->m_pPaM->GetPoint()));
 
 // The table is small: The number of columns is the lowest count of
 // columns of the origin, because inserting is faster than deleting.
@@ -2370,7 +2369,7 @@ void WW8TabDesc::CreateSwTable()
 // rows of a band can be duplicated easy.
 m_pTable = m_pIo->m_rDoc.InsertTable(
 SwInsertTableOptions( tabopts::HEADLINE_NO_BORDER, 0 ),
-*m_pTmpPos, m_nBands, m_nDefaultSwCols, m_eOri );
+*m_xTmpPos, m_nBands, m_nDefaultSwCols, m_eOri );
 
 OSL_ENSURE(m_pTable && m_pTable->GetFrameFormat(), "insert table failed");
 if (!m_pTable || !m_pTable->GetFrameFormat())
@@ -2388,7 +2387,7 @@ void WW8TabDesc::CreateSwTable()
 // contains a Pagedesc. If so that Pagedesc would be moved to the
 // row after the table, that would be wrong. So delete and
 // set later to the table format.
-if (SwTextNode *const pNd = m_pTmpPos->nNode.GetNode().GetTextNode())
+if (SwTextNode *const pNd = m_xTmpPos->nNode.GetNode().GetTextNode())
 {
 if (const SfxItemSet* pSet = pNd->GetpSwAttrSet())
 {
@@ -2673,9 +2672,9 @@ void WW8TabDesc::ParkPaM()
 
 void WW8TabDesc::MoveOutsideTable()
 {
-OSL_ENSURE(m_pTmpPos && m_pIo, "I've forgotten where the table is 
anchored");
-if (m_pTmpPos && m_pIo)
-*m_pIo->m_pPaM->GetPoint() = *m_pTmpPos;
+OSL_ENSURE(m_xTmpPos.get() && m_pIo, "I've forgotten where the table is 
anchored");
+if (m_xTmpPos && m_pIo)
+*m_pIo->m_pPaM->GetPoint() = *m_xTmpPos;
 }
 
 void WW8TabDesc::FinishSwTable()
@@ -2687,8 +2686,7 @@ void WW8TabDesc::FinishSwTable()
 m_pIo->m_xCtrlStck->SetAttr( *m_pIo->m_pPaM->GetPoint(), 0, false);
 
 MoveOutsideTable();
-delete m_pTmpPos;
-m_pTmpPos = nullptr;
+m_xTmpPos.reset();
 
 aDup.Insert(*m_pIo->m_pPaM->GetPoint());
 
diff --git a/sw/source/filter/ww8/ww8par2.hxx b/sw/source/filter/ww8/ww8par2.hxx
index 6accc6329c1e..34f2be8cfb8a 100644
--- a/sw/source/filter/ww8/ww8par2.hxx
+++ b/sw/source/filter/ww8/ww8par2.hxx
@@ -204,7 +204,7 @@ class WW8TabDesc
 WW8TabBandDesc* m_pFirstBand;
 WW8TabBandDesc* m_pActBand;
 
-SwPosition* m_pTmpPos;
+std::unique_ptr m_xTmpPos;
 
 SwTableNode* m_pTableNd;  // table node
 const SwTableLines* m_pTabLines;  // row array of node
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 sc/source/filter/excel/excel.cxx   |   16 
 sc/source/filter/inc/lotimpop.hxx  |1 +
 sc/source/filter/lotus/lotread.cxx |   35 +--
 sc/source/filter/lotus/lotus.cxx   |4 +---
 sw/source/filter/ww8/ww8graf.cxx   |3 ++-
 5 files changed, 37 insertions(+), 22 deletions(-)

New commits:
commit 840e4dd1a4986e4560264c5492fe486924eb1eb5
Author: Caolán McNamara 
Date:   Fri Feb 16 12:21:48 2018 +

ofz#6414 Integer-overflow

Change-Id: I1090711877707b9e66aef36910eca2df81c7c3b6
Reviewed-on: https://gerrit.libreoffice.org/49858
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index da262f684feb..f628098fbe3d 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -93,6 +93,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include "sprmids.hxx"
@@ -2319,7 +2320,7 @@ RndStdIds 
SwWW8ImplReader::ProcessEscherAlign(SvxMSDffImportRec* pRecord,
 // floating screen objects, which are imported.
 {
 // Miserable miserable hack.
-SwTwips nWidth = (pFSPA->nXaRight - pFSPA->nXaLeft);
+SwTwips nWidth = o3tl::saturating_sub(pFSPA->nXaRight, 
pFSPA->nXaLeft);
 SwTwips nLeft = pFSPA->nXaLeft;
 if (MiserableRTLGraphicsHack(nLeft, nWidth, eHoriOri,
 eHoriRel))
commit 832ba85ebfa6d546aa4c3e373987f767a104f192
Author: Caolán McNamara 
Date:   Fri Feb 16 12:54:52 2018 +

ofz#5951 speed up wks fuzzing, skip CalcAfterLoad

Change-Id: I942480742da9aec18409b2d31dd68a01275682f9
Reviewed-on: https://gerrit.libreoffice.org/49859
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/sc/source/filter/excel/excel.cxx b/sc/source/filter/excel/excel.cxx
index 9cfa5493e91f..797124a280d0 100644
--- a/sc/source/filter/excel/excel.cxx
+++ b/sc/source/filter/excel/excel.cxx
@@ -271,22 +271,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool 
TestImportXLS(SvStream& rStream)
 return bRet;
 }
 
-extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportWKS(SvStream& rStream)
-{
-ScDLL::Init();
-SfxMedium aMedium;
-css::uno::Reference xStm(new 
utl::OInputStreamWrapper(rStream));
-aMedium.GetItemSet()->Put(SfxUnoAnyItem(SID_INPUTSTREAM, 
css::uno::makeAny(xStm)));
-ScDocument aDocument;
-ScDocOptions aDocOpt = aDocument.GetDocOptions();
-aDocOpt.SetLookUpColRowNames(false);
-aDocument.SetDocOptions(aDocOpt);
-aDocument.MakeTable(0);
-aDocument.EnableExecuteLink(false);
-aDocument.SetInsertingFromOtherDoc(true);
-return ScFormatFilter::Get().ScImportLotus123(aMedium, &aDocument, 
RTL_TEXTENCODING_ASCII_US) == ERRCODE_NONE;
-}
-
 extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportDIF(SvStream &rStream)
 {
 ScDLL::Init();
diff --git a/sc/source/filter/inc/lotimpop.hxx 
b/sc/source/filter/inc/lotimpop.hxx
index 894a89c26e7a..17fca962caf6 100644
--- a/sc/source/filter/inc/lotimpop.hxx
+++ b/sc/source/filter/inc/lotimpop.hxx
@@ -79,6 +79,7 @@ public:
 
 virtual ~ImportLotus() override;
 
+ErrCode parse(); //parse + CalcAfterLoad
 ErrCode Read() override;
 ErrCode Read( SvStream& );  // special for 
*.fm3 files
 };
diff --git a/sc/source/filter/lotus/lotread.cxx 
b/sc/source/filter/lotus/lotread.cxx
index 23f9823629e1..6caefd0337d1 100644
--- a/sc/source/filter/lotus/lotread.cxx
+++ b/sc/source/filter/lotus/lotread.cxx
@@ -18,7 +18,9 @@
  */
 
 #include 
+#include 
 
+#include 
 #include 
 #include 
 #include "lotfilter.hxx"
@@ -28,7 +30,7 @@
 
 class ScFormulaCell;
 
-ErrCode ImportLotus::Read()
+ErrCode ImportLotus::parse()
 {
 enum STATE
 {
@@ -223,8 +225,13 @@ ErrCode ImportLotus::Read()
 }
 }
 
-pD->CalcAfterLoad();
+return eRet;
+}
 
+ErrCode ImportLotus::Read()
+{
+ErrCode eRet = parse();
+pD->CalcAfterLoad();
 return eRet;
 }
 
@@ -307,4 +314,28 @@ ErrCode ImportLotus::Read(SvStream& rIn)
 return eRet;
 }
 
+extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportWKS(SvStream& rStream)
+{
+ScDLL::Init();
+ScDocument aDocument;
+ScDocOptions aDocOpt = aDocument.GetDocOptions();
+aDocOpt.SetLookUpColRowNames(false);
+aDocument.SetDocOptions(aDocOpt);
+aDocument.MakeTable(0);
+aDocument.EnableExecuteLink(false);
+aDocument.SetInsertingFromOtherDoc(true);
+
+LotusContext aContext;
+ImportLotus aLotusImport(aContext, rStream, &aDocument, 
RTL_TEXTENCODING_ASCII_US);
+
+ErrCode eRet = aLotusImport.parse();
+if (eRet == ErrCode(0x))
+{
+rStream.Seek(0);
+eRet = ScImportLotus123old(aContext, rStream, &aDocument, 
RTL_TEXTENCODING_ASCII_US);
+}
+
+return eRet == ERRCODE_NONE;
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/filter/lotus/lotus.

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

 svl/qa/unit/svl.cxx |   57 
 1 file changed, 22 insertions(+), 35 deletions(-)

New commits:
commit b809df5d7f82a291356aee147f338cde5579e839
Author: Eike Rathke 
Date:   Fri Feb 16 15:51:59 2018 +0100

Factor out Spanish "mar" tests to use checkSpecificNumberFormats()

Change-Id: Ie2618ffeea49e45d7bd7d35238a1edbcc5887fa5

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 17b4862c4e6c..b0960e7973fc 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1131,41 +1131,6 @@ void Test::testIsNumberFormat()
 CPPUNIT_ASSERT_EQUAL_MESSAGE(aTests[i].pFormat, aTests[i].bIsNumber, 
bIsNumber);
 
 }
-
-// Test Spanish "mar" short name ambiguity, day "martes" or month "marzo".
-// Day of week names are only parsed away, not evaluated if they actually
-// correspond to the date given.
-struct SpanishDate
-{
-const char* mpInput;
-bool mbNumber;
-const char* mpOutput;
-} aSpanishTests[] = {
-{ "22/11/1999", true, "22/11/1999" },
-{ "Lun 22/11/1999", true, "22/11/1999" },
-{ "Mar 22/11/1999", true, "22/11/1999" },
-{ "Abr 22/11/1999", false, "" },// month name AND numeric 
month don't go along
-{ "Lun Mar 22/11/1999", false, "" },// month name AND numeric 
month don't go along
-{ "Mar Mar 22/11/1999", false, "" },// month name AND numeric 
month don't go along
-{ "Lun Mar 22 1999", true, "22/03/1999" },
-{ "Mar Mar 22 1999", true, "22/03/1999" },
-{ "Mar Lun 22 1999", false, "" }// day name only at the 
beginning (could change?)
-};
-
-sal_uInt32 nIndex = aFormatter.GetFormatIndex( NF_DATE_SYS_DDMM, 
LANGUAGE_SPANISH);
-for (size_t i = 0; i < SAL_N_ELEMENTS(aSpanishTests); ++i)
-{
-double fNumber = 0;
-OUString aString = OUString::createFromAscii( 
aSpanishTests[i].mpInput);
-bool bIsNumber = aFormatter.IsNumberFormat( aString, nIndex, fNumber);
-CPPUNIT_ASSERT_EQUAL( aSpanishTests[i].mbNumber, bIsNumber);
-if (aSpanishTests[i].mbNumber)
-{
-Color* pColor;
-aFormatter.GetOutputString( fNumber, nIndex, aString, &pColor);
-CPPUNIT_ASSERT_EQUAL( OUString::createFromAscii( 
aSpanishTests[i].mpOutput), aString);
-}
-}
 }
 
 namespace {
@@ -1278,6 +1243,28 @@ void Test::testIsNumberFormatSpecific()
 
 checkSpecificNumberFormats( aFormatter, aIO, "[fr-FR] date");
 }
+
+{
+// Test Spanish "mar" short name ambiguity, day "martes" or month 
"marzo".
+// Day of week names are only parsed away, not evaluated if they 
actually
+// correspond to the date given.
+SvNumberFormatter aFormatter(m_xContext, LANGUAGE_SPANISH);
+
+const sal_uInt32 n = aFormatter.GetFormatIndex( NF_DATE_SYS_DDMM, 
LANGUAGE_SPANISH);
+std::vector aIO = {
+{ "22/11/1999", true, "22/11/1999", n },
+{ "Lun 22/11/1999", true, "22/11/1999", n },
+{ "Mar 22/11/1999", true, "22/11/1999", n },
+{ "Abr 22/11/1999", false, "", n }, // month name AND 
numeric month don't go along
+{ "Lun Mar 22/11/1999", false, "", n }, // month name AND 
numeric month don't go along
+{ "Mar Mar 22/11/1999", false, "", n }, // month name AND 
numeric month don't go along
+{ "Lun Mar 22 1999", true, "22/03/1999", n },
+{ "Mar Mar 22 1999", true, "22/03/1999", n },
+{ "Mar Lun 22 1999", false, "", n } // day name only 
at the beginning (could change?)
+};
+
+checkSpecificNumberFormats( aFormatter, aIO, "[es-ES] date");
+}
 }
 
 void Test::testUserDefinedNumberFormats()
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 svl/qa/unit/svl.cxx |   47 +--
 1 file changed, 25 insertions(+), 22 deletions(-)

New commits:
commit af12236c87544b61ff89b979d2528775c63a285b
Author: Eike Rathke 
Date:   Fri Feb 16 15:26:31 2018 +0100

Prepare to add specific number format index to test against

Change-Id: I1c01c9afe4a2479bd8e595b84816febe8e9e5947

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 54f215a38a7f..17b4862c4e6c 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1171,9 +1171,10 @@ void Test::testIsNumberFormat()
 namespace {
 struct FormatInputOutput
 {
-const char* mpInput;
-const bool  mbNumber;
-const char* mpOutput;
+const char*  mpInput;
+const bool   mbNumber;
+const char*  mpOutput;
+const sal_uInt32 mnOutputIndex;
 };
 }
 
@@ -1192,6 +1193,8 @@ void checkSpecificNumberFormats( SvNumberFormatter& 
rFormatter,
 OUStringToOString( aString, 
RTL_TEXTENCODING_UTF8)).getStr(), rVec[i].mbNumber, bIsNumber);
 if (bIsNumber)
 {
+if (rVec[i].mnOutputIndex)
+nIndex = rVec[i].mnOutputIndex;
 Color* pColor;
 rFormatter.GetOutputString( fNumber, nIndex, aString, &pColor);
 CPPUNIT_ASSERT_EQUAL_MESSAGE( OString( OString(pName) + " " + 
OString::number(i)  + " mismatch").getStr(),
@@ -1208,8 +1211,8 @@ void Test::testIsNumberFormatSpecific()
 SvNumberFormatter aFormatter(m_xContext, LANGUAGE_ENGLISH_US);
 
 std::vector aIO = {
-{  "5-12-14", false, "" },
-{ "32-12-14",  true, "1932-12-14" }
+{  "5-12-14", false, "", 0 },
+{ "32-12-14",  true, "1932-12-14", 0 }
 };
 
 checkSpecificNumberFormats( aFormatter, aIO, "[en-US] date");
@@ -1221,8 +1224,8 @@ void Test::testIsNumberFormatSpecific()
 SvNumberFormatter aFormatter(m_xContext, LANGUAGE_GERMAN);
 
 std::vector aIO = {
-{  "5-12-14", false, "" },
-{ "32-12-14",  true, "1932-12-14" }
+{  "5-12-14", false, "", 0 },
+{ "32-12-14",  true, "1932-12-14", 0 }
 };
 
 checkSpecificNumberFormats( aFormatter, aIO, "[de-DE] date");
@@ -1234,10 +1237,10 @@ void Test::testIsNumberFormatSpecific()
 SvNumberFormatter aFormatter(m_xContext, LANGUAGE_DUTCH);
 
 std::vector aIO = {
-{ "22-11-1999", true, "22-11-99" },// if default YY changes to 
 adapt this
-{ "1999-11-22", true, "1999-11-22" },
-{ "1-2-11", true, "01-02-11" },// if default YY changes to 
 adapt this
-{ "99-2-11",true, "1999-02-11" }
+{ "22-11-1999", true, "22-11-99", 0 },  // if default YY 
changes to  adapt this
+{ "1999-11-22", true, "1999-11-22", 0 },
+{ "1-2-11", true, "01-02-11", 0 },  // if default YY 
changes to  adapt this
+{ "99-2-11",true, "1999-02-11", 0 }
 };
 
 checkSpecificNumberFormats( aFormatter, aIO, "[nl-NL] date");
@@ -1249,11 +1252,11 @@ void Test::testIsNumberFormatSpecific()
 SvNumberFormatter aFormatter(m_xContext, LANGUAGE_ENGLISH_SAFRICA);
 
 std::vector aIO = {
-{ "1999/11/22", true, "99/11/22" }, // if default YY changes 
to  adapt this
-{ "1999-11-22", true, "1999-11-22" },
-{ "11/2/1", true, "11/02/01" }, // if default YY changes 
to  adapt this
-{ "99-2-11",true, "1999-02-11" },
-{ "22-2-11",true, "2022-02-11" }
+{ "1999/11/22", true, "99/11/22", 0 },  // if default YY 
changes to  adapt this
+{ "1999-11-22", true, "1999-11-22", 0 },
+{ "11/2/1", true, "11/02/01", 0 },  // if default YY 
changes to  adapt this
+{ "99-2-11",true, "1999-02-11", 0 },
+{ "22-2-11",true, "2022-02-11", 0 }
 };
 
 checkSpecificNumberFormats( aFormatter, aIO, "[en-ZA] date");
@@ -1265,12 +1268,12 @@ void Test::testIsNumberFormatSpecific()
 SvNumberFormatter aFormatter(m_xContext, LANGUAGE_FRENCH);
 
 std::vector aIO = {
-{ "22/11/1999", true, "22/11/99" }, // if default YY changes 
to  adapt this
-{ "1999-11-22", true, "1999-11-22" },
-{ "1/2/11", true, "01/02/11" }, // if default YY changes 
to  adapt this
-{ "99-2-11",true, "1999-02-11" },
-{ "22-2-11",true, "22/02/11" }, // if default YY changes 
to  adapt this
-{ "22.2.11",true, "22/02/11" }  // if default YY changes 
to  adapt this
+{ "22/11/1999", true, "22/11/99", 0 },  // if default YY 
changes to  adapt this
+{ "1999-11-22", true, "1999-11-22", 0 },
+{ "1/2/11", true, "01/02/11", 0 },  // if default YY 
changes to  adapt this
+   

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

 officecfg/registry/data/org/openoffice/Office/UI/StartModuleCommands.xcu |  
186 --
 1 file changed, 186 deletions(-)

New commits:
commit a1eff3100a41f592407916dd4a21d0404f1364e1
Author: Yousuf Philips 
Date:   Fri Nov 17 18:52:30 2017 +0400

tdf#114206 remove duplication of strings in startmodulecommands.xcu

Change-Id: I4d034c029eec58d9e7c2dd500efc0b65a3c3dcb8
Reviewed-on: https://gerrit.libreoffice.org/44885
Reviewed-by: Yousuf Philips 
Tested-by: Yousuf Philips 

diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/StartModuleCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/StartModuleCommands.xcu
index b1d34120d349..379aa6f151fa 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/StartModuleCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/StartModuleCommands.xcu
@@ -20,192 +20,6 @@
 http://openoffice.org/2001/registry"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:install="http://openoffice.org/2004/installation"; 
oor:name="StartModuleCommands" oor:package="org.openoffice.Office.UI">
   
 
-  
-
-  ~New
-
-
-  1
-
-  
-  
-
-  ~Close
-
-
-  1
-
-  
-  
-
-  Close Window
-
-
-  1
-
-  
-  
-
-  ~Copy
-
-
-  1
-
-  
-  
-
-  ~Cut
-
-
-  1
-
-  
-  
-
-  What's ~This?
-
-  
-  
-
-  %PRODUCTNAME ~Help
-
-
-  1
-
-  
-  
-
-  New Document From Template
-
-
-  1
-
-  
-  
-
-  ~Open...
-
-
-  1
-
-  
-  
-
-  Load URL
-
-
-  1
-
-  
-  
-
-  ~Paste
-
-
-  1
-
-  
-  
-
-  ~Print...
-
-
-  1
-
-  
-  
-
-  P~rinter Settings...
-
-
-  1
-
-  
-  
-
-  E~xit
-
-
-  1
-
-  
-  
-
-  ~Save
-
-
-  1
-
-  
-  
-
-  Save ~As...
-
-
-  1
-
-  
-  
-
-  Document as ~E-mail...
-
-
-  1
-
-  
-  
-
-  Propert~ies...
-
-
-  1
-
-  
-  
-
-  Undo
-
-
-  1
-
-  
-
-
-  
-
-  ~Edit
-
-  
-  
-
-  ~Help
-
-  
-  
-
-  ~Macros
-
-  
-  
-
-  ~File
-
-  
-  
-
-  ~Tools
-
-  
-  
-
-  ~View
-
-  
-  
-
-  ~Window
-
-  
 
   
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: readlicense_oo/license

 readlicense_oo/license/LICENSE  |   24 
 readlicense_oo/license/LICENSE.fodt |   10 +-
 2 files changed, 1 insertion(+), 33 deletions(-)

New commits:
commit bca6b706dfa092ed5d2c9ad58c18c9e598d6e2f1
Author: Yousuf Philips 
Date:   Wed Jan 31 02:47:14 2018 +0400

tdf#103080 Remove Open Sans and PT_Serif licenses

Change-Id: I024669ca552c00fd0b62c4eb25bccb88666295de
Reviewed-on: https://gerrit.libreoffice.org/48941
Tested-by: Jenkins 
Reviewed-by: Yousuf Philips 

diff --git a/readlicense_oo/license/LICENSE b/readlicense_oo/license/LICENSE
index 7ebab994a6f8..3ce5873c9aeb 100644
--- a/readlicense_oo/license/LICENSE
+++ b/readlicense_oo/license/LICENSE
@@ -3111,30 +3111,6 @@ Linux Libertine G and Linux Biolinum G
OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT
SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
 
-Open Sans
-
-   The following software may be included in this product: Open Sans
-   fonts. Use of any of this software is governed by the terms of the
-   license below:
-
-   See Apache License Version 2.0 below
-
-PT Serif
-
-   The following software may be included in this product: PT Serif fonts.
-   Use of any of this software is governed by the terms of the license
-   below:
-
-   Copyright (c) 2010, ParaType Ltd.
-   (http://www.paratype.com/public), with Reserved Font Names "PT
-   Sans", "PT Serif" and "ParaType".
-
-   This Font Software is licensed under the SIL Open Font License, Version
-   1.1. This license is copied below, and is also available with a
-   FAQ at: http://scripts.sil.org/OFL
-
-   See SIL Open Font License, Version 1.1 below
-
 Source Code Pro
 
The following software may be included in this product: Source Code Pro
diff --git a/readlicense_oo/license/LICENSE.fodt 
b/readlicense_oo/license/LICENSE.fodt
index bf25468c4f97..de7ff7ef9052 100644
--- a/readlicense_oo/license/LICENSE.fodt
+++ b/readlicense_oo/license/LICENSE.fodt
@@ -4221,14 +4221,6 @@
5) The Font Software, modified or 
unmodified, in part or in whole, must be distributed using this license, and 
may not be distributed under any other license.
TERMINATION This license becomes null 
and void if any of the above conditions are not met.
DISCLAIMER THE FONT SOFTWARE IS PROVIDED 
"AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING 
BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 
PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN 
NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR 
CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 
OTHER DEALINGS IN THE FONT SOFTWARE.
-   Open Sans
-   The following software may be included in this 
product: Open Sans fonts. Use of 
any of this software is governed by the terms of the license below:
-   Jump to Apache License 
Version 2.0
-   PT Serif
-   The following software may be included in this 
product: PT Serif fonts. Use of any 
of this software is governed by the terms of the license below:
-   Copyright (c) 
2010, ParaType Ltd. (http://www.paratype.com/public"; text:style-name="Internet_20_link" 
text:visited-style-name="Visited_20_Internet_20_Link">http://www.paratype.com/public), with Reserved Font Names "PT Sans", "PT 
Serif" and "ParaType".
-   This Font Software is licensed under the SIL 
Open Font License, Version 1.1. This license is copied below, and is 
also available with a FAQ at: http://scripts.sil.org/OFL"; text:style-name="Internet_20_link" 
text:visited-style-name="Visited_20_Internet_20_Link">http://scripts.sil.org/OFL
-   Jump to SIL Open Font License, Version 
1.1
Source Code 
Pro
The following software may be included in this 
product: Source Code Pro fonts. Use 
of any of this software is governed by the terms of the license below:
Copyright 
2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/"; text:style-name="Internet_20_link" 
text:visited-style-name="Visited_20_Internet_20_Link">http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights 
Reserved. Source is a trademark of Adobe Systems Incorporated in the United 
States and/or other countries.
@@ -6701,4 +6693,4 @@
Creative Commons may be contacted at 
http://creativecommons.org/"; 
text:style-name="Internet_20_link" 
text:visited-style-name="Visited_20_Internet_20_Link">http://creativecommons.org/.
   
  
-
\ No newline at end of file
+
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: loleaflet/src loleaflet/unocommands.js

 loleaflet/src/control/Control.Menubar.js |9 +
 loleaflet/unocommands.js |8 
 2 files changed, 17 insertions(+)

New commits:
commit 0cec977fcd21f6ff54a4379a869a63a055a95f20
Author: Henry Castro 
Date:   Fri Feb 16 10:23:01 2018 -0400

loleaflet: add "Insert Fields" menu

Field
Page Number
Page Count
Date
Time
Title
Author
Subject

Change-Id: I4360372312abab04c34411bdca317b59c93141c4

diff --git a/loleaflet/src/control/Control.Menubar.js 
b/loleaflet/src/control/Control.Menubar.js
index 5e5fc925..6bfa3605 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -66,6 +66,15 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:InsertGraphic', 'text'), id: 
'insertgraphic', type: 'action'},
{name: _UNO('.uno:InsertAnnotation', 'text'), 
id: 'insertcomment', type: 'action'},
{type: 'separator'},
+   {name: _UNO('.uno:InsertField', 'text'), type: 
'menu', menu: [
+   {uno: '.uno:InsertPageNumberField'},
+   {uno: '.uno:InsertPageCountField'},
+   {uno: '.uno:InsertDateField'},
+   {uno: '.uno:InsertTimeField'},
+   {uno: '.uno:InsertTitleField'},
+   {uno: '.uno:InsertAuthorField'},
+   {uno: '.uno:InsertTopicField'}
+   ]},
{name: _UNO('.uno:InsertHeaderFooterMenu', 
'text'), type: 'menu', menu: [
{name: _UNO('.uno:InsertPageHeader', 
'text'), type: 'menu', menu: [
{name: _('All'), disabled: 
true, id: 'insertheader', tag: '_ALL_', uno: '.uno:InsertPageHeader?'}]},
diff --git a/loleaflet/unocommands.js b/loleaflet/unocommands.js
index 2de09ee6..40e8348c 100644
--- a/loleaflet/unocommands.js
+++ b/loleaflet/unocommands.js
@@ -84,12 +84,15 @@ var unoCommandsArray = {
IncrementLevel:{text:{menu:_('Promote One Level'),},},
IncrementSubLevels:{text:{menu:_('Promote One Level With 
Subpoints'),},},
InsertAnnotation:{global:{context:_('Insert 
Comment'),menu:_('Comme~nt'),},presentation:{menu:_('Comme~nt'),},spreadsheet:{context:_('Insert
 Co~mment'),menu:_('Comm~ent'),},},
+   
InsertAuthorField:{presentation:{menu:_('~Author'),},text:{menu:_('~Author'),},},
InsertBreakMenu:{spreadsheet:{menu:_('Insert Page ~Break'),},},
InsertColumnBreak:{spreadsheet:{menu:_('~Column 
Break'),},text:{menu:_('Insert Column Break'),},},
InsertColumnsAfter:{presentation:{menu:_('Insert Column 
Right'),},spreadsheet:{context:_('Insert Columns ~Right'),menu:_('Columns 
~Right'),},text:{menu:_('Columns R~ight'),},},
InsertColumnsBefore:{presentation:{menu:_('Insert Column 
Left'),},spreadsheet:{context:_('Insert Columns ~Left'),menu:_('Columns 
~Left'),},text:{menu:_('Columns ~Left'),},},
InsertColumnsMenu:{spreadsheet:{menu:_('Insert Co~lumns'),},},
+   InsertDateField:{text:{menu:_('~Date'),},},
InsertEndnote:{text:{menu:_('~Endnote'),},},
+   InsertField:{text:{menu:_('~Fields'),},},
InsertFootnote:{text:{context:_('Insert 
Footnote'),menu:_('~Footnote'),},},
InsertGraphic:{global:{context:_('Insert 
Image...'),menu:_('~Image...'),},},
InsertHardHyphen:{global:{menu:_('Non-br~eaking hyphen'),},},
@@ -101,6 +104,8 @@ var unoCommandsArray = {
InsertNonBreakingSpace:{global:{menu:_('~Non-breaking space'),},},
InsertPageFooter:{text:{menu:_('Foote~r'),},},
InsertPageHeader:{text:{menu:_('He~ader'),},},
+   InsertPageCountField:{text:{menu:_('Page ~Count'),},},
+   InsertPageNumberField:{global:{menu:_('~Page 
Numbers...'),},text:{menu:_('~Page Number'),},},
InsertPagebreak:{text:{menu:_('~Page Break'),},},
InsertRLM:{global:{menu:_('~Right-to-left mark'),},},
InsertRowBreak:{spreadsheet:{menu:_('~Row Break'),},},
@@ -111,6 +116,9 @@ var unoCommandsArray = {
InsertSlide:{presentation:{menu:_('~New Slide'),},},
InsertSoftHyphen:{global:{menu:_('S~oft hyphen'),},},
InsertSymbol:{global:{context:_('Insert Special 
Character'),menu:_('S~pecial Character...'),},},
+   InsertTimeField:{global:{menu:_('Time 
Field'),},text:{menu:_('~Time'),},},
+   InsertTitleField:{text:{menu:_('T~itle'),},},
+   InsertTopicField:{text:{menu:_('~Subject'),},},
InsertZWNBSP:{global:{menu:_('No-width no ~break'),},},
InsertZWSP:{global:{menu:_('No-~width optional break'),},},
Italic:{global:{menu:_('Italic'),},},
__

[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sd/uiconfig

 sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui |6 +++---
 sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui|2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 3b0866ca2ef2cfece6b1763dcfe4462adf5f77e2
Author: Yousuf Philips 
Date:   Fri Feb 9 14:25:11 2018 +0400

tdf#114972 Make insert textbox work in Impress grouped notebookbars

Change-Id: I35a7efeec01a6aeae5bc4bcb49151cba1d225d61
Reviewed-on: https://gerrit.libreoffice.org/49481
Reviewed-by: andreas_kainz 
Tested-by: andreas_kainz 
Reviewed-by: Yousuf Philips 
(cherry picked from commit 10a7dddf65b4fd9716bd8815debfa1cdd4ac184c)
Reviewed-on: https://gerrit.libreoffice.org/49494
Tested-by: Jenkins 
Reviewed-by: Heiko Tietze 

diff --git a/sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui 
b/sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui
index 2fdf2d2798cd..d8dcca06fa2c 100644
--- a/sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui
+++ b/sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui
@@ -3133,7 +3133,7 @@
   
 True
 False
-.uno:DrawText
+.uno:Text
   
   
 False
@@ -4462,7 +4462,7 @@
   
 True
 False
-.uno:DrawText
+.uno:Text
   
   
 False
@@ -6092,7 +6092,7 @@
   
 True
 False
-.uno:DrawText
+.uno:Text
   
   
 False
diff --git a/sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui 
b/sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui
index a439ff3e118b..fd57056975d1 100644
--- a/sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui
+++ b/sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui
@@ -3932,7 +3932,7 @@
   
 True
 False
-.uno:DrawText
+.uno:Text
   
   
 True
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sw/uiconfig

 sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d5dc4af8e53180aa1cd39ec54262e91ad2d0510b
Author: Yousuf Philips 
Date:   Fri Feb 9 14:34:51 2018 +0400

tdf#114299 Ensure groupedbar full works in print preview mode

Change-Id: I154d22deeafc76e6afff9ccf5cbd5f8aa9ec3a57
Reviewed-on: https://gerrit.libreoffice.org/49480
Tested-by: Jenkins 
Reviewed-by: Yousuf Philips 
(cherry picked from commit bbc4f9fee81656c618329cee088d9eedd9a1c457)
Reviewed-on: https://gerrit.libreoffice.org/49519
Reviewed-by: Heiko Tietze 

diff --git a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui 
b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui
index 61b2bba98653..e4f71a9bc84b 100644
--- a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui
+++ b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui
@@ -6105,7 +6105,7 @@
 
 
   
-  
+  
 
   
   
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 wizards/source/access2base/Database.xba|3 ++-
 wizards/source/access2base/acConstants.xba |2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 585d43110c2f781cc07f53c8fdfd271578984e72
Author: Jean-Pierre Ledure 
Date:   Fri Feb 16 15:18:37 2018 +0100

Access2Base - Nicer representation of booleans in OutputTo action

Replacement of True/False output characters
Addition of "false" class

diff --git a/wizards/source/access2base/Database.xba 
b/wizards/source/access2base/Database.xba
index 30b412fb9cfa..e82b15d25b55 100644
--- a/wizards/source/access2base/Database.xba
+++ b/wizards/source/access2base/Database.xba
@@ -1344,7 +1344,7 @@ REM 

 Private Function _OutputBooleanToHTML(ByVal pbBool As Boolean) As String
 ' Converts input boolean value to HTML compatible string
 
-   _OutputBooleanToHTML = Iif(pbBool, "☑", 
"☒")
+   _OutputBooleanToHTML = Iif(pbBool, "✔", 
"✖")  '  ✔ and ✖
 
 End Function   '  _OutputBooleanToHTMLV1.4.0
 
@@ -1454,6 +1454,7 @@ Const cstMaxRows = 200
Print #piFile, 
" " & _OutputNumberToHTML(vDataCell) & 
""
Case vbBoolean
vTdClass() = 
_AddArray(vTdClass, "bool")
+   If vDataCell = 
False Then vTdClass() = _AddArray(vTdClass, "false")
Print #piFile, 
" " & _OutputBooleanToHTML(vDataCell) & 
""
Case vbDate
vTdClass() = 
_AddArray(vTdClass, "date")
diff --git a/wizards/source/access2base/acConstants.xba 
b/wizards/source/access2base/acConstants.xba
index f2aeb26ea82c..1e0da5d3c4c4 100644
--- a/wizards/source/access2base/acConstants.xba
+++ b/wizards/source/access2base/acConstants.xba
@@ -8,7 +8,7 @@ REM 

 Option Explicit
 
 REM Access2Base -
-Global Const Access2Base_Version = "1.8.0"
+Global Const Access2Base_Version = "1.9.0"
 
 REM AcCloseSave
 REM -
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sw/uiconfig

 sw/uiconfig/swform/toolbar/moreformcontrols.xml |6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 2460d20c9a10920944b470d5ff5871f2bdb328f5
Author: Yousuf Philips 
Date:   Tue Feb 13 19:27:45 2018 +0400

tdf#115447 tdf#81475 Restore form controls used in forms

Change-Id: I41b72aa6e453d15287573c3fb2d0536a132e490d
Reviewed-on: https://gerrit.libreoffice.org/49671
Tested-by: Jenkins 
Reviewed-by: Yousuf Philips 
(cherry picked from commit 603d1773a2dfea6b347f44ddacef478577098caf)
Reviewed-on: https://gerrit.libreoffice.org/49723
Reviewed-by: Heiko Tietze 

diff --git a/sw/uiconfig/swform/toolbar/moreformcontrols.xml 
b/sw/uiconfig/swform/toolbar/moreformcontrols.xml
index bb170f6ed9bc..e0e1fbba4085 100644
--- a/sw/uiconfig/swform/toolbar/moreformcontrols.xml
+++ b/sw/uiconfig/swform/toolbar/moreformcontrols.xml
@@ -27,6 +27,8 @@
  
  
  
- 
- 
+ 
+ 
+ 
+ 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - dbaccess/source desktop/source filter/source forms/source formula/source fpicker/source framework/source

 dbaccess/source/ui/browser/brwview.cxx  |2 -
 dbaccess/source/ui/browser/dataview.cxx |2 -
 dbaccess/source/ui/browser/sbagrid.cxx  |4 +-
 dbaccess/source/ui/control/FieldDescControl.cxx |   12 
 dbaccess/source/ui/dlg/adminpages.cxx   |2 -
 dbaccess/source/ui/dlg/indexfieldscontrol.cxx   |2 -
 dbaccess/source/ui/dlg/sqlmessage.cxx   |2 -
 dbaccess/source/ui/querydesign/ConnectionLine.cxx   |   22 
 dbaccess/source/ui/querydesign/JoinController.cxx   |4 +-
 dbaccess/source/ui/querydesign/JoinTableView.cxx|   16 +--
 dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx   |6 ++--
 dbaccess/source/ui/querydesign/TableConnection.cxx  |4 +-
 dbaccess/source/ui/querydesign/TableWindow.cxx  |   16 +--
 dbaccess/source/ui/querydesign/TableWindowTitle.cxx |2 -
 desktop/source/deployment/gui/dp_gui_extlistbox.cxx |   16 +--
 desktop/source/splash/splash.cxx|4 +-
 filter/source/flash/swfwriter1.cxx  |4 +-
 filter/source/graphicfilter/eps/eps.cxx |6 ++--
 filter/source/graphicfilter/ios2met/ios2met.cxx |4 +-
 filter/source/msfilter/escherex.cxx |4 +-
 filter/source/msfilter/eschesdo.cxx |   12 
 filter/source/msfilter/msdffimp.cxx |   16 +--
 filter/source/msfilter/svdfppt.cxx  |   14 +-
 filter/source/svg/svgwriter.cxx |   11 +++-
 forms/source/richtext/richtextimplcontrol.cxx   |   12 
 forms/source/solar/control/navtoolbar.cxx   |2 -
 formula/source/ui/dlg/structpg.cxx  |2 -
 fpicker/source/office/PlacesListBox.cxx |2 -
 fpicker/source/office/RemoteFilesDialog.cxx |2 -
 fpicker/source/office/iodlg.cxx |2 -
 framework/source/layoutmanager/layoutmanager.cxx|2 -
 framework/source/layoutmanager/toolbarlayoutmanager.cxx |8 ++---
 32 files changed, 109 insertions(+), 110 deletions(-)

New commits:
commit 413c7b426543e71f4865c858b5b4ca62b48573d3
Author: Noel Grandin 
Date:   Fri Feb 16 12:48:27 2018 +0200

Revert "loplugin:changetoolsgen in dbaccess..desktop" and reapply plugin

because I
(a) forgot to insert parentheses which changes the meaning of some 
expressions and
(b) I now use the AdjustFoo calls when changing unary operations, which 
reads much better

This reverts commit a9ca38bdf7ff9d15529b5903e640987fc14c0fa7.

Change-Id: I662ef2f1100a06a68decb2c71975fbc61aeaa47d
Reviewed-on: https://gerrit.libreoffice.org/49847
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/dbaccess/source/ui/browser/brwview.cxx 
b/dbaccess/source/ui/browser/brwview.cxx
index c982d421ba98..297c952ede08 100644
--- a/dbaccess/source/ui/browser/brwview.cxx
+++ b/dbaccess/source/ui/browser/brwview.cxx
@@ -221,7 +221,7 @@ void 
UnoDataBrowserView::resizeDocumentView(tools::Rectangle& _rPlayground)
 
 Point aStatusPos( aPlaygroundPos.X() + 2, aTreeViewPos.Y() + 
aTreeViewSize.Height() - aStatusSize.Height() );
 m_pStatus->SetPosSizePixel( aStatusPos, aStatusSize );
-aTreeViewSize.setHeight( aTreeViewSize.Height() - 
aStatusSize.Height() );
+aTreeViewSize.AdjustHeight( -(aStatusSize.Height()) );
 }
 
 // set the size of treelistbox
diff --git a/dbaccess/source/ui/browser/dataview.cxx 
b/dbaccess/source/ui/browser/dataview.cxx
index 73b102c0eaa6..8f0586ec69fa 100644
--- a/dbaccess/source/ui/browser/dataview.cxx
+++ b/dbaccess/source/ui/browser/dataview.cxx
@@ -96,7 +96,7 @@ namespace dbaui
 // position the separator
 const Size aSeparatorSize( aPlayground.GetWidth(), 2 );
 m_aSeparator->SetPosSizePixel( aPlayground.TopLeft(), aSeparatorSize );
-aPlayground.SetTop( aPlayground.Top() + aSeparatorSize.Height() + 1 );
+aPlayground.AdjustTop(aSeparatorSize.Height() + 1 );
 
 // position the controls of the document's view
 resizeDocumentView( aPlayground );
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx 
b/dbaccess/source/ui/browser/sbagrid.cxx
index cf20acabfa4f..f2ffb3947489 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -600,8 +600,8 @@ void SbaGridHeader::ImplStartColumnDrag(sal_Int8 _nAction, 
const Point& _rMouseP
 if (HEADERBAR_ITEM_NOTFOUND != nId)
 {
 tools::Rectangle aColRect = GetItemRect(nId);
-aColRect.SetLeft( aColRect.Left() + nId ? 3 : 0 ); // the handle col 
(nId == 0) does not have a left margin for resizing
-aColRect.SetRight( aColRect.Right() - 3 );
+aColRect.AdjustLeft(nId ? 3 : 0 ); // the ha

[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - tools/source

 tools/source/stream/stream.cxx |   11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit 62aba0e74c849bdb82b1b3aaac93a63914f98e41
Author: Caolán McNamara 
Date:   Fri Feb 16 09:20:12 2018 +

Resolves: tdf#115750 SvStream::WriteStream was broken

and didn't stop copying at the size limit arg

Change-Id: I8f1be0310160f5158d2f64c62d6b2c09c0157930
Reviewed-on: https://gerrit.libreoffice.org/49839
Reviewed-by: Michael Stahl 
Tested-by: Jenkins 

diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 4c363dc67484..e7b3ccd20ae6 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1187,13 +1187,12 @@ sal_uInt64 SvStream::WriteStream( SvStream& rStream, 
sal_uInt64 nSize )
 sal_uInt32 nCount;
 sal_uInt64 nWriteSize = nSize;
 
-do {
-if ( nSize >= nCurBufLen )
-nWriteSize -= nCurBufLen;
-else
-nCurBufLen = nWriteSize;
-nCount = rStream.ReadBytes( pBuf.get(), nCurBufLen );
+do
+{
+nCurBufLen = std::min(nCurBufLen, nWriteSize);
+nCount = rStream.ReadBytes(pBuf.get(), nCurBufLen);
 WriteBytes( pBuf.get(), nCount );
+nWriteSize -= nCount;
 }
 while( nWriteSize && nCount == nCurBufLen );
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 svl/qa/unit/svl.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 26783527823883ccd5bbf3b9e014a0a3c1e3a022
Author: Miklos Vajna 
Date:   Fri Feb 16 14:24:46 2018 +0100

svl: fix loplugin:staticanonymous warning

Change-Id: Ib983a8f4305dc916e077407d712883de6d05649a

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 1dde8ad1c98c..54f215a38a7f 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1177,7 +1177,7 @@ struct FormatInputOutput
 };
 }
 
-static void checkSpecificNumberFormats( SvNumberFormatter& rFormatter,
+void checkSpecificNumberFormats( SvNumberFormatter& rFormatter,
 const std::vector& rVec, const char* pName )
 {
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Changes to 'refs/tags/2.1.5-6'

Tag '2.1.5-6' created by Andras Timar  at 
2018-02-16 13:02 +

2.1.5-6

Changes since 2.1.5-rc3-17:
---
 0 files changed
---
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Branch 'refs/tags/2.1.5-6' - 0 commits -

Rebased ref, commits from common ancestor:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2

 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e4a096dde0bcec9c4ac9c00e2155cad192de804a
Author: Olivier Hallot 
Date:   Fri Feb 16 10:49:29 2018 -0200

Updated core
Project: help  807a16ea2eda59452c92477b17702fc99943ba56

tdf#94017 embeded h1 entries should be h2

This improves visual appearance of help pages of menus, etc...

Change-Id: Ieece5897980e1defe25cda7b28fcd16c9998dfd4
Reviewed-on: https://gerrit.libreoffice.org/49857
Reviewed-by: Olivier Hallot 
Tested-by: Olivier Hallot 

diff --git a/helpcontent2 b/helpcontent2
index 54fb08a20e9b..807a16ea2eda 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit 54fb08a20e9b92af1e8085f9357fbd68b515678f
+Subproject commit 807a16ea2eda59452c92477b17702fc99943ba56
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: help3xsl/online_transform.xsl

 help3xsl/online_transform.xsl |   91 ++
 1 file changed, 48 insertions(+), 43 deletions(-)

New commits:
commit 807a16ea2eda59452c92477b17702fc99943ba56
Author: Olivier Hallot 
Date:   Fri Feb 16 10:49:29 2018 -0200

tdf#94017 embeded h1 entries should be h2

This improves visual appearance of help pages of menus, etc...

Change-Id: Ieece5897980e1defe25cda7b28fcd16c9998dfd4
Reviewed-on: https://gerrit.libreoffice.org/49857
Reviewed-by: Olivier Hallot 
Tested-by: Olivier Hallot 

diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index ee93c80bf..0b9eed254 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -572,65 +572,70 @@
 
 
 
-   
+
 
-   
-   
-   
-   
-   
+
+
+
+
+
 
-   
-   
-   
-   
-   
+
+
+
+
+
 
-
-   
-   
+ 
+
+
 
-   
-   
-   
+
+
+
 
-   
-   
-   
+
+
+
 
-   
-   
-   
+
+
+
 
-   
+
 
 
 
-   
+
+  
+
+
+
+
+
+
 
-  
-
-   
+
+
 
-
-   
-   
+
+
 
-   
-   
-   
-   
-   
+
+
+
+
+
 
-
-   
-   
+ 
+
+
 
-   
-   
-   
+
+
+
 
-   
+
 
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 filter/source/msfilter/msdffimp.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit da795470439f89aa3970eab2ecc3d8e2c6a21984
Author: Caolán McNamara 
Date:   Fri Feb 16 10:34:07 2018 +

Related: ofz#6390, similar pattern

Change-Id: I4be0c422a70e58832227fb8c5a082ecdc9573220
Reviewed-on: https://gerrit.libreoffice.org/49845
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index 69688a038fae..dbe93bf2a624 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4120,6 +4120,8 @@ SdrObject* SvxMSDffManager::ImportGroup( const 
DffRecordHeader& rHd, SvStream& r
 if (nShapeId)
 insertShapeId(nShapeId, pTmp);
 }
+else
+SdrObject::Free(pTmp);
 }
 }
 else if ( aRecHd2.nRecType == DFF_msofbtSpContainer )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 svl/qa/unit/svl.cxx |  111 
 1 file changed, 111 insertions(+)

New commits:
commit ad3834b121e773364fdf640beadffdf42e0f3dae
Author: Eike Rathke 
Date:   Fri Feb 16 13:20:00 2018 +0100

Unit test tdf#114833 do not officiously force Y-M-D if D-M-Y is applicable

Change-Id: I2c78a06169526b079fd1463df23b09bacb50588b

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 3c5cc3af7532..1dde8ad1c98c 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -64,6 +64,7 @@ public:
 void testTdf103060();
 void testDateInput();
 void testIsNumberFormat();
+void testIsNumberFormatSpecific();
 void testUserDefinedNumberFormats();
 void testNfEnglishKeywordsIntegrity();
 void testStandardColorIntegrity();
@@ -79,6 +80,7 @@ public:
 CPPUNIT_TEST(testTdf103060);
 CPPUNIT_TEST(testDateInput);
 CPPUNIT_TEST(testIsNumberFormat);
+CPPUNIT_TEST(testIsNumberFormatSpecific);
 CPPUNIT_TEST(testUserDefinedNumberFormats);
 CPPUNIT_TEST(testNfEnglishKeywordsIntegrity);
 CPPUNIT_TEST(testStandardColorIntegrity);
@@ -1166,6 +1168,115 @@ void Test::testIsNumberFormat()
 }
 }
 
+namespace {
+struct FormatInputOutput
+{
+const char* mpInput;
+const bool  mbNumber;
+const char* mpOutput;
+};
+}
+
+static void checkSpecificNumberFormats( SvNumberFormatter& rFormatter,
+const std::vector& rVec, const char* pName )
+{
+
+for (size_t i = 0; i < rVec.size(); ++i)
+{
+sal_uInt32 nIndex = 0;
+double fNumber = 0;
+OUString aString( OUString::createFromAscii( rVec[i].mpInput));
+const bool bIsNumber = rFormatter.IsNumberFormat( aString, nIndex, 
fNumber);
+CPPUNIT_ASSERT_EQUAL_MESSAGE( OString( OString(pName) + " " + 
OString::number(i) +
+(rVec[i].mbNumber ? " not recognized: " : " should not be 
recognized: ") +
+OUStringToOString( aString, 
RTL_TEXTENCODING_UTF8)).getStr(), rVec[i].mbNumber, bIsNumber);
+if (bIsNumber)
+{
+Color* pColor;
+rFormatter.GetOutputString( fNumber, nIndex, aString, &pColor);
+CPPUNIT_ASSERT_EQUAL_MESSAGE( OString( OString(pName) + " " + 
OString::number(i)  + " mismatch").getStr(),
+OUString::createFromAscii( rVec[i].mpOutput), aString);
+}
+}
+}
+
+void Test::testIsNumberFormatSpecific()
+{
+{
+// en-US uses M/D/Y format, test that a-b-c input with a<=31 and b<=12
+// does not lead to a/b/c date output
+SvNumberFormatter aFormatter(m_xContext, LANGUAGE_ENGLISH_US);
+
+std::vector aIO = {
+{  "5-12-14", false, "" },
+{ "32-12-14",  true, "1932-12-14" }
+};
+
+checkSpecificNumberFormats( aFormatter, aIO, "[en-US] date");
+}
+
+{
+// de-DE uses D.M.Y format, test that a-b-c input with a<=31 and b<=12
+// does not lead to a.b.c date output
+SvNumberFormatter aFormatter(m_xContext, LANGUAGE_GERMAN);
+
+std::vector aIO = {
+{  "5-12-14", false, "" },
+{ "32-12-14",  true, "1932-12-14" }
+};
+
+checkSpecificNumberFormats( aFormatter, aIO, "[de-DE] date");
+}
+
+{
+// nl-NL uses D-M-Y format, test that D-M-Y input leads to D-M-Y output
+// and ISO Y-M-D input leads to Y-M-D output.
+SvNumberFormatter aFormatter(m_xContext, LANGUAGE_DUTCH);
+
+std::vector aIO = {
+{ "22-11-1999", true, "22-11-99" },// if default YY changes to 
 adapt this
+{ "1999-11-22", true, "1999-11-22" },
+{ "1-2-11", true, "01-02-11" },// if default YY changes to 
 adapt this
+{ "99-2-11",true, "1999-02-11" }
+};
+
+checkSpecificNumberFormats( aFormatter, aIO, "[nl-NL] date");
+}
+
+{
+// en-ZA uses Y/M/D format, test that Y/M/D input leads to Y/M/D output
+// and ISO Y-M-D input leads to Y-M-D output.
+SvNumberFormatter aFormatter(m_xContext, LANGUAGE_ENGLISH_SAFRICA);
+
+std::vector aIO = {
+{ "1999/11/22", true, "99/11/22" }, // if default YY changes 
to  adapt this
+{ "1999-11-22", true, "1999-11-22" },
+{ "11/2/1", true, "11/02/01" }, // if default YY changes 
to  adapt this
+{ "99-2-11",true, "1999-02-11" },
+{ "22-2-11",true, "2022-02-11" }
+};
+
+checkSpecificNumberFormats( aFormatter, aIO, "[en-ZA] date");
+}
+
+{
+// fr-FR uses D/M/Y format with additional D.M.Y and D-M-Y date
+// acceptance patterns, test combinations.
+SvNumberFormatter aFormatter(m_xContext, LANGUAGE_FRENCH);
+
+std::vector aIO = {
+{ "22/11/1999", true, "22/11/99" }, // if default YY changes 
to  adapt this
+{ "1999-11-22", true, "1999-11-22" },
+{

[Libreoffice-commits] help.git: help3xsl/localized.xsl help3xsl/online_transform.xsl

 help3xsl/localized.xsl|   22 +++---
 help3xsl/online_transform.xsl |4 +++-
 2 files changed, 22 insertions(+), 4 deletions(-)

New commits:
commit 54fb08a20e9b92af1e8085f9357fbd68b515678f
Author: Olivier Hallot 
Date:   Fri Feb 16 10:08:00 2018 -0200

Add more support for languages in online new Help

Added SL token for google
Tooltip for clipboard
Donation links

Change-Id: Ib73c07f64992553abb1b4048c10e1dbb9a2c3573
Reviewed-on: https://gerrit.libreoffice.org/49854
Reviewed-by: Olivier Hallot 
Tested-by: Olivier Hallot 

diff --git a/help3xsl/localized.xsl b/help3xsl/localized.xsl
index 9549eb9f1..45f6f5669 100644
--- a/help3xsl/localized.xsl
+++ b/help3xsl/localized.xsl
@@ -283,6 +283,7 @@ Stylesheet map language-dependent parameters and translation
 var cx = 
'010161382024564278136:1x2uk8j-rbw';
 var cx = 
'010161382024564278136:1x2uk8j-rbw';
 var cx = 
'010161382024564278136:syzgysikzms';
+var cx = 
'010161382024564278136:5varjpouixi';
 var cx = 
'010161382024564278136:gzcz3ueyhkw';
 var cx = 
'010161382024564278136:vkf9curztm8';
 var cx = 
'010161382024564278136:_goysgr6ptm';
@@ -292,10 +293,25 @@ Stylesheet map language-dependent parameters and 
translation
 
 
 
+
+
+Klikkaa kopioidaksesi 
leikepöydälle
+Clique no texto para copiar para a 
área de transferência
+Clique no texto para copiar para a 
área de transferência
+Click on text to copy to clipboard
+
+
+
+
+
+
 
-Klikkaa 
kopioidaksesi leikepöydälle
-Click on text to 
copy to clipboard
-
+Hvis du har funnet denne siden 
nyttig kan du bidra.
+Se esta página lhe foi útil, 
dê-nos seu apoio!
+Se esta página lhe foi útil, 
dê-nos seu apoio!
+Če vam je stran v pomoč, nam 
lahko pomagate!
+If this page has been helpful, you can 
support us!
+
 
 
 
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index db296cbf6..ee93c80bf 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -284,7 +284,9 @@
 
 
 
-If this page has been helpful, https://www.libreoffice.org/donate/?pk_campaign=help"; target 
="_blank">you can support us!
+https://www.libreoffice.org/donate/?pk_campaign=help"; target ="_blank">
+
+
 
 
 http://www.libreoffice.org/imprint"; 
target="_blank">Impressum (Legal Info) | http://www.libreoffice.org/privacy"; target="_blank">Privacy Policy | 
http://www.documentfoundation.org/statutes.pdf"; 
target="_blank">Statutes (non-binding English translation) - http://www.documentfoundation.org/satzung.pdf"; target="_blank">Satzung 
(binding German version) | Copyright information: Unless otherwise 
specified, all text and images on this website are licensed under the http://www.libreoffice.org/download/license/"; target="_blank">Mozilla 
Public License v2.0. “LibreOffice” and “The Document Foundation” are 
registered trademarks of their corresponding registered owners or are in actual 
use as trademarks in one or more countries. Their respective logos and icons 
are also subject to international copyright laws. Use thereof is explained in 
our http://wiki.documentfoundation.org/TradeMark_Policy"; target
 ="_blank">trademark policy. LibreOffice was based on OpenOffice.org.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2

 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 914f0922baf93eac9c966907cee932f53e72e887
Author: Olivier Hallot 
Date:   Fri Feb 16 10:08:00 2018 -0200

Updated core
Project: help  54fb08a20e9b92af1e8085f9357fbd68b515678f

Add more support for languages in online new Help

Added SL token for google
Tooltip for clipboard
Donation links

Change-Id: Ib73c07f64992553abb1b4048c10e1dbb9a2c3573
Reviewed-on: https://gerrit.libreoffice.org/49854
Reviewed-by: Olivier Hallot 
Tested-by: Olivier Hallot 

diff --git a/helpcontent2 b/helpcontent2
index d1ea71763345..54fb08a20e9b 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit d1ea71763345803f861bba8a617182522d48
+Subproject commit 54fb08a20e9b92af1e8085f9357fbd68b515678f
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 sfx2/source/appl/newhelp.cxx  |   16 ++---
 sfx2/source/appl/workwin.cxx  |   74 --
 sfx2/source/control/charwin.cxx   |4 -
 sfx2/source/dialog/basedlgs.cxx   |4 -
 sfx2/source/dialog/dinfdlg.cxx|2 
 sfx2/source/dialog/dockwin.cxx|   36 ++--
 sfx2/source/dialog/recfloat.cxx   |4 -
 sfx2/source/dialog/splitwin.cxx   |8 +-
 sfx2/source/dialog/templdlg.cxx   |6 +-
 sfx2/source/dialog/titledockwin.cxx   |4 -
 sfx2/source/doc/doctemplates.cxx  |4 -
 sfx2/source/doc/sfxbasemodel.cxx  |4 -
 sfx2/source/notebookbar/ContextVBox.cxx   |4 -
 sfx2/source/sidebar/Deck.cxx  |8 +-
 sfx2/source/sidebar/DeckLayouter.cxx  |2 
 sfx2/source/sidebar/TitleBar.cxx  |2 
 sfx2/source/view/classificationcontroller.cxx |2 
 sfx2/source/view/frame.cxx|4 -
 sfx2/source/view/viewfrm.cxx  |   16 ++---
 sfx2/source/view/viewsh.cxx   |4 -
 20 files changed, 103 insertions(+), 105 deletions(-)

New commits:
commit 3987c2b0e8477152e4f85ce7fa1b70eb38e171f7
Author: Noel Grandin 
Date:   Fri Feb 16 09:20:09 2018 +0200

Revert "loplugin:changetoolsgen in sfx2" and reapply plugin...

because I
(a) forgot to insert parentheses which changes the meaning of some 
expressions and
(b) I now use the AdjustFoo calls when changing unary operations, which 
reads much better

This reverts commit c82802a9ee3514d0b98fbb3783abbc17ec02c3b6.

Change-Id: I44a5316ebd3d0bde6bd75ad24e9a4406cd8e8db0
Reviewed-on: https://gerrit.libreoffice.org/49836
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 1afc7258af4a..9ecbf4672d46 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -488,8 +488,8 @@ void IndexBox_Impl::UserDraw( const UserDrawEvent& rUDEvt )
 {
 // indent sub entries
 Point aPos( rUDEvt.GetRect().TopLeft() );
-aPos.setX( aPos.X() + 8 );
-aPos.setY( aPos.Y() + (rUDEvt.GetRect().GetHeight() - 
rUDEvt.GetRenderContext()->GetTextHeight()) / 2 );
+aPos.AdjustX(8 );
+aPos.AdjustY((rUDEvt.GetRect().GetHeight() - 
rUDEvt.GetRenderContext()->GetTextHeight()) / 2 );
 OUString aEntry( GetEntry( rUDEvt.GetItemId() ) );
 sal_Int32 nPos = aEntry.indexOf( ';' );
 rUDEvt.GetRenderContext()->DrawText(aPos, (nPos !=-1) ? 
aEntry.copy(nPos + 1) : aEntry);
@@ -1983,7 +1983,7 @@ void SfxHelpTextWindow_Impl::InitToolBoxImages()
 );
 
 Size aSize = aToolBox->CalcWindowSizePixel();
-aSize.Height() += TOOLBOX_OFFSET;
+aSize.AdjustHeight(TOOLBOX_OFFSET );
 aToolBox->SetPosSizePixel( Point( 0, TOOLBOX_OFFSET ), aSize );
 
 SvtMiscOptions aMiscOptions;
@@ -2073,8 +2073,8 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox()
 Size aTBSize = aToolBox->GetSizePixel();
 Size aCBSize = aOnStartupCB->GetSizePixel();
 Point aPnt = aToolBox->GetPosPixel();
-aPnt.setX( aPnt.X() + aTBSize.Width() + a3Size.Width() );
-aPnt.setY( aPnt.Y() + ( ( aTBSize.Height() - aCBSize.Height() ) / 2 ) 
);
+aPnt.AdjustX(aTBSize.Width() + a3Size.Width() );
+aPnt.AdjustY( ( aTBSize.Height() - aCBSize.Height() ) / 2 );
 aOnStartupCB->SetPosPixel( aPnt );
 nMinPos = aPnt.X();
 }
@@ -2312,7 +2312,7 @@ void SfxHelpTextWindow_Impl::Resize()
 {
 Size aSize = GetOutputSizePixel();
 long nToolBoxHeight = aToolBox->GetSizePixel().Height() + TOOLBOX_OFFSET;
-aSize.setHeight( aSize.Height() - nToolBoxHeight );
+aSize.AdjustHeight( -nToolBoxHeight );
 pTextWin->SetPosSizePixel( Point( 0, nToolBoxHeight  ), aSize );
 SetOnStartupBoxPosition();
 }
@@ -2334,7 +2334,7 @@ bool SfxHelpTextWindow_Impl::PreNotify( NotifyEvent& 
rNEvt )
 aPos = pCmdEvt->GetMousePosPixel();
 else
 aPos = Point( pTextWin->GetPosPixel().X() + 20, 20 );
-aPos.setY( aPos.Y() + pTextWin->GetPosPixel().Y() );
+aPos.AdjustY(pTextWin->GetPosPixel().Y() );
 ScopedVclPtrInstance aMenu;
 if ( bIsIndexOn )
 aMenu->InsertItem(TBI_INDEX, aIndexOffText, 
Image(BitmapEx(BMP_HELP_TOOLBOX_INDEX_OFF)));
@@ -2667,7 +2667,7 @@ void SfxHelpWindow_Impl::MakeLayout()
 tools::Rectangle aScreenRect = 
pScreenWin->GetClientWindowExtentsRelative();
 Point aNewPos = aScreenRect.TopLeft();
 sal_Int32 nDiffWidth = nOldWidth - nWidth;
-aNewPos.setX( aNewPos.X() + nDiffWidth );
+aNewPos.AdjustX(nDiffWidth );
 pScreenWin->SetPosPixel( aNewPos );
 }
 else if ( aWinPos.X() > 0 && aWinPos.Y() > 0 )
diff --git a/s

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

 sd/source/core/sdpage.cxx  |   52 
+-
 sd/source/filter/eppt/pptx-epptbase.cxx|4 
 sd/source/filter/grf/sdgrffilter.cxx   |4 
 sd/source/filter/html/buttonset.cxx|6 -
 sd/source/ui/animations/CustomAnimationList.cxx|   26 ++---
 sd/source/ui/annotations/annotationtag.cxx |4 
 sd/source/ui/controller/displaymodecontroller.cxx  |8 -
 sd/source/ui/controller/slidelayoutcontroller.cxx  |8 -
 sd/source/ui/dlg/RemoteDialogClientBox.cxx |   14 +-
 sd/source/ui/dlg/animobjs.cxx  |4 
 sd/source/ui/dlg/headerfooterdlg.cxx   |4 
 sd/source/ui/docshell/docshel2.cxx |4 
 sd/source/ui/func/fudraw.cxx   |8 -
 sd/source/ui/func/fuinsert.cxx |8 -
 sd/source/ui/func/fuinsfil.cxx |4 
 sd/source/ui/func/fusel.cxx|8 -
 sd/source/ui/func/futext.cxx   |4 
 sd/source/ui/func/fuzoom.cxx   |   12 +-
 sd/source/ui/sidebar/LayoutMenu.cxx|8 -
 sd/source/ui/slideshow/slideshowimpl.cxx   |2 
 sd/source/ui/slideshow/slideshowviewimpl.cxx   |4 
 sd/source/ui/slidesorter/cache/SlsBitmapFactory.cxx|2 
 sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx|   12 +-
 sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx|8 -
 sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx |4 
 sd/source/ui/slidesorter/view/SlsLayouter.cxx  |   12 +-
 sd/source/ui/table/TableDesignPane.cxx |6 -
 sd/source/ui/table/tablefunction.cxx   |4 
 sd/source/ui/view/DocumentRenderer.cxx |   30 ++---
 sd/source/ui/view/ViewShellBase.cxx|4 
 sd/source/ui/view/drviews1.cxx |2 
 sd/source/ui/view/drviews2.cxx |8 -
 sd/source/ui/view/drviews3.cxx |2 
 sd/source/ui/view/drviews5.cxx |2 
 sd/source/ui/view/drviews8.cxx |4 
 sd/source/ui/view/drviews9.cxx |4 
 sd/source/ui/view/drviewsa.cxx |8 -
 sd/source/ui/view/drviewse.cxx |   34 +++---
 sd/source/ui/view/drviewsh.cxx |   16 +--
 sd/source/ui/view/frmview.cxx  |4 
 sd/source/ui/view/outlview.cxx |   14 +-
 sd/source/ui/view/sdview3.cxx  |   36 +++---
 sd/source/ui/view/sdview4.cxx  |4 
 sd/source/ui/view/sdwindow.cxx |   16 +--
 sd/source/ui/view/viewoverlaymanager.cxx   |4 
 45 files changed, 218 insertions(+), 218 deletions(-)

New commits:
commit 4beed2ba7335fdb211aca7f70a144ffecf90a781
Author: Noel Grandin 
Date:   Fri Feb 16 08:43:34 2018 +0200

Revert "loplugin:changetoolsgen in sd" and reapply the plugin...

because I
(a) forgot to insert parentheses which changes the meaning of some 
expressions and
(b) I now use the AdjustFoo calls when changing unary operations, which 
reads much better

This reverts commit 0d9f3f7628f88fa66aaeea1f7148db620e17e728.

Change-Id: I33f79bf755aedc1ed48d95f7b82f3fabed1347fb
Reviewed-on: https://gerrit.libreoffice.org/49834
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 867c4df6c3c0..ad906e23c556 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -987,12 +987,12 @@ SdrObject* SdPage::CreateDefaultPresObj(PresObjKind 
eObjKind)
 Point aPos ( nLftBorder, nUppBorder );
 Size aSize ( GetSize() );
 
-aSize.setWidth( aSize.Width() - nLftBorder + GetRightBorder() );
-aSize.setHeight( aSize.Height() - nUppBorder + GetLowerBorder() );
+aSize.AdjustWidth( -(nLftBorder + GetRightBorder()) );
+aSize.AdjustHeight( -(nUppBorder + GetLowerBorder()) );
 
 getPresObjProp( *this, sObjKind, sPageKind, propvalue);
-aPos.setX( aPos.X() + long( aSize.Width() * propvalue[2] ) );
-aPos.setY( aPos.Y() + long( aSize.Height() * propvalue[3] ) );
+aPos.AdjustX(long( aSize.Width() * propvalue[2] ) );
+aPos.AdjustY(long( aSize.Height() * propvalue[3] ) );
   

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

 filter/source/msfilter/msdffimp.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 79afa1d9b3ac33b75512095c6383db7f47342f26
Author: Caolán McNamara 
Date:   Fri Feb 16 09:54:10 2018 +

ofz#6390 Leak

Change-Id: Icc2b90ac062da32c9da4cce67f15f6e55e005c2b
Reviewed-on: https://gerrit.libreoffice.org/49842
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index 4d0403a1163e..69688a038fae 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4137,6 +4137,8 @@ SdrObject* SvxMSDffManager::ImportGroup( const 
DffRecordHeader& rHd, SvStream& r
 if (nShapeId)
 insertShapeId(nShapeId, pTmp);
 }
+else
+SdrObject::Free(pTmp);
 }
 }
 if (!aRecHd2.SeekToEndOfRecord(rSt))
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/CppunitTest_sc_bugfix_test.mk sc/CppunitTest_sc_filters_test.mk sc/inc sc/qa

 sc/CppunitTest_sc_bugfix_test.mk   |4 -
 sc/CppunitTest_sc_filters_test.mk  |4 -
 sc/inc/document.hxx|2 
 sc/qa/unit/data/xml/merged-cells.xml   |  101 +
 sc/qa/unit/helper/qahelper.cxx |2 
 sc/qa/unit/helper/qahelper.hxx |2 
 sc/qa/unit/subsequent_filters-test.cxx |   37 
 7 files changed, 141 insertions(+), 11 deletions(-)

New commits:
commit cbec4cb7b11081ccc75822cf4954a5cc253c15f3
Author: Kohei Yoshida 
Date:   Thu Feb 15 23:04:58 2018 -0500

Add a test case for importing merged cells from Excel 2003 XML file.

Since the filter type has changed, we need to also update the filter
flags used in the unit tests.  And because the new filter no longer
relies on XSLT, we can drop the dependency on xslt.

Change-Id: I9dd040b3c8c0e95300c4dda1b87bf448a800097d
Reviewed-on: https://gerrit.libreoffice.org/49832
Tested-by: Jenkins 
Reviewed-by: Kohei Yoshida 

diff --git a/sc/CppunitTest_sc_bugfix_test.mk b/sc/CppunitTest_sc_bugfix_test.mk
index d14a9e1154da..7a5d5825d1d8 100644
--- a/sc/CppunitTest_sc_bugfix_test.mk
+++ b/sc/CppunitTest_sc_bugfix_test.mk
@@ -119,8 +119,4 @@ endif
 
 $(eval $(call gb_CppunitTest_use_configuration,sc_bugfix_test))
 
-$(eval $(call gb_CppunitTest_use_packages,sc_bugfix_test,\
-   filter_xslt \
-))
-
 # vim: set noet sw=4 ts=4:
diff --git a/sc/CppunitTest_sc_filters_test.mk 
b/sc/CppunitTest_sc_filters_test.mk
index 3026f841504a..1f83822b107a 100644
--- a/sc/CppunitTest_sc_filters_test.mk
+++ b/sc/CppunitTest_sc_filters_test.mk
@@ -113,8 +113,4 @@ $(eval $(call 
gb_CppunitTest_use_components,sc_filters_test,\
 
 $(eval $(call gb_CppunitTest_use_configuration,sc_filters_test))
 
-$(eval $(call gb_CppunitTest_use_packages,sc_filters_test,\
-   filter_xslt \
-))
-
 # vim: set noet sw=4 ts=4:
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 26d82e631683..c74e6789cf36 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -1196,7 +1196,7 @@ public:
SCCOL& rEndCol, SCROW& rEndRow, SCTAB nTab,
bool bRefresh = false );
 bool  ExtendMerge( ScRange& rRange, bool bRefresh = false );
-void  ExtendTotalMerge( ScRange& rRange ) const;
+SC_DLLPUBLIC void ExtendTotalMerge( ScRange& rRange ) const;
 SC_DLLPUBLIC void ExtendOverlapped( SCCOL& rStartCol, SCROW& rStartRow,
 SCCOL nEndCol, SCROW nEndRow, SCTAB 
nTab ) const;
 SC_DLLPUBLIC void ExtendOverlapped( ScRange& rRange ) const;
diff --git a/sc/qa/unit/data/xml/merged-cells.xml 
b/sc/qa/unit/data/xml/merged-cells.xml
new file mode 100644
index ..6bc69d55b165
--- /dev/null
+++ b/sc/qa/unit/data/xml/merged-cells.xml
@@ -0,0 +1,101 @@
+
+
+http://www.w3.org/TR/REC-html40";>
+ 
+  Kohei Yoshida
+  Kohei Yoshida
+  2016-12-15T03:48:24Z
+  2016-12-15T03:54:21Z
+  15.00
+ 
+ 
+  
+ 
+ 
+  14385
+  24000
+  0
+  0
+  
+  False
+  False
+ 
+ 
+  
+   
+   
+   
+   
+   
+   
+  
+  
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+  
+   
+   
+  
+ 
+ 
+  
+   
+1
+2
+3
+   
+   
+2
+   
+   
+merged cell
+   
+   
+3
+   
+  
+  
+   
+
+
+
+   
+   
+
+0
+   
+   
+   
+
+ 3
+ 8
+ 5
+
+   
+   False
+   False
+  
+ 
+
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index bb260aa23080..90f37a89db56 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -78,7 +78,7 @@ const FileFormat ScBootstrapFixture::aFileFormats[] = {
 { "html" , "calc_HTML_WebQuery", "generic_HTML", HTML_FORMAT_TYPE },
 { "123" , "Lotus", "calc_Lotus", LOTUS123_FORMAT_TYPE },
 { "dif", "DIF", "calc_DIF", DIF_FORMAT_TYPE },
-{ "xml", "MS Excel 2003 XML", "calc_MS_Excel_2003_XML", 
XLS_XML_FORMAT_TYPE },
+{ "xml", "MS Excel 2003 XML Orcus", "calc_MS_Excel_2003_XML", 
XLS_XML_FORMAT_TYPE },
 { "xlsb", "Calc MS Excel 2007 Binary", "MS Excel 2007 Binary", 
XLSB_XML_FORMAT_TYPE },
 { "fods", "OpenDocument Spreadsheet Flat XML", "calc_ODS_FlatXML", 
FO

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

 svl/source/numbers/zforfind.cxx |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 2448e6cfeb787ae37cdadd7d6181e723b7024d27
Author: Eike Rathke 
Date:   Fri Feb 16 12:18:05 2018 +0100

Resolves: tdf#114833 do not officiously force Y-M-D if D-M-Y is applicable

Change-Id: Idbfecf0ff08843db9970a301ab3c3a7317c08cda

diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 241bfc76e4be..85b27797d204 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -1068,7 +1068,9 @@ bool ImpSvNumberInputScan::CanForceToIso8601( DateOrder 
eDateOrder )
 {
 // As if any of the cases below can be applied, but only if a
 // locale dependent date pattern was not matched.
-return (GetDatePatternNumbers() != nNumericsCnt) || 
!IsDatePatternNumberOfType(0,'Y');
+if ((GetDatePatternNumbers() == nNumericsCnt) && 
IsDatePatternNumberOfType(0,'Y'))
+return false;
+eDateOrder = GetDateOrder();
 }
 
 nCanForceToIso8601 = 1;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 tools/source/stream/stream.cxx |   11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit bcdaaf62d41728eb757ff2b9cb95c2df2791e2f4
Author: Caolán McNamara 
Date:   Fri Feb 16 09:20:12 2018 +

Resolves: tdf#115750 SvStream::WriteStream was broken

and didn't stop copying at the size limit arg

Change-Id: I8f1be0310160f5158d2f64c62d6b2c09c0157930
Reviewed-on: https://gerrit.libreoffice.org/49838
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 3a9f767880dd..5d6d3e58336b 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1186,13 +1186,12 @@ sal_uInt64 SvStream::WriteStream( SvStream& rStream, 
sal_uInt64 nSize )
 sal_uInt32 nCount;
 sal_uInt64 nWriteSize = nSize;
 
-do {
-if ( nSize >= nCurBufLen )
-nWriteSize -= nCurBufLen;
-else
-nCurBufLen = nWriteSize;
-nCount = rStream.ReadBytes( pBuf.get(), nCurBufLen );
+do
+{
+nCurBufLen = std::min(nCurBufLen, nWriteSize);
+nCount = rStream.ReadBytes(pBuf.get(), nCurBufLen);
 WriteBytes( pBuf.get(), nCount );
+nWriteSize -= nCount;
 }
 while( nWriteSize && nCount == nCurBufLen );
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - common/UnitHTTP.hpp

 common/UnitHTTP.hpp |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a4396b9be569d4fcaedfff1b3a18157db1fa9292
Author: Rene Engelhard 
Date:   Mon Nov 13 20:20:00 2017 +0100

fix build with poco 1.8.0(.1)

(cherry picked from commit 623b45a533198acc3ef7a393382f23ebb0f6ebab)

diff --git a/common/UnitHTTP.hpp b/common/UnitHTTP.hpp
index 0343036f..a6a107d9 100644
--- a/common/UnitHTTP.hpp
+++ b/common/UnitHTTP.hpp
@@ -82,13 +82,13 @@ public:
 {
 return _dummyStream;
 }
-#if POCO_VERSION < 0x0200
+#if POCO_VERSION < 0x0108
 virtual bool expectContinue() const override
 {
 return false;
 }
 #endif
-#if POCO_VERSION >= 0x0200
+#if POCO_VERSION >= 0x0108
 virtual bool secure() const override
 {
 return true;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Piyush Palawat license statement

All of my past and future contributions to LibreOffice may be licensed
under the MPLv2/LGPLv3+ dual license
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


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

 oox/source/export/shapes.cxx|4 +-
 reportdesign/source/ui/report/EndMarker.cxx |2 -
 reportdesign/source/ui/report/ReportWindow.cxx  |2 -
 reportdesign/source/ui/report/ScrollHelper.cxx  |8 ++---
 reportdesign/source/ui/report/SectionWindow.cxx |   10 +++
 reportdesign/source/ui/report/StartMarker.cxx   |4 +-
 reportdesign/source/ui/report/ViewsWindow.cxx   |   34 
 reportdesign/source/ui/report/dlgedfunc.cxx |4 +-
 8 files changed, 34 insertions(+), 34 deletions(-)

New commits:
commit 261d422d9e0dc4d36ddfa43180e63286cbb89bf4
Author: Noel Grandin 
Date:   Fri Feb 16 08:32:14 2018 +0200

Revert "loplugin:changetoolsgen in oox,reportdesign" and reapply..

the plugin because I
(a) forgot to insert parentheses which changes the meaning of some 
expressions and
(b) I now use the AdjustFoo calls when changing unary operations, which 
reads much better

This reverts commit 457220bc2c0142c5b6f4135cb688ccfc99fec792.

Change-Id: I2c6b1092c8bfa4fa14acbc7445f546d43cb2a86e
Reviewed-on: https://gerrit.libreoffice.org/49833
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 72f2eac304ba..8f374c0d54d1 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -386,9 +386,9 @@ awt::Size ShapeExport::MapSize( const awt::Size& rSize ) 
const
 Size aRetSize( OutputDevice::LogicToLogic( Size( rSize.Width, rSize.Height 
), maMapModeSrc, maMapModeDest ) );
 
 if ( !aRetSize.Width() )
-aRetSize.setWidth( ++aRetSize.Width() );
+aRetSize.AdjustWidth( 1 );
 if ( !aRetSize.Height() )
-aRetSize.setHeight( ++aRetSize.Height() );
+aRetSize.AdjustHeight( 1 );
 return awt::Size( aRetSize.Width(), aRetSize.Height() );
 }
 
diff --git a/reportdesign/source/ui/report/EndMarker.cxx 
b/reportdesign/source/ui/report/EndMarker.cxx
index fc1f2703f7f6..0e763fce8c24 100644
--- a/reportdesign/source/ui/report/EndMarker.cxx
+++ b/reportdesign/source/ui/report/EndMarker.cxx
@@ -48,7 +48,7 @@ void OEndMarker::Paint(vcl::RenderContext& rRenderContext, 
const tools::Rectangl
 const long nCornerSpace = long(aCornerSpace);
 
 Size aSize = GetSizePixel();
-aSize.setWidth( aSize.Width() + nCornerSpace );
+aSize.AdjustWidth(nCornerSpace );
 tools::Rectangle aWholeRect(Point(-nCornerSpace,0),aSize);
 tools::PolyPolygon aPoly;
 aPoly.Insert( tools::Polygon(aWholeRect,nCornerSpace,nCornerSpace));
diff --git a/reportdesign/source/ui/report/ReportWindow.cxx 
b/reportdesign/source/ui/report/ReportWindow.cxx
index 54f5db8c7955..a710f34f62e6 100644
--- a/reportdesign/source/ui/report/ReportWindow.cxx
+++ b/reportdesign/source/ui/report/ReportWindow.cxx
@@ -192,7 +192,7 @@ void OReportWindow::Resize()
 m_aHRuler->SetMargin1(0);
 m_aHRuler->SetMargin2(aPageSize.Width() - nLeftMargin - nRightMargin);
 
-aStartPoint.setY( aStartPoint.Y() + aPageSize.Height() );
+aStartPoint.AdjustY(aPageSize.Height() );
 nSectionsHeight -= aStartPoint.Y();
 
 aStartPoint.setX( aOffset.X() );
diff --git a/reportdesign/source/ui/report/ScrollHelper.cxx 
b/reportdesign/source/ui/report/ScrollHelper.cxx
index d43921fdfb42..12251126cea5 100644
--- a/reportdesign/source/ui/report/ScrollHelper.cxx
+++ b/reportdesign/source/ui/report/ScrollHelper.cxx
@@ -125,7 +125,7 @@ Size OScrollWindowHelper::ResizeScrollBars()
 if ( aOutPixSz.Width() == 0 || aOutPixSz.Height() == 0 )
 return aOutPixSz;
 
-aOutPixSz.setHeight( aOutPixSz.Height() - 
m_aReportWindow->getRulerHeight() );
+aOutPixSz.AdjustHeight( -(m_aReportWindow->getRulerHeight()) );
 // determine the size of the output-area and if we need scrollbars
 const long nScrSize = GetSettings().GetStyleSettings().GetScrollBarSize();
 bool bVVisible = false; // by default no vertical-ScrollBar
@@ -139,7 +139,7 @@ Size OScrollWindowHelper::ResizeScrollBars()
 if ( aOutPixSz.Width() < m_aTotalPixelSize.Width() && !bHVisible )
 {
 bHVisible = true;
-aOutPixSz.setHeight( aOutPixSz.Height() - nScrSize );
+aOutPixSz.AdjustHeight( -nScrSize );
 bChanged = true;
 }
 
@@ -147,14 +147,14 @@ Size OScrollWindowHelper::ResizeScrollBars()
 if ( aOutPixSz.Height() < m_aTotalPixelSize.Height() && !bVVisible )
 {
 bVVisible = true;
-aOutPixSz.setWidth( aOutPixSz.Width() - nScrSize );
+aOutPixSz.AdjustWidth( -nScrSize );
 bChanged = true;
 }
 
 }
 while ( bChanged );   // until no visibility has changed
 
-aOutPixSz.setHeight( aOutPixSz.Height() + 
m_aReportWindow->getRulerHeight() );
+aOutPixSz.AdjustHeight(m_aReportWindow->getRulerHeight() );
 
 // show or hide scrollbars
 m_aVScroll->Show( bVVisible );
diff --git a/reportdesign

[Libreoffice-commits] online.git: Changes to 'refs/tags/2.1.5-6'

Tag '2.1.5-6' created by Andras Timar  at 
2018-02-16 10:16 +

2.1.5-6

Changes since 2.1.5-rc3-16:
---
 0 files changed
---
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - debian/changelog loolwsd.spec.in

 debian/changelog |6 ++
 loolwsd.spec.in  |2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

New commits:
commit be39f3c4111364a9bab0837df8fc52856687465c
Author: Andras Timar 
Date:   Fri Feb 16 11:15:34 2018 +0100

Bump version for packages 2.1.5-5

Change-Id: I5687334beb0a4d09def87a9d8d8c190f8418

diff --git a/debian/changelog b/debian/changelog
index e9500cb4..4429cdda 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+loolwsd (2.1.5-6) unstable; urgency=medium
+
+  * see the git log: http://col.la/cool21
+
+ -- Andras Timar   Fri, 16 Feb 2018 18:10:00 +0100
+
 loolwsd (2.1.5-5) unstable; urgency=medium
 
   * add collaboraofficebasis5.3-filter-data as dependency
diff --git a/loolwsd.spec.in b/loolwsd.spec.in
index 397af41a..223e6b56 100644
--- a/loolwsd.spec.in
+++ b/loolwsd.spec.in
@@ -12,7 +12,7 @@ Name:   loolwsd%{name_suffix}
 Name:   loolwsd
 %endif
 Version:@PACKAGE_VERSION@
-Release:5%{?dist}
+Release:6%{?dist}
 %if 0%{?suse_version} == 1110
 Group:  Productivity/Office/Suite
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loolwsd.xml.in wsd/LOOLWSD.cpp

 loolwsd.xml.in  |2 +-
 wsd/LOOLWSD.cpp |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9e386777305670b3abe8f2234802dd11a72c6909
Author: Andras Timar 
Date:   Fri Feb 16 11:07:21 2018 +0100

Allow preload of nl dictionary by default

Change-Id: Id6410fa4febdd778f511e0bdcc4324ad0c2fdf43
(cherry picked from commit 0b382f879b86cfe377cd41e4a8ac53afbfcc4e5d)

diff --git a/loolwsd.xml.in b/loolwsd.xml.in
index 3376bcaa..c1e7f7cb 100644
--- a/loolwsd.xml.in
+++ b/loolwsd.xml.in
@@ -3,7 +3,7 @@
 
 
 
-de_DE en_GB en_US 
es_ES fr_FR it pt_BR pt_PT ru
+de_DE en_GB en_US 
es_ES fr_FR it nl pt_BR pt_PT ru
 
 
 
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index 2b10d469..7f2b3d49 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -626,7 +626,7 @@ void LOOLWSD::initialize(Application& self)
 
 // Add default values of new entries here.
 static const std::map DefAppConfig
-= { { "allowed_languages", "de_DE en_GB en_US es_ES fr_FR it pt_BR 
pt_PT ru" },
+= { { "allowed_languages", "de_DE en_GB en_US es_ES fr_FR it nl pt_BR 
pt_PT ru" },
 { "tile_cache_path", LOOLWSD_CACHEDIR },
 { "tile_cache_persistent", "true" },
 { "sys_template_path", "systemplate" },
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - loolwsd.xml.in wsd/LOOLWSD.cpp

 loolwsd.xml.in  |2 +-
 wsd/LOOLWSD.cpp |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1f4860324a5e74b2e40830f9e618a1be9bec953e
Author: Andras Timar 
Date:   Fri Feb 16 11:07:21 2018 +0100

Allow preload of nl dictionary by default

Change-Id: Id6410fa4febdd778f511e0bdcc4324ad0c2fdf43
(cherry picked from commit 0b382f879b86cfe377cd41e4a8ac53afbfcc4e5d)

diff --git a/loolwsd.xml.in b/loolwsd.xml.in
index 724a3d67..9103395d 100644
--- a/loolwsd.xml.in
+++ b/loolwsd.xml.in
@@ -3,7 +3,7 @@
 
 
 
-de_DE en_GB en_US 
es_ES fr_FR it pt_BR pt_PT ru
+de_DE en_GB en_US 
es_ES fr_FR it nl pt_BR pt_PT ru
 
 
 
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index 9b89afb5..83c4b1c2 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -634,7 +634,7 @@ void LOOLWSD::initialize(Application& self)
 
 // Add default values of new entries here.
 static const std::map DefAppConfig
-= { { "allowed_languages", "de_DE en_GB en_US es_ES fr_FR it pt_BR 
pt_PT ru" },
+= { { "allowed_languages", "de_DE en_GB en_US es_ES fr_FR it nl pt_BR 
pt_PT ru" },
 { "tile_cache_path", LOOLWSD_CACHEDIR },
 { "tile_cache_persistent", "true" },
 { "sys_template_path", "systemplate" },
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: loolwsd.xml.in wsd/LOOLWSD.cpp

 loolwsd.xml.in  |2 +-
 wsd/LOOLWSD.cpp |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0b382f879b86cfe377cd41e4a8ac53afbfcc4e5d
Author: Andras Timar 
Date:   Fri Feb 16 11:07:21 2018 +0100

Allow preload of nl dictionary by default

Change-Id: Id6410fa4febdd778f511e0bdcc4324ad0c2fdf43

diff --git a/loolwsd.xml.in b/loolwsd.xml.in
index 724a3d67..9103395d 100644
--- a/loolwsd.xml.in
+++ b/loolwsd.xml.in
@@ -3,7 +3,7 @@
 
 
 
-de_DE en_GB en_US 
es_ES fr_FR it pt_BR pt_PT ru
+de_DE en_GB en_US 
es_ES fr_FR it nl pt_BR pt_PT ru
 
 
 
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index e052462e..e27266e4 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -630,7 +630,7 @@ void LOOLWSD::initialize(Application& self)
 
 // Add default values of new entries here.
 static const std::map DefAppConfig
-= { { "allowed_languages", "de_DE en_GB en_US es_ES fr_FR it pt_BR 
pt_PT ru" },
+= { { "allowed_languages", "de_DE en_GB en_US es_ES fr_FR it nl pt_BR 
pt_PT ru" },
 { "tile_cache_path", LOOLWSD_CACHEDIR },
 { "tile_cache_persistent", "true" },
 { "sys_template_path", "systemplate" },
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sw/source

 sw/source/core/layout/anchoredobject.cxx |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit ea3111651ee4e88f7abc359ce8f8eb390bbe7d45
Author: Miklos Vajna 
Date:   Tue Feb 13 11:44:36 2018 +0100

sw: work around what seems to be a gcc-4.8 compiler bug

Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
(anonymous namespace)::print_type<15> (ctx=..., 
info=0x7fff7f90, unknown_name=...) at 
../../../../../libstdc++-v3/src/c++11/debug.cc:641
641 ../../../../../libstdc++-v3/src/c++11/debug.cc: No such 
file or directory.
(gdb) up
#1  0x76abb008 in (anonymous namespace)::print_description 
(ctx=..., inst=...) at ../../../../../libstdc++-v3/src/c++11/debug.cc:817
817 in ../../../../../libstdc++-v3/src/c++11/debug.cc
(gdb)
#2  0x76abc7aa in (anonymous namespace)::print_description 
(param=..., ctx=...) at ../../../../../libstdc++-v3/src/c++11/debug.cc:835
835 in ../../../../../libstdc++-v3/src/c++11/debug.cc
(gdb)
#3  __gnu_debug::_Error_formatter::_M_error (this=0x7fff7af0) 
at ../../../../../libstdc++-v3/src/c++11/debug.cc:1061
1061in ../../../../../libstdc++-v3/src/c++11/debug.cc
(gdb)
#4  0x7fffca2b6313 in 
__gnu_debug::operator!=<__gnu_cxx::__normal_iterator > 
>, std::__debug::vector > 
> (__lhs=0x0, __rhs=invalid iterator) at 
/usr/include/c++/4.8/debug/safe_iterator.h:535
535   _GLIBCXX_DEBUG_VERIFY(! __lhs._M_singular() && ! 
__rhs._M_singular(),
(gdb)
#5  0x7fffca7f3de2 in SwAnchoredObject::UpdateObjInSortedList 
(this=0x1fa6fd8) at 
/git/libreoffice/master/sw/source/core/layout/anchoredobject.cxx:629
629 for (SwAnchoredObject* pAnchoredObj : 
*pObjs)

Given that valgrind doesn't point out anything and the old and the new code 
is
meant to be the same, my only guess is that the baseline gcc has some 
codegen
bug. This happens reasonably frequently, current bugdoc was a DOCX file
with 4 shapes anchored to the same paragraph, affecting only dbgutil
builds, it seems.

The tdf#115719 bugdoc is a reproducer for the crash.

(cherry picked from commit d34dcde1d0ccee2d78eea08185f12949f53ceae3)

Change-Id: I2316e25eea87f2aa5736576d5168e113480f80e4
Reviewed-on: https://gerrit.libreoffice.org/49835
Tested-by: Jenkins 
Reviewed-by: Michael Stahl 

diff --git a/sw/source/core/layout/anchoredobject.cxx 
b/sw/source/core/layout/anchoredobject.cxx
index 4b79a357771f..dc85d1d235a0 100644
--- a/sw/source/core/layout/anchoredobject.cxx
+++ b/sw/source/core/layout/anchoredobject.cxx
@@ -625,8 +625,9 @@ void SwAnchoredObject::UpdateObjInSortedList()
 {
 const SwSortedObjs* pObjs = GetAnchorFrame()->GetDrawObjs();
 // determine start index
-for (SwAnchoredObject* pAnchoredObj : *pObjs)
+for (auto it = pObjs->begin(); it != pObjs->end(); ++it)
 {
+SwAnchoredObject* pAnchoredObj = *it;
 if ( pAnchoredObj->ConsiderObjWrapInfluenceOnObjPos() )
 
pAnchoredObj->InvalidateObjPosForConsiderWrapInfluence();
 else
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

 sw/inc/grfatr.hxx  |   10 +++---
 sw/source/core/graphic/grfatr.cxx  |   28 +++-
 xmloff/source/text/XMLTextFrameContext.cxx |8 
 xmloff/source/text/txtparae.cxx|5 +++--
 4 files changed, 45 insertions(+), 6 deletions(-)

New commits:
commit 0e687595295e210e6275eda57a253ca66e8249ce
Author: Armin Le Grand 
Date:   Thu Feb 15 15:41:50 2018 +0100

tdf#115519: Handle rotation for WriterFlyFrames correctly

Change-Id: I5f29b3640eaf24d63c64edfecd6732f336582640
Reviewed-on: https://gerrit.libreoffice.org/49826
Tested-by: Jenkins 
Reviewed-by: Armin Le Grand 

diff --git a/sw/inc/grfatr.hxx b/sw/inc/grfatr.hxx
index 175bdcd480e3..f9e46068642a 100644
--- a/sw/inc/grfatr.hxx
+++ b/sw/inc/grfatr.hxx
@@ -87,14 +87,18 @@ public:
 
 class SwRotationGrf : public SfxUInt16Item
 {
+private:
 Size aUnrotatedSize;
+
+// tdf#15529 check and evtl. correct value, it is in 10th
+// degrees and *has* to be in the range [0 .. 3600[
+sal_Int16 checkAndCorrectValue(sal_Int16 nValue);
+
 public:
 SwRotationGrf()
 : SfxUInt16Item( RES_GRFATR_ROTATION, 0 )
 {}
-SwRotationGrf( sal_Int16 nVal, const Size& rSz )
-: SfxUInt16Item( RES_GRFATR_ROTATION, nVal ), aUnrotatedSize( rSz )
-{}
+SwRotationGrf( sal_Int16 nVal, const Size& rSz );
 
 // pure virtual methods from SfxInt16Item
 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
diff --git a/sw/source/core/graphic/grfatr.cxx 
b/sw/source/core/graphic/grfatr.cxx
index 16565fe405e3..7300f574a26f 100644
--- a/sw/source/core/graphic/grfatr.cxx
+++ b/sw/source/core/graphic/grfatr.cxx
@@ -147,6 +147,31 @@ SfxPoolItem* SwCropGrf::Clone( SfxItemPool* ) const
 return new SwCropGrf( *this );
 }
 
+sal_Int16 SwRotationGrf::checkAndCorrectValue(sal_Int16 nValue)
+{
+if(nValue < 0)
+{
+// smaller zero, modulo (will keep negative) and add one range
+DBG_ASSERT(false, "SwRotationGrf: Value is in 10th degree and *has* to 
be in [0 .. 3600[ (!)");
+return 3600 + (nValue % 3600);
+}
+else if (nValue > 3600)
+{
+// bigger range, use modulo
+DBG_ASSERT(false, "SwRotationGrf: Value is in 10th degree and *has* to 
be in [0 .. 3600[ (!)");
+return nValue % 3600;
+}
+
+return nValue;
+}
+
+SwRotationGrf::SwRotationGrf( sal_Int16 nVal, const Size& rSz )
+// tdf#15529 check and evtl. correct value
+:   SfxUInt16Item( RES_GRFATR_ROTATION, checkAndCorrectValue(nVal) ),
+aUnrotatedSize( rSz )
+{
+}
+
 SfxPoolItem* SwRotationGrf::Clone( SfxItemPool * ) const
 {
 return new SwRotationGrf( *this );
@@ -174,7 +199,8 @@ bool SwRotationGrf::PutValue( const uno::Any& rVal, 
sal_uInt8 )
 if (rVal >>= nValue)
 {
 // sal_uInt16 argument needed
-SetValue( static_cast(nValue) );
+// tdf#15529 check and evtl. correct value
+SetValue(static_cast(checkAndCorrectValue(nValue)));
 return true;
 }
 
diff --git a/xmloff/source/text/XMLTextFrameContext.cxx 
b/xmloff/source/text/XMLTextFrameContext.cxx
index 63ea2aa937f7..25b6b0441cf5 100644
--- a/xmloff/source/text/XMLTextFrameContext.cxx
+++ b/xmloff/source/text/XMLTextFrameContext.cxx
@@ -1027,6 +1027,14 @@ XMLTextFrameContext_Impl::XMLTextFrameContext_Impl(
 // to me mirrored using * -1.0, see conversion there)
 const double fRotate(aDecomposedTransform.getRotate() 
* (1800.0/M_PI));
 nRotation = static_cast< sal_Int16 
>(basegfx::fround(fRotate) % 3600);
+
+// tdf#115519 may be negative, with the above modulo 
maximal -3599, so
+// no loop needed here. nRotation is used in 
setPropertyValue("GraphicRotation")
+// and *has* to be in the range [0 .. 3600[
+if(nRotation < 0)
+{
+nRotation += 3600;
+}
 }
 }
 }
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 70859d4c4779..16a57ed09d23 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -3078,13 +3078,14 @@ void XMLTextParagraphExport::_exportTextGraphic(
 // we have a right-handed coordinate system, so need to correct this 
by mirroring
 // the rotation to get the correct transformation. See also case 
XML_TOK_TEXT_FRAME_TRANSFORM
 // in XMLTextFrameContext_Impl::XMLTextFrameContext_Impl and #i78696#
-const double fRotate(static_cast< double >(-nRotation) * 
(M_PI/1800.0));
+const double fRotate(static_cast< double >(-nRotation) * 
(F_PI/1800.0));
 
 // transform to rotation center which is the object's center
 aSdXMLImExTransform2D.AddTranslate(-aCenter);
 
 // add rotation itself
- 

[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - loleaflet/po

 loleaflet/po/ui-sl.po |  226 +-
 1 file changed, 115 insertions(+), 111 deletions(-)

New commits:
commit 63c3949b40fe8784d4a97c578959a80bc62cabca
Author: Andras Timar 
Date:   Fri Feb 16 10:29:49 2018 +0100

loleaflet: Updated Slovenian translation

Change-Id: I83e00a4a8d4890c0a17318623cc6cca22500b4fd

diff --git a/loleaflet/po/ui-sl.po b/loleaflet/po/ui-sl.po
index 8e312d99..34deb2de 100644
--- a/loleaflet/po/ui-sl.po
+++ b/loleaflet/po/ui-sl.po
@@ -2,8 +2,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: LibreOffice Online UI\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-01-23 11:12+0100\n"
-"PO-Revision-Date: 2018-01-17 23:40+0100\n"
+"POT-Creation-Date: 2018-02-16 10:27+0100\n"
+"PO-Revision-Date: 2018-02-15 23:27+0100\n"
 "Last-Translator: Martin Srebotnjak \n"
 "Language-Team: sl.libreoffice.org \n"
 "Language: \n"
@@ -12,7 +12,7 @@ msgstr ""
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || 
n%100==4 ? 2 : 3);\n"
 "X-Accelerator-Marker: ~\n"
-"X-Generator: Poedit 2.0.5\n"
+"X-Generator: Poedit 2.0.6\n"
 "X-Poedit-SourceCharset: UTF-8\n"
 
 #: admin.strings.js:5
@@ -115,7 +115,7 @@ msgstr "Grafikon rabe CPE"
 msgid "Network Graph"
 msgstr "Grafikon rabe omrežja"
 
-#: admin.strings.js:30 src/layer/marker/Annotation.js:222
+#: admin.strings.js:30 src/layer/marker/Annotation.js:224
 msgid "Save"
 msgstr "Shrani"
 
@@ -237,201 +237,201 @@ msgstr "Dokumenta ni mogoče shraniti zaradi poteklega 
ali neveljavnega žetona
 msgid "Document cannot be saved. Check your permissions or contact the storage 
server administrator."
 msgstr "Dokumenta ni mogoče shraniti. Preverite svoje pravice ali stopite v 
stik z upraviteljem strežnika shrambe."
 
-#: dist/toolbar/toolbar.js:103
+#: dist/toolbar/toolbar.js:105
 msgid "%n users"
 msgstr "%n uporabnikov"
 
-#: dist/toolbar/toolbar.js:104
+#: dist/toolbar/toolbar.js:106
 msgid "1 user"
 msgstr "1 uporabnik"
 
-#: dist/toolbar/toolbar.js:105
+#: dist/toolbar/toolbar.js:107
 msgid "0 users"
 msgstr "0 uporabnikov"
 
-#: dist/toolbar/toolbar.js:269
+#: dist/toolbar/toolbar.js:275
 msgid "Are you sure you want to delete this page?"
 msgstr "Ali ste prepričani, da želite izbrisati to stran?"
 
-#: dist/toolbar/toolbar.js:454
+#: dist/toolbar/toolbar.js:460
 msgid "Document repair"
 msgstr "Popravi dokument"
 
-#: dist/toolbar/toolbar.js:495
+#: dist/toolbar/toolbar.js:501
 msgid "Insert table"
 msgstr "Vstavi tabelo"
 
-#: dist/toolbar/toolbar.js:500
+#: dist/toolbar/toolbar.js:506
 msgid "More"
 msgstr "Dodatno"
 
-#: dist/toolbar/toolbar.js:598 dist/toolbar/toolbar.js:1072
+#: dist/toolbar/toolbar.js:604 dist/toolbar/toolbar.js:1078
 msgid "Sum"
 msgstr "Vsota"
 
-#: dist/toolbar/toolbar.js:599
+#: dist/toolbar/toolbar.js:605
 msgid "Function"
 msgstr "Funkcija"
 
-#: dist/toolbar/toolbar.js:600 src/layer/marker/Annotation.js:161
+#: dist/toolbar/toolbar.js:606 src/layer/marker/Annotation.js:163
 msgid "Cancel"
 msgstr "Prekliči"
 
-#: dist/toolbar/toolbar.js:601
+#: dist/toolbar/toolbar.js:607
 msgid "Accept"
 msgstr "Sprejmi"
 
-#: dist/toolbar/toolbar.js:617
+#: dist/toolbar/toolbar.js:623
 msgid "First sheet"
 msgstr "Prvi delovni list"
 
-#: dist/toolbar/toolbar.js:618
+#: dist/toolbar/toolbar.js:624
 msgid "Previous sheet"
 msgstr "Prejšnji delovni list"
 
-#: dist/toolbar/toolbar.js:619
+#: dist/toolbar/toolbar.js:625
 msgid "Next sheet"
 msgstr "Naslednji delovni list"
 
-#: dist/toolbar/toolbar.js:620
+#: dist/toolbar/toolbar.js:626
 msgid "Last sheet"
 msgstr "Zadnji delovni list"
 
-#: dist/toolbar/toolbar.js:630 src/control/Control.Menubar.js:265
+#: dist/toolbar/toolbar.js:636 src/control/Control.Menubar.js:270
 msgid "Fullscreen presentation"
 msgstr "Celozaslonska predstavitev"
 
-#: dist/toolbar/toolbar.js:647
+#: dist/toolbar/toolbar.js:653
 msgid "Search:"
 msgstr "Išči:"
 
-#: dist/toolbar/toolbar.js:654
+#: dist/toolbar/toolbar.js:660
 msgid "Cancel the search"
 msgstr "Prekliči iskanje"
 
-#: dist/toolbar/toolbar.js:659
+#: dist/toolbar/toolbar.js:665
 msgid "No users"
 msgstr "Ni uporabnikov"
 
-#: dist/toolbar/toolbar.js:663
+#: dist/toolbar/toolbar.js:669
 msgid "Always follow the editor"
 msgstr "Vedno sledi urejevalcu"
 
-#: dist/toolbar/toolbar.js:666
+#: dist/toolbar/toolbar.js:672
 msgid "Current"
 msgstr "Trenutno:"
 
-#: dist/toolbar/toolbar.js:673 src/control/Control.Menubar.js:57
-#: src/control/Control.Menubar.js:233
+#: dist/toolbar/toolbar.js:679 src/control/Control.Menubar.js:58
+#: src/control/Control.Menubar.js:238
 msgid "Reset zoom"
 msgstr "Ponastavi povečavo"
 
-#: dist/toolbar/toolbar.js:705
+#: dist/toolbar/toolbar.js:711
 msgid "%user has joined"
 msgstr "Pridružil se je uporabnik %user"
 
-#: dist/toolbar/toolbar.js:706
+#: dist/toolbar/toolbar.js:712
 msgid "%user has left"
 msgstr "Odšel je uporabnik %user"
 
-#: dist/toolbar/toolbar.js:872 dist/toolbar/toolbar.js:1453
+#: dist/toolbar/tool

[Libreoffice-commits] online.git: loleaflet/po

 loleaflet/po/ui-sl.po |  417 --
 1 file changed, 167 insertions(+), 250 deletions(-)

New commits:
commit 88ea0a56c766381e4b2621a281a4f659d0d2e440
Author: Andras Timar 
Date:   Fri Feb 16 10:26:30 2018 +0100

loleaflet: Updated Slovenian translation

Change-Id: I51eb459a1f85b5be77fe8c74c069c370135bb5cd

diff --git a/loleaflet/po/ui-sl.po b/loleaflet/po/ui-sl.po
index 436f42c4..a0f7890e 100644
--- a/loleaflet/po/ui-sl.po
+++ b/loleaflet/po/ui-sl.po
@@ -1,20 +1,17 @@
-# #-#-#-#-#  LibreOffice 5.1 Compendium (sl) #-#-#-#-#
-# Martin Srebotnjak , 2016.
 msgid ""
 msgstr ""
 "Project-Id-Version: LibreOffice Online UI\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-01-17 16:48+0100\n"
-"PO-Revision-Date: 2018-01-17 23:40+0100\n"
+"POT-Creation-Date: 2018-02-15 22:32+0100\n"
+"PO-Revision-Date: 2018-02-15 23:27+0100\n"
 "Last-Translator: Martin Srebotnjak \n"
 "Language-Team: sl.libreoffice.org \n"
 "Language: sl\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
-"%100==4 ? 2 : 3);\n"
-"X-Generator: Poedit 2.0.5\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || 
n%100==4 ? 2 : 3);\n"
+"X-Generator: Poedit 2.0.6\n"
 "X-Accelerator-Marker: ~\n"
 "X-Poedit-SourceCharset: UTF-8\n"
 
@@ -118,7 +115,7 @@ msgstr "Grafikon rabe CPE"
 msgid "Network Graph"
 msgstr "Grafikon rabe omrežja"
 
-#: admin.strings.js:30 src/layer/marker/Annotation.js:222
+#: admin.strings.js:30 src/layer/marker/Annotation.js:224
 msgid "Save"
 msgstr "Shrani"
 
@@ -140,19 +137,15 @@ msgstr "Časovni interval za statistiko CPE (v ms)"
 
 #: admin.strings.js:35
 msgid "Maximum Document process virtual memory (in MB) - reduce only"
-msgstr ""
-"Največji navidezni pomnilnik za proces dokumenta (v MB) – zgolj zmanjšajte"
+msgstr "Največji navidezni pomnilnik za proces dokumenta (v MB) – zgolj 
zmanjšajte"
 
 #: admin.strings.js:36
 msgid "Maximum Document process stack memory (in KB) - reduce only"
-msgstr ""
-"Največji skladovni pomnilnik za proces dokumenta (v kB) – zgolj zmanjšajte"
+msgstr "Največji skladovni pomnilnik za proces dokumenta (v kB) – zgolj 
zmanjšajte"
 
 #: admin.strings.js:37
 msgid "Maximum file size allowed to write to disk (in MB) - reduce only"
-msgstr ""
-"Največja dovoljena velikost datoteke za pisanje na disk (v MB) – zgolj "
-"zmanjšajte"
+msgstr "Največja dovoljena velikost datoteke za pisanje na disk (v MB) – zgolj 
zmanjšajte"
 
 #: admin.strings.js:38
 msgid "Documents:"
@@ -187,353 +180,294 @@ msgid "No history yet."
 msgstr "Ni zgodovine."
 
 #: dist/errormessages.js:1
-msgid ""
-"No disk space left on server, please contact the server administrator to "
-"continue."
-msgstr ""
-"Na strežniku ni več prostora na disku, za nadaljevanje stopite v stik s "
-"skrbnikom strežnika."
+msgid "No disk space left on server, please contact the server administrator 
to continue."
+msgstr "Na strežniku ni več prostora na disku, za nadaljevanje stopite v stik 
s skrbnikom strežnika."
 
 #: dist/errormessages.js:2
-msgid ""
-"The host URL is empty. The loolwsd server is probably misconfigured, please "
-"contact the administrator."
-msgstr ""
-"URL gostitelja je prazen. Strežnik loolwsd je najbrž napačno nastavljen, "
-"stopite v stik s skrbnikom."
+msgid "The host URL is empty. The loolwsd server is probably misconfigured, 
please contact the administrator."
+msgstr "URL gostitelja je prazen. Strežnik loolwsd je najbrž napačno 
nastavljen, stopite v stik s skrbnikom."
 
 #: dist/errormessages.js:3
-msgid ""
-"This development build is limited to %0 documents, and %1 connections - to "
-"avoid the impression that it is suitable for deployment in large "
-"enterprises. To find out more about deploying and scaling %2 check out: %3."
-msgstr ""
-"Ta razvojna gradnja je omejena na %0 dokumentov in %1 povezav - da bi se "
-"izognili vtisu, da je primerna za namestitev v velikih podjetjih in "
-"organizacijah. Če želite izvedeti več o nameščanju in prilagajanju "
-"namestitve %2, preverite: %3."
+msgid "This development build is limited to %0 documents, and %1 connections - 
to avoid the impression that it is suitable for deployment in large 
enterprises. To find out more about deploying and scaling %2 check out: %3."
+msgstr "Ta razvojna gradnja je omejena na %0 dokumentov in %1 povezav - da bi 
se izognili vtisu, da je primerna za namestitev v velikih podjetjih in 
organizacijah. Če želite izvedeti več o nameščanju in prilagajanju namestitve 
%2, preverite: %3."
 
 #: dist/errormessages.js:4
-msgid ""
-"This service is limited to %0 documents, and %1 connections total by the "
-"admin. This limit has been reached. Please try again later."
-msgstr ""
-"Ta storitev je omejena na skupno %0 dokumentov in %1 povezav s strani "
-"skrbnika. Ta meja je dosežena. Poskusite znova kasneje."
+msgid "This service i

[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - editeng/source sw/qa sw/source

 editeng/source/misc/svxacorr.cxx  |4 +++
 sw/qa/extras/uiwriter/data/tdf83260-1.odt |binary
 sw/qa/extras/uiwriter/uiwriter.cxx|   35 ++
 sw/source/filter/xml/swxml.cxx|5 
 4 files changed, 44 insertions(+)

New commits:
commit e7c67eb093d1e099225eaccdaaf29eff1a4c9325
Author: Michael Stahl 
Date:   Wed Feb 14 12:57:49 2018 +0100

tdf#83260 sw: call CompressRedlines() in ODF import

It's possible that an ODF document contains redlines that will be
deduplicated by CompressRedlines().

If that happens during some editing operation, then a SwRedline
will be deleted and the nodes array becomes smaller by at least 3
nodes; any Undo actions that were created prior to the operation
that called CompressRedlines() will store invalid node indexes now
and Undo will crash.

So presumably it's a precondition of editing operations
that CompressRedlines() is a no-op.

Interestingly CompressRedlines() is also called from
SwEditShell::Undo()/Redo().

Ensure it's a no-op later by calling CompressRedlines() immediately
after load.

(Hopefully this should also work for the Insert File case.)

Add a test too.

Change-Id: Iec8135cc60260ed5cfff05a196b5c92cc03265f9
Reviewed-on: https://gerrit.libreoffice.org/49721
Tested-by: Jenkins 
Reviewed-by: Michael Stahl 
(cherry picked from commit 1c8efde4daea648204e3ba19f8edc01ef3e548bd)
Reviewed-on: https://gerrit.libreoffice.org/49805
Reviewed-by: Miklos Vajna 

diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 658e6c619f33..9c8eeb9d2dac 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1233,6 +1233,7 @@ OUString SvxAutoCorrect::GetQuote( SvxAutoCorrDoc const & 
rDoc, sal_Int32 nInsPo
 return sRet;
 }
 
+// WARNING: rText may become invalid, see comment below
 void SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt,
 sal_Int32 nInsPos, sal_Unicode cChar,
 bool bInsert, bool& io_bNbspRunNext, 
vcl::Window const * pFrameWin )
@@ -1343,6 +1344,9 @@ void SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, 
const OUString& rTxt,
 
 if( IsAutoCorrFlag( Autocorrect ) )
 {
+// WARNING ATTENTION: rTxt is an alias of the text node's OUString
+// and becomes INVALID if ChgAutoCorrWord returns true!
+// => use aPara/pPara to create a valid copy of the string!
 OUString aPara;
 OUString* pPara = IsAutoCorrFlag(CapitalStartSentence) ? &aPara : 
nullptr;
 
diff --git a/sw/qa/extras/uiwriter/data/tdf83260-1.odt 
b/sw/qa/extras/uiwriter/data/tdf83260-1.odt
new file mode 100644
index ..b6e144b57751
Binary files /dev/null and b/sw/qa/extras/uiwriter/data/tdf83260-1.odt differ
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx 
b/sw/qa/extras/uiwriter/uiwriter.cxx
index ffd2d4bba18d..3c6e0a04afd7 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -155,6 +155,7 @@ public:
 void testChineseConversionSimplifiedToTraditional();
 void testFdo85554();
 void testAutoCorr();
+void testTdf83260();
 void testMergeDoc();
 void testCreatePortions();
 void testBookmarkUndo();
@@ -328,6 +329,7 @@ public:
 CPPUNIT_TEST(testChineseConversionSimplifiedToTraditional);
 CPPUNIT_TEST(testFdo85554);
 CPPUNIT_TEST(testAutoCorr);
+CPPUNIT_TEST(testTdf83260);
 CPPUNIT_TEST(testMergeDoc);
 CPPUNIT_TEST(testCreatePortions);
 CPPUNIT_TEST(testBookmarkUndo);
@@ -1407,6 +1409,39 @@ void SwUiWriterTest::testAutoCorr()
 CPPUNIT_ASSERT_EQUAL(sal_Int32(3), xTable->getColumns()->getCount());
 }
 
+void SwUiWriterTest::testTdf83260()
+{
+SwDoc* const pDoc(createDoc("tdf83260-1.odt"));
+SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
+SwAutoCorrect corr(*SvxAutoCorrCfg::Get().GetAutoCorrect());
+
+// enabled but not shown
+CPPUNIT_ASSERT(IDocumentRedlineAccess::IsHideChanges(
+pDoc->getIDocumentRedlineAccess().GetRedlineFlags()));
+CPPUNIT_ASSERT(IDocumentRedlineAccess::IsRedlineOn(
+pDoc->getIDocumentRedlineAccess().GetRedlineFlags()));
+
CPPUNIT_ASSERT(!pDoc->getIDocumentRedlineAccess().GetRedlineTable().empty());
+
+// the document contains redlines that are combined with CompressRedlines()
+// if that happens during AutoCorrect then indexes in Undo are off -> crash
+pWrtShell->Insert("tset");
+pWrtShell->AutoCorrect(corr, u' ');
+sw::UndoManager& rUndoManager = pDoc->GetUndoManager();
+auto const nActions(rUndoManager.GetUndoActionCount());
+for (auto i = nActions; 0 < i; --i)
+{
+rUndoManager.Undo();
+}
+for (auto i = nActions; 0 < i; --i)
+{
+rUndoManager.Redo();
+}

[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sc/inc sc/source

 sc/inc/dbdata.hxx|1 +
 sc/source/ui/docshell/docsh5.cxx |   21 ++---
 2 files changed, 19 insertions(+), 3 deletions(-)

New commits:
commit 805f5d5b4ab022c531709d46b5dad10a1d772309
Author: Eike Rathke 
Date:   Thu Feb 15 12:50:40 2018 +0100

Resolves: tdf#115046 don't restore a sheet-local DBData from temporary

And don't clear AutoFilter button flags in the new temporary range.

Change-Id: I273de1e04632ac99c267523b2843665d257fd361
(cherry picked from commit 74d30155c5067271fb98bacbcb895c215e61678d)
Reviewed-on: https://gerrit.libreoffice.org/49809
Tested-by: Jenkins 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx
index 79fe9e82d428..e3aac010d433 100644
--- a/sc/inc/dbdata.hxx
+++ b/sc/inc/dbdata.hxx
@@ -122,6 +122,7 @@ public:
 
 const OUString& GetName() const { return aName; }
 const OUString& GetUpperName() const { return aUpper; }
+SCTAB   GetTab() const  { return nTable; }
 voidGetArea(SCTAB& rTab, SCCOL& rCol1, SCROW& rRow1, SCCOL& rCol2, 
SCROW& rRow2) const;
 SC_DLLPUBLIC void GetArea(ScRange& rRange) const;
 voidSetArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, 
SCROW nRow2);
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index dd39f53522d8..3f0ca7cd4576 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -222,8 +222,10 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, 
ScGetDBMode eMode, ScGe
 // other ranges, use the document global temporary anonymous range
 // instead. But, if AutoFilter is to be toggled then do use the
 // sheet-local DB range.
+bool bSheetLocal = true;
 if (eMode != SC_DB_AUTOFILTER && pNoNameData->HasAutoFilter())
 {
+bSheetLocal = false;
 pNoNameData = aDocument.GetAnonymousDBData();
 if (!pNoNameData)
 {
@@ -231,14 +233,24 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, 
ScGetDBMode eMode, ScGe
 nTab, nStartCol, nStartRow, nEndCol, nEndRow, 
true, bHasHeader);
 aDocument.SetAnonymousDBData( pNoNameData);
 }
+// ScDocShell::CancelAutoDBRange() would restore the
+// sheet-local anonymous DBData from pOldAutoDBRange, unset so
+// that won't happen with data of a previous sheet-local
+// DBData.
+delete pOldAutoDBRange;
+pOldAutoDBRange = nullptr;
 }
-
-if ( !pOldAutoDBRange )
+else if (!pOldAutoDBRange)
 {
 // store the old unnamed database range with its settings for 
undo
 // (store at the first change, get the state before all 
changes)
 pOldAutoDBRange = new ScDBData( *pNoNameData );
 }
+else if (pOldAutoDBRange->GetTab() != pNoNameData->GetTab())
+{
+// Different sheet-local unnamed DB range than the previous 
one.
+*pOldAutoDBRange = *pNoNameData;
+}
 
 SCCOL nOldX1;   // take old range 
away cleanly
 SCROW nOldY1;   //! (UNDO ???)
@@ -255,7 +267,10 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, 
ScGetDBMode eMode, ScGe
 nStartCol <= nOldY2 && nOldY1 <= nEndCol)
 bHasHeader = true;
 
-DBAreaDeleted( nOldTab, nOldX1, nOldY1, nOldX2 );
+// Remove AutoFilter button flags only for sheet-local DB range,
+// not if a temporary is used.
+if (bSheetLocal)
+DBAreaDeleted( nOldTab, nOldX1, nOldY1, nOldX2 );
 
 pNoNameData->SetSortParam( ScSortParam() ); // reset 
parameter
 pNoNameData->SetQueryParam( ScQueryParam() );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sw/qa writerfilter/source

 sw/qa/extras/ooxmlexport/data/tdf113258.docx  |binary
 sw/qa/extras/ooxmlexport/ooxmlexport11.cxx|9 +
 writerfilter/source/dmapper/DomainMapper.cxx  |   22 ++
 writerfilter/source/dmapper/DomainMapper_Impl.cxx |7 +++
 writerfilter/source/dmapper/DomainMapper_Impl.hxx |3 +++
 5 files changed, 41 insertions(+)

New commits:
commit 3779c742a52d8dde3fa7b74c2a8ca8bc7d071b4e
Author: Miklos Vajna 
Date:   Mon Feb 12 22:04:55 2018 +0100

tdf#113258 DOCX import: fix beforeAutospacing for shape first paragraph

Commit c761df1e42fd11acc5fc05b0baacd803c3788ca6 (tdf#84678 DOCX import:
fix handling of textbox margins, 2016-10-25) uncovered a previously
harder to notice problem that single-paragraph shapes have an incorrect
upper paragraph margin for the first paragraph. Now that the shape
margins are correct this problematic paragraph margin causes crop of the
shape text.

Fix the problem by adapting the DOCX import to the WW8 import's
SwWW8ImplReader::AppendTextNode() (the "If this is the first paragraph
in the document" part), where it seems the first paragraph is not only
the literally first paragraph in the document, but also the first
paragraph of shapes as well.

(cherry picked from commit f737c9386a605cb7d8c9dbc210c557f98f6cdc19)

Conflicts:
writerfilter/source/dmapper/DomainMapper.cxx

Change-Id: I9d99b9cfabae2c9a7c33eefefb5a9f008669e93d
Reviewed-on: https://gerrit.libreoffice.org/49626
Tested-by: Jenkins 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/sw/qa/extras/ooxmlexport/data/tdf113258.docx 
b/sw/qa/extras/ooxmlexport/data/tdf113258.docx
new file mode 100644
index ..d60a2ee6413c
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf113258.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
index 98e207c81d81..91697a80f920 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
@@ -161,6 +161,15 @@ DECLARE_OOXMLEXPORT_TEST(testTdf114703, "tdf114703.docx")
 
comphelper::SequenceAsHashMap(xRules->getByIndex(0))["FirstLineIndent"].get());
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf113258, "tdf113258.docx")
+{
+uno::Reference xShape(getShape(1), uno::UNO_QUERY);
+// This was 494, i.e. automatic spacing resulted in non-zero paragraph top
+// margin for the first paragraph in a shape.
+CPPUNIT_ASSERT_EQUAL(static_cast(0),
+ getProperty(xShape->getStart(), 
"ParaTopMargin"));
+}
+
 CPPUNIT_PLUGIN_IMPLEMENT();
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx 
b/writerfilter/source/dmapper/DomainMapper.cxx
index 83698f4553de..5569f91a23de 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -2170,7 +2170,27 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, const 
PropertyMapPtr& rContext )
 StyleSheetTablePtr pStyleTable = m_pImpl->GetStyleSheetTable();
 const OUString sConvertedStyleName = pStyleTable->ConvertStyleName( 
sStringValue, true );
 if (m_pImpl->GetTopContext() && m_pImpl->GetTopContextType() != 
CONTEXT_SECTION)
+{
 m_pImpl->GetTopContext()->Insert( PROP_PARA_STYLE_NAME, 
uno::makeAny( sConvertedStyleName ));
+
+if (m_pImpl->GetIsFirstParagraphInShape())
+{
+// First paragraph in shape: see if we need to disable
+// paragraph top margin from style.
+StyleSheetEntryPtr pEntry
+= 
m_pImpl->GetStyleSheetTable()->FindStyleSheetByConvertedStyleName(
+sConvertedStyleName);
+if (pEntry)
+{
+boost::optional pParaAutoBefore
+= pEntry->pProperties->getProperty(
+PROP_PARA_TOP_MARGIN_BEFORE_AUTO_SPACING);
+if (pParaAutoBefore)
+m_pImpl->GetTopContext()->Insert(PROP_PARA_TOP_MARGIN,
+ 
uno::makeAny(static_cast(0)));
+}
+}
+}
 //apply numbering to paragraph if it was set at the style, but only if 
the paragraph itself
 //does not specify the numbering
 if( !rContext->isSet(PROP_NUMBERING_RULES) ) // !contains
@@ -3080,6 +3100,8 @@ void 
DomainMapper::lcl_startShape(uno::Reference const& xShape)
 // No context? Then this image should not appear directly inside the
 // document, just save it for later usage.
 m_pImpl->PushPendingShape(xShape);
+
+m_pImpl->SetIsFirstParagraphInShape(true);
 }
 
 void DomainMapper::lcl_endShape( )
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx 
b

[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sw/qa writerfilter/source

 sw/qa/extras/ooxmlexport/data/tdf115719.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport11.cxx   |7 +
 writerfilter/source/dmapper/DomainMapperTableHandler.cxx |   30 --
 writerfilter/source/dmapper/DomainMapper_Impl.cxx|   17 +++
 writerfilter/source/dmapper/DomainMapper_Impl.hxx|   16 +++
 writerfilter/source/dmapper/PropertyMap.cxx  |   68 +++
 writerfilter/source/dmapper/PropertyMap.hxx  |4 
 writerfilter/source/dmapper/SettingsTable.cxx|   27 +
 writerfilter/source/dmapper/SettingsTable.hxx|2 
 9 files changed, 142 insertions(+), 29 deletions(-)

New commits:
commit 33317afcb1c070bd4ff19d312964d78f2105a87e
Author: Miklos Vajna 
Date:   Wed Feb 14 15:31:35 2018 +0100

tdf#115719 DOCX import: increase paragraph spacing for anchored objects

... like Word 2013 does, when the version string indicates that the new
layout is wanted.

An alternative to this change would be to add a new sw layout
compatibility flag and handle this at a layout level (somewhere in
SwAnchoredObject::GetObjRectWithSpaces()). The downside of that approach
is that once a layout flag is added, it's not preferred to tweak its
behavior, while doing the same at import time is not a problem.

Also it's better to have a flag for something which has clear behavior
in some spec / implementer notes, which is not the case for this
problem. (I've mailed dochelp@microsoft, no answer so far.)

Conflicts:
sw/qa/extras/ooxmlexport/ooxmlexport11.cxx

Change-Id: Ibad28d27e4bcbe1991a3be1c686064e18e9ffa4d
Reviewed-on: https://gerrit.libreoffice.org/49802
Tested-by: Jenkins 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/sw/qa/extras/ooxmlexport/data/tdf115719.docx 
b/sw/qa/extras/ooxmlexport/data/tdf115719.docx
new file mode 100644
index ..9519a2a14524
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf115719.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
index 58e654159494..98e207c81d81 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
@@ -99,6 +99,13 @@ DECLARE_OOXMLEXPORT_TEST(testTdf67207_MERGEFIELD, 
"mailmerge.docx")
 
CPPUNIT_ASSERT_EQUAL(OUString("com.sun.star.text.fieldmaster.DataBase.Name"), 
sValue);
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf115719, "tdf115719.docx")
+{
+// This was a single page, instead of pushing the textboxes to the second
+// page.
+CPPUNIT_ASSERT_EQUAL(2, getPages());
+}
+
 DECLARE_OOXMLEXPORT_TEST(testTdf113183, "tdf113183.docx")
 {
 // This was 2096, the horizontal positioning of the star shape affected the
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx 
b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
index 2f254be9c67c..e6f993e19387 100644
--- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
@@ -312,34 +312,6 @@ void 
lcl_DecrementHoriOrientPosition(std::vector& rFramePr
 }
 }
 
-sal_Int32 lcl_getWordCompatibilityMode( const css::uno::Sequence< 
css::beans::PropertyValue >& rCompatSettings )
-{
-for ( int i = 0; i < rCompatSettings.getLength(); ++i )
-{
-const css::beans::PropertyValue& rProp = rCompatSettings[i];
-if ( rProp.Name == "compatSetting" )
-{
-css::uno::Sequence< css::beans::PropertyValue > 
aCurrentCompatSettings;
-rProp.Value >>= aCurrentCompatSettings;
-
-OUString sName;
-OUString sUri;
-OUString sVal;
-
-aCurrentCompatSettings[0].Value >>= sName;
-aCurrentCompatSettings[1].Value >>= sUri;
-aCurrentCompatSettings[2].Value >>= sVal;
-
-if ( sName == "compatibilityMode" && sUri == 
"http://schemas.microsoft.com/office/word"; )
-{
-return sVal.toInt32();
-}
-}
-}
-
-return -1; // Word compatibility mode not found
-}
-
 TableStyleSheetEntry * 
DomainMapperTableHandler::endTableGetTableStyle(TableInfo & rInfo, 
std::vector& rFrameProperties)
 {
 // will receive the table style if any
@@ -574,7 +546,7 @@ TableStyleSheetEntry * 
DomainMapperTableHandler::endTableGetTableStyle(TableInfo
 
 // tdf#106742: since MS Word 2013 (compatibilityMode >= 15), top-level 
tables are handled the same as nested tables;
 // this is also the default behavior in LO when DOCX doesn't define 
"compatibilityMode" option
-sal_Int32 nMode = lcl_getWordCompatibilityMode( 
m_rDMapper_Impl.GetSettingsTable()->GetCompatSettings() );
+sal_Int32 nMode = 
m_rDMapper_Impl.GetSettingsTable()->GetWordCompatibilityMode();
 
 if ( nMode > 0 && nMode <= 14 && rInfo.nNestLevel == 1 )
 {
di

Re: Implementing accessibility non-regression check tool


On 16.02.2018 09:55, Samuel Thibault wrote:

Miklos Vajna, on ven. 16 févr. 2018 09:24:38 +0100, wrote:

On Thu, Feb 15, 2018 at 06:58:42PM +0100, Samuel Thibault  
wrote:

For now I have patched the build system to call the tool as the attached
patch does, does it look OK? (basically it's called along building the
image list in the UIC rule, I need to doublecheck the clean rule, but
the build rule works fine)


Please submit patches to gerrit:
, it's much
easier to review anything there. :-)


For reviews, sure, I'm here just asking whether the general approach is
fine, not an actual review of the implementation.


...but even that can be easier to answer if people see a full, working 
patch, which they can actually try out.  (It doesn't need to be 
feature-complete, of course, just working well enough to demonstrate 
what is going on.)

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


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

 vcl/unx/gtk3_kde5/kde5_filepicker.cxx |   13 +++--
 vcl/unx/gtk3_kde5/kde5_filepicker.hxx |4 ++--
 2 files changed, 9 insertions(+), 8 deletions(-)

New commits:
commit 3b93b176572971f00845e268c12eef94190d03bc
Author: Katarina Behrens 
Date:   Thu Feb 15 14:06:48 2018 +0100

gtk3_kde5: Checkboxes on the left, texts on the right

QFormLayout does it the other way round (text left, checkbox right)
and it looks odd, so use QGridLayout

Change-Id: Iff4255f695ce17561bac44e496a3567e1b438581
Reviewed-on: https://gerrit.libreoffice.org/49815
Tested-by: Jenkins 
Reviewed-by: Katarina Behrens 

diff --git a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx 
b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
index d774ebc2834e..f3b48b837836 100644
--- a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
+++ b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
@@ -28,7 +28,7 @@
 #include 
 #include 
 #include 
-#include 
+#include 
 #include 
 #include 
 
@@ -38,7 +38,7 @@ KDE5FilePicker::KDE5FilePicker(QObject* parent)
 : QObject(parent)
 , _dialog(new QFileDialog(nullptr, {}, QDir::homePath()))
 , _extraControls(new QWidget)
-, _layout(new QFormLayout(_extraControls))
+, _layout(new QGridLayout(_extraControls))
 , _winId(0)
 , allowRemoteUrls(false)
 {
@@ -197,13 +197,14 @@ QString KDE5FilePicker::getLabel(sal_Int16 controlId) 
const
 
 void KDE5FilePicker::addCheckBox(sal_Int16 controlId, const QString& label, 
bool hidden)
 {
-auto widget = new QCheckBox(_extraControls);
+auto resString = label;
+resString.replace('~', '&');
+
+auto widget = new QCheckBox(resString, _extraControls);
 widget->setHidden(hidden);
 if (!hidden)
 {
-auto resString = label;
-resString.replace('~', '&');
-_layout->addRow(resString, widget);
+_layout->addWidget(widget);
 }
 _customWidgets.insert(controlId, widget);
 }
diff --git a/vcl/unx/gtk3_kde5/kde5_filepicker.hxx 
b/vcl/unx/gtk3_kde5/kde5_filepicker.hxx
index 17a37b7e27a3..d999f7bf7a09 100644
--- a/vcl/unx/gtk3_kde5/kde5_filepicker.hxx
+++ b/vcl/unx/gtk3_kde5/kde5_filepicker.hxx
@@ -28,7 +28,7 @@
 
 class QFileDialog;
 class QWidget;
-class QFormLayout;
+class QGridLayout;
 
 class KDE5FilePicker : public QObject
 {
@@ -51,7 +51,7 @@ protected:
 QWidget* _extraControls;
 
 //layout for extra custom controls
-QFormLayout* _layout;
+QGridLayout* _layout;
 
 sal_uIntPtr _winId;
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Implementing accessibility non-regression check tool

Miklos Vajna, on ven. 16 févr. 2018 09:24:38 +0100, wrote:
> On Thu, Feb 15, 2018 at 06:58:42PM +0100, Samuel Thibault 
>  wrote:
> > For now I have patched the build system to call the tool as the attached
> > patch does, does it look OK? (basically it's called along building the
> > image list in the UIC rule, I need to doublecheck the clean rule, but
> > the build rule works fine)
> 
> Please submit patches to gerrit:
> , it's much
> easier to review anything there. :-)

For reviews, sure, I'm here just asking whether the general approach is
fine, not an actual review of the implementation.

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


Re: Guidance for GSoC

Hi Vishal,

sounds like you want to build LibreOffice first. We have plenty of resources 
that guide you through the process [1,2,3]. The next step would be to find 
something you can work on. We call this easyhack [4]. Solving non-trivial tasks 
is a prerequisite for GSoC students [5] in our organization. And finally you 
may want to look over our GSoC ideas [6] to get an impression what we are 
looking for. Feel free to ask for help on our IRC channel #libreoffice-dev.

Hope you enjoy your time with us,
Heiko (UX mentor)

[0] https://wiki.documentfoundation.org/Development and 
https://wiki.documentfoundation.org/Design
[1] https://wiki.documentfoundation.org/Development/BuildingOnLinux
[2] https://wiki.documentfoundation.org/Development/BuildingOnWindows
[3] https://wiki.documentfoundation.org/Development/GenericBuildingHints
[4] https://wiki.documentfoundation.org/Development/EasyHacks
[5] https://wiki.documentfoundation.org/Development/GSoC
[6] https://wiki.documentfoundation.org/Development/GSoC/Ideas

On 15.02.2018 18:33, Vishal Karodia wrote:
> Hello there,
> 
> I've been trying to get started to open source for some months. It would be 
> great if you could guide me or just tell me where i should start from. I have 
> a GitHub account and know C++ upto file handling and have been using 
> LibreOffice for quite a long time now. I've been thinking of preparing for 
> GSoC 2019 and need this valuable guidance.
> 
> Would be great if you reply to this email and help me a little.
> 
> Thank You.
> 
> 
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libreoffice
> 

-- 
Dr. Heiko Tietze
UX designer
Tel. +49 (0)179/1268509



signature.asc
Description: OpenPGP digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Implementing accessibility non-regression check tool

Hi Samuel,

On Thu, Feb 15, 2018 at 06:58:42PM +0100, Samuel Thibault  
wrote:
> For now I have patched the build system to call the tool as the attached
> patch does, does it look OK? (basically it's called along building the
> image list in the UIC rule, I need to doublecheck the clean rule, but
> the build rule works fine)

Please submit patches to gerrit:
, it's much
easier to review anything there. :-)

Thanks,

Miklos


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - accessibility/source basctl/source basic/source editeng/source include/svl sc/source sd/source svl/qa svl/source svx/source sw/source

 accessibility/source/extended/textwindowaccessibility.cxx|2 -
 basctl/source/basicide/basides1.cxx  |4 +--
 basctl/source/basicide/basidesh.cxx  |4 +--
 basic/source/classes/sb.cxx  |6 ++---
 basic/source/classes/sbxmod.cxx  |6 ++---
 basic/source/sbx/sbxcoll.cxx |2 -
 basic/source/sbx/sbxobj.cxx  |8 +++
 editeng/source/editeng/impedit5.cxx  |2 -
 include/svl/lstner.hxx   |   12 ++-
 sc/source/ui/Accessibility/AccessibleDocument.cxx|2 -
 sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx |2 -
 sc/source/ui/condformat/condformatdlgentry.cxx   |4 +--
 sc/source/ui/view/prevwsh.cxx|4 +--
 sc/source/ui/view/tabvwsh4.cxx   |6 ++---
 sd/source/ui/view/ViewShellBase.cxx  |4 +--
 svl/qa/unit/notify/test_SfxBroadcaster.cxx   |8 +++
 svl/source/notify/lstner.cxx |8 +++
 svx/source/gallery2/gallery1.cxx |2 -
 svx/source/svdraw/svdobj.cxx |2 -
 svx/source/svdraw/svdotxat.cxx   |2 -
 svx/source/tbxctrls/colrctrl.cxx |2 -
 sw/source/uibase/uiview/srcview.cxx  |2 -
 sw/source/uibase/uiview/view.cxx |4 +--
 23 files changed, 54 insertions(+), 44 deletions(-)

New commits:
commit 5a8ea2218a352561a3f494af545d9b978766a513
Author: Caolán McNamara 
Date:   Thu Feb 15 14:10:30 2018 +

ofz#6311 still problems with SdrEdgeObj listening to same obj at start as 
end

Change-Id: Ibd80b484788779b73943b28a5f36e51ebcacec30
Reviewed-on: https://gerrit.libreoffice.org/49824
Tested-by: Jenkins 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/accessibility/source/extended/textwindowaccessibility.cxx 
b/accessibility/source/extended/textwindowaccessibility.cxx
index c33f9baa4a60..218ba4771c58 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -38,7 +38,7 @@ void SfxListenerGuard::startListening(::SfxBroadcaster & 
rNotifier)
 {
 assert(m_pNotifier == nullptr && "called more than once");
 m_pNotifier = &rNotifier;
-m_rListener.StartListening(*m_pNotifier, true);
+m_rListener.StartListening(*m_pNotifier, DuplicateHandling::Prevent);
 }
 
 void SfxListenerGuard::endListening()
diff --git a/basctl/source/basicide/basides1.cxx 
b/basctl/source/basicide/basides1.cxx
index db3945369fc8..373dcd53eb67 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -282,7 +282,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq )
 
 ScriptDocument aDocument( 
ScriptDocument::getDocumentForBasicManager( pBasMgr ) );
 
-StartListening( *pBasMgr, true /* log on only once */ );
+StartListening(*pBasMgr, DuplicateHandling::Prevent /* log on only 
once */);
 OUString aLibName( rInfo.GetLib() );
 if ( aLibName.isEmpty() )
 aLibName = "Standard" ;
@@ -1229,7 +1229,7 @@ VclPtr Shell::ShowActiveModuleWindow( 
StarBASIC const * pBasic )
 else
 SAL_WARN( "basctl.basicide", "No BASIC!");
 if (BasicManager* pBasicMgr = FindBasicManager(pBasic))
-StartListening( *pBasicMgr, true /* log on only once */ );
+StartListening(*pBasicMgr, DuplicateHandling::Prevent /* log on 
only once */);
 return pWin;
 }
 return nullptr;
diff --git a/basctl/source/basicide/basidesh.cxx 
b/basctl/source/basicide/basidesh.cxx
index 88d9f280645a..2519d39ea845 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -633,7 +633,7 @@ void Shell::UpdateWindows()
 ++doc
 )
 {
-StartListening( *doc->getBasicManager(), true /* log on only once */ );
+StartListening(*doc->getBasicManager(), DuplicateHandling::Prevent /* 
log on only once */);
 
 // libraries
 Sequence< OUString > aLibNames( doc->getLibraryNames() );
@@ -669,7 +669,7 @@ void Shell::UpdateWindows()
 {
 StarBASIC* pLib = doc->getBasicManager()->GetLib( 
aLibName );
 if ( pLib )
-StartListening( pLib->GetBroadcaster(), true /* 
log on only once */ );
+StartListening(pLib->GetBroadcaster(), 
DuplicateHandling::Prevent /* log on only once */);
 
 try
 {
diff --git a/basic/source/classe