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

2016-10-10 Thread Stephan Bergmann
 include/tools/ref.hxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6cded5c853defdda928036d11ae88fa3cf19a79a
Author: Stephan Bergmann 
Date:   Tue Oct 11 08:52:41 2016 +0200

Demonstrate that SvRef ==/!= are acceptable as member functions

Change-Id: I30771393bc16f2320cd89f018ff93c756913b70d

diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index 30abab3..c8db2bd 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -31,7 +31,7 @@
 namespace tools {
 
 /** T must be a class that extends SvRefBase */
-template class SAL_DLLPUBLIC_RTTI SvRef {
+template class SAL_DLLPUBLIC_RTTI SvRef final {
 public:
 SvRef(): pObj(nullptr) {}
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - i18npool/inc i18npool/source

2016-10-10 Thread Andras Timar
 i18npool/inc/numberformatcode.hxx |   15 +--
 i18npool/source/numberformatcode/numberformatcode.cxx |   77 ++
 2 files changed, 55 insertions(+), 37 deletions(-)

New commits:
commit bee4d76b85645bca795c6f15c322ccba9a7074e2
Author: Andras Timar 
Date:   Tue Oct 11 08:39:41 2016 +0200

Revert "tdf#53698: Cache more than 1 item in NumberFormatCodeMapper"

This reverts commit 5ee0cf887301ea0e994e3ec7299f4958808fc2d8.

diff --git a/i18npool/inc/numberformatcode.hxx 
b/i18npool/inc/numberformatcode.hxx
index 48c64c2..9c7d780 100644
--- a/i18npool/inc/numberformatcode.hxx
+++ b/i18npool/inc/numberformatcode.hxx
@@ -29,9 +29,6 @@
 #include 
 #include 
 
-#include 
-#include 
-
 class NumberFormatCodeMapper : public cppu::WeakImplHelper
 <
 css::i18n::XNumberFormatCode,
@@ -58,15 +55,19 @@ public:
 
 private:
 osl::Mutex maMutex;
-css::uno::Reference < css::i18n::XLocaleData4 > m_xLocaleData;
-typedef std::pair< css::lang::Locale, css::uno::Sequence< 
css::i18n::FormatElement > > FormatElementCacheItem;
-std::deque < FormatElementCacheItem > m_aFormatElementCache;
+css::lang::Locale aLocale;
+css::uno::Reference < css::uno::XComponentContext > mxContext;
+css::uno::Sequence< css::i18n::FormatElement > aFormatSeq;
+css::uno::Reference < css::i18n::XLocaleData4 > mxLocaleData;
+bool bFormatsValid;
 
-const css::uno::Sequence< css::i18n::FormatElement >& getFormats( const 
css::lang::Locale& rLocale );
+void setupLocale( const css::lang::Locale& rLocale );
+void getFormats( const css::lang::Locale& rLocale );
 static OUString mapElementTypeShortToString(sal_Int16 formatType);
 static sal_Int16 mapElementTypeStringToShort(const OUString& formatType);
 static OUString mapElementUsageShortToString(sal_Int16 formatUsage);
 static sal_Int16 mapElementUsageStringToShort(const OUString& formatUsage);
+void createLocaleDataObject();
 };
 
 
diff --git a/i18npool/source/numberformatcode/numberformatcode.cxx 
b/i18npool/source/numberformatcode/numberformatcode.cxx
index fe565560..4a5e147 100644
--- a/i18npool/source/numberformatcode/numberformatcode.cxx
+++ b/i18npool/source/numberformatcode/numberformatcode.cxx
@@ -25,8 +25,10 @@
 
 NumberFormatCodeMapper::NumberFormatCodeMapper(
 const css::uno::Reference < css::uno::XComponentContext >& 
rxContext )
+:
+mxContext( rxContext ),
+bFormatsValid( false )
 {
-m_xLocaleData.set( css::i18n::LocaleData::create( rxContext ) );
 }
 
 
@@ -43,10 +45,10 @@ NumberFormatCodeMapper::getDefault( sal_Int16 formatType, 
sal_Int16 formatUsage,
 OUString elementUsage = mapElementUsageShortToString(formatUsage);
 
 osl::MutexGuard g(maMutex);
-const css::uno::Sequence< css::i18n::FormatElement > &aFormatSeq = 
getFormats( rLocale );
+getFormats( rLocale );
 
-for (sal_Int32 i = 0; i < aFormatSeq.getLength(); i++) {
-if (aFormatSeq[i].isDefault && aFormatSeq[i].formatType == elementType 
&&
+for(sal_Int32 i = 0; i < aFormatSeq.getLength(); i++) {
+if(aFormatSeq[i].isDefault && aFormatSeq[i].formatType == elementType 
&&
 aFormatSeq[i].formatUsage == elementUsage) {
 css::i18n::NumberFormatCode anumberFormatCode(formatType,
 
formatUsage,
@@ -67,10 +69,10 @@ css::i18n::NumberFormatCode SAL_CALL
 NumberFormatCodeMapper::getFormatCode( sal_Int16 formatIndex, const 
css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception)
 {
 osl::MutexGuard g(maMutex);
-const css::uno::Sequence< css::i18n::FormatElement > &aFormatSeq = 
getFormats( rLocale );
+getFormats( rLocale );
 
-for (sal_Int32 i = 0; i < aFormatSeq.getLength(); i++) {
-if (aFormatSeq[i].formatIndex == formatIndex) {
+for(sal_Int32 i = 0; i < aFormatSeq.getLength(); i++) {
+if(aFormatSeq[i].formatIndex == formatIndex) {
 css::i18n::NumberFormatCode 
anumberFormatCode(mapElementTypeStringToShort(aFormatSeq[i].formatType),
 
mapElementUsageStringToShort(aFormatSeq[i].formatUsage),
 
aFormatSeq[i].formatCode,
@@ -83,6 +85,7 @@ NumberFormatCodeMapper::getFormatCode( sal_Int16 formatIndex, 
const css::lang::L
 }
 css::i18n::NumberFormatCode defaultNumberFormatCode;
 return defaultNumberFormatCode;
+
 }
 
 
@@ -90,21 +93,21 @@ css::uno::Sequence< css::i18n::NumberFormatCode > SAL_CALL
 NumberFormatCodeMapper::getAllFormatCode( sal_Int16 formatUsage, const 
css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception)
 {
 osl::MutexGuard g(maMutex);
-const css::uno::Sequence< css::i18n::FormatElement > &aFormatSeq = 
getFormats( rLocale );
+getFormats( rLocale );
 
 sal_Int32 i, count;
 count = 0;
-for (

[Libreoffice-commits] core.git: basegfx/source compilerplugins/clang cui/source drawinglayer/source editeng/source include/basegfx include/sfx2 include/svx include/unotools include/xmloff sc/inc sc/qa

2016-10-10 Thread Noel Grandin
 basegfx/source/polygon/b2dpolypolygontools.cxx |5 
 compilerplugins/clang/store/constantfunction.cxx   |   87 ++---
 cui/source/options/optopencl.cxx   |4 
 cui/source/options/optopencl.hxx   |2 
 drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx |2 
 editeng/source/editeng/editobj.cxx |9 -
 editeng/source/items/numitem.cxx   |2 
 include/basegfx/polygon/b2dpolypolygontools.hxx|6 
 include/sfx2/childwin.hxx  |1 
 include/sfx2/dispatch.hxx  |2 
 include/sfx2/dockwin.hxx   |1 
 include/svx/svdhdl.hxx |4 
 include/unotools/fontcvt.hxx   |1 
 include/xmloff/xmlnume.hxx |3 
 sc/inc/colorscale.hxx  |2 
 sc/inc/compiler.hxx|4 
 sc/inc/document.hxx|2 
 sc/qa/unit/ucalc.cxx   |1 
 sc/source/core/data/colorscale.cxx |   13 -
 sc/source/core/data/documen8.cxx   |8 -
 sc/source/core/data/validat.cxx|4 
 sc/source/core/tool/interpr4.cxx   |2 
 sc/source/core/tool/odffmap.cxx|6 
 sc/source/filter/excel/xecontent.cxx   |2 
 sc/source/filter/excel/xeextlst.cxx|2 
 sc/source/filter/oox/condformatbuffer.cxx  |2 
 sc/source/filter/xml/xmlcondformat.cxx |2 
 sc/source/filter/xml/xmlexprt.cxx  |2 
 sc/source/ui/condformat/condformatdlgentry.cxx |2 
 sfx2/source/appl/childwin.cxx  |4 
 sfx2/source/control/dispatch.cxx   |8 -
 sfx2/source/dialog/basedlgs.cxx|2 
 sfx2/source/dialog/dockwin.cxx |8 -
 sfx2/source/dialog/splitwin.cxx|2 
 sfx2/source/view/viewfrm.cxx   |   26 ---
 unotools/source/misc/fontcvt.cxx   |6 
 vcl/qa/cppunit/wmf/wmfimporttest.cxx   |3 
 xmloff/source/core/xmlimp.cxx  |4 
 xmloff/source/style/xmlnume.cxx|8 -
 xmloff/source/text/XMLPropertyBackpatcher.cxx  |6 
 xmloff/source/text/XMLPropertyBackpatcher.hxx  |5 
 41 files changed, 68 insertions(+), 197 deletions(-)

New commits:
commit 5c84f40ea2e86bf85c0a59201faf1431f16aee40
Author: Noel Grandin 
Date:   Mon Oct 10 13:49:12 2016 +0200

loplugin:constantfunction

update the plugin similarly to
commit 3ee3b36ae0c064fb5c81268d8d63444309d1b970
Author: Stephan Bergmann 
Date:   Fri Oct 7 12:05:49 2016 +0200
loplugin:staticmethods: Don't be fooled by decls starting with macros

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

diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx 
b/basegfx/source/polygon/b2dpolypolygontools.cxx
index 0c50e52..8e8f4c5 100644
--- a/basegfx/source/polygon/b2dpolypolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolypolygontools.cxx
@@ -395,11 +395,6 @@ namespace basegfx
 }
 }
 
-void correctGrowShrinkPolygonPair(SAL_UNUSED_PARAMETER B2DPolyPolygon& 
/*rOriginal*/, SAL_UNUSED_PARAMETER B2DPolyPolygon& /*rGrown*/)
-{
-//TODO!
-}
-
 B2DPolyPolygon reSegmentPolyPolygon(const B2DPolyPolygon& rCandidate, 
sal_uInt32 nSegments)
 {
 B2DPolyPolygon aRetval;
diff --git a/compilerplugins/clang/store/constantfunction.cxx 
b/compilerplugins/clang/store/constantfunction.cxx
index fd429ac..943cc7d 100644
--- a/compilerplugins/clang/store/constantfunction.cxx
+++ b/compilerplugins/clang/store/constantfunction.cxx
@@ -21,50 +21,20 @@ namespace {
 class ConstantFunction:
 public RecursiveASTVisitor, public loplugin::Plugin
 {
-StringRef getFilename(SourceLocation loc);
+StringRef getFilename(const FunctionDecl* functionDecl);
 public:
 explicit ConstantFunction(InstantiationData const & data): Plugin(data) {}
 
 void run() override
 {
 // these files crash clang-3.5 somewhere in the 
isEvaluatable/EvaluateAsXXX stuff
-FileID mainFileID = compiler.getSourceManager().getMainFileID();
-if 
(strstr(compiler.getSourceManager().getFileEntryForID(mainFileID)->getDir()->getName(),
 "sc/source/core/data") != 0) {

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

2016-10-10 Thread Noel Grandin
 xmloff/inc/SchXMLExport.hxx  |1 -
 xmloff/source/chart/SchXMLExport.cxx |5 -
 xmloff/source/draw/ximp3dobject.cxx  |   34 --
 xmloff/source/draw/ximp3dobject.hxx  |5 -
 xmloff/source/draw/ximpstyl.cxx  |6 --
 xmloff/source/draw/ximpstyl.hxx  |1 -
 6 files changed, 52 deletions(-)

New commits:
commit fe82f6fc5cbd638972571a33f04e95971507bba9
Author: Noel Grandin 
Date:   Mon Oct 10 15:46:52 2016 +0200

loplugin:unnnecessaryoverride in xmloff

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

diff --git a/xmloff/inc/SchXMLExport.hxx b/xmloff/inc/SchXMLExport.hxx
index beb0d87..c06ad7f 100644
--- a/xmloff/inc/SchXMLExport.hxx
+++ b/xmloff/inc/SchXMLExport.hxx
@@ -44,7 +44,6 @@ private:
 protected:
 virtual sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum eClass = 
::xmloff::token::XML_TOKEN_INVALID ) override;
 
-virtual void ExportStyles_( bool bUsed ) override;
 virtual void ExportAutoStyles_() override;
 virtual void ExportMasterStyles_() override;
 virtual void ExportContent_() override;
diff --git a/xmloff/source/chart/SchXMLExport.cxx 
b/xmloff/source/chart/SchXMLExport.cxx
index 5548b67..843ae9c 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -3549,11 +3549,6 @@ sal_uInt32 SchXMLExport::exportDoc( enum 
::xmloff::token::XMLTokenEnum eClass )
 return SvXMLExport::exportDoc( eClass );
 }
 
-void SchXMLExport::ExportStyles_( bool bUsed )
-{
-SvXMLExport::ExportStyles_( bUsed );
-}
-
 void SchXMLExport::ExportMasterStyles_()
 {
 // not available in chart
diff --git a/xmloff/source/draw/ximp3dobject.cxx 
b/xmloff/source/draw/ximp3dobject.cxx
index 2229a56..02205c6 100644
--- a/xmloff/source/draw/ximp3dobject.cxx
+++ b/xmloff/source/draw/ximp3dobject.cxx
@@ -185,13 +185,6 @@ void SdXML3DCubeObjectShapeContext::StartElement(const 
uno::Reference< xml::sax:
 }
 }
 
-void SdXML3DCubeObjectShapeContext::EndElement()
-{
-// call parent
-SdXML3DObjectContext::EndElement();
-}
-
-
 SdXML3DSphereObjectShapeContext::SdXML3DSphereObjectShapeContext(
 SvXMLImport& rImport,
 sal_uInt16 nPrfx,
@@ -279,13 +272,6 @@ void SdXML3DSphereObjectShapeContext::StartElement(const 
uno::Reference< xml::sa
 }
 }
 
-void SdXML3DSphereObjectShapeContext::EndElement()
-{
-// call parent
-SdXML3DObjectContext::EndElement();
-}
-
-
 SdXML3DPolygonBasedShapeContext::SdXML3DPolygonBasedShapeContext(
 SvXMLImport& rImport,
 sal_uInt16 nPrfx,
@@ -362,12 +348,6 @@ void SdXML3DPolygonBasedShapeContext::StartElement(const 
uno::Reference< xml::sa
 }
 }
 
-void SdXML3DPolygonBasedShapeContext::EndElement()
-{
-// call parent
-SdXML3DObjectContext::EndElement();
-}
-
 
 SdXML3DLatheObjectShapeContext::SdXML3DLatheObjectShapeContext(
 SvXMLImport& rImport,
@@ -395,13 +375,6 @@ void SdXML3DLatheObjectShapeContext::StartElement(const 
uno::Reference< xml::sax
 }
 }
 
-void SdXML3DLatheObjectShapeContext::EndElement()
-{
-// call parent
-SdXML3DPolygonBasedShapeContext::EndElement();
-}
-
-
 SdXML3DExtrudeObjectShapeContext::SdXML3DExtrudeObjectShapeContext(
 SvXMLImport& rImport,
 sal_uInt16 nPrfx,
@@ -427,12 +400,5 @@ void SdXML3DExtrudeObjectShapeContext::StartElement(const 
uno::Reference< xml::s
 }
 }
 
-void SdXML3DExtrudeObjectShapeContext::EndElement()
-{
-// call parent
-SdXML3DPolygonBasedShapeContext::EndElement();
-}
-
-// EOF
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/source/draw/ximp3dobject.hxx 
b/xmloff/source/draw/ximp3dobject.hxx
index 6527aa3..d60a253 100644
--- a/xmloff/source/draw/ximp3dobject.hxx
+++ b/xmloff/source/draw/ximp3dobject.hxx
@@ -69,7 +69,6 @@ public:
 virtual ~SdXML3DCubeObjectShapeContext() override;
 
 virtual void StartElement(const css::uno::Reference< 
css::xml::sax::XAttributeList>& xAttrList) override;
-virtual void EndElement() override;
 };
 
 // dr3d:3dsphere context
@@ -90,7 +89,6 @@ public:
 virtual ~SdXML3DSphereObjectShapeContext() override;
 
 virtual void StartElement(const css::uno::Reference< 
css::xml::sax::XAttributeList>& xAttrList) override;
-virtual void EndElement() override;
 };
 
 // polygonbased context
@@ -109,7 +107,6 @@ public:
 virtual ~SdXML3DPolygonBasedShapeContext() override;
 
 virtual void StartElement(const css::uno::Reference< 
css::xml::sax::XAttributeList>& xAttrList) override;
-virtual void EndElement() override;
 };
 
 // dr3d:3dlathe context
@@ -125,7 +122,6 @@ public:
 virtual ~SdXML3DLatheObjectShapeContext() override;
 
 virtual void StartElement(const css::uno::Reference< 
css::xml::sax::XAttributeList>& xAttrList) override;
-virtual void EndElement() override;
 };
 
 // dr3d:3dextrude context
@@ -141,7 +137,6 @@ pu

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

2016-10-10 Thread Noel Grandin
 include/svtools/editbrowsebox.hxx  |   18 -
 include/svtools/ivctrl.hxx |1 
 include/svtools/svtabbx.hxx|3 --
 include/svtools/toolbarmenu.hxx|1 
 svtools/inc/vclxaccessibleheaderbaritem.hxx|3 --
 svtools/source/brwbox/datwin.hxx   |3 --
 svtools/source/brwbox/editbrowsebox2.cxx   |   10 -
 svtools/source/contnr/ivctrl.cxx   |6 -
 svtools/source/contnr/svtabbx.cxx  |5 
 svtools/source/control/toolbarmenu.cxx |6 -
 svtools/source/control/vclxaccessibleheaderbaritem.cxx |8 ---
 svtools/source/uno/popupwindowcontroller.cxx   |1 
 12 files changed, 2 insertions(+), 63 deletions(-)

New commits:
commit 90a0e59737d680b35d7dff1a59f66e53c13f444d
Author: Noel Grandin 
Date:   Mon Oct 10 15:45:53 2016 +0200

loplugin:unnnecessaryoverride in svtools

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

diff --git a/include/svtools/editbrowsebox.hxx 
b/include/svtools/editbrowsebox.hxx
index 8103789..8f66b13 100644
--- a/include/svtools/editbrowsebox.hxx
+++ b/include/svtools/editbrowsebox.hxx
@@ -607,16 +607,6 @@ namespace svt
 virtual void DeactivateCell(bool bUpdate = true);
 // Children 
---
 
-/** Creates the accessible object of a data table cell.
-@param nRow
-The row index of the cell.
-@param nColumnId
-The column ID of the cell.
-@return
-The XAccessible interface of the specified cell. */
-virtual css::uno::Reference< css::accessibility::XAccessible >
-CreateAccessibleCell( sal_Int32 nRow, sal_uInt16 nColumnPos ) override;
-
 /** @return  The count of additional controls of the control area. */
 virtual sal_Int32 GetAccessibleControlCount() const override;
 
@@ -628,14 +618,6 @@ namespace svt
 virtual css::uno::Reference< css::accessibility::XAccessible >
 CreateAccessibleControl( sal_Int32 nIndex ) override;
 
-/** Creates the accessible object of a column header.
-@param nColumnId
-The column ID of the header.
-@return
-The XAccessible interface of the specified column header. */
-virtual css::uno::Reference< css::accessibility::XAccessible >
-CreateAccessibleRowHeader( sal_Int32 _nRow ) override;
-
 /** Sets focus to current cell of the data table. */
 virtual void GrabTableFocus() override;
 
diff --git a/include/svtools/ivctrl.hxx b/include/svtools/ivctrl.hxx
index 37f3a75..27779af 100644
--- a/include/svtools/ivctrl.hxx
+++ b/include/svtools/ivctrl.hxx
@@ -209,7 +209,6 @@ protected:
 virtual voidGetFocus() override;
 virtual voidLoseFocus() override;
 voidClickIcon();
-virtual voidStateChanged( StateChangedType nType ) override;
 virtual voidDataChanged( const DataChangedEvent& rDCEvt ) override;
 virtual voidRequestHelp( const HelpEvent& rHEvt ) override;
 static void DrawEntryImage(
diff --git a/include/svtools/svtabbx.hxx b/include/svtools/svtabbx.hxx
index b779494..03580f1 100644
--- a/include/svtools/svtabbx.hxx
+++ b/include/svtools/svtabbx.hxx
@@ -188,9 +188,8 @@ public:
 virtual boolGoToCell( sal_Int32 _nRow, sal_uInt16 
_nColumn ) override;
 
 virtual voidSetNoSelection() override;
-using SvListView::SelectAll;
+using SvTabListBox::SelectAll;
 virtual voidSelectAll() override;
-virtual voidSelectAll( bool bSelect, bool bPaint = 
true ) override;
 virtual voidSelectRow( long _nRow, bool _bSelect = 
true, bool bExpand = true ) override;
 virtual voidSelectColumn( sal_uInt16 _nColumn, bool 
_bSelect = true ) override;
 virtual sal_Int32   GetSelectedRowCount() const override;
diff --git a/include/svtools/toolbarmenu.hxx b/include/svtools/toolbarmenu.hxx
index e2b47f4..840c641 100644
--- a/include/svtools/toolbarmenu.hxx
+++ b/include/svtools/toolbarmenu.hxx
@@ -84,7 +84,6 @@ public:
 virtual voidKeyInput( const KeyEvent& rKEvent ) override;
 virtual voidCommand( const CommandEvent& rCEvt ) override;
 virtual voidPaint( vcl::RenderContext& rRenderContext, const 
Rectangle& rRect ) override;
-virtual voidRequestHelp( const HelpEvent& rHEvt ) override;
 virtual voidGetFocus() override;
 virtual voidLoseFocus() override;
 
diff --git a/svtools/inc/vclxaccessibleheaderbaritem.hxx 
b/svtools/inc/vclxaccessiblehead

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

2016-10-10 Thread Giuseppe Castagno
 ucb/source/ucp/webdav-neon/DAVTypes.cxx  |   77 --
 ucb/source/ucp/webdav-neon/DAVTypes.hxx  |5 +
 ucb/source/ucp/webdav-neon/NeonSession.cxx   |  113 ++-
 ucb/source/ucp/webdav-neon/webdavcontent.cxx |  100 ---
 4 files changed, 237 insertions(+), 58 deletions(-)

New commits:
commit 16df731a30917a426df81d751a0bfd0ae5fcdd45
Author: Giuseppe Castagno 
Date:   Mon Sep 12 20:59:09 2016 +0200

tdf#102499 (5): Deal with HTTP unofficial response status codes

A reference can be found here:

(retrieved 2016-09-13).

Changes done:
Add set of 'HEAD method not available' before using fall back GET method.
Add new method in OPTIONS cache.
Add response status code if fall-back GET didn't succeeded.
Add copy-assignement operator to DAVOptions.
Fix behaviour of GET fall back when HEAD missing.

Change-Id: I6aad0e22bb444abf37b90186588f64f79b03cc3d
Reviewed-on: https://gerrit.libreoffice.org/29680
Tested-by: Jenkins 
Reviewed-by: Giuseppe Castagno 

diff --git a/ucb/source/ucp/webdav-neon/DAVTypes.cxx 
b/ucb/source/ucp/webdav-neon/DAVTypes.cxx
index 3e48752..1990289 100644
--- a/ucb/source/ucp/webdav-neon/DAVTypes.cxx
+++ b/ucb/source/ucp/webdav-neon/DAVTypes.cxx
@@ -34,7 +34,6 @@ DAVOptions::DAVOptions() :
 {
 }
 
-
 DAVOptions::DAVOptions( const DAVOptions & rOther ) :
 m_isClass1( rOther.m_isClass1 ),
 m_isClass2( rOther.m_isClass2 ),
@@ -50,11 +49,25 @@ DAVOptions::DAVOptions( const DAVOptions & rOther ) :
 {
 }
 
-
 DAVOptions::~DAVOptions()
 {
 }
 
+DAVOptions & DAVOptions::operator=( const DAVOptions& rOpts )
+{
+m_isClass1 = rOpts.m_isClass1;
+m_isClass2 = rOpts.m_isClass2;
+m_isClass3 = rOpts.m_isClass3;
+m_isLocked = rOpts.m_isLocked;
+m_isHeadAllowed = rOpts.m_isHeadAllowed;
+m_aAllowedMethods = rOpts.m_aAllowedMethods;
+m_nStaleTime = rOpts.m_nStaleTime;
+m_sURL = rOpts.m_sURL;
+m_sRedirectedURL = rOpts.m_sRedirectedURL;
+m_nHttpResponseStatusCode = rOpts.m_nHttpResponseStatusCode;
+m_sHttpResponseStatusText = rOpts.m_sHttpResponseStatusText;
+return *this;
+}
 
 bool DAVOptions::operator==( const DAVOptions& rOpts ) const
 {
@@ -79,12 +92,10 @@ DAVOptionsCache::DAVOptionsCache()
 {
 }
 
-
 DAVOptionsCache::~DAVOptionsCache()
 {
 }
 
-
 bool DAVOptionsCache::getDAVOptions( const OUString & rURL, DAVOptions & 
rDAVOptions )
 {
 osl::MutexGuard aGuard( m_aMutex );
@@ -113,7 +124,6 @@ bool DAVOptionsCache::getDAVOptions( const OUString & rURL, 
DAVOptions & rDAVOpt
 }
 }
 
-
 void DAVOptionsCache::removeDAVOptions( const OUString & rURL )
 {
 osl::MutexGuard aGuard( m_aMutex );
@@ -128,7 +138,6 @@ void DAVOptionsCache::removeDAVOptions( const OUString & 
rURL )
 }
 }
 
-
 void DAVOptionsCache::addDAVOptions( DAVOptions & rDAVOptions, const 
sal_uInt32 nLifeTime )
 {
 osl::MutexGuard aGuard( m_aMutex );
@@ -149,6 +158,39 @@ void DAVOptionsCache::addDAVOptions( DAVOptions & 
rDAVOptions, const sal_uInt32
 m_aTheCache[ aEncodedUrl ] = rDAVOptions;
 }
 
+void DAVOptionsCache::updateCachedOption( DAVOptions & rDAVOptions, const 
sal_uInt32 nLifeTime )
+{
+osl::MutexGuard aGuard( m_aMutex );
+OUString aURL( rDAVOptions.getURL() );
+
+OUString aEncodedUrl( ucb_impl::urihelper::encodeURI( NeonUri::unescape( 
aURL ) ) );
+normalizeURLLastChar( aEncodedUrl );
+rDAVOptions.setURL( aEncodedUrl );
+
+// unchanged, it may be used to access a server
+OUString aRedirURL( rDAVOptions.getRedirectedURL() );
+rDAVOptions.setRedirectedURL( aRedirURL );
+
+// check if already cached
+DAVOptionsMap::iterator it;
+it = m_aTheCache.find( aEncodedUrl );
+if ( it != m_aTheCache.end() )
+{
+DAVOptions &opts = (*it).second;
+// exists, set new staletime, only if remaining time is higher
+TimeValue t1;
+osl_getSystemTime( &t1 );
+
+if ( ( opts.getStaleTime() - t1.Seconds ) > nLifeTime )
+{
+opts.setStaleTime( t1.Seconds + nLifeTime );
+}
+// update relevant fields
+opts.setHttpResponseStatusCode( 
rDAVOptions.getHttpResponseStatusCode() );
+opts.setHttpResponseStatusText( 
rDAVOptions.getHttpResponseStatusText() );
+}
+}
+
 sal_uInt16 DAVOptionsCache::getHttpResponseStatusCode( const OUString & rURL, 
OUString & rHttpResponseStatusText )
 {
 osl::MutexGuard aGuard( m_aMutex );
@@ -174,6 +216,29 @@ sal_uInt16 DAVOptionsCache::getHttpResponseStatusCode( 
const OUString & rURL, OU
 return 0;
 }
 
+void DAVOptionsCache::setHeadAllowed( const OUString & rURL, const bool 
HeadAllowed )
+{
+osl::MutexGuard aGuard( m_aMutex );
+OUString aEncodedUrl( ucb_impl::urihelper::encodeURI( NeonUri::unescape( 
rURL ) ) );
+normalizeURLLastChar( aEncodedUrl );
+
+DAVOptionsMap::iterator it;
+it = m_aTheCache.find( aEnc

[Libreoffice-commits] core.git: bin/check-elf-dynamic-objects

2016-10-10 Thread Norbert Thiebaud
 bin/check-elf-dynamic-objects |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 91d406f5afb6e08f418d14761beb4a5af5783275
Author: Norbert Thiebaud 
Date:   Mon Oct 10 23:11:55 2016 -0500

check-elf whitelist libxml2 not libxml

Change-Id: If0179726861c867f9c25c13f9eb0b61faaee9524

diff --git a/bin/check-elf-dynamic-objects b/bin/check-elf-dynamic-objects
index fa46cb7..7d444ee 100755
--- a/bin/check-elf-dynamic-objects
+++ b/bin/check-elf-dynamic-objects
@@ -62,7 +62,7 @@ programfiles=$(basename -a $(echo ${files} | grep -o 
'/program/[^/]* '))
 
 # whitelists should contain only system libraries that have a good reputation
 # of maintaining ABI stability
-globalwhitelist="ld-linux-x86-64.so.2 libc.so.6 libm.so.6 libdl.so.2 
libpthread.so.0 librt.so.1 libutil.so.1 libnsl.so.1 libcrypt.so.1 libgcc_s.so.1 
libstdc++.so.6 libz.so.1 libfontconfig.so.1 libfreetype.so.6 libxml.so.2 
libxslt.so.1 libexslt.so.0"
+globalwhitelist="ld-linux-x86-64.so.2 libc.so.6 libm.so.6 libdl.so.2 
libpthread.so.0 librt.so.1 libutil.so.1 libnsl.so.1 libcrypt.so.1 libgcc_s.so.1 
libstdc++.so.6 libz.so.1 libfontconfig.so.1 libfreetype.so.6 libxml2.so.2 
libxslt.so.1 libexslt.so.0"
 x11whitelist="libX11.so.6 libXext.so.6 libSM.so.6 libICE.so.6 libXinerama.so.1 
libXrender.so.1 libXrandr.so.2 libcairo.so.2"
 openglwhitelist="libGL.so.1"
 giowhitelist="libgio-2.0.so.0 libgobject-2.0.so.0 libglib-2.0.so.0 
libdbus-glib-1.so.2 libdbus-1.so.3"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: bin/check-elf-dynamic-objects

2016-10-10 Thread Norbert Thiebaud
 bin/check-elf-dynamic-objects |   75 +++---
 1 file changed, 70 insertions(+), 5 deletions(-)

New commits:
commit 4189551d56b4c6f37e8aebb856411794ea98e44f
Author: Norbert Thiebaud 
Date:   Mon Oct 10 22:21:14 2016 -0500

Support parallelism for check-elf-dynamic-objects

using that and restricting the tests to the content of
instdir/program bring the runtime on out slave builder from
4 minutes+ to just above one second

added -d  to override INSTDIR
added -p to indicate parallelism (no limit for now, so be cautious
with the -d you point too

Change-Id: I14c140f54bea329b82960843a6db44bfaf6c7108

diff --git a/bin/check-elf-dynamic-objects b/bin/check-elf-dynamic-objects
index b34af3e..fa46cb7 100755
--- a/bin/check-elf-dynamic-objects
+++ b/bin/check-elf-dynamic-objects
@@ -12,7 +12,51 @@
 
 set -euo pipefail
 
-files=$(find "${INSTDIR}" -type f)
+PARA=1
+check_path="${INSTDIR:-.}/program"
+
+while [ "${1:-}" != "" ]; do
+parm=${1%%=*}
+arg=${1#*=}
+has_arg=
+if [ "${1}" != "${parm?}" ] ; then
+has_arg=1
+else
+arg=""
+fi
+
+case "${parm}" in
+--dir|-d)
+   if [ "$has_arg" ] ; then
+   check_path=$arg
+   else
+   shift
+   check_path=$1
+   fi
+;;
+-p)
+   # this sound counter intuitive. but the idea
+# is to possibly support -p 
+# in the mean time 0 = nolimit and -p 1 would mean
+# the current default: serialize
+PARA=0
+;;
+-*)
+die "Invalid option $1"
+;;
+*)
+if [ "$DO_NEW" = 1 ] ; then
+REPO="$1"
+else
+die "Invalid argument $1"
+fi
+;;
+esac
+shift
+done
+
+
+files=$(find "${check_path}" -type f)
 # all RPATHs should point to ${INSTDIR}/program so that's the files they find
 programfiles=$(basename -a $(echo ${files} | grep -o '/program/[^/]* '))
 
@@ -29,10 +73,10 @@ kde4whitelist="libkio.so.5 libkfile.so.4 libkdeui.so.5 
libkdecore.so.5 libQtNetw
 avahiwhitelist="libdbus-glib-1.so.2 libdbus-1.so.3 libgobject-2.0.so.0 
libglib-2.0.so.0 libavahi-common.so.3 libavahi-client.so.3"
 kerberoswhitelist="libgssapi_krb5.so.2 libcom_err.so.2 libkrb5.so.3"
 
-status=0
+check_one_file()
+{
+local file="$1"
 
-for file in ${files}
-do
 skip=0
 whitelist="${globalwhitelist}"
 case "${file}" in
@@ -132,7 +176,28 @@ do
 esac
 fi
 fi
-done
+}
+status=0
+
+if [ "$PARA" = "1" ] ; then
+for file in ${files}
+do
+   check_one_file $file
+done
+else
+rm -f check_elf.out
+for file in ${files}
+do
+   (
+   check_one_file $file
+   )>> check_elf.out &
+done
 
+if [ -s check_elf.out ] ; then
+   cat check_elf.out
+   status=1
+fi
+rm check_elf.out
+fi
 exit ${status}
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


comment about connection.py in UI testing code

2016-10-10 Thread Markus Mohrhard
Hey Stephan,

to come back to your comment from IRC earlier.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=74bf4ca9f382fa12481fda18b57cdce4c0d5422b
should catch the case now that the started LibreOffice instance has already
stopped before we can connect.

Additionally I found some more information about the dbgutil assert that I
mentioned.

I managed to add some debug code and improve the order that the output for
the test is generated and found the following pattern.

tearDown: calling terminate()...
create desktop<-- added from me as debug output
terminate<-- added from me as debug output
caught DisposedException while TearDown
ok
test_select_text (start.SimpleWriterTest) ...
warn:sal.osl.pipe:23905:6:sal/osl/unx/pipe.cxx:497: recv() failed:
Connection reset by peer
warn:binaryurp:23583:9:binaryurp/source/reader.cxx:123: caught UNO
exception 'Binary URP bridge already disposed'
warn:binaryurp:23905:6:binaryurp/source/bridge.cxx:844: undisposed bridge,
potential deadlock ahead
python3: /home/moggi/devel/libo/binaryurp/source/binaryany.cxx:107: void*
binaryurp::BinaryAny::getValue(const com::sun::star::uno::TypeDescription&)
const: Assertion `type.get()->eTypeClass == typelib_TypeClass_ANY ||
type.equals(css::uno::TypeDescription(data_.pType))' failed.


So it seems I basically hit this if I the Desktop.terminate call has thrown
a DisposedException that we get the problem during the next start.
Additionally it seems that we might leak Bridge instances but I need to
debug that a bit more. Adding a SAL_DEBUG into the Bridge constructor and
destructor shows two created bridges but only one destroyed one per test.

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


[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp loolwsd/test loolwsd/UserMessages.hpp

2016-10-10 Thread Henry Castro
 loolwsd/LOOLWSD.cpp  |   15 +++
 loolwsd/UserMessages.hpp |2 --
 loolwsd/test/httpwserror.cpp |2 --
 3 files changed, 7 insertions(+), 12 deletions(-)

New commits:
commit c62344db814fe351787316accf0faf53ee811db5
Author: Henry Castro 
Date:   Mon Oct 10 22:28:56 2016 -0400

loolwsd: websocket shutdown cleanup

diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 2b3b205..79d1986 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -182,7 +182,6 @@ static inline
 void shutdownLimitReached(WebSocket& ws)
 {
 const std::string error = Poco::format(PAYLOAD_UNAVALABLE_LIMIT_REACHED, 
MAX_DOCUMENTS, MAX_CONNECTIONS);
-const std::string close = Poco::format(SERVICE_UNAVALABLE_LIMIT_REACHED, 
static_cast(WebSocket::WS_POLICY_VIOLATION));
 
 /* loleaflet sends loolclient, load and partrectangles message immediately
after web socket handshake, so closing web socket fails loading page in
@@ -204,7 +203,7 @@ void shutdownLimitReached(WebSocket& ws)
 if (--retries == 4)
 {
 ws.sendFrame(error.data(), error.size());
-ws.shutdown(WebSocket::WS_POLICY_VIOLATION, close);
+ws.shutdown(WebSocket::WS_POLICY_VIOLATION, "");
 }
 }
 while (retries > 0 && (flags & WebSocket::FRAME_OP_BITMASK) != 
WebSocket::FRAME_OP_CLOSE);
@@ -212,7 +211,7 @@ void shutdownLimitReached(WebSocket& ws)
 catch (Exception&)
 {
 ws.sendFrame(error.data(), error.size());
-ws.shutdown(WebSocket::WS_POLICY_VIOLATION, close);
+ws.shutdown(WebSocket::WS_POLICY_VIOLATION, "");
 }
 }
 
@@ -897,8 +896,8 @@ private:
 // something wrong, with internal exceptions
 Log::trace("Abnormal close handshake.");
 session->closeFrame();
-ws->shutdown(WebSocket::WS_ENDPOINT_GOING_AWAY, 
SERVICE_UNAVALABLE_INTERNAL_ERROR);
-session->shutdownPeer(WebSocket::WS_ENDPOINT_GOING_AWAY, 
SERVICE_UNAVALABLE_INTERNAL_ERROR);
+ws->shutdown(WebSocket::WS_ENDPOINT_GOING_AWAY, "");
+session->shutdownPeer(WebSocket::WS_ENDPOINT_GOING_AWAY, "");
 }
 }
 
@@ -1050,7 +1049,7 @@ public:
 const std::string msg = std::string("error: ") + 
exc.what();
 ws->sendFrame(msg.data(), msg.size());
 // abnormal close frame handshake
-ws->shutdown(WebSocket::WS_ENDPOINT_GOING_AWAY, msg);
+ws->shutdown(WebSocket::WS_ENDPOINT_GOING_AWAY, "");
 }
 catch (const std::exception& exc2)
 {
@@ -1275,8 +1274,8 @@ public:
 // something wrong, with internal exceptions
 Log::trace("Abnormal close handshake.");
 session->closeFrame();
-ws->shutdown(WebSocket::WS_ENDPOINT_GOING_AWAY, 
SERVICE_UNAVALABLE_INTERNAL_ERROR);
-session->shutdownPeer(WebSocket::WS_ENDPOINT_GOING_AWAY, 
SERVICE_UNAVALABLE_INTERNAL_ERROR);
+ws->shutdown(WebSocket::WS_ENDPOINT_GOING_AWAY, "");
+session->shutdownPeer(WebSocket::WS_ENDPOINT_GOING_AWAY, "");
 }
 }
 catch (const Exception& exc)
diff --git a/loolwsd/UserMessages.hpp b/loolwsd/UserMessages.hpp
index 36e6ad3..7883fc0 100644
--- a/loolwsd/UserMessages.hpp
+++ b/loolwsd/UserMessages.hpp
@@ -13,9 +13,7 @@
 #define INCLUDED_USERMESSAGES_HPP
 
 //NOTE: For whatever reason Poco seems to trim the first character.
-
 constexpr auto SERVICE_UNAVALABLE_INTERNAL_ERROR = " Service is unavailable. 
Please try again later and report to your administrator if the issue persists.";
-constexpr auto SERVICE_UNAVALABLE_LIMIT_REACHED = "error: cmd=socket 
kind=close code=%d";
 constexpr auto PAYLOAD_UNAVALABLE_LIMIT_REACHED = "error: cmd=socket 
kind=limitreached params=%d,%d";
 
 #endif
diff --git a/loolwsd/test/httpwserror.cpp b/loolwsd/test/httpwserror.cpp
index 8e7769d..509046c 100644
--- a/loolwsd/test/httpwserror.cpp
+++ b/loolwsd/test/httpwserror.cpp
@@ -103,7 +103,6 @@ void HTTPWSError::testMaxDocuments()
 sendTextFrame(socket, "partpagerectangles ");
 statusCode = getErrorCode(socket, message);
 
CPPUNIT_ASSERT_EQUAL(static_cast(Poco::Net::WebSocket::WS_POLICY_VIOLATION),
 statusCode);
-CPPUNIT_ASSERT_MESSAGE("Wrong error message ", message.find("error: 
cmd=socket kind=close") != std::string::npos);
 }
 catch (const Poco::Exception& exc)
 {
@@ -144,7 +143,6 @@ void HTTPWSError::testMaxConnections()
 sendTextFrame(socketN, "partpagerectangles ");
 statusCode = getErrorCode(*socketN, message);
 
CPPUNIT_ASSERT_EQUAL(static_cast(Poco::Net::WebSocket::WS_POLICY_VIOLATION),
 statusCode);
-CPPUNIT_ASSERT_MESSAGE("Wrong error message ", message.find("error: 
cmd=socket kind=close") != std::string::npos);
 }
   

[Libreoffice-commits] core.git: 5 commits - chart2/source uitest/calc_tests uitest/demo_ui uitest/libreoffice uitest/test_main.py uitest/uitest xmloff/source

2016-10-10 Thread Markus Mohrhard
 chart2/source/controller/main/ChartController.cxx |4 +-
 uitest/calc_tests/tdf96453.py |9 ++
 uitest/demo_ui/handle_multiple_files.py   |9 +-
 uitest/libreoffice/connection.py  |3 ++
 uitest/test_main.py   |2 -
 uitest/uitest/path.py |   31 ++
 xmloff/source/chart/PropertyMaps.cxx  |   11 ++-
 7 files changed, 51 insertions(+), 18 deletions(-)

New commits:
commit 49b50720880b3c6b685568b998282b2b394f2913
Author: Markus Mohrhard 
Date:   Tue Oct 11 04:13:13 2016 +0200

make it easier to read the logs

Not yet perfect but already better.

Change-Id: I5309947333aa2cce6526335b603ef316226e490c

diff --git a/uitest/test_main.py b/uitest/test_main.py
index 7dcbb3b..b3aad3c 100644
--- a/uitest/test_main.py
+++ b/uitest/test_main.py
@@ -106,7 +106,7 @@ if __name__ == '__main__':
 if "-d" in opts or "--debug" in opts:
 uitest.config.use_sleep = True
 
-result = unittest.TextTestRunner(verbosity=2).run(test_suite)
+result = unittest.TextTestRunner(stream=sys.stdout, 
verbosity=2).run(test_suite)
 print("Tests run: %d" % result.testsRun)
 print("Tests failed: %d" % len(result.failures))
 print("Tests errors: %d" % len(result.errors))
commit 74bf4ca9f382fa12481fda18b57cdce4c0d5422b
Author: Markus Mohrhard 
Date:   Tue Oct 11 04:11:53 2016 +0200

avoid infinite loop if the instance stopped already

Change-Id: I03f78e592f3f182f34ea05829131357cabcc4c7b

diff --git a/uitest/libreoffice/connection.py b/uitest/libreoffice/connection.py
index a39b42f..7b36479 100644
--- a/uitest/libreoffice/connection.py
+++ b/uitest/libreoffice/connection.py
@@ -74,6 +74,9 @@ class OfficeConnection:
 url = "uno:" + socket + ";urp;StarOffice.ComponentContext"
 print("OfficeConnection: connecting to: " + url)
 while True:
+if self.soffice.poll() is not None:
+raise Exception("soffice has stopped.")
+
 try:
 xContext = xUnoResolver.resolve(url)
 return xContext
commit f6624944219da151c10c3c8b5decaa0abbef1b45
Author: Markus Mohrhard 
Date:   Tue Oct 11 04:09:46 2016 +0200

pathlib is only in python 3.4+

We still use 3.3 on windows.

Change-Id: I32adabe1eb12d8803d61458fcb1a228b3ff045e0

diff --git a/uitest/calc_tests/tdf96453.py b/uitest/calc_tests/tdf96453.py
index 020b901..fb8e404 100644
--- a/uitest/calc_tests/tdf96453.py
+++ b/uitest/calc_tests/tdf96453.py
@@ -11,16 +11,13 @@ import os
 import pathlib
 
 from uitest.uihelper.common import get_state_as_dict
+from uitest.path import get_srcdir_url
+
 from libreoffice.calc.document import get_sheet_from_doc
 from libreoffice.calc.conditional_format import 
get_conditional_format_from_sheet
 
-def get_data_dir():
-current_dir = os.path.dirname(os.path.realpath(__file__))
-return os.path.join(current_dir, "data")
-
 def get_url_for_data_file(file_name):
-path = os.path.join(get_data_dir(), file_name)
-return pathlib.Path(path).as_uri()
+return get_srcdir_url() + "/uitest/calc_tests/data/" + file_name
 
 class ConditionalFormatDlgTest(UITestCase):
 
diff --git a/uitest/demo_ui/handle_multiple_files.py 
b/uitest/demo_ui/handle_multiple_files.py
index ab56c55..dd4cba7 100644
--- a/uitest/demo_ui/handle_multiple_files.py
+++ b/uitest/demo_ui/handle_multiple_files.py
@@ -11,18 +11,13 @@ from libreoffice.uno.eventlistener import EventListener
 from uitest.framework import UITestCase
 
 from uitest.debug import sleep
+from uitest.path import get_srcdir_url
 
 import time
 import os
-import pathlib
-
-def get_data_dir():
-current_dir = os.path.dirname(os.path.realpath(__file__))
-return os.path.join(current_dir, "data")
 
 def get_url_for_data_file(file_name):
-path = os.path.join(get_data_dir(), file_name)
-return pathlib.Path(path).as_uri()
+return get_srcdir_url() + "/uitest/demo_ui/data/" + file_name
 
 class HandleFiles(UITestCase):
 
diff --git a/uitest/uitest/path.py b/uitest/uitest/path.py
new file mode 100644
index 000..19eea2a
--- /dev/null
+++ b/uitest/uitest/path.py
@@ -0,0 +1,31 @@
+# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 
*/
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+import os
+from urllib.parse import urljoin
+from urllib.request import pathname2url
+
+def get_src_dir_fallback():
+current_dir = os.path.dirname(os.path.realpath(__file__))
+return os.path.abspath(os.path.join(current_dir, "../../"))
+
+def path2url(path):
+return urljoin('file:', pathname2url(path))
+
+def get_workdir_url():
+workdir_path = os.environ.get('WORKDIR', 
os.path.join(get_src_dir_fallback(), 'workdir'))
+

[Libreoffice-commits] core.git: include/svx officecfg/registry sd/inc sd/sdi svx/sdi sw/sdi sw/source sw/uiconfig

2016-10-10 Thread Gulsah Kose
 include/svx/svxids.hrc   |
3 +
 officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu |
8 
 officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu |
8 
 sd/inc/app.hrc   |
1 
 sd/sdi/sdraw.sdi |   
18 -
 svx/sdi/svx.sdi  |   
19 ++
 sw/sdi/viewsh.sdi|
5 ++
 sw/source/core/frmedt/feshview.cxx   |   
10 +
 sw/source/uibase/ribbar/conrect.cxx  |
4 ++
 sw/source/uibase/uiview/viewdraw.cxx |
1 
 sw/source/uibase/uiview/viewstat.cxx |
1 
 sw/uiconfig/swriter/toolbar/arrowsbar.xml|
2 +
 12 files changed, 52 insertions(+), 28 deletions(-)

New commits:
commit e2f6c7f0d0cc14f851d7028ff846c5dc658a81c6
Author: Gulsah Kose 
Date:   Sun Oct 9 22:00:16 2016 +0300

tdf#101390 Add "Dimesion Line" command to the writer arrowsbox.

Change-Id: I238bc37871c029d547b21ce7c8ef3cb0c0ff95b8
Signed-off-by: Gulsah Kose 
Reviewed-on: https://gerrit.libreoffice.org/29669
Tested-by: Jenkins 
Reviewed-by: Maxim Monastirsky 

diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc
index a6e058f..b3fa887 100644
--- a/include/svx/svxids.hrc
+++ b/include/svx/svxids.hrc
@@ -998,9 +998,10 @@
 #define SID_DRAWTBX_ARROWS  ( SID_SVX_START + 1164 
)
 #define SID_LINE_ARROW_START( SID_SVX_START + 1165 
)
 #define SID_LINE_ARROW_END  ( SID_SVX_START + 1166 
)
+#define SID_DRAW_MEASURELINE( SID_SVX_START + 1167 
)
 
 // IMPORTANT NOTE: adjust SID_SVX_FIRSTFREE, when adding new slot id
-#define SID_SVX_FIRSTFREE   ( SID_LINE_ARROW_END + 
1 )
+#define SID_SVX_FIRSTFREE   ( SID_DRAW_MEASURELINE 
+ 1 )
 
 // Overflow check for slot IDs
 
diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu
index eda008cc..0e4e083 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu
@@ -858,14 +858,6 @@
   ~Layer
 
   
-  
-
-  Dimension Line
-
-
-  1
-
-  
   
 
   ~Master
diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
index 8870417..b18a5e6 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
@@ -2024,6 +2024,14 @@
   1
 
   
+  
+
+  Dimension Line
+
+
+  1
+
+  
   
 
   Image mode
diff --git a/sd/inc/app.hrc b/sd/inc/app.hrc
index 9a97d9f..2bf7839 100644
--- a/sd/inc/app.hrc
+++ b/sd/inc/app.hrc
@@ -104,7 +104,6 @@
 #define SID_MODIFYLAYER (SID_SD_START+45)
 #define SID_PAGEMODE(SID_SD_START+46)
 #define SID_LAYERMODE   (SID_SD_START+47)
-#define SID_DRAW_MEASURELINE(SID_SD_START+48)
 #define SID_STARTAPP(SID_SD_START+49)
 #define SID_MASTERPAGE  (SID_SD_START+50)
 // Navigation between slides
diff --git a/sd/sdi/sdraw.sdi b/sd/sdi/sdraw.sdi
index afc8ee8..bbaf03a 100644
--- a/sd/sdi/sdraw.sdi
+++ b/sd/sdi/sdraw.sdi
@@ -2509,24 +2509,6 @@ SfxVoidItem MeasureAttributes SID_MEASURE_DLG
 GroupId = GID_FORMAT;
 ]
 
-SfxBoolItem MeasureLine SID_DRAW_MEASURELINE
-
-[
-AutoUpdate = TRUE,
-FastCall = FALSE,
-ReadOnlyDoc = FALSE,
-Toggle = FALSE,
-Container = FALSE,
-RecordAbsolute = FALSE,
-RecordPerItem;
-
-
-AccelConfig = TRUE,
-MenuConfig = TRUE,
-ToolBoxConfig = TRUE,
-GroupId = GID_DRAWING;
-]
-
 SfxVoidItem MirrorHorz SID_HORIZONTAL
 ()
 [
diff --git a/svx/sdi/svx.sdi b/svx/sdi/svx.sdi
index 72ea78b..0693af6 100644
--- a/svx/sdi/svx.sdi
+++ b/svx/sdi/svx.sdi
@@ -5319,6 +5319,25 @@ SfxVoidItem LeftRightParaMargin_Vertical 
SID_ATTR_PARA_LRSPACE_VERTICAL
 ]
 
 
+SfxBoolItem MeasureLine SID_DRAW_MEASURELINE
+
+[
+AutoUpdate = TRUE,
+FastCall = FALSE,
+ReadOnlyDoc = FALSE,
+Toggle = FALSE,
+Container = FALSE,
+RecordAbsolute = FALSE,
+RecordPerItem;
+
+
+AccelConfig = TRUE,
+MenuConfig = TRUE,
+ToolBoxConfig = TR

Re: Introducing myself

2016-10-10 Thread Huzaifa Iftikhar
On Mon, Oct 10, 2016 at 1:00 PM, Nagar Akshay <2014ucp1...@mnit.ac.in>
wrote:

> Hello everyone this is Akshay Nagar. I am currently pursuing Computer
> Science and Engineering 3rd year at NIT Jaipur, India. I want to intern at
> GSOC with libre office the coming year.
>

Welcome Akshay !


> I would like to get a tip about getting started and the prerequisites
> needed to start contributing.
>
> Looking forward to your cooperation,
> With regards,
> Akshay.
>

you can start from here
https://wiki.documentfoundation.org/Development

Regards,
Huzaifa Iftikhar


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


Re: Calc HYPGEOMDIST: conditionally changing function opcode when saving to Excel format

2016-10-10 Thread Eike Rathke
Hi Winfried,

On Wednesday, 2016-10-05 12:28:04 +0200, Winfried Donkers wrote:

> > > -save in Excel as HYPGEOMDIST in case of 4 arguments and HYPGEOM.DIST in
> > case of 5 arguments.
> > >
> > 
> > I think you have this in mind:
> > formula/source/core/api/token.cxx
> > MissingConventionOOXML::isRewriteNeeded()
> > FormulaTokenArray::RewriteMissing()
> > 
> 
> Thanks, that is the spot to change the function opcode.
> Now I hit the second barrier:
> ODFF allows 4 arguments, but Excel needs 5, so when saving to OOXML, I need 
> to add an argument when that is not given.

I thought that was to be written as HYPGEOMDIST then and not HYPGEOM.DIST?

> I have done that before, somewhere, but predictably I forgot where.
> 
> Do you have a hint available here too? ;-)

That would be same file, FormulaMissingContext::AddMoreArgs() for case
MissingConvention::FORMULA_MISSING_CONVENTION_OOXML add a case for the
OpCode and there add ocSep and probably best ocFalse,ocOpen,ocClose.

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack


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


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

2016-10-10 Thread Eike Rathke
 sc/source/core/tool/refupdat.cxx |4 
 sc/source/core/tool/token.cxx|   21 +
 2 files changed, 21 insertions(+), 4 deletions(-)

New commits:
commit 84a8aa8b28599db4ef452416e930690949217d2c
Author: Eike Rathke 
Date:   Fri Oct 7 19:43:32 2016 +0200

Resolves: tdf#101562 ScRefUpdate::Update() needs to flag sticky even 
unchanged

... so area broadcasters can be "adapted" (though not changed) and
broadcast a change to invalidate listening lookup caches.

This is the delete row part of the bug scenario.

(cherry picked from commit 866eb4a7f93414932b8669d1a6afe0611655dfb4)

tdf#101562 inserting within an entire col/row reference needs to flag change

This is the insert part (e.g. Undo) of the bug scenario.

(cherry picked from commit 180fe3e991432a5ab1ef573686ff9b35c732756b)

87060bd9f0ad6d58a11308e58e7ce56875327c52

Change-Id: Ie6072a6b8e7967faa135a3c4d0a9024b6afcd69c
Reviewed-on: https://gerrit.libreoffice.org/29596
Tested-by: Jenkins 
Reviewed-by: Markus Mohrhard 

diff --git a/sc/source/core/tool/refupdat.cxx b/sc/source/core/tool/refupdat.cxx
index 602a636..300dd1d 100644
--- a/sc/source/core/tool/refupdat.cxx
+++ b/sc/source/core/tool/refupdat.cxx
@@ -235,6 +235,8 @@ ScRefUpdateRes ScRefUpdate::Update( ScDocument* pDoc, 
UpdateRefMode eUpdateRefMo
 {
 // End was sticky, but start may have been moved. Only on 
range.
 theCol2 = oldCol2;
+if (eRet == UR_NOTHING)
+eRet = UR_STICKY;
 }
 // Else, if (bCut2 && theCol2 == MAXCOL) then end becomes sticky,
 // but currently there's nothing to do.
@@ -267,6 +269,8 @@ ScRefUpdateRes ScRefUpdate::Update( ScDocument* pDoc, 
UpdateRefMode eUpdateRefMo
 {
 // End was sticky, but start may have been moved. Only on 
range.
 theRow2 = oldRow2;
+if (eRet == UR_NOTHING)
+eRet = UR_STICKY;
 }
 // Else, if (bCut2 && theRow2 == MAXROW) then end becomes sticky,
 // but currently there's nothing to do.
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index fd390a4..ffb9a29 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -2974,10 +2974,23 @@ sc::RefUpdateResult 
ScTokenArray::AdjustReferenceOnShift( const sc::RefUpdateCon
 
 if (rCxt.maRange.In(aAbs))
 {
-ScRange aErrorRange( ScAddress::UNINITIALIZED );
-if (!aAbs.MoveSticky(rCxt.mnColDelta, 
rCxt.mnRowDelta, rCxt.mnTabDelta, aErrorRange))
-aAbs = aErrorRange;
-aRes.mbReferenceModified = true;
+// We shift either by column or by row, not both,
+// so moving the reference has only to be done in
+// the non-sticky case.
+if ((rCxt.mnRowDelta && rRef.IsEntireCol()) || 
(rCxt.mnColDelta && rRef.IsEntireRow()))
+{
+// In entire col/row, values are shifted within
+// the reference, which affects all positional
+// results like in MATCH or matrix positions.
+aRes.mbValueChanged = true;
+}
+else
+{
+ScRange aErrorRange( ScAddress::UNINITIALIZED 
);
+if (!aAbs.MoveSticky(rCxt.mnColDelta, 
rCxt.mnRowDelta, rCxt.mnTabDelta, aErrorRange))
+aAbs = aErrorRange;
+aRes.mbReferenceModified = true;
+}
 }
 else if (rCxt.maRange.Intersects(aAbs))
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - sc/source

2016-10-10 Thread Eike Rathke
 sc/source/core/tool/refupdat.cxx |4 
 sc/source/core/tool/token.cxx|   21 +
 2 files changed, 21 insertions(+), 4 deletions(-)

New commits:
commit d6992fdd03adc713323ef1f3e3840d1003ded8b8
Author: Eike Rathke 
Date:   Fri Oct 7 19:43:32 2016 +0200

Resolves: tdf#101562 ScRefUpdate::Update() needs to flag sticky even 
unchanged

... so area broadcasters can be "adapted" (though not changed) and
broadcast a change to invalidate listening lookup caches.

This is the delete row part of the bug scenario.

(cherry picked from commit 866eb4a7f93414932b8669d1a6afe0611655dfb4)

tdf#101562 inserting within an entire col/row reference needs to flag change

This is the insert part (e.g. Undo) of the bug scenario.

(cherry picked from commit 180fe3e991432a5ab1ef573686ff9b35c732756b)

87060bd9f0ad6d58a11308e58e7ce56875327c52

Change-Id: Ie6072a6b8e7967faa135a3c4d0a9024b6afcd69c
Reviewed-on: https://gerrit.libreoffice.org/29595
Tested-by: Jenkins 
Reviewed-by: Markus Mohrhard 

diff --git a/sc/source/core/tool/refupdat.cxx b/sc/source/core/tool/refupdat.cxx
index 602a636..300dd1d 100644
--- a/sc/source/core/tool/refupdat.cxx
+++ b/sc/source/core/tool/refupdat.cxx
@@ -235,6 +235,8 @@ ScRefUpdateRes ScRefUpdate::Update( ScDocument* pDoc, 
UpdateRefMode eUpdateRefMo
 {
 // End was sticky, but start may have been moved. Only on 
range.
 theCol2 = oldCol2;
+if (eRet == UR_NOTHING)
+eRet = UR_STICKY;
 }
 // Else, if (bCut2 && theCol2 == MAXCOL) then end becomes sticky,
 // but currently there's nothing to do.
@@ -267,6 +269,8 @@ ScRefUpdateRes ScRefUpdate::Update( ScDocument* pDoc, 
UpdateRefMode eUpdateRefMo
 {
 // End was sticky, but start may have been moved. Only on 
range.
 theRow2 = oldRow2;
+if (eRet == UR_NOTHING)
+eRet = UR_STICKY;
 }
 // Else, if (bCut2 && theRow2 == MAXROW) then end becomes sticky,
 // but currently there's nothing to do.
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index f1ba088..581c2d7 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -3065,10 +3065,23 @@ sc::RefUpdateResult 
ScTokenArray::AdjustReferenceOnShift( const sc::RefUpdateCon
 
 if (rCxt.maRange.In(aAbs))
 {
-ScRange aErrorRange( ScAddress::UNINITIALIZED );
-if (!aAbs.MoveSticky(rCxt.mnColDelta, 
rCxt.mnRowDelta, rCxt.mnTabDelta, aErrorRange))
-aAbs = aErrorRange;
-aRes.mbReferenceModified = true;
+// We shift either by column or by row, not both,
+// so moving the reference has only to be done in
+// the non-sticky case.
+if ((rCxt.mnRowDelta && rRef.IsEntireCol()) || 
(rCxt.mnColDelta && rRef.IsEntireRow()))
+{
+// In entire col/row, values are shifted within
+// the reference, which affects all positional
+// results like in MATCH or matrix positions.
+aRes.mbValueChanged = true;
+}
+else
+{
+ScRange aErrorRange( ScAddress::UNINITIALIZED 
);
+if (!aAbs.MoveSticky(rCxt.mnColDelta, 
rCxt.mnRowDelta, rCxt.mnTabDelta, aErrorRange))
+aAbs = aErrorRange;
+aRes.mbReferenceModified = true;
+}
 }
 else if (rCxt.maRange.Intersects(aAbs))
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Laurent Balland-Poirier
 svl/source/numbers/zformat.cxx |  307 -
 1 file changed, 277 insertions(+), 30 deletions(-)

New commits:
commit aa4e560822787d62de0bcca52036242ce1160b45
Author: Laurent Balland-Poirier 
Date:   Sat Sep 10 12:23:41 2016 +0200

tdf#36038 Import extended LCID from Excel

Extended LCID were only supported for Thai.
This commit import also for some other numerals and calendars.

Change-Id: Id92a0ee2a32c5722e9674fe0ac5ff7028c84bca6
Reviewed-on: https://gerrit.libreoffice.org/28809
Reviewed-by: Eike Rathke 
Tested-by: Eike Rathke 

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index e2caebf..a37987e 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -538,43 +538,290 @@ static bool lcl_SvNumberformat_IsBracketedPrefix( short 
nSymbolType )
 return false;
 }
 
-
-OUString SvNumberformat::ImpObtainCalendarAndNumerals( OUStringBuffer & 
rString, sal_Int32 & nPos,
-   LanguageType & nLang, 
const LocaleType & aTmpLocale )
+/** Import extended LCID from Excel
+ */
+OUString SvNumberformat::ImpObtainCalendarAndNumerals( OUStringBuffer& 
rString, sal_Int32& nPos,
+   LanguageType& nLang, 
const LocaleType& aTmpLocale )
 {
 OUString sCalendar;
-/* TODO: this could be enhanced to allow other possible locale dependent
+sal_uInt16 nNatNum = 0;
+LanguageType nLocaleLang = MsLangId::getRealLanguage( maLocale.meLanguage 
);
+LanguageType nTmpLocaleLang = MsLangId::getRealLanguage( 
aTmpLocale.meLanguage );
+/* NOTE: enhancement to allow other possible locale dependent
  * calendars and numerals. BUT only if our locale data allows it! For LCID
  * numerals and calendars see
- * http://office.microsoft.com/en-us/excel/HA010346351033.aspx */
-if (MsLangId::getRealLanguage( aTmpLocale.meLanguage) == LANGUAGE_THAI)
-{
-// Numeral shape code "D" = Thai digits.
-if (aTmpLocale.mnNumeralShape == 0xD)
-{
-rString.insert( nPos, "[NatNum1]");
-}
-// Calendar type code "07" = Thai Buddhist calendar, insert this after
-// all prefixes have been consumed as it is actually a format modifier
-// and not a prefix.
-if (aTmpLocale.mnCalendarType == 0x07)
-{
-// Currently calendars are tied to the locale of the entire number
-// format, e.g. [~buddhist] in en_US doesn't work.
-// => Having different locales in sub formats does not work!
-/* TODO: calendars could be tied to a sub format's NatNum info
- * instead, or even better be available for any locale. Needs a
- * different implementation of GetCal() and locale data calendars.
- * */
-// If this is not Thai yet, make it so.
-if (MsLangId::getRealLanguage( maLocale.meLanguage) != 
LANGUAGE_THAI)
-{
-maLocale = aTmpLocale;
-nLang = maLocale.meLanguage = LANGUAGE_THAI;
+ * http://office.microsoft.com/en-us/excel/HA010346351033.aspx
+ * Calendar is inserted after
+ * all prefixes have been consumed as it is actually a format modifier
+ * and not a prefix.
+ * Currently calendars are tied to the locale of the entire number
+ * format, e.g. [~buddhist] in en_US doesn't work.
+ * => Having different locales in sub formats does not work!
+ * */
+/* TODO: calendars could be tied to a sub format's NatNum info
+ * instead, or even better be available for any locale. Needs a
+ * different implementation of GetCal() and locale data calendars.
+ * */
+switch ( aTmpLocale.mnCalendarType & 0x7F )
+{
+case 0x03 : // Gengou calendar
+sCalendar = "[~gengou]";
+// Only Japanese language support Gengou calendar
+if ( nLocaleLang != LANGUAGE_JAPANESE )
+{
+nLang = maLocale.meLanguage = LANGUAGE_JAPANESE;
+}
+break;
+case 0x05 : // unknown calendar
+break;
+case 0x06 : // Hijri calendar
+case 0x17 : // same?
+sCalendar = "[~hijri]";
+// Only Arabic or Farsi languages support Hijri calendar
+if ( ( ( nLocaleLang & LANGUAGE_MASK_PRIMARY ) != 
LANGUAGE_ARABIC_PRIMARY_ONLY )
+  && nLocaleLang != LANGUAGE_FARSI )
+{
+if ( ( ( nTmpLocaleLang & LANGUAGE_MASK_PRIMARY ) == 
LANGUAGE_ARABIC_PRIMARY_ONLY )
+  || nTmpLocaleLang == LANGUAGE_FARSI )
+{
+nLang = maLocale.meLanguage = aTmpLocale.meLanguage;
+}
+else
+{
+nLang = maLocale.meLanguage = LANGUAGE_ARABIC_SAUDI_ARABIA;
+}
 }
+br

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

2016-10-10 Thread Laurent Balland-Poirier
 svl/source/numbers/zformat.cxx |  193 +
 1 file changed, 158 insertions(+), 35 deletions(-)

New commits:
commit e991b421905e78f020d6ece280dd17bfce4e31e0
Author: Laurent Balland-Poirier 
Date:   Sun Sep 4 12:42:57 2016 +0200

tdf#36038 Export to Excel extended LCID

Number format: extend export to Excel of long LCID for other languages
and calendars than only Thai and Buddhist

Change-Id: I826347302d14caa5b4463d28cd25f2c36ebfef5d
Reviewed-on: https://gerrit.libreoffice.org/28666
Tested-by: Jenkins 
Reviewed-by: Eike Rathke 

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index f4b7834..e2caebf 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -4641,22 +4641,35 @@ static void lcl_SvNumberformat_AddLimitStringImpl( 
OUString& rStr,
 }
 }
 
-void lcl_insertLCID( OUStringBuffer& aFormatStr, const OUString& rLCIDString, 
sal_Int32 nPosInsertLCID )
+void lcl_insertLCID( OUStringBuffer& rFormatStr, sal_uInt32 nLCID, sal_Int32 
nPosInsertLCID )
 {
-OUStringBuffer aLCIDString;
-if ( !rLCIDString.isEmpty() )
-{
-aLCIDString = "[$-" + rLCIDString + "]";
-}
+if ( nLCID == 0 )
+return;
+OUStringBuffer aLCIDString = OUString::number( nLCID , 16 
).toAsciiUpperCase();
 // Search for only last DBNum which is the last element before insertion 
position
 if ( nPosInsertLCID >= 8
-&& rLCIDString.getLength() > 4
-&& aFormatStr.indexOf( "[DBNum", nPosInsertLCID-8) == nPosInsertLCID-8 
)
+&& aLCIDString.getLength() > 4
+&& rFormatStr.indexOf( "[DBNum", nPosInsertLCID-8) == nPosInsertLCID-8 
)
 {   // remove DBNumX code if long LCID
 nPosInsertLCID -= 8;
-aFormatStr.remove( nPosInsertLCID, 8 );
+rFormatStr.remove( nPosInsertLCID, 8 );
 }
-aFormatStr.insert( nPosInsertLCID, aLCIDString.toString() );
+aLCIDString.insert( 0, "[$-" );
+aLCIDString.append( "]" );
+rFormatStr.insert( nPosInsertLCID, aLCIDString.toString() );
+}
+
+/** Increment nAlphabetID for CJK numerals
+ * +1 for financial numerals [NatNum2]
+ * +2 for Arabic fullwidth numerals [NatNum3]
+ * */
+void lcl_incrementAlphabetWithNatNum ( sal_uInt32& nAlphabetID, sal_uInt32 
nNatNum )
+{
+if ( nNatNum == 2) // financial
+nAlphabetID += 1;
+else if ( nNatNum == 3)
+nAlphabetID += 2;
+nAlphabetID = nAlphabetID << 24;
 }
 
 OUString SvNumberformat::GetMappedFormatstring( const NfKeywordTable& 
rKeywords,
@@ -4717,7 +4730,6 @@ OUString SvNumberformat::GetMappedFormatstring( const 
NfKeywordTable& rKeywords,
 nSem++;
 }
 OUString aPrefix;
-bool bLCIDInserted = false;
 
 if ( !bDefaults )
 {
@@ -4781,6 +4793,7 @@ OUString SvNumberformat::GetMappedFormatstring( const 
NfKeywordTable& rKeywords,
 aStr.append( aPrefix );
 }
 sal_Int32 nPosInsertLCID = aStr.getLength();
+sal_uInt32 nCalendarID = 0x000; // Excel ID of calendar used in 
sub-format see tdf#36038
 if ( nAnz )
 {
 const short* pType = NumFor[n].Info().nTypeArray;
@@ -4838,21 +4851,25 @@ OUString SvNumberformat::GetMappedFormatstring( const 
NfKeywordTable& rKeywords,
 }
 break;
 case NF_SYMBOLTYPE_CALDEL :
-if ( pStr[j+1] == "buddhist" )
+if ( pStr[j+1] == "gengou" )
 {
-if ( aNatNum.IsSet() && aNatNum.GetNatNum() == 1 &&
- MsLangId::getRealLanguage( aNatNum.GetLang() 
) ==
- LANGUAGE_THAI )
-{
-lcl_insertLCID( aStr, "D07041E", 
nPosInsertLCID ); // date in Thai digit, Buddhist era
-}
-else
-{
-lcl_insertLCID( aStr, "107041E", 
nPosInsertLCID ); // date in Arabic digit, Buddhist era
-}
-j = j+2;
-bLCIDInserted = true;
+nCalendarID = 0x003;
+}
+else if ( pStr[j+1] == "hijri" )
+{
+nCalendarID = 0x006;
 }
+else if ( pStr[j+1] == "buddhist" )
+{
+nCalendarID = 0x007;
+}
+else if ( pStr[j+1] == "jewish" )
+{
+nCalendarID = 0x008;
+}
+// other calendars (see tdf#36038) not corresponding 
between LibO and XL
+if ( nCale

[Libreoffice-commits] core.git: Changes to 'refs/tags/cp-5.1-9'

2016-10-10 Thread Andras Timar
Tag 'cp-5.1-9' created by Andras Timar  at 
2016-10-10 21:08 +

cp-5.1-9

Changes since cp-5.1-8-55:
---
 0 files changed
---
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: Changes to 'refs/tags/cp-5.1-9'

2016-10-10 Thread Miklos Vajna
Tag 'cp-5.1-9' created by Andras Timar  at 
2016-10-10 21:08 +

cp-5.1-9

Changes since libreoffice-5-1-branch-point-11:
---
 0 files changed
---
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Maxim Monastirsky
 include/vcl/floatwin.hxx   |1 -
 include/vcl/syswin.hxx |2 +-
 vcl/source/window/dockmgr.cxx  |8 +---
 vcl/source/window/dockwin.cxx  |6 ++
 vcl/source/window/floatwin.cxx |   11 ---
 vcl/source/window/syswin.cxx   |8 +++-
 6 files changed, 11 insertions(+), 25 deletions(-)

New commits:
commit b197a47889a81b0181553a2a9c4db9683dd5d760
Author: Maxim Monastirsky 
Date:   Tue Oct 11 00:04:12 2016 +0300

Height and Width seem to be swapped here

when height takes left-right borders, and width top-bottom.
And also - Why do we calculate the borders twice - as the call
to CalcWindowSize does this again?

Change-Id: I63a66939bd526a225ccac9bdd6262feba48da5c2

diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 8dff109..9a523c7 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -1072,10 +1072,8 @@ Size DockingWindow::GetOptimalSize() const
 
 sal_Int32 nBorderWidth = get_border_width();
 
-aSize.Height() += mpWindowImpl->mnLeftBorder + mpWindowImpl->mnRightBorder
-+ 2*nBorderWidth;
-aSize.Width() += mpWindowImpl->mnTopBorder + mpWindowImpl->mnBottomBorder
-+ 2*nBorderWidth;
+aSize.Height() += 2 * nBorderWidth;
+aSize.Width()  += 2 * nBorderWidth;
 
 return Window::CalcWindowSize(aSize);
 }
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index f844eef..5e1a372 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -1091,10 +1091,8 @@ Size SystemWindow::GetOptimalSize() const
 
 sal_Int32 nBorderWidth = get_border_width();
 
-aSize.Height() += mpWindowImpl->mnLeftBorder + mpWindowImpl->mnRightBorder
-+ 2*nBorderWidth;
-aSize.Width() += mpWindowImpl->mnTopBorder + mpWindowImpl->mnBottomBorder
-+ 2*nBorderWidth;
+aSize.Height() += 2 * nBorderWidth;
+aSize.Width()  += 2 * nBorderWidth;
 
 return Window::CalcWindowSize(aSize);
 }
commit 9079d599baf01cb414ed4cccb22546f1807e5637
Author: Maxim Monastirsky 
Date:   Mon Oct 10 23:36:22 2016 +0300

Merge SystemWindow and FloatingWindow setPosSizeOnContainee methods

This reverts commit 95942b16f44bc6eac57ad7b579b4158565446884
("Resolves: tdf#90481 fix cropped buttons"), and changes the
code in a way that seems to not crop buttons anymore. Tested
under gtk3 with File > Digital Signatures... and the toolbar
underline dropdown.

Change-Id: Idcb680c82f594f630b1dd7c76c42912e6b5a093a

diff --git a/include/vcl/floatwin.hxx b/include/vcl/floatwin.hxx
index 414fcee..680cc13 100644
--- a/include/vcl/floatwin.hxx
+++ b/include/vcl/floatwin.hxx
@@ -103,7 +103,6 @@ private:
 
 SAL_DLLPRIVATE voidImplCallPopupModeEnd();
 DECL_DLLPRIVATE_LINK(  ImplEndPopupModeHdl, void*, void );
-virtual void setPosSizeOnContainee(Size aSize, Window &rBox) override;
 
FloatingWindow (const FloatingWindow &) = delete;
FloatingWindow & operator= (const FloatingWindow &) 
= delete;
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx
index d3a44e7..dd6d9f0 100644
--- a/include/vcl/syswin.hxx
+++ b/include/vcl/syswin.hxx
@@ -177,7 +177,7 @@ public:
 
 private:
 SAL_DLLPRIVATE void ImplMoveToScreen( long& io_rX, long& io_rY, long 
i_nWidth, long i_nHeight, vcl::Window* i_pConfigureWin );
-virtual void setPosSizeOnContainee(Size aSize, Window &rBox);
+SAL_DLLPRIVATE void setPosSizeOnContainee(Size aSize, Window &rBox);
 DECL_DLLPRIVATE_LINK( ImplHandleLayoutTimerHdl, Idle*, void );
 
 protected:
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index f9c4513..465177e 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -827,15 +827,4 @@ void FloatingWindow::AddPopupModeWindow( vcl::Window* 
pWindow )
 mpFirstPopupModeWin = pWindow;
 }
 
-void FloatingWindow::setPosSizeOnContainee(Size aSize, Window &rBox)
-{
-sal_Int32 nBorderWidth = get_border_width();
-
-aSize.Width() -= mpWindowImpl->mnLeftBorder + mpWindowImpl->mnRightBorder 
+ 2 * nBorderWidth;
-aSize.Height() -= nBorderWidth + mpWindowImpl->mnTopBorder + 
mpWindowImpl->mnBottomBorder + 2 * nBorderWidth;
-
-Point aPos(nBorderWidth, nBorderWidth);
-VclContainer::setLayoutAllocation(rBox, aPos, aSize);
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index dca00fd..f844eef 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -1107,7 +1107,7 @@ void SystemWindow::setPosSizeOnContainee(Size aSize, 
Window &rBox)
 aSize.Height() -= 2 * nBorderWidth;
 
 Point aPos(nBorderWidth, nBorderWidth);
-VclContainer::setLayoutAllocation(rBox, aPos, aSize);
+VclContainer::setLayoutAllocation(rBox, aPos, CalcOutputSize(aSize));
 }
 
 IMPL_LINK_NOARG( SystemWindow, ImplHandleLayo

[Libreoffice-commits] translations.git: Changes to 'refs/tags/cp-5.1-9'

2016-10-10 Thread Christian Lohmaier
Tag 'cp-5.1-9' created by Andras Timar  at 
2016-10-10 21:08 +

cp-5.1-9

Changes since cp-5.1-3-1:
---
 0 files changed
---
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] dictionaries.git: Changes to 'refs/tags/cp-5.1-9'

2016-10-10 Thread Andras Timar
Tag 'cp-5.1-9' created by Andras Timar  at 
2016-10-10 21:08 +

cp-5.1-9

Changes since cp-5.1-3:
Andras Timar (1):
  Update pt_PT dictionary to version 16.7.4.1

---
 pt_PT/description.xml |2 -
 pt_PT/pt_PT.aff   |   25 +++--
 pt_PT/pt_PT.dic   |   93 +++---
 3 files changed, 74 insertions(+), 46 deletions(-)
---
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Need some advice on bug 67974

2016-10-10 Thread Eike Rathke
Hi Abhilash,

On Saturday, 2016-10-08 15:23:28 +0530, Abhilash Singh wrote:

> Bug Address: https://bugs.documentfoundation.org/show_bug.cgi?id=67974
> 
> I'm looking for ways to implement the search feature mentioned in the bug
> above. This comment describes the idea - https://bugs.
> documentfoundation.org/show_bug.cgi?id=67974#c11 .Any suggestions on
> starting points and if there is already a similar feature that could help
> me are welcome.

I suggested an approach in
https://bugs.documentfoundation.org/show_bug.cgi?id=67974#c12

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack


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


Re: concat of OUStringBuffer

2016-10-10 Thread Eike Rathke
Hi,

On Sunday, 2016-10-09 01:42:34 -0700, Laurent BP wrote:

> Something changed recently in master with OUStringBuffer concatenation
> 
> aLCIDString does not contain anymore "[$-some string]" but something like
> "[$-[$-[$-0]". Is it a new feature?

I'd rather say it's a bug when assigning the involved OUStringBuffer
(here aLCIDString) to itself again.. so for clarification:

https://gerrit.libreoffice.org/#/c/28666/5 had

aLCIDString = "[$-" + aLCIDString + "]";
aFormatStr.insert( nPosInsertLCID, aLCIDString.toString() );

which produced an erroneous "[$-[$-[$-0]"

and https://gerrit.libreoffice.org/#/c/28666/7 has

aLCIDString.insert( 0, "[$-" );
aLCIDString.append( "]" );
rFormatStr.insert( nPosInsertLCID, aLCIDString.toString() );

which produces the expected "[$-107041E]\-MM\-DD".

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack


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


[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - 30 commits - configure.ac connectivity/inc i18npool/inc i18npool/source include/svl include/unotools sc/inc sc/qa sc/source svl/sourc

2016-10-10 Thread Andras Timar
 configure.ac|2 
 connectivity/inc/pch/precompiled_dbase.hxx  |1 
 connectivity/inc/pch/precompiled_flat.hxx   |1 
 i18npool/inc/numberformatcode.hxx   |   15 -
 i18npool/source/numberformatcode/numberformatcode.cxx   |   77 
+++-
 include/svl/zforlist.hxx|4 
 include/unotools/numberformatcodewrapper.hxx|   61 
--
 sc/inc/document.hxx |7 
 sc/qa/unit/subsequent_filters-test.cxx  |2 
 sc/source/core/data/attarray.cxx|5 
 sc/source/core/data/bcaslot.cxx |   15 +
 sc/source/core/data/documen2.cxx|4 
 sc/source/core/data/documen7.cxx|   20 ++
 sc/source/core/data/document.cxx|   18 +-
 sc/source/core/inc/bcaslot.hxx  |2 
 sc/source/core/tool/compiler.cxx|   49 
+
 sc/source/filter/excel/xetable.cxx  |   19 +-
 sc/source/filter/excel/xltools.cxx  |5 
 sc/source/filter/inc/xetable.hxx|4 
 sc/source/filter/inc/xltools.hxx|1 
 sc/source/filter/oox/sheetdatabuffer.cxx|   59 
+++---
 sc/source/filter/oox/stylesbuffer.cxx   |   17 +
 sc/source/filter/oox/worksheethelper.cxx|3 
 svl/source/numbers/zforlist.cxx |   37 +---
 svl/source/numbers/zforscan.cxx |   14 -
 svl/source/numbers/zforscan.hxx |1 
 svtools/inc/pch/precompiled_svt.hxx |1 
 svx/inc/pch/precompiled_svx.hxx |1 
 sw/inc/IDocumentSettingAccess.hxx   |1 
 sw/inc/pch/precompiled_swui.hxx |1 
 sw/qa/extras/ooxmlexport/data/protectedform.docx|binary
 sw/qa/extras/ooxmlexport/data/tdf53856_conflictingStyle.docx|binary
 sw/qa/extras/ooxmlexport/data/tdf64372_continuousBreaks.docx|binary
 sw/qa/extras/ooxmlexport/data/tdf81345.docx |binary
 sw/qa/extras/ooxmlexport/data/tdf92724_continuousBreaksComplex.docx |binary
 sw/qa/extras/ooxmlexport/data/tdf99090_pgbrkAfterTable.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx|   19 ++
 sw/qa/extras/ooxmlexport/ooxmlexport4.cxx   |   29 +++
 sw/qa/extras/ooxmlimport/data/image-hyperlink.docx  |binary
 sw/qa/extras/ooxmlimport/data/tdf75573_page1frame.docx  |binary
 sw/qa/extras/ooxmlimport/ooxmlimport.cxx|   20 ++
 sw/source/core/doc/DocumentSettingManager.cxx   |6 
 sw/source/core/doc/docedt.cxx   |3 
 sw/source/core/inc/DocumentSettingManager.hxx   |1 
 sw/source/core/layout/flowfrm.cxx   |4 
 sw/source/core/tox/ToxTextGenerator.cxx |4 
 sw/source/filter/ww8/docxexport.cxx |6 
 sw/source/filter/ww8/wrtw8sty.cxx   |5 
 sw/source/uibase/uno/SwXDocumentSettings.cxx|   13 +
 unotools/Library_utl.mk |1 
 unotools/source/i18n/localedatawrapper.cxx  |   12 -
 unotools/source/i18n/numberformatcodewrapper.cxx|   90 
--
 writerfilter/source/dmapper/DomainMapper.cxx|   24 +-
 writerfilter/source/dmapper/DomainMapper_Impl.cxx   |   18 +-
 writerfilter/source/dmapper/DomainMapper_Impl.hxx   |3 
 writerfilter/source/dmapper/GraphicImport.cxx   |   14 +
 writerfilter/source/dmapper/PropertyMap.cxx |   26 ++
 writerfilter/source/dmapper/SettingsTable.cxx   |   13 +
 writerfilter/source/dmapper/SettingsTable.hxx   |1 
 writerfilter/source/dmapper/StyleSheetTable.cxx |6 
 writerfilter/source/filter/WriterFilter.cxx |1 
 writerfilter/source/ooxml/Handler.cxx   |   31 +++
 writerfilter/source/ooxml/Handler.hxx   |   13 +
 writerfilter/source/ooxml/OOXMLFastContextHandler.cxx   |   

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

2016-10-10 Thread Henry Castro
 loleaflet/src/core/Socket.js |7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 3d87e724b999020851a5470b4267d450dbc03153
Author: Henry Castro 
Date:   Mon Oct 10 16:03:30 2016 -0400

loleaflet: do not show internal errors

Internal error message, it was intended for debugging purposes,
so it is not necessary to show them to final users

Conflicts:
loleaflet/src/core/Socket.js

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 1b2d03f..688b9ca 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -308,12 +308,7 @@ L.Socket = L.Class.extend({
this._map.hideBusy();
this._map._active = false;
 
-   if (e.code && e.reason) {
-   this._map.fire('error', {msg: e.reason});
-   }
-   else {
-   this._map.fire('error', {msg: _('Well, this is 
embarrassing, we cannot connect to your document. Please try again.'), cmd: 
'socket', kind: 'closed', id: 4});
-   }
+   this._map.fire('error', {msg: _('Well, this is embarrassing, we 
cannot connect to your document. Please try again.'), cmd: 'socket', kind: 
'closed', id: 4});
},
 
parseServerCmd: function (msg) {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Jookia
 lingucomponent/source/lingutil/lingutil.cxx |  159 ++--
 1 file changed, 105 insertions(+), 54 deletions(-)

New commits:
commit 8e8afc358b7537d493b478b429e1711c6ab46bdc
Author: Jookia <166...@gmail.com>
Date:   Sat Oct 8 19:04:38 2016 +1100

Search for old style dictionaries in DICPATH

When searching in system directories for old style dictionaries, also
look in the DICPATH environment variable much like the Hunspell
application does. This gives a lot more flexibility for users and
packagers in finding dictionaries at runtime.

The patch is simple, it just moves a block of code from
GetOldStyleDics that handles searching a directory to a new function,
GetOldStyleDicsInDir. Then if DICPATH is set, its directories are
passed to the new function. Original system directories are also
passed so dictionaries in system-wide directories are found.

Change-Id: I56ac66539495f03f41376b533ca19c6c8d615ec3
Reviewed-on: https://gerrit.libreoffice.org/29543
Tested-by: Jenkins 
Reviewed-by: jan iversen 

diff --git a/lingucomponent/source/lingutil/lingutil.cxx 
b/lingucomponent/source/lingutil/lingutil.cxx
index 707f0a9..fd7151f 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -23,8 +23,10 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -53,64 +55,17 @@ OString Win_AddLongPathPrefix( const OString &rPathName )
 }
 #endif //defined(WNT)
 
-// build list of old style dictionaries (not as extensions) to use.
-// User installed dictionaries (the ones residing in the user paths)
-// will get precedence over system installed ones for the same language.
-std::vector< SvtLinguConfigDictionaryEntry > GetOldStyleDics( const char 
*pDicType )
-{
-std::vector< SvtLinguConfigDictionaryEntry > aRes;
-
-if (!pDicType)
-return aRes;
-
-OUString aFormatName;
-OUString aDicExtension;
-#ifdef SYSTEM_DICTS
-OUString aSystemDir;
-OUString aSystemPrefix;
-OUString aSystemSuffix;
-#endif
-if (strcmp( pDicType, "DICT" ) == 0)
-{
-aFormatName = "DICT_SPELL";
-aDicExtension   = ".dic";
-#ifdef SYSTEM_DICTS
-aSystemDir  = DICT_SYSTEM_DIR;
-aSystemSuffix   = aDicExtension;
-#endif
-}
-else if (strcmp( pDicType, "HYPH" ) == 0)
-{
-aFormatName = "DICT_HYPH";
-aDicExtension   = ".dic";
-#ifdef SYSTEM_DICTS
-aSystemDir  = HYPH_SYSTEM_DIR;
-aSystemPrefix   = "hyph_";
-aSystemSuffix   = aDicExtension;
-#endif
-}
-else if (strcmp( pDicType, "THES" ) == 0)
-{
-aFormatName = "DICT_THES";
-aDicExtension   = ".dat";
-#ifdef SYSTEM_DICTS
-aSystemDir  = THES_SYSTEM_DIR;
-aSystemPrefix   = "th_";
-aSystemSuffix   = "_v2.dat";
-#endif
-}
-
-if (aFormatName.isEmpty() || aDicExtension.isEmpty())
-return aRes;
-
 #ifdef SYSTEM_DICTS
+// find old style dictionaries in system directories
+void GetOldStyleDicsInDir(
+OUString& aSystemDir, OUString& aFormatName,
+OUString& aSystemSuffix, OUString& aSystemPrefix,
+std::set< OUString >& aDicLangInUse,
+std::vector< SvtLinguConfigDictionaryEntry >& aRes )
+{
 osl::Directory aSystemDicts(aSystemDir);
 if (aSystemDicts.open() == osl::FileBase::E_None)
 {
-// set of languages to remember the language where it is already
-// decided to make use of the dictionary.
-std::set< OUString > aDicLangInUse;
-
 osl::DirectoryItem aItem;
 osl::FileStatus aFileStatus(osl_FileStatus_Mask_FileURL);
 while (aSystemDicts.getNextItem(aItem) == osl::FileBase::E_None)
@@ -170,6 +125,102 @@ std::vector< SvtLinguConfigDictionaryEntry > 
GetOldStyleDics( const char *pDicTy
 }
 }
 }
+}
+#endif
+
+// build list of old style dictionaries (not as extensions) to use.
+// User installed dictionaries (the ones residing in the user paths)
+// will get precedence over system installed ones for the same language.
+std::vector< SvtLinguConfigDictionaryEntry > GetOldStyleDics( const char 
*pDicType )
+{
+std::vector< SvtLinguConfigDictionaryEntry > aRes;
+
+if (!pDicType)
+return aRes;
+
+OUString aFormatName;
+OUString aDicExtension;
+#ifdef SYSTEM_DICTS
+OUString aSystemDir;
+OUString aSystemPrefix;
+OUString aSystemSuffix;
+#endif
+if (strcmp( pDicType, "DICT" ) == 0)
+{
+aFormatName = "DICT_SPELL";
+aDicExtension   = ".dic";
+#ifdef SYSTEM_DICTS
+aSystemDir  = DICT_SYSTEM_DIR;
+aSystemSuffix   = aDicExtension;
+#endif
+}
+else if (strcmp( pDicType, "HYPH" ) == 0)
+{
+aFormatName = "DICT_HYPH";
+aDicExtension   = ".dic";
+#ifdef SYSTEM_DICTS
+aSystemDir  = HYPH_SYSTEM_DIR;
+aSystemPrefix   = "hyph_";

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

2016-10-10 Thread Henry Castro
 loleaflet/src/core/Socket.js |7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 03f912115a93e94840c8cedb23ab7d5698c1257a
Author: Henry Castro 
Date:   Mon Oct 10 16:03:30 2016 -0400

loleaflet: do not show internal errors

Internal error message, it was intended for debugging purposes,
so it is not necessary to show them to final users

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index c4bb43f..d26277d 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -336,12 +336,7 @@ L.Socket = L.Class.extend({
this._map._docLayer.removeAllViews();
}
 
-   if (e.code && e.reason) {
-   this._map.fire('error', {msg: e.reason});
-   }
-   else {
-   this._map.fire('error', {msg: _('Well, this is 
embarrassing, we cannot connect to your document. Please try again.'), cmd: 
'socket', kind: 'closed', id: 4});
-   }
+   this._map.fire('error', {msg: _('Well, this is embarrassing, we 
cannot connect to your document. Please try again.'), cmd: 'socket', kind: 
'closed', id: 4});
},
 
parseServerCmd: function (msg) {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Caolán McNamara
 sc/qa/unit/subsequent_filters-test.cxx |8 
 1 file changed, 8 deletions(-)

New commits:
commit e0d442b1995082fd28614d51b85cb4248ba8189d
Author: Caolán McNamara 
Date:   Mon Oct 10 12:52:02 2016 +0100

try enabling password tests on mac and windows

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

diff --git a/sc/qa/unit/subsequent_filters-test.cxx 
b/sc/qa/unit/subsequent_filters-test.cxx
index 35da74f..8088e71 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -179,11 +179,9 @@ public:
 void testErrorOnExternalReferences();
 
 //misc tests unrelated to the import filters
-#if !defined(MACOSX) && !defined(DRAGONFLY) && !defined(_WIN32)
 void testPasswordNew();
 void testPasswordOld();
 void testPasswordWrongSHA();
-#endif
 
 //test shape import
 void testControlImport();
@@ -320,11 +318,9 @@ public:
 
 //disable testPassword on MacOSX due to problems with libsqlite3
 //also crashes on DragonFly due to problems with nss/nspr headers
-#if !defined(MACOSX) && !defined(DRAGONFLY) && !defined(_WIN32)
 CPPUNIT_TEST(testPasswordWrongSHA);
 CPPUNIT_TEST(testPasswordOld);
 CPPUNIT_TEST(testPasswordNew);
-#endif
 
 CPPUNIT_TEST(testMiscRowHeights);
 CPPUNIT_TEST(testOptimalHeightReset);
@@ -359,9 +355,7 @@ public:
 CPPUNIT_TEST_SUITE_END();
 
 private:
-#if !defined(MACOSX) && !defined(DRAGONFLY) && !defined(_WIN32)
 void testPassword_Impl(const OUString& rFileNameBase);
-#endif
 
 uno::Reference m_xCalcComponent;
 };
@@ -1554,7 +1548,6 @@ void ScFiltersTest::testRowIndex1BasedXLSX()
 xDocSh->DoClose();
 }
 
-#if !defined(MACOSX) && !defined(DRAGONFLY) && !defined(_WIN32)
 void ScFiltersTest::testPassword_Impl(const OUString& aFileNameBase)
 {
 OUString aFileExtension(getFileFormats()[0].pName, 
strlen(getFileFormats()[0].pName), RTL_TEXTENCODING_UTF8 );
@@ -1608,7 +1601,6 @@ void ScFiltersTest::testPasswordWrongSHA()
 const OUString aFileNameBase("passwordWrongSHA.");
 testPassword_Impl(aFileNameBase);
 }
-#endif
 
 void ScFiltersTest::testControlImport()
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re:

2016-10-10 Thread Ashod Nakashian
Hi Pierre,

On Sat, Oct 8, 2016 at 11:38 AM, Pierre Lepage 
wrote:

> OK. I understood. Changes are in the include directory. And there, there
> is no Makefile for just recompile this directory. So, I must recompile the
> whole thing. Not just the basic directory.
>
>
You need to invoke make from the root of the source (normally). But you can
compile specific libraries if you want. You can use 'make '.

But I strongly suggest just running make in the source directory, followed
by 'make check', before trying anything more advanced. You should get clean
results before you move on.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Introducing myself

2016-10-10 Thread Tommy

Nagar Akshay wrote:

Hello everyone this is Akshay Nagar. I am currently pursuing Computer
Science and Engineering 3rd year at NIT Jaipur, India. I want to intern
at GSOC with libre office the coming year.


welcome on board!!!


I would like to get a tip about getting started and the prerequisites
needed to start contributing.

Looking forward to your cooperation,
With regards,
Akshay.



 best thing would be to start with an "easy hack".
you can find more infos here:
https://wiki.documentfoundation.org/Development/EasyHacks#Progress

bye, Tommy


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


Re: Error while executing 'make' command in ubuntu.

2016-10-10 Thread Abdul Wadood
On Mon, Oct 10, 2016 at 1:15 AM, Ashod Nakashian 
wrote:

> Hi,
>
> On Sun, Oct 9, 2016 at 11:23 AM, Abdul Wadood  wrote:
>
>> [image: Inline image 1]
>>
>> I've cloned the LibreOffice repository on my system but when I use the
>> 'make' command I get the above errors.
>>
>
> Can you share your autogen.sh arguments?
>
I didn't pass any arguments while executing autogen.sh.

>
>
>> I've tried to search and fix the issue but I'm not able to.
>>
>
> Is the source directory on a removable drive by any chance? Best to avoid
> that.
>
Yes, the source directory was on a removable drive and correcting that
fixed the issue.
Thanks for your help.

>
>
>>
>> Thanking in anticipation of a favourable response.
>>
>> ___
>> LibreOffice mailing list
>> LibreOffice@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/libreoffice
>>
>>
>
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Introducing myself

2016-10-10 Thread Nagar Akshay
Hello everyone this is Akshay Nagar. I am currently pursuing Computer
Science and Engineering 3rd year at NIT Jaipur, India. I want to intern at
GSOC with libre office the coming year.
I would like to get a tip about getting started and the prerequisites
needed to start contributing.

Looking forward to your cooperation,
With regards,
Akshay.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Dilek Uzulmez license statement

2016-10-10 Thread Dilek Uzulmez
*All of my past & 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


Abdul Wadood license statement

2016-10-10 Thread Abdul Wadood
All of my past & 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


Huzaifa Iftikhar license statement

2016-10-10 Thread Huzaifa Iftikhar
All of my past & 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: basctl/uiconfig chart2/uiconfig dbaccess/uiconfig extensions/uiconfig framework/uiconfig include/sfx2 include/svtools officecfg/registry reportdesign/uiconfig sc/uiconf

2016-10-10 Thread Samuel Mehrbrodt
 basctl/uiconfig/basicide/menubar/menubar.xml |2 
 chart2/uiconfig/menubar/menubar.xml  |2 
 dbaccess/uiconfig/dbapp/menubar/menubar.xml  |2 
 dbaccess/uiconfig/dbquery/menubar/menubar.xml|2 
 dbaccess/uiconfig/dbrelation/menubar/menubar.xml |2 
 dbaccess/uiconfig/dbtable/menubar/menubar.xml|2 
 dbaccess/uiconfig/dbtdata/menubar/menubar.xml|2 
 extensions/uiconfig/sbibliography/menubar/menubar.xml|2 
 framework/uiconfig/startmodule/menubar/menubar.xml   |2 
 include/sfx2/sfxsids.hrc |1 
 include/svtools/restartdialog.hxx|3 
 officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu |5 
 reportdesign/uiconfig/dbreport/menubar/menubar.xml   |2 
 sc/uiconfig/scalc/menubar/menubar.xml|2 
 sd/uiconfig/sdraw/menubar/menubar.xml|2 
 sd/uiconfig/simpress/menubar/menubar.xml |2 
 sfx2/UIConfig_sfx.mk |1 
 sfx2/sdi/appslots.sdi|5 
 sfx2/sdi/sfx.sdi |   17 ++
 sfx2/source/appl/appserv.cxx |   34 

 sfx2/uiconfig/ui/safemodequerydialog.ui  |   84 
++
 starmath/uiconfig/smath/menubar/menubar.xml  |2 
 sw/uiconfig/sglobal/menubar/menubar.xml  |2 
 sw/uiconfig/sweb/menubar/menubar.xml |2 
 sw/uiconfig/swform/menubar/menubar.xml   |2 
 sw/uiconfig/swreport/menubar/menubar.xml |2 
 sw/uiconfig/swriter/menubar/menubar.xml  |4 
 sw/uiconfig/swxform/menubar/menubar.xml  |2 
 28 files changed, 191 insertions(+), 1 deletion(-)

New commits:
commit ae94c223e2e21e42fc7feca72402b910e5eab5c7
Author: Samuel Mehrbrodt 
Date:   Mon Oct 10 15:04:53 2016 +0200

safemode: Add uno command and menu entry

Change-Id: I1843767160b79041c42e506eff0cf39399c74f26
Reviewed-on: https://gerrit.libreoffice.org/29668
Reviewed-by: Samuel Mehrbrodt 
Tested-by: Samuel Mehrbrodt 

diff --git a/basctl/uiconfig/basicide/menubar/menubar.xml 
b/basctl/uiconfig/basicide/menubar/menubar.xml
index 66bcfa5..62c7ded 100644
--- a/basctl/uiconfig/basicide/menubar/menubar.xml
+++ b/basctl/uiconfig/basicide/menubar/menubar.xml
@@ -100,6 +100,8 @@
 
 
 
+
+
 
 
 
diff --git a/chart2/uiconfig/menubar/menubar.xml 
b/chart2/uiconfig/menubar/menubar.xml
index 98c5aab..ddf7af1 100644
--- a/chart2/uiconfig/menubar/menubar.xml
+++ b/chart2/uiconfig/menubar/menubar.xml
@@ -171,6 +171,8 @@
 
 
 
+
+
 
 
 
diff --git a/dbaccess/uiconfig/dbapp/menubar/menubar.xml 
b/dbaccess/uiconfig/dbapp/menubar/menubar.xml
index 13da527..97cad1c 100644
--- a/dbaccess/uiconfig/dbapp/menubar/menubar.xml
+++ b/dbaccess/uiconfig/dbapp/menubar/menubar.xml
@@ -156,6 +156,8 @@
 
 
 
+
+
 
 
 
diff --git a/dbaccess/uiconfig/dbquery/menubar/menubar.xml 
b/dbaccess/uiconfig/dbquery/menubar/menubar.xml
index 7ee3833..14d1acf 100644
--- a/dbaccess/uiconfig/dbquery/menubar/menubar.xml
+++ b/dbaccess/uiconfig/dbquery/menubar/menubar.xml
@@ -97,6 +97,8 @@
 
 
 
+
+
 
 
 
diff --git a/dbaccess/uiconfig/dbrelation/menubar/menubar.xml 
b/dbaccess/uiconfig/dbrelation/menubar/menubar.xml
index fc6aaa7..3df7607 100644
--- a/dbaccess/uiconfig/dbrelation/menubar/menubar.xml
+++ b/dbaccess/uiconfig/dbrelation/menubar/menubar.xml
@@ -80,6 +80,8 @@
 
 
 
+
+
 
 
 
diff --git a/dbaccess/uiconfig/dbtable/menubar/menubar.xml 
b/dbaccess/uiconfig/dbtable/menubar/menubar.xml
index 077f455..fa4aefc 100644
--- a/dbaccess/uiconfig/dbtable/menubar/menubar.xml
+++ b/dbaccess/uiconfig/dbtable/menubar/menubar.xml
@@ -81,6 +81,8 @@
 
 
 
+
+
 
 
 
diff --git a/dbaccess/uiconfig/dbtdata/menubar/menubar.xml 
b/dbaccess/uiconfig/dbtdata/menubar/menubar.xml
index 805e968..9624cc5 100644
--- a/dbaccess/uiconfig/dbtdata/menubar/menubar.xml
+++ b/dbaccess/uiconfig

Mirco Rondini license statement

2016-10-10 Thread Mirco Rondini
All of my past & future contributions to LibreOffice may be licensed under the 
MPLv2/LGPLv3+ dual license.
Inviato da Yahoo Mail su Android___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: bin/check-elf-dynamic-objects

2016-10-10 Thread Michael Stahl
 bin/check-elf-dynamic-objects |   96 +++---
 1 file changed, 53 insertions(+), 43 deletions(-)

New commits:
commit 7433ba52d3a28ba946e522aa5d579679573569a2
Author: Michael Stahl 
Date:   Mon Oct 10 17:08:05 2016 +0200

check-elf-dynamic-objects: file is far too slow

... so use readelf itself to check if it's an ELF file.

Also just skip the SDK documentation which is 2/3 of all files.

Change-Id: Icfd3023dd5b2ccc4f4e94fbb05cdd4eb05051f86

diff --git a/bin/check-elf-dynamic-objects b/bin/check-elf-dynamic-objects
index 90e9bf4..b34af3e 100755
--- a/bin/check-elf-dynamic-objects
+++ b/bin/check-elf-dynamic-objects
@@ -33,49 +33,59 @@ status=0
 
 for file in ${files}
 do
-if file "${file}" | grep -q 'ELF.*dynamically linked' ; then
-whitelist="${globalwhitelist}"
-case "${file}" in
-*/libcairocanvaslo.so)
-whitelist="${whitelist} libcairo.so.2"
-;;
-*/libucpgio1lo.so|*/liblosessioninstalllo.so|*/libevoablo.so)
-whitelist="${whitelist} ${giowhitelist}"
-;;
-*/libavmediagst.so)
-whitelist="${whitelist} ${gtk3whitelist} ${gstreamerwhitelist}"
-;;
-*/libvclplug_kde4lo.so|*/libkde4be1lo.so)
-whitelist="${whitelist} ${x11whitelist} ${kde4whitelist}"
-;;
-*/libvclplug_gtklo.so|*/libqstart_gtklo.so|*/updater)
-whitelist="${whitelist} ${x11whitelist} ${gtk2whitelist}"
-;;
-*/libvclplug_gtk3lo.so)
-whitelist="${whitelist} ${x11whitelist} ${gtk3whitelist}"
-;;
-*/libdesktop_detectorlo.so|*/ui-previewer|*/oosplash|*/gengal.bin)
-whitelist="${whitelist} ${x11whitelist}"
-;;
-
*/libvclplug_genlo.so|*/libGLEW.so.*|*/libchartcorelo.so|*/libavmediaogl.so|*/libOGLTranslo.so|*/liboglcanvaslo.so|*/libchartopengllo.so)
-whitelist="${whitelist} ${x11whitelist} ${openglwhitelist}"
-;;
-*/libvcllo.so|*/libsofficeapp.so)
-whitelist="${whitelist} ${x11whitelist} ${openglwhitelist} 
${giowhitelist} libcups.so.2"
-;;
-*/liblibreofficekitgtk.so)
-whitelist="${whitelist} ${gtk3whitelist}"
-;;
-*/libsdlo.so)
-whitelist="${whitelist} ${avahiwhitelist}"
-;;
-*/libofficebean.so)
-whitelist="${whitelist} libjawt.so"
-;;
-*/libpostgresql-sdbc-impllo.so)
-whitelist="${whitelist} ${kerberoswhitelist}"
-;;
-esac
+skip=0
+whitelist="${globalwhitelist}"
+case "${file}" in
+*/sdk/docs/*)
+# skip the majority of files, no ELF binaries here
+skip=1
+;;
+*/libsalcpprt.a)
+# strangely readelf -d "succeeds" on a static library so
+# have to filter it manually
+skip=1
+;;
+*/libcairocanvaslo.so)
+whitelist="${whitelist} libcairo.so.2"
+;;
+*/libucpgio1lo.so|*/liblosessioninstalllo.so|*/libevoablo.so)
+whitelist="${whitelist} ${giowhitelist}"
+;;
+*/libavmediagst.so)
+whitelist="${whitelist} ${gtk3whitelist} ${gstreamerwhitelist}"
+;;
+*/libvclplug_kde4lo.so|*/libkde4be1lo.so)
+whitelist="${whitelist} ${x11whitelist} ${kde4whitelist}"
+;;
+*/libvclplug_gtklo.so|*/libqstart_gtklo.so|*/updater)
+whitelist="${whitelist} ${x11whitelist} ${gtk2whitelist}"
+;;
+*/libvclplug_gtk3lo.so)
+whitelist="${whitelist} ${x11whitelist} ${gtk3whitelist}"
+;;
+*/libdesktop_detectorlo.so|*/ui-previewer|*/oosplash|*/gengal.bin)
+whitelist="${whitelist} ${x11whitelist}"
+;;
+
*/libvclplug_genlo.so|*/libGLEW.so.*|*/libchartcorelo.so|*/libavmediaogl.so|*/libOGLTranslo.so|*/liboglcanvaslo.so|*/libchartopengllo.so)
+whitelist="${whitelist} ${x11whitelist} ${openglwhitelist}"
+;;
+*/libvcllo.so|*/libsofficeapp.so)
+whitelist="${whitelist} ${x11whitelist} ${openglwhitelist} 
${giowhitelist} libcups.so.2"
+;;
+*/liblibreofficekitgtk.so)
+whitelist="${whitelist} ${gtk3whitelist}"
+;;
+*/libsdlo.so)
+whitelist="${whitelist} ${avahiwhitelist}"
+;;
+*/libofficebean.so)
+whitelist="${whitelist} libjawt.so"
+;;
+*/libpostgresql-sdbc-impllo.so)
+whitelist="${whitelist} ${kerberoswhitelist}"
+;;
+esac
+if test "${skip}" = 0 && readelf -d "${file}" &> /dev/null ; then
 rpath=$(readelf -d "${file}" | grep '(RPATH)' || true)
 neededs=$(readelf -d "${file}" | grep '(NEEDED)' | sed -e 
's/.*\[\(.*\)\]$/\1/')

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

2016-10-10 Thread Caolán McNamara
 sd/source/ui/dlg/navigatr.cxx |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 6ee2f1b681ef3097c87db7c478ffc3fb24ec55c6
Author: Caolán McNamara 
Date:   Mon Oct 10 16:35:16 2016 +0100

these navigator menu items should be radio checks

Change-Id: Id8fe9cecb5d49728ab8b3b86589204a1ca4a8ecb

diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index be2887b..7aaf951 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -304,16 +304,14 @@ IMPL_LINK( SdNavigatorWin, DropdownClickToolBoxHdl, 
ToolBox*, pBox, void )
  nullptr
 };
 
-for( sal_uInt16 nID = NAVIGATOR_DRAGTYPE_URL;
- nID < NAVIGATOR_DRAGTYPE_COUNT;
- nID++ )
+for (sal_uInt16 nID = NAVIGATOR_DRAGTYPE_URL; nID < 
NAVIGATOR_DRAGTYPE_COUNT; ++nID)
 {
 sal_uInt16 nRId = GetDragTypeSdResId( (NavigatorDragType)nID, 
false );
 if( nRId > 0 )
 {
 DBG_ASSERT(aHIDs[nID-NAVIGATOR_DRAGTYPE_URL],"HelpId not 
added!");
-pMenu->InsertItem( nID, SD_RESSTR( nRId ) );
-pMenu->SetHelpId( nID, aHIDs[nID - NAVIGATOR_DRAGTYPE_URL] 
);
+pMenu->InsertItem(nID, SD_RESSTR(nRId), 
MenuItemBits::RADIOCHECK);
+pMenu->SetHelpId(nID, aHIDs[nID - NAVIGATOR_DRAGTYPE_URL]);
 }
 
 }
@@ -340,10 +338,12 @@ IMPL_LINK( SdNavigatorWin, DropdownClickToolBoxHdl, 
ToolBox*, pBox, void )
 
 pMenu->InsertItem(
 nShowNamedShapesFilter,
-SD_RESSTR(STR_NAVIGATOR_SHOW_NAMED_SHAPES));
+SD_RESSTR(STR_NAVIGATOR_SHOW_NAMED_SHAPES),
+MenuItemBits::RADIOCHECK);
 pMenu->InsertItem(
 nShowAllShapesFilter,
-SD_RESSTR(STR_NAVIGATOR_SHOW_ALL_SHAPES));
+SD_RESSTR(STR_NAVIGATOR_SHOW_ALL_SHAPES),
+MenuItemBits::RADIOCHECK);
 
 if (maTlbObjects->GetShowAllShapes())
 pMenu->CheckItem(nShowAllShapesFilter);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: loolwsd/protocol.txt

2016-10-10 Thread Tor Lillqvist
 loolwsd/protocol.txt |   23 ---
 1 file changed, 8 insertions(+), 15 deletions(-)

New commits:
commit d5bbe8b52c27744a3e6e06c84e9e8a0cd2615b51
Author: Tor Lillqvist 
Date:   Mon Oct 10 18:16:13 2016 +0300

There doesn't seem to be any 'invalidate:' message any longer

There is only 'invalidatetiles:'. Try to document that properly then
instead.

diff --git a/loolwsd/protocol.txt b/loolwsd/protocol.txt
index d617354..ba91ae0 100644
--- a/loolwsd/protocol.txt
+++ b/loolwsd/protocol.txt
@@ -224,20 +224,13 @@ getchildid: id=
 
 Returns the child id
 
-invalidate: part= x= y= width= height=
+invalidatetiles: part= x= y= width= height=
 
 All parameters are numbers. Tells the client to invalidate any
 cached tiles for the document area specified (in twips), at any
 zoom level.
 
-The client should handle either this message or the
-invalidatetiles: message, which has a different syntax, with
-payload directly from the LOK_CALLBACK_INVALIDATE_TILES
-callback. (The latter does not contain a part number, and as the
-protocol is asynchronous, it is unclear whether a client can be
-sure, or find out with certainty, for what part the
-invalidatetiles: message is. The invalidatetiles: message will be
-dropped soon.)
+invalidatetiles: EMPTY
 
 nextmessage: size=
 
@@ -282,17 +275,17 @@ tile: part= width= height= 
tileposx= tileposy=<
 render a tile, or the string 'cached' if the tile was found in the
 cache.
 
-Each LOK_CALLBACK_FOO_BAR callback causes a corresponding message to
-the client, consisting of the FOO_BAR part in lowercase, without
-underscore, followed by a colon, space and the callback payload. For
-instance:
+Each LOK_CALLBACK_FOO_BAR callback except
+LOK_CALLBACK_INVALIDATE_TILES causes a corresponding message to the
+client, consisting of the FOO_BAR part in lowercase, without
+underscore, followed by a colon, space and the callback
+payload. (LOK_CALLBACK_INVALIDATE_TILES causes an invalidatetiles:
+message as documented above.) For instance:
 
 invalidatecursor: 
 
 The payload contains a rectangle describing the cursor position.
 
-invalidatetiles: 
-
 The communication between the parent process (the one keeping open the
 Websocket connections to the clients) and a child process (handling
 one document through LibreOfficeKit) uses the same protocol, with
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Caolán McNamara
 sw/source/uibase/utlui/navipi.cxx |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 95a88a478ea7fcc848bc1a579d7ed8dd5c9a7521
Author: Caolán McNamara 
Date:   Mon Oct 10 16:10:24 2016 +0100

these navigator menu items should be radio checks

Change-Id: Ib785ce929ea33250b275969187d63c528fbafe6f

diff --git a/sw/source/uibase/utlui/navipi.cxx 
b/sw/source/uibase/utlui/navipi.cxx
index dd7d770..fa586e6 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -381,9 +381,9 @@ IMPL_LINK( SwNavigationPI, ToolBoxDropdownClickHdl, 
ToolBox*, pBox, void )
 HID_NAVI_DRAG_COPY,
 };
 ScopedVclPtrInstance pMenu;
-for (sal_uInt16 i = 0; i <= 
static_cast(RegionMode::EMBEDDED); i++)
+for (sal_uInt16 i = 0; i <= 
static_cast(RegionMode::EMBEDDED); ++i)
 {
-pMenu->InsertItem( i + 1, m_aContextArr[i] );
+pMenu->InsertItem(i + 1, m_aContextArr[i], 
MenuItemBits::RADIOCHECK);
 pMenu->SetHelpId(i + 1, aHIDs[i]);
 }
 pMenu->CheckItem( static_cast(m_nRegionMode) + 1 );
@@ -401,10 +401,10 @@ IMPL_LINK( SwNavigationPI, ToolBoxDropdownClickHdl, 
ToolBox*, pBox, void )
 case FN_OUTLINE_LEVEL:
 {
 ScopedVclPtrInstance pMenu;
-for (sal_uInt16 i = 101; i <= 100 + MAXLEVEL; i++)
+for (sal_uInt16 i = 101; i <= 100 + MAXLEVEL; ++i)
 {
-pMenu->InsertItem( i, OUString::number(i - 100) );
-pMenu->SetHelpId( i, HID_NAVI_OUTLINES );
+pMenu->InsertItem(i, OUString::number(i - 100), 
MenuItemBits::RADIOCHECK);
+pMenu->SetHelpId(i, HID_NAVI_OUTLINES);
 }
 pMenu->CheckItem( m_aContentTree->GetOutlineLevel() + 100 );
 pMenu->SetSelectHdl(LINK(this, SwNavigationPI, MenuSelectHdl));
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Michael Stahl
 configure.ac |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 69dcc7adae5c531b4da8c099bd1e2f99b851ebcd
Author: Michael Stahl 
Date:   Mon Oct 10 16:49:14 2016 +0200

configure: avoid linking against libgcrypt for libexslt

There are at least 2 different versions libgcrypt.so.20 and
libgcrypt.so.11 in use, and it's a private dependency of libexslt
anyway, so filter this out of LIBEXSLTLIBS.

Change-Id: Iafc33ef5ead2a86bedb4d5e485f6a16eb0544686

diff --git a/configure.ac b/configure.ac
index d248c93..02b00df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8038,7 +8038,7 @@ if test "$with_system_libxml" = "yes"; then
 PKG_CHECK_MODULES(LIBEXSLT, libexslt)
 LIBEXSLT_CFLAGS=$(printf '%s' "$LIBEXSLT_CFLAGS" | sed -e 
"s/-I/${ISYSTEM?}/g")
 FilterLibs "${LIBEXSLT_LIBS}"
-LIBEXSLT_LIBS="${filteredlibs}"
+LIBEXSLT_LIBS=$(printf '%s' "${filteredlibs}" | sed -e 
"s/-lgpg-error//"  -e "s/-lgcrypt//")
 fi
 
 dnl Check for xsltproc
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Caolán McNamara
 sw/Library_sw.mk  |1 
 sw/source/uibase/cctrl/popbox.cxx |   43 --
 sw/source/uibase/inc/navipi.hxx   |6 ++---
 sw/source/uibase/inc/popbox.hxx   |   41 
 sw/source/uibase/utlui/navipi.cxx |   10 
 5 files changed, 8 insertions(+), 93 deletions(-)

New commits:
commit 6fd363af3432d054eb92a2bac4893f5baf1d50ef
Author: Caolán McNamara 
Date:   Mon Oct 10 15:50:34 2016 +0100

SwHelpToolBox doesn't do anything now

Change-Id: I5b8865218d3cd8492d148af8d69389c256bbb27f

diff --git a/sw/Library_sw.mk b/sw/Library_sw.mk
index fa18519..403e29b 100644
--- a/sw/Library_sw.mk
+++ b/sw/Library_sw.mk
@@ -572,7 +572,6 @@ $(eval $(call gb_Library_add_exception_objects,sw,\
 sw/source/uibase/app/swmodule \
 sw/source/uibase/app/swwait \
 sw/source/uibase/cctrl/actctrl \
-sw/source/uibase/cctrl/popbox \
 sw/source/uibase/cctrl/swlbox \
 sw/source/uibase/chrdlg/ccoll \
 sw/source/uibase/config/StoredChapterNumbering \
diff --git a/sw/source/uibase/cctrl/popbox.cxx 
b/sw/source/uibase/cctrl/popbox.cxx
deleted file mode 100644
index 7853e94..000
--- a/sw/source/uibase/cctrl/popbox.cxx
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include 
-#include 
-#include 
-#include 
-
-SwHelpToolBox::SwHelpToolBox( SwNavigationPI* pParent, const ResId& rResId )
-: ToolBox( pParent, rResId )
-{
-}
-
-SwHelpToolBox::~SwHelpToolBox() {}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx
index 7e50ebf..6c93a1b 100644
--- a/sw/source/uibase/inc/navipi.hxx
+++ b/sw/source/uibase/inc/navipi.hxx
@@ -20,6 +20,7 @@
 #define INCLUDED_SW_SOURCE_UIBASE_INC_NAVIPI_HXX
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -27,7 +28,6 @@
 #include 
 #include 
 #include 
-#include 
 
 class SwWrtShell;
 class SwNavigationPI;
@@ -42,7 +42,7 @@ class SwNavigationPI;
 enum class RegionMode;
 class SpinField;
 
-class SwNavHelpToolBox : public SwHelpToolBox
+class SwNavHelpToolBox : public ToolBox
 {
 virtual voidMouseButtonDown(const MouseEvent &rEvt) override;
 virtual voidRequestHelp( const HelpEvent& rHEvt ) override;
@@ -58,7 +58,7 @@ class SwNavigationPI : public vcl::Window,
 friend class SwGlobalTree;
 
 VclPtrm_aContentToolBox;
-VclPtr   m_aGlobalToolBox;
+VclPtr m_aGlobalToolBox;
 ImageList   m_aContentImageList;
 VclPtr   m_aContentTree;
 VclPtrm_aGlobalTree;
diff --git a/sw/source/uibase/inc/popbox.hxx b/sw/source/uibase/inc/popbox.hxx
deleted file mode 100644
index 3e9dbf9..000
--- a/sw/source/uibase/inc/popbox.hxx
+++ /dev/null
@@ -1,37 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_POPBOX_HXX
-#define INCLUDED_SW_SOURCE_UIBASE_INC_POPBOX_HXX
-
-#include 
-#include 
-
-class SwNavigationPI;
-
-class SwHelpToolBox: public ToolBox
-{
-public:
-SwHelpToolBox(SwNavigationPI* pParent, const ResId &);
-virtual ~SwHelpToolBox() override;
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source

[Libreoffice-commits] core.git: bin/check-elf-dynamic-objects

2016-10-10 Thread Michael Stahl
 bin/check-elf-dynamic-objects |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4b4d5a85859dda8bdc444033cda87e317fcaf269
Author: Michael Stahl 
Date:   Mon Oct 10 16:25:39 2016 +0200

check-elf-dynamic-objects: add libxml/libxslt to global whitelist

Change-Id: Ida6495171f900edf4abe5f6ceba3a6dc2de7c2de

diff --git a/bin/check-elf-dynamic-objects b/bin/check-elf-dynamic-objects
index e6bc0c3..90e9bf4 100755
--- a/bin/check-elf-dynamic-objects
+++ b/bin/check-elf-dynamic-objects
@@ -18,7 +18,7 @@ programfiles=$(basename -a $(echo ${files} | grep -o 
'/program/[^/]* '))
 
 # whitelists should contain only system libraries that have a good reputation
 # of maintaining ABI stability
-globalwhitelist="ld-linux-x86-64.so.2 libc.so.6 libm.so.6 libdl.so.2 
libpthread.so.0 librt.so.1 libutil.so.1 libnsl.so.1 libcrypt.so.1 libgcc_s.so.1 
libstdc++.so.6 libz.so.1 libfontconfig.so.1 libfreetype.so.6"
+globalwhitelist="ld-linux-x86-64.so.2 libc.so.6 libm.so.6 libdl.so.2 
libpthread.so.0 librt.so.1 libutil.so.1 libnsl.so.1 libcrypt.so.1 libgcc_s.so.1 
libstdc++.so.6 libz.so.1 libfontconfig.so.1 libfreetype.so.6 libxml.so.2 
libxslt.so.1 libexslt.so.0"
 x11whitelist="libX11.so.6 libXext.so.6 libSM.so.6 libICE.so.6 libXinerama.so.1 
libXrender.so.1 libXrandr.so.2 libcairo.so.2"
 openglwhitelist="libGL.so.1"
 giowhitelist="libgio-2.0.so.0 libgobject-2.0.so.0 libglib-2.0.so.0 
libdbus-glib-1.so.2 libdbus-1.so.3"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Caolán McNamara
 include/sfx2/sfx.hrc   |2 +-
 sfx2/source/view/sfxbasecontroller.cxx |8 +---
 sfx2/source/view/view.src  |4 +---
 3 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit d1e02bd3c6918f90562bb4e963866fd3a16a4f73
Author: Caolán McNamara 
Date:   Mon Oct 10 15:26:57 2016 +0100

de-src another standalone PushButton

Change-Id: I5e38e8877d70efd3b6413a14c0c121a8babb44f8

diff --git a/include/sfx2/sfx.hrc b/include/sfx2/sfx.hrc
index 89a7f6d..5d6faa5 100644
--- a/include/sfx2/sfx.hrc
+++ b/include/sfx2/sfx.hrc
@@ -143,7 +143,7 @@
 #define STR_PASSWD_EMPTY(RID_SFX_START+123)
 #define STR_PASSWD_MIN_LEN  (RID_SFX_START+124)
 #define STR_NONCHECKEDOUT_DOCUMENT  (RID_SFX_START+125)
-#define BT_CHECKOUT (RID_SFX_START+126)
+#define STR_CHECKOUT(RID_SFX_START+126)
 #define STR_READONLY_EDIT   (RID_SFX_START+127)
 #define STR_READONLY_DOCUMENT   (RID_SFX_START+128)
 #define STR_PASSWD_MIN_LEN1 (RID_SFX_START+129)
diff --git a/sfx2/source/view/sfxbasecontroller.cxx 
b/sfx2/source/view/sfxbasecontroller.cxx
index b2c58be..2c2ec74 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -1467,9 +1467,11 @@ void SfxBaseController::ShowInfoBars( )
 SfxInfoBarWindow* pInfoBar = pViewFrame->AppendInfoBar( 
"checkout", SfxResId( STR_NONCHECKEDOUT_DOCUMENT ) );
 if (pInfoBar)
 {
-VclPtrInstance pBtn( 
&pViewFrame->GetWindow(), SfxResId( BT_CHECKOUT ) );
-pBtn->SetClickHdl( LINK( this, SfxBaseController, 
CheckOutHandler ) );
-pInfoBar->addButton(pBtn);
+VclPtrInstance 
xBtn(&pViewFrame->GetWindow());
+xBtn->SetText(SfxResId(STR_CHECKOUT));
+xBtn->SetSizePixel(xBtn->GetOptimalSize());
+xBtn->SetClickHdl(LINK(this, SfxBaseController, 
CheckOutHandler));
+pInfoBar->addButton(xBtn);
 }
 }
 }
diff --git a/sfx2/source/view/view.src b/sfx2/source/view/view.src
index 845510a..8384544 100644
--- a/sfx2/source/view/view.src
+++ b/sfx2/source/view/view.src
@@ -121,10 +121,8 @@ String STR_CLASSIFIED_EXPORT_CONTROL
 Text [ en-US ] = "Export Control:" ;
 };
 
-PushButton BT_CHECKOUT
+String STR_CHECKOUT
 {
-Pos = MAP_APPFONT( 0 , 0 );
-Size = MAP_APPFONT( 30 , 0 );
 Text[ en-US ] = "Check Out";
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Caolán McNamara
 include/sfx2/sfx.hrc |2 +-
 sfx2/source/view/view.src|5 ++---
 sfx2/source/view/viewfrm.cxx |8 +---
 3 files changed, 8 insertions(+), 7 deletions(-)

New commits:
commit e8393d4d91d714b691b101a2062c3e2e7333929b
Author: Caolán McNamara 
Date:   Mon Oct 10 15:23:02 2016 +0100

de-src standalong PushButton

Change-Id: I6f062e04377fc74ec2fea3ea4390943b715e06d1

diff --git a/include/sfx2/sfx.hrc b/include/sfx2/sfx.hrc
index 82a9e757..89a7f6d 100644
--- a/include/sfx2/sfx.hrc
+++ b/include/sfx2/sfx.hrc
@@ -144,7 +144,7 @@
 #define STR_PASSWD_MIN_LEN  (RID_SFX_START+124)
 #define STR_NONCHECKEDOUT_DOCUMENT  (RID_SFX_START+125)
 #define BT_CHECKOUT (RID_SFX_START+126)
-#define BT_READONLY_EDIT(RID_SFX_START+127)
+#define STR_READONLY_EDIT   (RID_SFX_START+127)
 #define STR_READONLY_DOCUMENT   (RID_SFX_START+128)
 #define STR_PASSWD_MIN_LEN1 (RID_SFX_START+129)
 #define STR_MODULENOTINSTALLED  (RID_SFX_START+130)
diff --git a/sfx2/source/view/view.src b/sfx2/source/view/view.src
index 8f0d6c6..845510a 100644
--- a/sfx2/source/view/view.src
+++ b/sfx2/source/view/view.src
@@ -127,10 +127,9 @@ PushButton BT_CHECKOUT
 Size = MAP_APPFONT( 30 , 0 );
 Text[ en-US ] = "Check Out";
 };
-PushButton BT_READONLY_EDIT
+
+String STR_READONLY_EDIT
 {
-Pos = MAP_APPFONT( 0 , 0 );
-Size = MAP_APPFONT( 70 , 0 );
 Text[ en-US ] = "Edit Document";
 };
 
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index ef4f10d..588a4eb 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1224,9 +1224,11 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, 
const SfxHint& rHint )
 SfxInfoBarWindow* pInfoBar = AppendInfoBar("readonly", 
SfxResId(STR_READONLY_DOCUMENT));
 if (pInfoBar)
 {
-VclPtrInstance pBtn( &GetWindow(), 
SfxResId(BT_READONLY_EDIT));
-pBtn->SetClickHdl(LINK(this, SfxViewFrame, 
SwitchReadOnlyHandler));
-pInfoBar->addButton(pBtn);
+VclPtrInstance xBtn(&GetWindow());
+xBtn->SetText(SfxResId(STR_READONLY_EDIT));
+xBtn->SetSizePixel(xBtn->GetOptimalSize());
+xBtn->SetClickHdl(LINK(this, SfxViewFrame, 
SwitchReadOnlyHandler));
+pInfoBar->addButton(xBtn);
 }
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Caolán McNamara
 include/tools/rcid.h  |7 
 include/vcl/field.hxx |5 --
 rsc/inc/rscdb.hxx |5 --
 rsc/source/parser/rscicpx.cxx |   73 --
 rsc/source/parser/rscinit.cxx |   34 ---
 tools/source/rc/resmgr.cxx|2 -
 vcl/source/control/field.cxx  |   59 -
 7 files changed, 185 deletions(-)

New commits:
commit 9f7f5b5f911c4e76c88258f6ee3e7d51484f195b
Author: Caolán McNamara 
Date:   Mon Oct 10 14:22:56 2016 +0100

no numericfield, spinfield or spinbutton loaded from .src now

Change-Id: I90e4390d1fadcbb18036861dc9b9d39fa8a73551

diff --git a/include/tools/rcid.h b/include/tools/rcid.h
index d47b0e1..356c7b2 100644
--- a/include/tools/rcid.h
+++ b/include/tools/rcid.h
@@ -51,8 +51,6 @@
 
 #define RSC_IMAGEBUTTON (RSC_NOTYPE + 0x4a)
 
-#define RSC_SPINBUTTON  (RSC_NOTYPE + 0x4d)
-
 #define RSC_EDIT(RSC_NOTYPE + 0x52)
 
 #define RSC_LISTBOX (RSC_NOTYPE + 0x55)
@@ -61,11 +59,6 @@
 
 #define RSC_FIXEDIMAGE  (RSC_NOTYPE + 0x5a)
 
-#define RSC_SPINFIELD   (RSC_NOTYPE + 0x61)
-
-#define RSC_NUMERICFIELD(RSC_NOTYPE + 0x63)
-
-
 #define RSC_TOOLBOXITEM (RSC_NOTYPE + 0x70)
 #define RSC_TOOLBOX (RSC_NOTYPE + 0x71)
 #define RSC_DOCKINGWINDOW   (RSC_NOTYPE + 0x72)
diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx
index 96873ff..d6612fd 100644
--- a/include/vcl/field.hxx
+++ b/include/vcl/field.hxx
@@ -150,7 +150,6 @@ protected:
 voidFieldFirst();
 voidFieldLast();
 
-SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
 SAL_DLLPRIVATE bool ImplNumericReformat( const OUString& rStr, sal_Int64& 
rValue, OUString& rOutStr );
 SAL_DLLPRIVATE void ImplNewFieldValue( sal_Int64 nNewValue );
 SAL_DLLPRIVATE void ImplSetUserValue( sal_Int64 nNewValue, Selection* 
pNewSelection = nullptr );
@@ -448,12 +447,8 @@ public:
 
 class VCL_DLLPUBLIC NumericField : public SpinField, public NumericFormatter
 {
-protected:
-SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
-
 public:
 explicitNumericField( vcl::Window* pParent, WinBits 
nWinStyle );
-explicitNumericField( vcl::Window* pParent, const ResId& );
 
 virtual boolPreNotify( NotifyEvent& rNEvt ) override;
 virtual boolNotify( NotifyEvent& rNEvt ) override;
diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx
index 7bd6949..30117dc 100644
--- a/rsc/inc/rscdb.hxx
+++ b/rsc/inc/rscdb.hxx
@@ -191,11 +191,6 @@ class RscTypCont
 RscTop *InitClassMenuItem( RscTop * pSuper );
 RscTop *InitClassMenu( RscTop * pSuper, RscTop * pMenuItem );
 
-RscTop *InitClassNumericFormatter( RscTop * pSuper );
-
-RscTop *InitClassSpinField( RscTop * pSuper );
-RscTop *InitClassNumericField( RscTop * pSuper );
-
 RscTop *InitClassDockingWindow( RscTop * pSuper,
 RscEnum * pMapUnit );
 RscTop *InitClassToolBoxItem(RscTop * pSuper);
diff --git a/rsc/source/parser/rscicpx.cxx b/rsc/source/parser/rscicpx.cxx
index 714c1ac..beba5ad 100644
--- a/rsc/source/parser/rscicpx.cxx
+++ b/rsc/source/parser/rscicpx.cxx
@@ -664,79 +664,6 @@ RscTop * RscTypCont::InitClassMenu( RscTop * pSuper,
 return pClassMenu;
 }
 
-RscTop * RscTypCont::InitClassNumericFormatter( RscTop * pSuper )
-{
-AtomnId;
-RscTop *pClassNumeric;
-
-// initialize class
-nId = pHS->getID( "NumericFormatter" );
-pClassNumeric = new RscClass( nId, RSC_NOTYPE, pSuper );
-pClassNumeric->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
-
-// initialize variables
-nId = aNmTb.Put( "Minimum", VARNAME );
-pClassNumeric->SetVariable( nId, &aIdLong, nullptr,
-0, (sal_uInt32)RscNumFormatterFlags::Min );
-nId = aNmTb.Put( "Maximum", VARNAME );
-pClassNumeric->SetVariable( nId, &aIdLong, nullptr,
-0, (sal_uInt32)RscNumFormatterFlags::Max );
-nId = aNmTb.Put( "StrictFormat", VARNAME );
-pClassNumeric->SetVariable( nId, &aBool, nullptr,
-0, 
(sal_uInt32)RscNumFormatterFlags::StrictFormat );
-nId = aNmTb.Put( "DecimalDigits", VARNAME );
-pClassNumeric->SetVariable( nId, &aUShort, nullptr,
-0, 
(sal_uInt32)RscNumFormatterFlags::DecimalDigits );
-nId = aNmTb.Put( "Value", VARNAME );
-pClassNumeric->SetVariable( nId, &aIdLong, nullptr,
-0, (sal_uInt32)RscNumFormatterFlags::Value );
-
-return pClassNumeric;
-}
-
-RscTop * RscTypCont::InitClassSpinField( RscTop * pSuper )
-{
-AtomnId;
-RscTop *pClassSpinField;
-
-// initialize class
-nId = pHS->getID( "SpinField" );
-pClassSpinField = new RscClass( nId, RSC_SPIN

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

2016-10-10 Thread Noel Grandin
 editeng/source/editeng/impedit.cxx  |  108 ++--
 editeng/source/editeng/impedit2.cxx |   98 
 2 files changed, 103 insertions(+), 103 deletions(-)

New commits:
commit 666787c4bcee7fc9a5de459eb18a1dcc1a4e350c
Author: Noel Grandin 
Date:   Mon Oct 10 13:47:21 2016 +0200

reduce indentation

Change-Id: I9645e083ea61347fa323f84a271937e98d4f8eb3

diff --git a/editeng/source/editeng/impedit.cxx 
b/editeng/source/editeng/impedit.cxx
index 3d44980..84491fe 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1466,72 +1466,72 @@ void ImpEditView::CutCopy( css::uno::Reference< 
css::datatransfer::clipboard::XC
 
 void ImpEditView::Paste( css::uno::Reference< 
css::datatransfer::clipboard::XClipboard >& rxClipboard, bool bUseSpecial )
 {
-if ( rxClipboard.is() )
+if ( !rxClipboard.is() )
+return;
+
+uno::Reference< datatransfer::XTransferable > xDataObj;
+
+try
+{
+SolarMutexReleaser aReleaser;
+xDataObj = rxClipboard->getContents();
+}
+catch( const css::uno::Exception& )
 {
-uno::Reference< datatransfer::XTransferable > xDataObj;
+}
 
-try
-{
-SolarMutexReleaser aReleaser;
-xDataObj = rxClipboard->getContents();
-}
-catch( const css::uno::Exception& )
-{
-}
+if ( !xDataObj.is() || !EditEngine::HasValidData( xDataObj ) )
+return;
 
-if ( xDataObj.is() && EditEngine::HasValidData( xDataObj ) )
-{
-pEditEngine->pImpEditEngine->UndoActionStart( EDITUNDO_PASTE );
+pEditEngine->pImpEditEngine->UndoActionStart( EDITUNDO_PASTE );
 
-EditSelection aSel( GetEditSelection() );
-if ( aSel.HasRange() )
-{
-DrawSelection();
-aSel = pEditEngine->DeleteSelection(aSel);
-}
+EditSelection aSel( GetEditSelection() );
+if ( aSel.HasRange() )
+{
+DrawSelection();
+aSel = pEditEngine->DeleteSelection(aSel);
+}
 
-PasteOrDropInfos aPasteOrDropInfos;
-aPasteOrDropInfos.nStartPara = pEditEngine->GetEditDoc().GetPos( 
aSel.Min().GetNode() );
-pEditEngine->HandleBeginPasteOrDrop(aPasteOrDropInfos);
+PasteOrDropInfos aPasteOrDropInfos;
+aPasteOrDropInfos.nStartPara = pEditEngine->GetEditDoc().GetPos( 
aSel.Min().GetNode() );
+pEditEngine->HandleBeginPasteOrDrop(aPasteOrDropInfos);
 
-if ( DoSingleLinePaste() )
+if ( DoSingleLinePaste() )
+{
+datatransfer::DataFlavor aFlavor;
+SotExchange::GetFormatDataFlavor( SotClipboardFormatId::STRING, 
aFlavor );
+if ( xDataObj->isDataFlavorSupported( aFlavor ) )
+{
+try
 {
-datatransfer::DataFlavor aFlavor;
-SotExchange::GetFormatDataFlavor( 
SotClipboardFormatId::STRING, aFlavor );
-if ( xDataObj->isDataFlavorSupported( aFlavor ) )
-{
-try
-{
-uno::Any aData = xDataObj->getTransferData( aFlavor );
-OUString aTmpText;
-aData >>= aTmpText;
-OUString aText(convertLineEnd(aTmpText, LINEEND_LF));
-aText = aText.replaceAll( OUStringLiteral1(LINE_SEP), 
" " );
-aSel = pEditEngine->InsertText(aSel, aText);
-}
-catch( ... )
-{
-; // #i9286# can happen, even if isDataFlavorSupported 
returns true...
-}
-}
+uno::Any aData = xDataObj->getTransferData( aFlavor );
+OUString aTmpText;
+aData >>= aTmpText;
+OUString aText(convertLineEnd(aTmpText, LINEEND_LF));
+aText = aText.replaceAll( OUStringLiteral1(LINE_SEP), " " );
+aSel = pEditEngine->InsertText(aSel, aText);
 }
-else
+catch( ... )
 {
-aSel = pEditEngine->InsertText(
-xDataObj, OUString(), aSel.Min(),
-bUseSpecial && 
pEditEngine->GetInternalEditStatus().AllowPasteSpecial());
+; // #i9286# can happen, even if isDataFlavorSupported returns 
true...
 }
-
-aPasteOrDropInfos.nEndPara = pEditEngine->GetEditDoc().GetPos( 
aSel.Max().GetNode() );
-pEditEngine->HandleEndPasteOrDrop(aPasteOrDropInfos);
-
-pEditEngine->pImpEditEngine->UndoActionEnd( EDITUNDO_PASTE );
-SetEditSelection( aSel );
-pEditEngine->pImpEditEngine->UpdateSelections();
-pEditEngine->pImpEditEngine->FormatAndUpdate( GetEditViewPtr() );
-ShowCursor( DoAutoScroll(), true );
 

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

2016-10-10 Thread Caolán McNamara
 sw/source/uibase/inc/actctrl.hxx  |6 --
 sw/source/uibase/utlui/navipi.cxx |2 +-
 sw/source/uibase/utlui/navipi.hrc |1 -
 sw/source/uibase/utlui/navipi.src |   16 
 4 files changed, 5 insertions(+), 20 deletions(-)

New commits:
commit 08f0a1646961361ab41d5e11d8e0763c133e281a
Author: Caolán McNamara 
Date:   Mon Oct 10 14:14:44 2016 +0100

de-src solo NumericField

Change-Id: Idfdf54015f150d48a5b9af0ed8301ca6e7748f19

diff --git a/sw/source/uibase/inc/actctrl.hxx b/sw/source/uibase/inc/actctrl.hxx
index 7a24e98..a0dd15ac 100644
--- a/sw/source/uibase/inc/actctrl.hxx
+++ b/sw/source/uibase/inc/actctrl.hxx
@@ -31,8 +31,10 @@ protected:
 void Action();
 virtual bool Notify( NotifyEvent& rNEvt ) override;
 public:
-NumEditAction( vcl::Window* pParent, const ResId& rResId ) :
-NumericField(pParent, rResId) {}
+NumEditAction(vcl::Window* pParent, WinBits nBits)
+: NumericField(pParent, nBits)
+{
+}
 
 voidSetActionHdl( const Link& rLink ) { 
aActionLink = rLink;}
 };
diff --git a/sw/source/uibase/utlui/navipi.cxx 
b/sw/source/uibase/utlui/navipi.cxx
index ff1df89..3c39a85 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -685,7 +685,7 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings,
 
 // Insert the numeric field in the toolbox.
 VclPtr pEdit = VclPtr::Create(
-m_aContentToolBox.get(), SW_RES(NF_PAGE ));
+m_aContentToolBox.get(), 
WB_BORDER|WB_TABSTOP|WB_LEFT|WB_REPEAT|WB_SPIN);
 pEdit->SetActionHdl(LINK(this, SwNavigationPI, EditAction));
 pEdit->SetGetFocusHdl(LINK(this, SwNavigationPI, EditGetFocus));
 pEdit->SetAccessibleName(pEdit->GetQuickHelpText());
diff --git a/sw/source/uibase/utlui/navipi.hrc 
b/sw/source/uibase/utlui/navipi.hrc
index 686086f..ec05d0c 100644
--- a/sw/source/uibase/utlui/navipi.hrc
+++ b/sw/source/uibase/utlui/navipi.hrc
@@ -20,7 +20,6 @@
 #define TB_CONTENT  50
 #define TL_CONTENT  51
 #define LB_DOCS 53
-#define NF_PAGE 54
 #define TL_GLOBAL   55
 #define TB_GLOBAL   56
 
diff --git a/sw/source/uibase/utlui/navipi.src 
b/sw/source/uibase/utlui/navipi.src
index 88a9868..b97aaa3 100644
--- a/sw/source/uibase/utlui/navipi.src
+++ b/sw/source/uibase/utlui/navipi.src
@@ -292,22 +292,6 @@ Window DLG_NAVIGATION_PI
 Size = MAP_APPFONT ( 150 , 50 ) ;
 DropDown = TRUE ;
 };
-NumericField NF_PAGE
-{
-Border = TRUE ;
-Pos = MAP_PIXEL ( 50 , 29 ) ;
-Size = MAP_PIXEL ( 34 , 20 ) ;
-TabStop = TRUE ;
-Left = TRUE ;
-Repeat = TRUE ;
-Spin = TRUE ;
-Minimum = 1 ;
-First = 1 ;
- // Outline as default
-Maximum = 5 ;
-Last = 5 ;
-Value = 5 ;
-};
 };
 
 ImageList IMG_NAVI_ENTRYBMP
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - download.lst external/nss

2016-10-10 Thread Caolán McNamara
 download.lst |2 -
 external/nss/ExternalPackage_nss.mk  |5 +++
 external/nss/UnpackedTarball_nss.mk  |1 
 external/nss/clang-cl.patch.0|4 +-
 external/nss/nss-winXP-sdk.patch.1   |5 ++-
 external/nss/nss.nowerror.patch  |8 +
 external/nss/nss.patch   |   26 
 external/nss/nss.windowbuild.patch.0 |   55 +++
 external/nss/nss.windows.patch   |6 +--
 external/nss/nss_macosx.patch|   10 +++---
 external/nss/ubsan.patch.0   |   29 ++
 11 files changed, 122 insertions(+), 29 deletions(-)

New commits:
commit 3b30ebf7fd45de347cfab98d88f4bb4f1ba23d92
Author: Caolán McNamara 
Date:   Mon Jul 18 21:38:53 2016 +0100

bump nss to 3.27

Notable changes in NSS 3.24:
  * Add a shared library (libfreeblpriv3) on Linux platforms that define 
FREEBL_LOWHASH

Reviewed-on: https://gerrit.libreoffice.org/27304
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 
(cherry picked from commit f3fff04ddd411ab001cedfa43d6733440557)

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

diff --git a/download.lst b/download.lst
index 7632f99..e3ddb12 100644
--- a/download.lst
+++ b/download.lst
@@ -109,7 +109,7 @@ export MWAW_TARBALL := 
libmwaw-0.3.$(MWAW_VERSION_MICRO).tar.bz2
 export MYSQLCPPCONN_TARBALL := 
7239a4430efd4d0189c4f24df67f08e5-mysql-connector-c++-1.1.4.tar.gz
 export MYTHES_TARBALL := a8c2c5b8f09e7ede322d5c602ff6a4b6-mythes-1.2.4.tar.gz
 export NEON_TARBALL := 231adebe5c2f78fded3e3df6e958878e-neon-0.30.1.tar.gz
-export NSS_TARBALL := 
6b254cf2f8cb4b27a3f0b8b7b9966ea7-nss-3.22.2-with-nspr-4.12.tar.gz
+export NSS_TARBALL := 
0e3eee39402386cf16fd7aaa7399ebef-nss-3.27-with-nspr-4.13.tar.gz
 export ODFGEN_MD5SUM := 32572ea48d9021bbd6fa317ddb697abc
 export ODFGEN_VERSION_MICRO := 6
 export ODFGEN_TARBALL := libodfgen-0.1.$(ODFGEN_VERSION_MICRO).tar.bz2
diff --git a/external/nss/ExternalPackage_nss.mk 
b/external/nss/ExternalPackage_nss.mk
index 20cd756..6d568b7 100644
--- a/external/nss/ExternalPackage_nss.mk
+++ b/external/nss/ExternalPackage_nss.mk
@@ -58,5 +58,10 @@ $(eval $(call 
gb_ExternalPackage_add_files,nss,$(LIBO_LIB_FOLDER),\
dist/out/lib/libsqlite3.so \
 ))
 endif
+ifeq ($(OS),LINUX)
+$(eval $(call gb_ExternalPackage_add_files,nss,$(LIBO_LIB_FOLDER),\
+   dist/out/lib/libfreeblpriv3.so \
+))
+endif
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/nss/UnpackedTarball_nss.mk 
b/external/nss/UnpackedTarball_nss.mk
index 1a7ed13..4a90853 100644
--- a/external/nss/UnpackedTarball_nss.mk
+++ b/external/nss/UnpackedTarball_nss.mk
@@ -25,6 +25,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,nss,\
external/nss/nss.mingw.patch.3) \
 external/nss/ubsan.patch.0 \
 external/nss/clang-cl.patch.0 \
+external/nss/nss.windowbuild.patch.0 \
 $(if $(filter IOS,$(OS)), \
 external/nss/nss-chromium-nss-static.patch \
 external/nss/nss-more-static.patch \
diff --git a/external/nss/clang-cl.patch.0 b/external/nss/clang-cl.patch.0
index a76050d..98786d4 100644
--- a/external/nss/clang-cl.patch.0
+++ b/external/nss/clang-cl.patch.0
@@ -63,9 +63,9 @@
  #define CERTDB_VALID_PEER CERTDB_TERMINAL_RECORD
 --- nss/lib/util/pkcs11n.h
 +++ nss/lib/util/pkcs11n.h
-@@ -390,7 +390,7 @@
+@@ -426,7 +426,7 @@
  /* keep the old value for compatibility reasons*/
- #define CKT_NSS_MUST_VERIFY ((__CKT_NSS_MUST_VERIFY)(CKT_NSS +4))
+ #define CKT_NSS_MUST_VERIFY ((__CKT_NSS_MUST_VERIFY)(CKT_NSS + 4))
  #else
 -#ifdef _WIN32
 +#if defined _WIN32 && !defined __clang__
diff --git a/external/nss/nss-winXP-sdk.patch.1 
b/external/nss/nss-winXP-sdk.patch.1
index 2c81892..5273e71 100644
--- a/external/nss/nss-winXP-sdk.patch.1
+++ b/external/nss/nss-winXP-sdk.patch.1
@@ -1,9 +1,12 @@
 diff -ur nss.org/nss/coreconf/config.mk nss/nss/coreconf/config.mk
 --- nss.org/nss/coreconf/config.mk 2016-03-15 14:52:19.706093300 +0100
 +++ nss/nss/coreconf/config.mk 2016-03-15 14:56:51.549914800 +0100
-@@ -188,3 +188,5 @@
+@@ -203,6 +203,8 @@
  
  # Hide old, deprecated, TLS cipher suite names when building NSS
  DEFINES += -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
 +# build with 7.1A SDK for winXP compatibility
 +DEFINES += -D_USING_V110_SDK71_
+ 
+ # Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib
+ # exported symbols, which causes problem when NSS is built as part of Mozilla.
diff --git a/external/nss/nss.nowerror.patch b/external/nss/nss.nowerror.patch
index ca5f17c..ff81a9b 100644
--- a/external/nss/nss.nowerror.patch
+++ b/external/nss/nss.nowerror.patch
@@ -1,14 +1,12 @@
 diff -ur nss.org/nss/coreconf/WIN32.mk nss/nss/coreconf/WIN32.mk
 --- a/nss.org/nss/coreconf/WIN32.mk2016-04-13 11:33:09.322294523 +0200
 +++ b/nss/nss/coreconf/

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

2016-10-10 Thread Pranav Kant
 loleaflet/src/map/Map.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 76e739bc0da70de966917267bbbf8fd411d81d4a
Author: Pranav Kant 
Date:   Mon Oct 10 17:13:02 2016 +0530

loleaflet: Fix incorrect reference to username

Change-Id: Ibd6433c862eaf5f5fe57244180691ef8b08e3fbb
(cherry picked from commit 176367b40844038adabc8e82e076c011d6000f98)

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index ba72f67..56ac23a 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -131,7 +131,7 @@ L.Map = L.Evented.extend({
},
 
removeView: function(viewid) {
-   var username = this._viewInfo[viewid];
+   var username = this._viewInfo[viewid].username;
delete this._viewInfo[viewid];
this.fire('removeview', {viewId: viewid, username: username});
},
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Pranav Kant
 loleaflet/dist/toolbar/toolbar.js |2 +-
 loleaflet/src/core/LOUtil.js  |   20 
 loleaflet/src/map/Map.js  |6 +-
 3 files changed, 26 insertions(+), 2 deletions(-)

New commits:
commit a01d2fc91dfd6ea4ce365d30641fa251d45c8b04
Author: Pranav Kant 
Date:   Mon Oct 10 18:00:38 2016 +0530

loleaflet: Restore old coloring algorithm for non-text documents

.uno:TrackedChangeAuthors doesn't give correct colors for
documents other than writer, lets use our old algorithm for color
assignment for these documents.

Change-Id: If865788154a80da2637aad84183a0e947bb4b7e8

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index 9003281..11281f5 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1346,7 +1346,7 @@ map.on('addview', function(e) {
}, 3000);
 
var username = e.username;
-   var color = L.LOUtil.rgbToHex(e.color);
+   var color = L.LOUtil.rgbToHex(map.getViewColor(e.viewId));
if (e.viewId === map._docLayer._viewId) {
username = _('You');
color = '#000';
diff --git a/loleaflet/src/core/LOUtil.js b/loleaflet/src/core/LOUtil.js
index 4ebb9d1..ed6b718 100644
--- a/loleaflet/src/core/LOUtil.js
+++ b/loleaflet/src/core/LOUtil.js
@@ -3,6 +3,21 @@
  */
 
 L.LOUtil = {
+   // Based on core.git's colordata.hxx: 
COL_AUTHOR1_DARK...COL_AUTHOR9_DARK
+   // consisting of arrays of RGB values
+   // Maybe move the color logic to separate file when it becomes complex
+   darkColors: [
+   [198, 146, 0],
+   [6,  70, 162],
+   [87, 157,  28],
+   [105,  43, 157],
+   [197,   0,  11],
+   [0, 128, 128],
+   [140, 132,  0],
+   [53,  85, 107],
+   [209, 118,   0]
+   ],
+
startSpinner: function (spinnerCanvas, spinnerSpeed) {
var spinnerInterval;
spinnerCanvas.width = 50;
@@ -28,6 +43,11 @@ L.LOUtil = {
return spinnerInterval;
},
 
+   getViewIdHexColor: function(viewId) {
+   var color = this.darkColors[(viewId + 1) % 
this.darkColors.length];
+   return (color[2] | (color[1] << 8) | (color[0] << 16));
+   },
+
rgbToHex: function(color) {
return '#' + ('00' + color.toString(16)).slice(-6);
}
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index c6d2f71..70fc83b 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -130,7 +130,7 @@ L.Map = L.Evented.extend({
 
addView: function(viewid, username, color) {
this._viewInfo[viewid] = {'username': username, 'color': color};
-   this.fire('addview', {viewId: viewid, username: username, 
color: color});
+   this.fire('addview', {viewId: viewid, username: username});
},
 
removeView: function(viewid) {
@@ -144,6 +144,10 @@ L.Map = L.Evented.extend({
},
 
getViewColor: function(viewid) {
+   if (this._docLayer._docType !== 'text') {
+   return L.LOUtil.getViewIdHexColor(viewid);
+   }
+
return this._viewInfo[viewid].color;
},
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Pranav Kant
 loleaflet/src/map/Map.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 176367b40844038adabc8e82e076c011d6000f98
Author: Pranav Kant 
Date:   Mon Oct 10 17:13:02 2016 +0530

loleaflet: Fix incorrect reference to username

Change-Id: Ibd6433c862eaf5f5fe57244180691ef8b08e3fbb

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 38619f6..c6d2f71 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -134,7 +134,7 @@ L.Map = L.Evented.extend({
},
 
removeView: function(viewid) {
-   var username = this._viewInfo[viewid];
+   var username = this._viewInfo[viewid].username;
delete this._viewInfo[viewid];
this.fire('removeview', {viewId: viewid, username: username});
},
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: download.lst external/nss

2016-10-10 Thread Caolán McNamara
 download.lst |2 -
 external/nss/ExternalPackage_nss.mk  |5 +++
 external/nss/UnpackedTarball_nss.mk  |1 
 external/nss/clang-cl.patch.0|4 +-
 external/nss/nss-winXP-sdk.patch.1   |5 ++-
 external/nss/nss.nowerror.patch  |8 +
 external/nss/nss.patch   |   26 
 external/nss/nss.windowbuild.patch.0 |   55 +++
 external/nss/nss.windows.patch   |6 +--
 external/nss/nss_macosx.patch|   10 +++---
 external/nss/ubsan.patch.0   |   28 -
 11 files changed, 107 insertions(+), 43 deletions(-)

New commits:
commit f3fff04ddd411ab001cedfa43d6733440557
Author: Caolán McNamara 
Date:   Mon Jul 18 21:38:53 2016 +0100

bump nss to 3.27

Notable changes in NSS 3.24:
  * Add a shared library (libfreeblpriv3) on Linux platforms that define 
FREEBL_LOWHASH

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

diff --git a/download.lst b/download.lst
index ef4fc15..f5a696c 100644
--- a/download.lst
+++ b/download.lst
@@ -111,7 +111,7 @@ export MWAW_TARBALL := 
libmwaw-0.3.$(MWAW_VERSION_MICRO).tar.bz2
 export MYSQLCPPCONN_TARBALL := 
7239a4430efd4d0189c4f24df67f08e5-mysql-connector-c++-1.1.4.tar.gz
 export MYTHES_TARBALL := a8c2c5b8f09e7ede322d5c602ff6a4b6-mythes-1.2.4.tar.gz
 export NEON_TARBALL := 231adebe5c2f78fded3e3df6e958878e-neon-0.30.1.tar.gz
-export NSS_TARBALL := 
6b254cf2f8cb4b27a3f0b8b7b9966ea7-nss-3.22.2-with-nspr-4.12.tar.gz
+export NSS_TARBALL := 
0e3eee39402386cf16fd7aaa7399ebef-nss-3.27-with-nspr-4.13.tar.gz
 export ODFGEN_MD5SUM := 32572ea48d9021bbd6fa317ddb697abc
 export ODFGEN_VERSION_MICRO := 6
 export ODFGEN_TARBALL := libodfgen-0.1.$(ODFGEN_VERSION_MICRO).tar.bz2
diff --git a/external/nss/ExternalPackage_nss.mk 
b/external/nss/ExternalPackage_nss.mk
index 20cd756..6d568b7 100644
--- a/external/nss/ExternalPackage_nss.mk
+++ b/external/nss/ExternalPackage_nss.mk
@@ -58,5 +58,10 @@ $(eval $(call 
gb_ExternalPackage_add_files,nss,$(LIBO_LIB_FOLDER),\
dist/out/lib/libsqlite3.so \
 ))
 endif
+ifeq ($(OS),LINUX)
+$(eval $(call gb_ExternalPackage_add_files,nss,$(LIBO_LIB_FOLDER),\
+   dist/out/lib/libfreeblpriv3.so \
+))
+endif
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/nss/UnpackedTarball_nss.mk 
b/external/nss/UnpackedTarball_nss.mk
index e47b241..a0ac571 100644
--- a/external/nss/UnpackedTarball_nss.mk
+++ b/external/nss/UnpackedTarball_nss.mk
@@ -25,6 +25,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,nss,\
external/nss/nss.mingw.patch.3) \
 external/nss/ubsan.patch.0 \
 external/nss/clang-cl.patch.0 \
+external/nss/nss.windowbuild.patch.0 \
 $(if $(filter IOS,$(OS)), \
 external/nss/nss-chromium-nss-static.patch \
 external/nss/nss-more-static.patch \
diff --git a/external/nss/clang-cl.patch.0 b/external/nss/clang-cl.patch.0
index a76050d..98786d4 100644
--- a/external/nss/clang-cl.patch.0
+++ b/external/nss/clang-cl.patch.0
@@ -63,9 +63,9 @@
  #define CERTDB_VALID_PEER CERTDB_TERMINAL_RECORD
 --- nss/lib/util/pkcs11n.h
 +++ nss/lib/util/pkcs11n.h
-@@ -390,7 +390,7 @@
+@@ -426,7 +426,7 @@
  /* keep the old value for compatibility reasons*/
- #define CKT_NSS_MUST_VERIFY ((__CKT_NSS_MUST_VERIFY)(CKT_NSS +4))
+ #define CKT_NSS_MUST_VERIFY ((__CKT_NSS_MUST_VERIFY)(CKT_NSS + 4))
  #else
 -#ifdef _WIN32
 +#if defined _WIN32 && !defined __clang__
diff --git a/external/nss/nss-winXP-sdk.patch.1 
b/external/nss/nss-winXP-sdk.patch.1
index 2c81892..5273e71 100644
--- a/external/nss/nss-winXP-sdk.patch.1
+++ b/external/nss/nss-winXP-sdk.patch.1
@@ -1,9 +1,12 @@
 diff -ur nss.org/nss/coreconf/config.mk nss/nss/coreconf/config.mk
 --- nss.org/nss/coreconf/config.mk 2016-03-15 14:52:19.706093300 +0100
 +++ nss/nss/coreconf/config.mk 2016-03-15 14:56:51.549914800 +0100
-@@ -188,3 +188,5 @@
+@@ -203,6 +203,8 @@
  
  # Hide old, deprecated, TLS cipher suite names when building NSS
  DEFINES += -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
 +# build with 7.1A SDK for winXP compatibility
 +DEFINES += -D_USING_V110_SDK71_
+ 
+ # Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib
+ # exported symbols, which causes problem when NSS is built as part of Mozilla.
diff --git a/external/nss/nss.nowerror.patch b/external/nss/nss.nowerror.patch
index ca5f17c..ff81a9b 100644
--- a/external/nss/nss.nowerror.patch
+++ b/external/nss/nss.nowerror.patch
@@ -1,14 +1,12 @@
 diff -ur nss.org/nss/coreconf/WIN32.mk nss/nss/coreconf/WIN32.mk
 --- a/nss.org/nss/coreconf/WIN32.mk2016-04-13 11:33:09.322294523 +0200
 +++ b/nss/nss/coreconf/WIN32.mk2016-04-13 11:33:27.744323969 +0200
-@@ -126,9 +126,9 @@
- OS_CFLAGS += -W3 -nologo -D_CRT_SECURE_NO_WARNINGS \
--D_CRT_NONSTDC_NO_WARNINGS
+@@ -127,7 +1

[Libreoffice-commits] core.git: compilerplugins/clang libreofficekit/source sal/rtl

2016-10-10 Thread Stephan Bergmann
 compilerplugins/clang/fpcomparison.cxx   |3 +++
 libreofficekit/source/gtk/lokdocview.cxx |4 +---
 sal/rtl/math.cxx |4 +---
 3 files changed, 5 insertions(+), 6 deletions(-)

New commits:
commit 1dac51334ba1440b158078f0dae765c7df55efb4
Author: Stephan Bergmann 
Date:   Mon Oct 10 13:10:21 2016 +0200

Handle loplugin:fpcomparison false positives by whitelist

Change-Id: I58e2beb0695a27922856bd8f8988d9e4508aceb6

diff --git a/compilerplugins/clang/fpcomparison.cxx 
b/compilerplugins/clang/fpcomparison.cxx
index 00dff67..cf24f40 100644
--- a/compilerplugins/clang/fpcomparison.cxx
+++ b/compilerplugins/clang/fpcomparison.cxx
@@ -88,6 +88,7 @@ bool FpComparison::ignore(FunctionDecl* function)
 || dc.Function("doubleToString").AnonymousNamespace().GlobalNamespace()
 || dc.Function("stringToDouble").AnonymousNamespace().GlobalNamespace()
 || dc.Function("rtl_math_round").GlobalNamespace()
+|| dc.Function("rtl_math_approxEqual").GlobalNamespace()
 || dc.Function("rtl_math_approxValue").GlobalNamespace()
 || dc.Function("rtl_math_asinh").GlobalNamespace()
 || dc.Function("rtl_math_acosh").GlobalNamespace()
@@ -103,6 +104,8 @@ bool FpComparison::ignore(FunctionDecl* function)
 || (dc.Function("initialize").Class("Impl").AnonymousNamespace()
 .GlobalNamespace())
 // testtools/source/bridgetest/constructors.cxx
+|| 
dc.Function("lok_approxEqual").AnonymousNamespace().GlobalNamespace()
+// libreofficekit/source/gtk/lokdocview.cxx
 // These might need fixing:
 || (dc.Function("getSmallestDistancePointToPolygon").Namespace("tools")
 .Namespace("basegfx").GlobalNamespace())
diff --git a/libreofficekit/source/gtk/lokdocview.cxx 
b/libreofficekit/source/gtk/lokdocview.cxx
index 4d34428..c4159b0 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -3188,9 +3188,7 @@ namespace {
 inline bool lok_approxEqual(double a, double b)
 {
 static const double e48 = 1.0 / (16777216.0 * 16777216.0);
-// XXX loplugin:fpcomparison complains about floating-point comparison for
-// a==b, though we actually want this here.
-if (!(ab))
+if (a == b)
 return true;
 if (a == 0.0 || b == 0.0)
 return false;
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 789c135..9ce10f7 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -1090,9 +1090,7 @@ bool SAL_CALL rtl_math_approxEqual(double a, double b) 
SAL_THROW_EXTERN_C()
 {
 static const double e48 = 1.0 / (16777216.0 * 16777216.0);
 static const double e44 = e48 * 16.0;
-// XXX loplugin:fpcomparison complains about floating-point comparison for
-// a==b, though we actually want this here.
-if (!(ab))
+if (a == b)
 return true;
 if (a == 0.0 || b == 0.0)
 return false;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Stephan Bergmann
 vcl/win/gdi/salprn.cxx |  174 +++--
 1 file changed, 85 insertions(+), 89 deletions(-)

New commits:
commit 0db235d61f323cecbbc1db761ba19cb5da4b3e6f
Author: Stephan Bergmann 
Date:   Mon Oct 10 12:24:23 2016 +0200

Expand some silly macros

Change-Id: Idf7b9285c655aef40e2618b44c35248ccd13084d
Reviewed-on: https://gerrit.libreoffice.org/29663
Reviewed-by: Stephan Bergmann 
Tested-by: Stephan Bergmann 

diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx
index 926854a..6db349e 100644
--- a/vcl/win/gdi/salprn.cxx
+++ b/vcl/win/gdi/salprn.cxx
@@ -447,27 +447,21 @@ static bool ImplUpdateSalJobSetup( WinSalInfoPrinter* 
pPrinter, ImplJobSetup* pS
 return TRUE;
 }
 
-#define DECLARE_DEVMODE( i )\
-DEVMODEW* pDevModeW = SAL_DEVMODE_W(i);\
-if( pDevModeW == NULL )\
-return
-
-#define CHOOSE_DEVMODE(i)\
-(pDevModeW->i)
-
 static void ImplDevModeToJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* 
pSetupData, JobSetFlags nFlags )
 {
 if ( !pSetupData || !pSetupData->GetDriverData() )
 return;
 
-DECLARE_DEVMODE( pSetupData );
+DEVMODEW* pDevModeW = SAL_DEVMODE_W(pSetupData);
+if( pDevModeW == nullptr )
+return;
 
 // Orientation
 if ( nFlags & JobSetFlags::ORIENTATION )
 {
-if ( CHOOSE_DEVMODE(dmOrientation) == DMORIENT_PORTRAIT )
+if ( pDevModeW->dmOrientation == DMORIENT_PORTRAIT )
 pSetupData->SetOrientation( Orientation::Portrait );
-else if ( CHOOSE_DEVMODE(dmOrientation) == DMORIENT_LANDSCAPE )
+else if ( pDevModeW->dmOrientation == DMORIENT_LANDSCAPE )
 pSetupData->SetOrientation( Orientation::Landscape );
 }
 
@@ -485,7 +479,7 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* 
pPrinter, ImplJobSetup* pS
 // search the right bin and assign index to mnPaperBin
 for( DWORD i = 0; i < nCount; ++i )
 {
-if( CHOOSE_DEVMODE(dmDefaultSource) == pBins[ i ] )
+if( pDevModeW->dmDefaultSource == pBins[ i ] )
 {
 pSetupData->SetPaperBin( (sal_uInt16)i );
 break;
@@ -499,10 +493,10 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* 
pPrinter, ImplJobSetup* pS
 // PaperSize
 if ( nFlags & JobSetFlags::PAPERSIZE )
 {
-if( (CHOOSE_DEVMODE(dmFields) & (DM_PAPERWIDTH|DM_PAPERLENGTH)) == 
(DM_PAPERWIDTH|DM_PAPERLENGTH) )
+if( (pDevModeW->dmFields & (DM_PAPERWIDTH|DM_PAPERLENGTH)) == 
(DM_PAPERWIDTH|DM_PAPERLENGTH) )
 {
-pSetupData->SetPaperWidth( CHOOSE_DEVMODE(dmPaperWidth)*10 );
-pSetupData->SetPaperHeight( CHOOSE_DEVMODE(dmPaperLength)*10 );
+pSetupData->SetPaperWidth( pDevModeW->dmPaperWidth*10 );
+pSetupData->SetPaperHeight( pDevModeW->dmPaperLength*10 );
 }
 else
 {
@@ -524,7 +518,7 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* 
pPrinter, ImplJobSetup* pS
 {
 for( DWORD i = 0; i < nPaperCount; ++i )
 {
-if( pPapers[ i ] == CHOOSE_DEVMODE(dmPaperSize) )
+if( pPapers[ i ] == pDevModeW->dmPaperSize )
 {
 pSetupData->SetPaperWidth( pPaperSizes[ i ].x*10 );
 pSetupData->SetPaperHeight( pPaperSizes[ i ].y*10 );
@@ -537,7 +531,7 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* 
pPrinter, ImplJobSetup* pS
 if( pPaperSizes )
 rtl_freeMemory( pPaperSizes );
 }
-switch( CHOOSE_DEVMODE(dmPaperSize) )
+switch( pDevModeW->dmPaperSize )
 {
 case DMPAPER_LETTER:
 pSetupData->SetPaperFormat( PAPER_LETTER );
@@ -708,13 +702,13 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* 
pPrinter, ImplJobSetup* pS
 if( nFlags & JobSetFlags::DUPLEXMODE )
 {
 DuplexMode eDuplex = DuplexMode::Unknown;
-if( (CHOOSE_DEVMODE(dmFields) & DM_DUPLEX) )
+if( (pDevModeW->dmFields & DM_DUPLEX) )
 {
-if( CHOOSE_DEVMODE(dmDuplex) == DMDUP_SIMPLEX )
+if( pDevModeW->dmDuplex == DMDUP_SIMPLEX )
 eDuplex = DuplexMode::Off;
-else if( CHOOSE_DEVMODE(dmDuplex) == DMDUP_VERTICAL )
+else if( pDevModeW->dmDuplex == DMDUP_VERTICAL )
 eDuplex = DuplexMode::LongEdge;
-else if( CHOOSE_DEVMODE(dmDuplex) == DMDUP_HORIZONTAL )
+else if( pDevModeW->dmDuplex == DMDUP_HORIZONTAL )
 eDuplex = DuplexMode::ShortEdge;
 }
 pSetupData->SetDuplexMode( eDuplex );
@@ -726,16 +720,18 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter* 
pPrinter, const ImplJobSet
 if ( !pSetupData || !pSetupData->GetDriverData() )
 return;
 
-DECLARE_DEVMODE( pSetupData );
+DEVMODEW* pDevModeW = SAL_DEVMODE_W

[Libreoffice-commits] online.git: loolwsd/ClientSession.cpp loolwsd/ClientSession.hpp loolwsd/PrisonerSession.cpp

2016-10-10 Thread Tor Lillqvist
 loolwsd/ClientSession.cpp   |1 -
 loolwsd/ClientSession.hpp   |9 -
 loolwsd/PrisonerSession.cpp |2 +-
 3 files changed, 1 insertion(+), 11 deletions(-)

New commits:
commit 44d7f26c89a29b0c03137edb6b1b4bf49518ea78
Author: Tor Lillqvist 
Date:   Mon Oct 10 13:15:15 2016 +0300

Bin dead code

ClientSession::isLoadFailed() was not used anywhere. As a fallout, the
_loadFailed field and setLoadFailed() member function became useless,
too.

diff --git a/loolwsd/ClientSession.cpp b/loolwsd/ClientSession.cpp
index e4623ff..f3acf98 100644
--- a/loolwsd/ClientSession.cpp
+++ b/loolwsd/ClientSession.cpp
@@ -41,7 +41,6 @@ ClientSession::ClientSession(const std::string& id,
 LOOLSession(id, Kind::ToClient, ws),
 _docBroker(std::move(docBroker)),
 _isReadOnly(readOnly),
-_loadFailed(false),
 _loadPart(-1)
 {
 Log::info("ClientSession ctor [" + getName() + "].");
diff --git a/loolwsd/ClientSession.hpp b/loolwsd/ClientSession.hpp
index 3be6277..926d250 100644
--- a/loolwsd/ClientSession.hpp
+++ b/loolwsd/ClientSession.hpp
@@ -50,13 +50,6 @@ public:
 _saveAsQueue.put(url);
 }
 
-bool isLoadFailed() const { return _loadFailed; }
-void setLoadFailed(const std::string& reason)
-{
-Log::warn("Document load failed: " + reason);
-_loadFailed = true;
-}
-
 std::shared_ptr getDocumentBroker() const { return 
_docBroker; }
 
 private:
@@ -88,8 +81,6 @@ private:
 /// Store URLs of completed 'save as' documents.
 MessageQueue _saveAsQueue;
 
-/// Marks if document loading failed.
-bool _loadFailed;
 int _loadPart;
 };
 
diff --git a/loolwsd/PrisonerSession.cpp b/loolwsd/PrisonerSession.cpp
index c40e4da..ccedaec 100644
--- a/loolwsd/PrisonerSession.cpp
+++ b/loolwsd/PrisonerSession.cpp
@@ -105,7 +105,7 @@ bool PrisonerSession::_handleInput(const char *buffer, int 
length)
 errorKind == "wrongpassword")
 {
 forwardToPeer(_peer, buffer, length, isBinary);
-peer->setLoadFailed(errorKind);
+Log::warn("Document load failed: " + errorKind);
 return false;
 }
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Samuel Mehrbrodt
 framework/source/dispatch/closedispatcher.cxx |   28 ++
 1 file changed, 20 insertions(+), 8 deletions(-)

New commits:
commit ecec5524476448d35dd24c5594c2fcbb1a8b6218
Author: Samuel Mehrbrodt 
Date:   Mon Sep 19 13:08:23 2016 +0200

tdf#102274 Closing LibreOffice should not kill active UNO connections

When closing the last window, check whether there are active UNO 
connections.
If that's the case, just close the window, don't terminate the application
so that the connected application keeps working.

This doesn't affect the behavior of "File->Exit LibreOffice". In that case,
the application still gets terminated and existing connections are closed.

Change-Id: If2d22d51c9b566be8abd51969f35c80896ed4767
Reviewed-on: https://gerrit.libreoffice.org/29018
Reviewed-by: Thorsten Behrens 
Tested-by: Thorsten Behrens 

diff --git a/framework/source/dispatch/closedispatcher.cxx 
b/framework/source/dispatch/closedispatcher.cxx
index 991c3e9..eedefcd 100644
--- a/framework/source/dispatch/closedispatcher.cxx
+++ b/framework/source/dispatch/closedispatcher.cxx
@@ -23,6 +23,8 @@
 #include 
 #include 
 
+#include 
+#include 
 #include 
 #include 
 #include 
@@ -293,6 +295,12 @@ IMPL_LINK_NOARG(CloseDispatcher, impl_asyncCallback, 
LinkParamNone*, void)
 css::uno::Reference< css::frame::XFramesSupplier > xDesktop( 
css::frame::Desktop::create(xContext), css::uno::UNO_QUERY_THROW);
 FrameListAnalyzer aCheck1(xDesktop, xCloseFrame, FrameListAnalyzer::E_HELP 
| FrameListAnalyzer::E_BACKINGCOMPONENT);
 
+// Check for existing UNO connections.
+// NOTE: There is a race between checking this and connections being 
created/destroyed before
+//   we close the frame / terminate the app.
+css::uno::Reference bridgeFac( 
css::bridge::BridgeFactory::create(xContext) );
+bool bHasActiveConnections = bridgeFac->getExistingBridges().getLength() > 
0;
+
 // a) If the current frame (where the close dispatch was requested for) 
does not have
 //any parent frame ... it will close this frame only. Such frame isn't 
part of the
 //global desktop tree ... and such frames are used as "implementation 
details" only.
@@ -310,13 +318,15 @@ IMPL_LINK_NOARG(CloseDispatcher, impl_asyncCallback, 
LinkParamNone*, void)
 else if (aCheck1.m_bReferenceIsHelp)
 bCloseFrame = true;
 
-// c) If we are already in "backing mode", we have to terminate
-//the application, if this special frame is closed.
-//It doesn't matter, how many other frames (can be the help or hidden 
frames only)
-//are open then.
-//=> terminate the application!
-else if (aCheck1.m_bReferenceIsBacking)
-bTerminateApp = true;
+// c) If we are already in "backing mode", we terminate the application, 
if no active UNO connections are found.
+//If there is an active UNO connection, we only close the frame and 
leave the application alive.
+//It doesn't matter, how many other frames (can be the help or hidden 
frames only) are open then.
+else if (aCheck1.m_bReferenceIsBacking) {
+if (bHasActiveConnections)
+bCloseFrame = true;
+else
+bTerminateApp = true;
+}
 
 // d) Otherwhise we have to: close all views to the same document, close 
the
 //document inside our own frame and decide then again, what has to be 
done!
@@ -352,7 +362,9 @@ IMPL_LINK_NOARG(CloseDispatcher, impl_asyncCallback, 
LinkParamNone*, void)
 // application or establish the backing mode now.
 // And that depends from the dispatched URL ...
 {
-if (eOperation == E_CLOSE_FRAME)
+if (bHasActiveConnections)
+bCloseFrame = true;
+else if (eOperation == E_CLOSE_FRAME)
 bTerminateApp = true;
 else if( 
SvtModuleOptions().IsModuleInstalled(SvtModuleOptions::EModule::STARTMODULE) )
 bEstablishBackingMode = true;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: qadevOOo/Jar_OOoRunner.mk qadevOOo/JunitTest_qadevOOo_unoapi.mk qadevOOo/Module_qadevOOo.mk qadevOOo/objdsc qadevOOo/qa qadevOOo/runner qadevOOo/tests

2016-10-10 Thread Samuel Mehrbrodt
 qadevOOo/Jar_OOoRunner.mk   |2 
 qadevOOo/JunitTest_qadevOOo_unoapi.mk   |   31 --
 qadevOOo/Module_qadevOOo.mk |4 
 qadevOOo/objdsc/qadevOOo/bogus.SelfTest.csv |7 
 qadevOOo/qa/complex/junitskeleton/Skeleton.java |  181 
 qadevOOo/qa/complex/junitskeleton/TestDocument.java |   32 --
 qadevOOo/qa/complex/junitskeleton/justatest.java|   43 --
 qadevOOo/qa/complex/junitskeleton/makefile.mk   |   54 ---
 qadevOOo/qa/complex/junitskeleton/test_documents/README.txt |1 
 qadevOOo/qa/unoapi/Test.java|   48 ---
 qadevOOo/qa/unoapi/knownissues.xcl  |1 
 qadevOOo/qa/unoapi/qadevOOo.sce |   18 -
 qadevOOo/runner/lib/MultiMethodTest.java|   95 ++
 qadevOOo/tests/java/ifc/qadevooo/_SelfTest.java |   73 
 qadevOOo/tests/java/mod/_qadevOOo/SelfTest.java |   85 -
 15 files changed, 45 insertions(+), 630 deletions(-)

New commits:
commit fced5de4b44f949f7a203a68a3df1d6f3293b183
Author: Samuel Mehrbrodt 
Date:   Fri Sep 23 17:36:45 2016 +0200

Remove no longer relevant qadevOOo/qa

Change-Id: Ic1cee9e61d31a6ee8f248c7e976c5eca8e0d86bd
Reviewed-on: https://gerrit.libreoffice.org/29233
Tested-by: Jenkins 
Reviewed-by: Thorsten Behrens 

diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 2c21d7d..7708c34 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -511,7 +511,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/ifc/presentation/_XCustomPresentationSupplier \
 qadevOOo/tests/java/ifc/presentation/_XPresentation \
 qadevOOo/tests/java/ifc/presentation/_XPresentationSupplier \
-qadevOOo/tests/java/ifc/qadevooo/_SelfTest \
 qadevOOo/tests/java/ifc/reflection/_XIdlReflection \
 qadevOOo/tests/java/ifc/reflection/_XProxyFactory \
 qadevOOo/tests/java/ifc/reflection/_XTypeDescriptionEnumerationAccess \
@@ -1009,7 +1008,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
 qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel \
 qadevOOo/tests/java/mod/_proxyfac/ProxyFactory \
 qadevOOo/tests/java/mod/_proxyfac/uno/ProxyFactory \
-qadevOOo/tests/java/mod/_qadevOOo/SelfTest \
 qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider \
 qadevOOo/tests/java/mod/_regtypeprov/uno/RegistryTypeDescriptionProvider \
 qadevOOo/tests/java/mod/_remotebridge/uno/various \
diff --git a/qadevOOo/JunitTest_qadevOOo_unoapi.mk 
b/qadevOOo/JunitTest_qadevOOo_unoapi.mk
deleted file mode 100644
index 9868ab7..000
--- a/qadevOOo/JunitTest_qadevOOo_unoapi.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-$(eval $(call gb_JunitTest_JunitTest,qadevOOo_unoapi))
-
-$(eval $(call gb_JunitTest_set_defs,qadevOOo_unoapi,\
-$$(DEFS) \
--Dorg.openoffice.test.arg.sce=$(SRCDIR)/qadevOOo/qa/unoapi/qadevOOo.sce \
--Dorg.openoffice.test.arg.xcl=$(SRCDIR)/qadevOOo/qa/unoapi/knownissues.xcl 
\
--Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/qadevOOo/qa/unoapi/testdocuments \
-))
-
-$(eval $(call gb_JunitTest_use_jars,qadevOOo_unoapi,\
-OOoRunner \
-ridl \
-test \
-unoil \
-jurt \
-))
-
-$(eval $(call gb_JunitTest_add_classes,qadevOOo_unoapi,\
-org.openoffice.test.UnoApiTest \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/qadevOOo/Module_qadevOOo.mk b/qadevOOo/Module_qadevOOo.mk
index 3093a18..3a97b53 100644
--- a/qadevOOo/Module_qadevOOo.mk
+++ b/qadevOOo/Module_qadevOOo.mk
@@ -15,8 +15,4 @@ $(eval $(call gb_Module_add_targets,qadevOOo,\
 ))
 endif
 
-$(eval $(call gb_Module_add_subsequentcheck_targets,qadevOOo,\
-JunitTest_qadevOOo_unoapi \
-))
-
 # vim: set noet sw=4 ts=4:
diff --git a/qadevOOo/objdsc/qadevOOo/bogus.SelfTest.csv 
b/qadevOOo/objdsc/qadevOOo/bogus.SelfTest.csv
deleted file mode 100644
index 3983a1e..000
--- a/qadevOOo/objdsc/qadevOOo/bogus.SelfTest.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-# "Name";
-#  "com::sun::star::" will overread
-#   method name which is called
-"SelfTest";"com::sun::star::qadevooo::SelfTest";"testmethod()"
-"SelfTest";"com::sun::star::qadevooo::SelfTest";"testmethod2()"
-"SelfTest";"com::sun::star::qadevooo::SelfTest";"testmethod3()"
-# 
"SelfTest";"com::sun::star::qadevooo::SelfTest#optional";"testmethod4_bogus()"
diff --git a/qadevOOo/qa/complex/junitskeleton/Skeleton.java 
b/qadevOOo/qa/complex/junitskeleton/Skeleton.java
deleted file mode 100644
index e15a29c..

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

2016-10-10 Thread Samuel Mehrbrodt
 framework/source/services/desktop.cxx  |   13 +++--
 offapi/com/sun/star/frame/TerminationVetoException.idl |4 
 2 files changed, 11 insertions(+), 6 deletions(-)

New commits:
commit 6d9f07d53e9f89b5286637113198e61149a5c771
Author: Samuel Mehrbrodt 
Date:   Mon Sep 19 17:05:36 2016 +0200

tdf#102288 TerminationVetoException should only prevent termination

When using a TerminationVetoException, all windows should be closed,
but the process should be kept running.

Change-Id: I71b0b57b6035a36f0325c8dea3cd38309408f176
Reviewed-on: https://gerrit.libreoffice.org/29031
Tested-by: Jenkins 
Reviewed-by: Thorsten Behrens 

diff --git a/framework/source/services/desktop.cxx 
b/framework/source/services/desktop.cxx
index db0ffc2..e99bec8 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -224,9 +224,14 @@ sal_Bool SAL_CALL Desktop::terminate()
 
 aReadLock.clear();
 
-// Ask normal terminate listener. They could stop terminate without 
closing any open document.
+// try to close all open frames.
+// Allow using of any UI ... because Desktop.terminate() was designed as 
UI functionality in the past.
+bool bIsEventTestingMode = Application::IsEventTestingModeEnabled();
+bool bFramesClosed = impl_closeFrames(!bIsEventTestingMode);
+
+// Ask normal terminate listener. They could stop terminating the process.
 Desktop::TTerminateListenerList lCalledTerminationListener;
-bool  bVeto = false;
+bool bVeto = false;
 impl_sendQueryTerminationEvent(lCalledTerminationListener, bVeto);
 if ( bVeto )
 {
@@ -234,10 +239,6 @@ sal_Bool SAL_CALL Desktop::terminate()
 return false;
 }
 
-// try to close all open frames.
-// Allow using of any UI ... because Desktop.terminate() was designed as 
UI functionality in the past.
-bool bIsEventTestingMode = Application::IsEventTestingModeEnabled();
-bool bFramesClosed = impl_closeFrames(!bIsEventTestingMode);
 if (bIsEventTestingMode)
 {
 Application::Quit();
diff --git a/offapi/com/sun/star/frame/TerminationVetoException.idl 
b/offapi/com/sun/star/frame/TerminationVetoException.idl
index 99f58d5..135c9c1 100644
--- a/offapi/com/sun/star/frame/TerminationVetoException.idl
+++ b/offapi/com/sun/star/frame/TerminationVetoException.idl
@@ -33,6 +33,10 @@
 After his own operation will be finished, he MUST try to terminate the
 office again. Any other veto listener can intercept that again or office
 will die really.
+
+Since LibreOffice 5.3:
+Throwing this exception will only prevent *termination*.
+Exiting LibreOffice will close all the windows, but the process will keep 
running.
 
 
 @see XDesktop::terminate()
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Windows Build Query

2016-10-10 Thread Christian Lohmaier
Hi Jason,

On Sun, Oct 9, 2016 at 1:11 PM, Jason Marshall
 wrote:
> […]
> I then run the following command within the directory '/cygdrive/c/cygwin':
>
> /opt/lo/bin/make

you need to run make from with the same directory where you ran autogen.sh from.
That can be the source-directory or another directory you would like
to use for the build.

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


[Libreoffice-commits] core.git: 12 commits - extras/source

2016-10-10 Thread Francisco Adrián Sánchez
 extras/source/templates/presnt/AbstractGreen.otp  |binary
 extras/source/templates/presnt/AbstractRed.otp|binary
 extras/source/templates/presnt/AbstractYellow.otp |binary
 extras/source/templates/presnt/BrightBlue.otp |binary
 extras/source/templates/presnt/DNA.otp|binary
 extras/source/templates/presnt/Impress.otp|binary
 extras/source/templates/presnt/Inspiration.otp|binary
 extras/source/templates/presnt/LushGreen.otp  |binary
 extras/source/templates/presnt/Metropolis.otp |binary
 extras/source/templates/presnt/Midnightblue.otp   |binary
 extras/source/templates/presnt/Sunset.otp |binary
 extras/source/templates/presnt/Vintage.otp|binary
 12 files changed

New commits:
commit 25767162edf38134c4412cce2a7d938f4657cc2d
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:15:40 2016 +0200

Improve 'Midnightblue' template

Change-Id: I9d5acead074d745880d4c42e4ce9634c5b8cb5b3

diff --git a/extras/source/templates/presnt/Midnightblue.otp 
b/extras/source/templates/presnt/Midnightblue.otp
index 96945ef..981704c 100644
Binary files a/extras/source/templates/presnt/Midnightblue.otp and 
b/extras/source/templates/presnt/Midnightblue.otp differ
commit 73e5931cc72cb79747b6f3d1349009f33b7ea834
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:15:27 2016 +0200

Improve 'Metropolis' template

Change-Id: I968587a1cfdf2c55d299b1cd76996947c3244fae

diff --git a/extras/source/templates/presnt/Metropolis.otp 
b/extras/source/templates/presnt/Metropolis.otp
index 8669454..2af7d8a 100644
Binary files a/extras/source/templates/presnt/Metropolis.otp and 
b/extras/source/templates/presnt/Metropolis.otp differ
commit a425610dab2b58524f5d335a16e9926008a7a0cd
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:15:10 2016 +0200

Improve 'LushGreen' template

Change-Id: I43332495e9419eed2ac69c1d08b603e81fe7df6d

diff --git a/extras/source/templates/presnt/LushGreen.otp 
b/extras/source/templates/presnt/LushGreen.otp
index 936ae04..040e3bf 100644
Binary files a/extras/source/templates/presnt/LushGreen.otp and 
b/extras/source/templates/presnt/LushGreen.otp differ
commit 776d1efc3e915be189250c8c2d9346e2990d5836
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:14:54 2016 +0200

Improve 'Inspiration' template

Change-Id: Ic5401e89bd8653e856e93034f0c25373305cc35a

diff --git a/extras/source/templates/presnt/Inspiration.otp 
b/extras/source/templates/presnt/Inspiration.otp
index 8fbe822..18a30cf 100644
Binary files a/extras/source/templates/presnt/Inspiration.otp and 
b/extras/source/templates/presnt/Inspiration.otp differ
commit c555c06f8cccd2dc4dad8854696ff8a728c0ee88
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:14:39 2016 +0200

Improve 'Sunset' template

Change-Id: I7ab76407895073f2ecbfdfb5bf40235f24a48a34

diff --git a/extras/source/templates/presnt/Sunset.otp 
b/extras/source/templates/presnt/Sunset.otp
index 183165b..ff9ac1b 100644
Binary files a/extras/source/templates/presnt/Sunset.otp and 
b/extras/source/templates/presnt/Sunset.otp differ
commit 3c35e2cf3d0004bdad518b9729cd7bc876d46e51
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:14:23 2016 +0200

Improve 'Vintage' template

Change-Id: If6447b340faa61dec4e160078248207bd2c3f982

diff --git a/extras/source/templates/presnt/Vintage.otp 
b/extras/source/templates/presnt/Vintage.otp
index 0ce4d52..d34f839 100644
Binary files a/extras/source/templates/presnt/Vintage.otp and 
b/extras/source/templates/presnt/Vintage.otp differ
commit 1c3e9870ccc6f4a9054f2c961562336e7e13a03e
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:14:09 2016 +0200

Improve 'Impress' template

Change-Id: I8e6d50c52514926175694cec697f6b2e45cc0088

diff --git a/extras/source/templates/presnt/Impress.otp 
b/extras/source/templates/presnt/Impress.otp
index 04d21a5..ddf9a7e 100644
Binary files a/extras/source/templates/presnt/Impress.otp and 
b/extras/source/templates/presnt/Impress.otp differ
commit 6220260ee1baa74953623416c97f7eb26ec37dfb
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:13:58 2016 +0200

Improve 'DNA' template

Change-Id: Ib170f2f8540234a23484ce6386a00b8a4487a0fb

diff --git a/extras/source/templates/presnt/DNA.otp 
b/extras/source/templates/presnt/DNA.otp
index 9c07855..eb400b4 100644
Binary files a/extras/source/templates/presnt/DNA.otp and 
b/extras/source/templates/presnt/DNA.otp differ
commit 7cc1fd1d102856a0acaaa736851c32759633bf29
Author: Francisco Adrián Sánchez 
Date:   Mon Oct 10 11:13:43 2016 +0200

Improve 'Bright Blue' template

Change-Id: I763707658a5fdb9a8ce7488f70eb1db9f2c01fae

diff --git a/extras/source/templates/presnt/BrightBlue.otp 
b/extras/source/templates/presnt/BrightBlue.otp
index fd223cf..542fb25 100644
Binary files a/extras/source/templates/presnt/BrightBlue.otp and 
b/extras/source/templates/presnt/BrightBlue.otp differ
commit 7f1e35

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

2016-10-10 Thread Miklos Vajna
 sw/source/filter/html/htmltab.cxx | 1030 +++---
 1 file changed, 515 insertions(+), 515 deletions(-)

New commits:
commit eef6a23f85924cec8bf88265ccad168ac0afb42f
Author: Miklos Vajna 
Date:   Mon Oct 10 08:28:17 2016 +0200

sw: prefix members of HTMLTable

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

diff --git a/sw/source/filter/html/htmltab.cxx 
b/sw/source/filter/html/htmltab.cxx
index 0229c4a..fd71f50 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -369,87 +369,87 @@ typedef std::vector SdrObjects;
 
 class HTMLTable
 {
-OUString aId;
-OUString aStyle;
-OUString aClass;
-OUString aDir;
+OUString m_aId;
+OUString m_aStyle;
+OUString m_aClass;
+OUString m_aDir;
 
-SdrObjects *pResizeDrawObjs;// SDR objects
-std::vector *pDrawObjPrcWidths;   // column of draw object and 
its rel. width
+SdrObjects *m_pResizeDrawObjects;// SDR objects
+std::vector *m_pDrawObjectPrcWidths;   // column of draw 
object and its rel. width
 
 HTMLTableRows *m_pRows; ///< table rows
 HTMLTableColumns *m_pColumns;   ///< table columns
 
-sal_uInt16 nRows;   // number of rows
-sal_uInt16 nCols;   // number of columns
-sal_uInt16 nFilledCols; // number of filled columns
+sal_uInt16 m_nRows;   // number of rows
+sal_uInt16 m_nCols;   // number of columns
+sal_uInt16 m_nFilledColumns; // number of filled columns
 
-sal_uInt16 nCurRow; // current Row
-sal_uInt16 nCurCol; // current Column
+sal_uInt16 m_nCurrentRow; // current Row
+sal_uInt16 m_nCurrentColumn; // current Column
 
-sal_uInt16 nLeftMargin; // Space to the left margin (from 
paragraph edge)
-sal_uInt16 nRightMargin;// Space to the right margin (from 
paragraph edge)
+sal_uInt16 m_nLeftMargin; // Space to the left margin (from 
paragraph edge)
+sal_uInt16 m_nRightMargin;// Space to the right margin (from 
paragraph edge)
 
-sal_uInt16 nCellPadding;// Space from border to Text
-sal_uInt16 nCellSpacing;// Space between two cells
-sal_uInt16 nHSpace;
-sal_uInt16 nVSpace;
+sal_uInt16 m_nCellPadding;// Space from border to Text
+sal_uInt16 m_nCellSpacing;// Space between two cells
+sal_uInt16 m_nHSpace;
+sal_uInt16 m_nVSpace;
+
+sal_uInt16 m_nBoxes;  // number of boxes in the table
 
-sal_uInt16 nBoxes;  // number of boxes in the table
-
-const SwStartNode *pPrevStNd;   // the Table-Node or the Start-Node of the 
section before
-const SwTable *pSwTable;// SW-Table (only on Top-Level)
-SwTableBox *pBox1;  // TableBox, generated when the 
Top-Level-Table was build
-SwTableBoxFormat *pBoxFormat; // frame::Frame-Format from 
SwTableBox
-SwTableLineFormat *pLineFormat;   // frame::Frame-Format from 
SwTableLine
-SwTableLineFormat *pLineFrameFormatNoHeight;
-SvxBrushItem *pBGBrush; // background of the table
-SvxBrushItem *pInhBGBrush;  // "inherited" background of the table
-const SwStartNode *pCaptionStartNode;   // Start-Node of the table-caption
+const SwStartNode *m_pPrevStartNode;   // the Table-Node or the Start-Node 
of the section before
+const SwTable *m_pSwTable;// SW-Table (only on Top-Level)
+SwTableBox *m_pBox1;  // TableBox, generated when the 
Top-Level-Table was build
+SwTableBoxFormat *m_pBoxFormat; // frame::Frame-Format from 
SwTableBox
+SwTableLineFormat *m_pLineFormat;   // frame::Frame-Format from 
SwTableLine
+SwTableLineFormat *m_pLineFrameFormatNoHeight;
+SvxBrushItem *m_pBackgroundBrush; // background of the table
+SvxBrushItem *m_pInheritedBackgroundBrush;  // "inherited" background 
of the table
+const SwStartNode *m_pCaptionStartNode;   // Start-Node of the 
table-caption
 //lines for the border
-SvxBorderLine aTopBorderLine;
-SvxBorderLine aBottomBorderLine;
-SvxBorderLine aLeftBorderLine;
-SvxBorderLine aRightBorderLine;
-SvxBorderLine aBorderLine;
-SvxBorderLine aInhLeftBorderLine;
-SvxBorderLine aInhRightBorderLine;
-bool bTopBorder;// is there a line on the top of the table
-bool bRightBorder;  // is there a line on the top right of the 
table
-bool bTopAlwd;  // is it allowed to set the border?
-bool bRightAlwd;
-bool bFillerTopBorder;  // gets the left/right filler-cell a 
border on the
-bool bFillerBottomBorder;   // top or in the bottom
-boo

[Libreoffice-commits] core.git: basctl/source basic/qa basic/source chart2/source dbaccess/source filter/source idl/inc idl/source include/basic include/sfx2 include/svl include/svx include/tools repo

2016-10-10 Thread Jacek Fraczek
 basctl/source/basicide/baside2.cxx|6 
 basctl/source/basicide/baside2.hxx|4 
 basctl/source/basicide/baside2b.cxx   |   24 +-
 basctl/source/basicide/basides1.cxx   |2 
 basctl/source/basicide/basobj2.cxx|8 
 basctl/source/basicide/macrodlg.cxx   |2 
 basic/qa/cppunit/basic_coverage.cxx   |2 
 basic/qa/cppunit/basictest.cxx|6 
 basic/qa/cppunit/test_nested_struct.cxx   |   10 
 basic/qa/cppunit/test_vba.cxx |8 
 basic/source/basmgr/basmgr.cxx|   24 +-
 basic/source/classes/errobject.cxx|3 
 basic/source/classes/eventatt.cxx |   21 -
 basic/source/classes/image.cxx|2 
 basic/source/classes/sb.cxx   |   23 +-
 basic/source/classes/sbunoobj.cxx |  154 +++---
 basic/source/classes/sbxmod.cxx   |   54 ++--
 basic/source/comp/codegen.cxx |2 
 basic/source/runtime/methods.cxx  |   14 -
 basic/source/runtime/methods1.cxx |4 
 basic/source/runtime/props.cxx|2 
 basic/source/runtime/runtime.cxx  |  113 +-
 basic/source/sbx/sbxarray.cxx |   22 +-
 basic/source/sbx/sbxexec.cxx  |   24 +-
 basic/source/sbx/sbxobj.cxx   |   61 ++---
 basic/source/sbx/sbxvar.cxx   |8 
 chart2/source/controller/dialogs/DataBrowser.cxx  |4 
 dbaccess/source/ui/misc/TableCopyHelper.cxx   |4 
 dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx |2 
 filter/source/msfilter/msdffimp.cxx   |8 
 filter/source/msfilter/svdfppt.cxx|4 
 filter/source/msfilter/svxmsbas2.cxx  |2 
 idl/inc/basobj.hxx|2 
 idl/inc/globals.hxx   |2 
 idl/inc/object.hxx|2 
 idl/source/objects/object.cxx |4 
 idl/source/objects/slot.cxx   |6 
 idl/source/objects/types.cxx  |4 
 idl/source/prj/parser.cxx |   22 +-
 include/basic/sbmeth.hxx  |2 
 include/basic/sbstar.hxx  |2 
 include/basic/sbxobj.hxx  |6 
 include/sfx2/lnkbase.hxx  |4 
 include/sfx2/viewfrm.hxx  |3 
 include/svl/lckbitem.hxx  |2 
 include/svx/gridctrl.hxx  |2 
 include/tools/inetmsg.hxx |2 
 include/tools/ref.hxx |5 
 include/tools/stream.hxx  |2 
 reportdesign/source/filter/xml/xmlfilter.cxx  |2 
 reportdesign/source/ui/dlg/GroupsSorting.cxx  |2 
 sc/qa/unit/bugfix-test.cxx|2 
 sc/qa/unit/copy_paste_test.cxx|4 
 sc/qa/unit/subsequent_export-test.cxx |   68 +++---
 sc/source/core/data/validat.cxx   |2 
 sc/source/core/tool/interpr4.cxx  |   10 
 sc/source/filter/excel/excel.cxx  |2 
 sc/source/filter/excel/excimp8.cxx|2 
 sc/source/filter/excel/expop2.cxx |6 
 sc/source/filter/excel/xestream.cxx   |2 
 sc/source/filter/ftools/ftools.cxx|2 
 sc/source/filter/html/htmlpars.cxx|4 
 sc/source/filter/oox/worksheetsettings.cxx|3 
 sc/source/filter/xcl97/xcl97rec.cxx   |2 
 sc/source/filter/xml/xmlexprt.cxx |2 
 sc/source/ui/app/drwtrans.cxx |2 
 sc/source/ui/app/seltrans.cxx |8 
 sc/source/ui/app/transobj.cxx |4 
 sc/source/ui/docshell/docfunc.cxx |2 
 sc/source/ui/docshell/docsh3.cxx  |2 
 sc/source/ui/docshell/externalrefmgr.cxx  |4 
 sc/source/ui/pagedlg/areasdlg.cxx |2 
 sc/source/ui/unoobj/viewuno.cxx   |2 
 sc/source/ui/vba/vbaapplication.cxx   

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

2016-10-10 Thread Federico Bassini
 officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu|
4 ++--
 officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu |
2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 728c7327bd97602a38723553ed044ea4c01d13b2
Author: Federico Bassini 
Date:   Thu Oct 6 16:34:49 2016 +0200

tdf#101442 Change "hyperlink" to "link"

Change-Id: Ie68dcc9b3eb05fdbcceb5ca55cf58b47ca37540b
Reviewed-on: https://gerrit.libreoffice.org/29574
Reviewed-by: Samuel Mehrbrodt 
Tested-by: Samuel Mehrbrodt 

diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
index 0dd3b07..952a4f3 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
@@ -2140,12 +2140,12 @@
   
   
 
-  Edit Hyperlink
+  Edit Link
 
   
   
 
-  Remove Hyperlink
+  Remove Link
 
   
   
diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu
index ee0c7f0..eda008cc 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu
@@ -610,7 +610,7 @@
   
   
 
-  ~Hyperlink...
+  ~Link...
 
   
   
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - 11 commits - canvas/source drawinglayer/source include/svx reportdesign/source sc/inc sc/source sd/source svx/source sw/qa sw/source

2016-10-10 Thread Michael Stahl
 canvas/source/cairo/cairo_canvashelper.cxx|5 
 drawinglayer/source/processor2d/vclhelperbufferdevice.cxx |1 
 include/svx/svdundo.hxx   |   14 --
 reportdesign/source/core/inc/ReportUndoFactory.hxx|2 
 reportdesign/source/core/sdr/ReportUndoFactory.cxx|4 
 sc/inc/rangelst.hxx   |2 
 sc/inc/textuno.hxx|   21 +--
 sc/source/core/data/attrib.cxx|9 +
 sc/source/core/data/drwlayer.cxx  |2 
 sc/source/core/tool/rangelst.cxx  |   22 +++
 sc/source/filter/xml/celltextparacontext.cxx  |9 +
 sc/source/filter/xml/celltextparacontext.hxx  |3 
 sc/source/filter/xml/xmlcelli.cxx |6 -
 sc/source/filter/xml/xmlcelli.hxx |2 
 sc/source/filter/xml/xmlexprt.cxx |6 -
 sc/source/filter/xml/xmlimprt.cxx |1 
 sc/source/filter/xml/xmlimprt.hxx |1 
 sc/source/ui/undo/undoblk3.cxx|2 
 sc/source/ui/unoobj/fielduno.cxx  |   12 +-
 sc/source/ui/unoobj/textuno.cxx   |   38 --
 sd/source/core/drawdoc3.cxx   |   20 ---
 sd/source/ui/annotations/annotationwindow.cxx |4 
 sd/source/ui/func/undoback.cxx|   43 ---
 sd/source/ui/inc/undoback.hxx |6 -
 svx/source/dialog/frmsel.cxx  |1 
 svx/source/svdraw/svdundo.cxx |   84 --
 sw/qa/extras/odfimport/data/tdf103025.odt |binary
 sw/qa/extras/odfimport/odfimport.cxx  |9 +
 sw/source/core/layout/pagechg.cxx |   16 --
 vcl/inc/unx/gtk/gtkframe.hxx  |6 -
 vcl/inc/unx/gtk/gtkinst.hxx   |3 
 vcl/unx/gtk/gtkinst.cxx   |   21 +++
 vcl/unx/gtk/gtksalframe.cxx   |   16 ++
 vcl/unx/gtk3/gtk3gtkframe.cxx |   27 ++--
 34 files changed, 184 insertions(+), 234 deletions(-)

New commits:
commit 6c787e4a7a28d84b8a3f2ad5fa84d9d66ad4594e
Author: Michael Stahl 
Date:   Wed Oct 5 23:09:25 2016 +0200

tdf#103025 sw: don't format header/footer in SwPageFrame::PreparePage()

This has always been dead code because it used wrong constants
FRMTYPE_HEADER|FRMTYPE_FOOTER which is actually Page|Column and
SwPageFrame and SwColumnFrame are not direct children of SwPageFrame.

Then commit 901e5c3a21a1299d10c44bc844246fe8c329bb82 fixed the
constants but somehow the early formatting of header/footer results
in wrong expansion of variable text fields, so just remove this code.

(cherry picked from commit f933da55797566cf725e35ab0df17e91c7d5598f)

Reviewed-on: https://gerrit.libreoffice.org/29558
Tested-by: Jenkins 
Reviewed-by: Miklos Vajna 
(cherry picked from commit 63ba0dc9e12169e9a929231a01172c85fab2f628)

Change-Id: I0af13168970f26355a1b247e071235166d08b7a4

diff --git a/sw/qa/extras/odfimport/data/tdf103025.odt 
b/sw/qa/extras/odfimport/data/tdf103025.odt
new file mode 100644
index 000..bd1e573
Binary files /dev/null and b/sw/qa/extras/odfimport/data/tdf103025.odt differ
diff --git a/sw/qa/extras/odfimport/odfimport.cxx 
b/sw/qa/extras/odfimport/odfimport.cxx
index 79dae52..3a8e2a5 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -631,6 +631,15 @@ DECLARE_ODFIMPORT_TEST(testBnc800714, "bnc800714.fodt")
 CPPUNIT_ASSERT(getProperty(getParagraph(2), "ParaKeepTogether"));
 }
 
+DECLARE_ODFIMPORT_TEST(testTdf103025, "tdf103025.odt")
+{
+CPPUNIT_ASSERT_EQUAL(OUString("2014-01"), 
parseDump("/root/page[1]/header/tab[2]/row[2]/cell[3]/txt/Special", "rText"));
+CPPUNIT_ASSERT_EQUAL(OUString("2014-01"), 
parseDump("/root/page[2]/header/tab[2]/row[2]/cell[3]/txt/Special", "rText"));
+CPPUNIT_ASSERT_EQUAL(OUString("2014-02"), 
parseDump("/root/page[3]/header/tab[2]/row[2]/cell[3]/txt/Special", "rText"));
+CPPUNIT_ASSERT_EQUAL(OUString("2014-03"), 
parseDump("/root/page[4]/header/tab[2]/row[2]/cell[3]/txt/Special", "rText"));
+CPPUNIT_ASSERT_EQUAL(OUString("2014-03"), 
parseDump("/root/page[5]/header/tab[2]/row[2]/cell[3]/txt/Special", "rText"));
+}
+
 DECLARE_ODFIMPORT_TEST(testTdf76322_columnBreakInHeader, 
"tdf76322_columnBreakInHeader.docx")
 {
 // column breaks were ignored. First line should start in column 2
diff --git a/sw/source/core/layout/pagechg.cxx 
b/sw/source/core/layout/pagechg.cxx
index b9babcb..b9861b2 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -465

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

2016-10-10 Thread Noel Grandin
 include/vcl/combobox.hxx  |3 --
 include/vcl/lstbox.hxx|2 -
 include/vcl/morebtn.hxx   |3 --
 include/vcl/slider.hxx|1 
 include/vcl/splitwin.hxx  |1 
 include/vcl/toolbox.hxx   |2 -
 vcl/backendtest/VisualBackendTest.cxx |5 ---
 vcl/inc/listbox.hxx   |3 --
 vcl/source/control/combobox.cxx   |6 
 vcl/source/control/imp_listbox.cxx|5 ---
 vcl/source/control/morebtn.cxx|   10 ---
 vcl/source/control/slider.cxx |5 ---
 vcl/source/window/dockmgr.cxx |   12 -
 vcl/source/window/dockwin.cxx |   18 --
 vcl/source/window/splitwin.cxx|5 ---
 vcl/source/window/toolbox.cxx |   10 ---
 vcl/workben/svdem.cxx |   43 --
 vcl/workben/svpclient.cxx |   42 -
 vcl/workben/svptest.cxx   |   36 
 19 files changed, 212 deletions(-)

New commits:
commit 044260331d61e97281539d8dfdcbb64089751437
Author: Noel Grandin 
Date:   Mon Oct 10 08:14:07 2016 +0200

loplugin:unnecessaryoverride in vcl

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

diff --git a/include/vcl/combobox.hxx b/include/vcl/combobox.hxx
index d4dcfb9..07f5427 100644
--- a/include/vcl/combobox.hxx
+++ b/include/vcl/combobox.hxx
@@ -58,7 +58,6 @@ public:
 
 virtual voidDraw( OutputDevice* pDev, const Point& rPos, const Size& 
rSize, DrawFlags nFlags ) override;
 virtual voidResize() override;
-virtual boolPreNotify( NotifyEvent& rNEvt ) override;
 virtual boolNotify( NotifyEvent& rNEvt ) override;
 virtual voidStateChanged( StateChangedType nType ) override;
 virtual voidDataChanged( const DataChangedEvent& rDCEvt ) override;
@@ -72,8 +71,6 @@ public:
 virtual const Wallpaper& GetDisplayBackground() const override;
 
 virtual voidsetPosSizePixel( long nX, long nY, long nWidth, long 
nHeight, PosSizeFlags nFlags = PosSizeFlags::All ) override;
-voidSetPosSizePixel( const Point& rNewPos, const Size& 
rNewSize ) override
-{ Edit::SetPosSizePixel( rNewPos, rNewSize ); }
 
 Rectangle   GetDropDownPosSizePixel() const;
 
diff --git a/include/vcl/lstbox.hxx b/include/vcl/lstbox.hxx
index 3133304..4f22c06 100644
--- a/include/vcl/lstbox.hxx
+++ b/include/vcl/lstbox.hxx
@@ -138,8 +138,6 @@ public:
 
 virtual voidsetPosSizePixel( long nX, long nY,
  long nWidth, long nHeight, 
PosSizeFlags nFlags = PosSizeFlags::All ) override;
-voidSetPosSizePixel( const Point& rNewPos, const Size& 
rNewSize ) override
-{ Control::SetPosSizePixel( rNewPos, rNewSize ); }
 
 Rectangle   GetDropDownPosSizePixel() const;
 
diff --git a/include/vcl/morebtn.hxx b/include/vcl/morebtn.hxx
index 4204366..36ebd94 100644
--- a/include/vcl/morebtn.hxx
+++ b/include/vcl/morebtn.hxx
@@ -51,9 +51,6 @@ public:
 voidClick() override;
 
 using PushButton::SetState;
-
-voidSetText( const OUString& rNewText ) override;
-OUStringGetText() const override;
 };
 
 #endif // INCLUDED_VCL_MOREBTN_HXX
diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx
index 3ab014c..72d4bc9 100644
--- a/include/vcl/slider.hxx
+++ b/include/vcl/slider.hxx
@@ -88,7 +88,6 @@ public:
 virtual voidKeyInput( const KeyEvent& rKEvt ) override;
 virtual voidPaint(vcl::RenderContext& rRenderContext, const Rectangle& 
rRect) override;
 virtual voidResize() override;
-virtual voidRequestHelp( const HelpEvent& rHEvt ) override;
 virtual voidStateChanged( StateChangedType nType ) override;
 virtual voidDataChanged( const DataChangedEvent& rDCEvt ) override;
 
diff --git a/include/vcl/splitwin.hxx b/include/vcl/splitwin.hxx
index 2be7030..96ecd89 100644
--- a/include/vcl/splitwin.hxx
+++ b/include/vcl/splitwin.hxx
@@ -137,7 +137,6 @@ public:
 virtual voidMouseMove( const MouseEvent& rMEvt ) override;
 virtual voidTracking( const TrackingEvent& rTEvt ) override;
 virtual voidPaint( vcl::RenderContext& rRenderContext, const 
Rectangle& rRect ) override;
-virtual voidMove() override;
 virtual voidResize() override;
 virtual voidRequestHelp( const HelpEvent& rHEvt ) override;
 virtual voidStateChanged( StateChangedType nType ) override;
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index f1ad481..cdc368d 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -276,7 +276,6 @@ public:
 virtual voidMouseMove( const Mouse

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

2016-10-10 Thread Federico Bassini
 cui/source/dialogs/hyperdlg.src  |6 
++---
 cui/uiconfig/ui/hyperlinkdialog.ui   |2 -
 cui/uiconfig/ui/hyperlinkinternetpage.ui |2 -
 officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu |6 
++---
 officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu  |   12 
+-
 5 files changed, 14 insertions(+), 14 deletions(-)

New commits:
commit 06dec56d96603026921311c6ddfa41ed6b5879d5
Author: Federico Bassini 
Date:   Thu Oct 6 11:08:11 2016 +0200

tdf#101442 Change "hyperlink" to "link" for a modern vocabulary

Change-Id: Ib1c067b6d45e959d6cd0fbf00cab167939554203
Reviewed-on: https://gerrit.libreoffice.org/29572
Reviewed-by: Samuel Mehrbrodt 
Tested-by: Samuel Mehrbrodt 

diff --git a/cui/source/dialogs/hyperdlg.src b/cui/source/dialogs/hyperdlg.src
index 0ebc1e0..941d8b2 100644
--- a/cui/source/dialogs/hyperdlg.src
+++ b/cui/source/dialogs/hyperdlg.src
@@ -49,7 +49,7 @@ String RID_SVXSTR_HYPERDLG_HLINETTP
 };
 String RID_SVXSTR_HYPERDLG_HLINETTP_HELP
 {
-Text [ en-US ] = "This is where you create a hyperlink to a Web page or 
FTP server connection." ;
+Text [ en-US ] = "This is where you create a link to a Web page or FTP 
server connection." ;
 };
 
 String RID_SVXSTR_HYPERDLG_HLMAILTP
@@ -58,7 +58,7 @@ String RID_SVXSTR_HYPERDLG_HLMAILTP
 };
 String RID_SVXSTR_HYPERDLG_HLMAILTP_HELP
 {
-Text [ en-US ] = "This is where you create a hyperlink to an e-mail 
address." ;
+Text [ en-US ] = "This is where you create a link to an e-mail address." ;
 };
 
 String RID_SVXSTR_HYPERDLG_HLDOCTP
@@ -67,7 +67,7 @@ String RID_SVXSTR_HYPERDLG_HLDOCTP
 };
 String RID_SVXSTR_HYPERDLG_HLDOCTP_HELP
 {
-Text [ en-US ] = "This is where you create a hyperlink to an existing 
document or a target within a document." ;
+Text [ en-US ] = "This is where you create a link to an existing document 
or a target within a document." ;
 };
 
 String RID_SVXSTR_HYPERDLG_HLDOCNTP
diff --git a/cui/uiconfig/ui/hyperlinkdialog.ui 
b/cui/uiconfig/ui/hyperlinkdialog.ui
index 4ebf47e..0152824 100644
--- a/cui/uiconfig/ui/hyperlinkdialog.ui
+++ b/cui/uiconfig/ui/hyperlinkdialog.ui
@@ -8,7 +8,7 @@
 True
 True
 6
-Hyperlink
+Link
 dialog
 
   
diff --git a/cui/uiconfig/ui/hyperlinkinternetpage.ui 
b/cui/uiconfig/ui/hyperlinkinternetpage.ui
index 047799f..a185e0b 100644
--- a/cui/uiconfig/ui/hyperlinkinternetpage.ui
+++ b/cui/uiconfig/ui/hyperlinkinternetpage.ui
@@ -189,7 +189,7 @@
   
 True
 False
-Hyperlink Type
+Link Type
 
   
 
diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
index ecf8c93..470daaa 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
@@ -3158,7 +3158,7 @@
   
   
 
-  Open Hyperlink
+  Open Link
 
   
   
@@ -3821,10 +3821,10 @@
   
   
 
-  ~Hyperlink...
+  ~Link...
 
 
-  Insert Hyperlink
+  Insert Link
 
 
   9
diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
index 8df4e92..177ab9b 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
@@ -375,20 +375,20 @@
   
   
 
-  ~Hyperlink
+  ~Link
 
 
-  Edit Hyperlink...
+  Edit Link...
 
   
   
 
-  Remove Hyperlink
+  Remove Link
 
   
   
 
-  Copy Hyperlink Location
+  Copy Link Location
 
   
   
@@ -476,7 +476,7 @@
   
   
 
-  Insert Hyperlink
+  Insert Link
 
   
   
@@ -865,7 +865,7 @@
   
   
 
-  Hyperlinks Active
+  Links Active
 
   
   
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: README.md

2016-10-10 Thread Adolfo Jayme Barrientos
 README.md |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 65f2d6b1cc40b4b90f8987e8ea14d24b5f38f950
Author: Adolfo Jayme Barrientos 
Date:   Mon Oct 10 03:22:53 2016 -0500

README.md: Add CII Best Practices badge

Change-Id: I9bba2714fafe4d14c28348d36b0530a8109e1845

diff --git a/README.md b/README.md
index 9a98098..b376110 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
 # LibreOffice
-[![Coverity Scan Build 
Status](https://scan.coverity.com/projects/211/badge.svg)](https://scan.coverity.com/projects/211)
+[![Coverity Scan Build 
Status](https://scan.coverity.com/projects/211/badge.svg)](https://scan.coverity.com/projects/211)
 [![CII Best 
Practices](https://bestpractices.coreinfrastructure.org/projects/307/badge)](https://bestpractices.coreinfrastructure.org/projects/307)
 
 LibreOffice is an integrated office suite based on copyleft licenses
 and compatible with most document formats and standards. Libreoffice
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: include/editeng include/sfx2

2016-10-10 Thread Caolán McNamara
 include/editeng/edtdlg.hxx   |1 -
 include/editeng/itemtype.hxx |1 -
 include/sfx2/sfxdlg.hxx  |1 -
 include/sfx2/viewfac.hxx |1 -
 4 files changed, 4 deletions(-)

New commits:
commit a1c77e9d3afd27b4b5603cffc6f3aea0577987fc
Author: Caolán McNamara 
Date:   Mon Oct 10 08:54:18 2016 +0100

drop some unused forward declarations and includes

Change-Id: Ibf5b915798f1a9554d06c705d454cbfb998ea277

diff --git a/include/editeng/edtdlg.hxx b/include/editeng/edtdlg.hxx
index da9d347..ea0c5ec 100644
--- a/include/editeng/edtdlg.hxx
+++ b/include/editeng/edtdlg.hxx
@@ -34,7 +34,6 @@ namespace com { namespace sun { namespace star { namespace 
linguistic2
 } } } }
 
 namespace vcl { class Window; }
-class ResId;
 class SvxSpellWrapper;
 class Button;
 class CheckBox;
diff --git a/include/editeng/itemtype.hxx b/include/editeng/itemtype.hxx
index eea1b0a..873d5cd 100644
--- a/include/editeng/itemtype.hxx
+++ b/include/editeng/itemtype.hxx
@@ -24,7 +24,6 @@
 
 // forward ---
 #include 
-#include 
 #include 
 #include 
 #include 
diff --git a/include/sfx2/sfxdlg.hxx b/include/sfx2/sfxdlg.hxx
index 5469ea3..071e3f8 100644
--- a/include/sfx2/sfxdlg.hxx
+++ b/include/sfx2/sfxdlg.hxx
@@ -36,7 +36,6 @@ class SfxTabPage;
 class SfxViewFrame;
 class SfxBindings;
 class SfxItemSet;
-class ResId;
 namespace vcl { class Window; }
 namespace rtl {
class OUString;
diff --git a/include/sfx2/viewfac.hxx b/include/sfx2/viewfac.hxx
index 541b18f..2bff0da 100644
--- a/include/sfx2/viewfac.hxx
+++ b/include/sfx2/viewfac.hxx
@@ -22,7 +22,6 @@
 #include 
 #include 
 #include 
-#include 
 
 class SfxViewFrame;
 class SfxViewShell;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2016-10-10 Thread Noel Grandin
 include/tools/resid.hxx|   21 +
 tools/source/rc/resmgr.cxx |6 +++---
 2 files changed, 12 insertions(+), 15 deletions(-)

New commits:
commit cc589883a98e8d21c57480719c9d4380fc292a59
Author: Noel Grandin 
Date:   Wed Oct 5 15:28:34 2016 +0200

rename SetResMgr to ClearResMgr

since that is it's only use.
Also clean up the comment block nearby.

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

diff --git a/include/tools/resid.hxx b/include/tools/resid.hxx
index 29452c6..0feec42 100644
--- a/include/tools/resid.hxx
+++ b/include/tools/resid.hxx
@@ -35,15 +35,16 @@ class ResMgr;
 class ResId
 {
 /*
-consider two cases: either m_pResource is valid and points
-two a resource data buffer; then m_nResId and m_pResMgr are
-not used and may be 0 resp. NULL
-or m_pResource is NULL, the m_nResId and m_pResMgr must be valid.
-In this case the highest bit if set decides whether to
-not to release the Resource context after loading this id
+Consider two cases:
+either
+(a) m_pResource is valid and points to a resource data buffer;
+then m_nResId and m_pResMgr are not used and may be 0 and nullptr 
respectively
+or
+(b) m_pResource is NULL, then m_nResId and m_pResMgr must be valid.
+In this case the highest bit, if set, decides whether or not to
+release the Resource context after loading this id.
 */
 RSHEADER_TYPE*  m_pResource;
-
 mutable sal_uInt32  m_nResId;  // Resource Identifier
 mutable RESOURCE_TYPE   m_nRT; // type for loading (mutable to be 
set later)
 mutable ResMgr *m_pResMgr; // load from this ResMgr (mutable 
for setting on demand)
@@ -85,11 +86,7 @@ public:
  }
 
 ResMgr *GetResMgr() const { return m_pResMgr; }
-voidSetResMgr( ResMgr * pMgr ) const
-{
-m_pResMgr = pMgr;
-OSL_ENSURE( m_pResMgr != nullptr, "invalid ResMgr set on ResId" );
-}
+voidClearResMgr() const { m_pResMgr = nullptr; }
 
 const ResId &  SetAutoRelease(bool bRelease) const
 {
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 473b900..18d4a59 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -923,7 +923,7 @@ bool ResMgr::IsAvailable( const ResId& rId, const Resource* 
pResObj ) const
 if( pMgr->pFallbackResMgr )
 {
 ResId aId( rId );
-aId.SetResMgr( nullptr );
+aId.ClearResMgr();
 return pMgr->pFallbackResMgr->IsAvailable( aId, pResObj );
 }
 
@@ -961,7 +961,7 @@ bool ResMgr::GetResource( const ResId& rId, const Resource* 
pResObj )
 if( pFallbackResMgr )
 {
 ResId aId( rId );
-aId.SetResMgr( nullptr );
+aId.ClearResMgr();
 return pFallbackResMgr->GetResource( aId, pResObj );
 }
 
@@ -1094,7 +1094,7 @@ RSHEADER_TYPE* ResMgr::CreateBlock( const ResId& rId )
 if( pFallbackResMgr )
 {
 ResId aId( rId );
-aId.SetResMgr( nullptr );
+aId.ClearResMgr();
 return pFallbackResMgr->CreateBlock( aId );
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: concat of OUStringBuffer

2016-10-10 Thread Stephan Bergmann

On 10/09/2016 10:42 AM, Laurent BP wrote:

aLCIDString does not contain anymore "[$-some string]" but something like
"[$-[$-[$-0]". Is it a new feature?


If you want an answer, give meaningful information:  What code are you 
talking about?  What exactly do you observe ("calling function X with 
args Y, Z, it returns V instead of expected W")?  What to do at the LO 
GUI to trigger that code?  etc.

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


[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-1-0' - 2 commits - loleaflet/dist loleaflet/src

2016-10-10 Thread Andras Timar
 loleaflet/dist/toolbar/toolbar.js|4 +---
 loleaflet/src/control/Control.Menubar.js |8 +++-
 2 files changed, 8 insertions(+), 4 deletions(-)

New commits:
commit b7c4ae87276bc0f311e331fc594acbcceed8a663
Author: Andras Timar 
Date:   Tue Oct 4 11:21:10 2016 +0200

loleaflet: add Insert Footnote, Endnote, Page and Column break to Writer 
menu

(cherry picked from commit b5f95c2aed1c8af9577ac90e0a8a89de049f6852)

diff --git a/loleaflet/src/control/Control.Menubar.js 
b/loleaflet/src/control/Control.Menubar.js
index e2113b7..dd8b867 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -25,7 +25,13 @@ L.Control.Menubar = L.Control.extend({

{name: _('Select all'), type: 'unocommand', uno: 
'.uno:SelectAll'}]
},
{name: _('Insert'), type: 'menu', menu: [{name: 
_('Image'), id: 'insertgraphic', type: 'action'},
-   
  {name: _('Comment'), type: 'unocommand', uno: 
'.uno:InsertAnnotation'}]
+   
{name: _('Comment'), type: 'unocommand', uno: 
'.uno:InsertAnnotation'},
+   
{type: 'separator'},
+   
{name: _('Footnote'), type: 'unocommand', uno: 
'.uno:InsertFootnote'},
+   
{name: _('Endnote'), type: 'unocommand', uno: 
'.uno:InsertEndnote'},
+   
{type: 'separator'},
+   
{name: _('Page break'), type: 'unocommand', uno: 
'.uno:InsertPageBreak'},
+   
{name: _('Column break'), type: 'unocommand', uno: 
'.uno:InsertColumnBreak'}]
},
{name: _('View'), type: 'menu', menu: [{name: _('Full 
screen'), id: 'fullscreen', type: 'action'},

{type: 'separator'},
commit 6252c25969461a10ff8035d656f54ffb11d0c30d
Author: Henry Castro 
Date:   Thu Oct 6 10:03:21 2016 -0400

loleaflet: add .uno:AutoSum

(cherry picked from commit 0f86fde3e0792dce5808d6448845a5a9cfa330b0)

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index 83334ff..816bf3d 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -185,9 +185,7 @@ function onClick(id, item, subItem) {
setTimeout(function () 
{$('#backColorPicker').colorpicker('showPalette');}, 0);
}
else if (id === 'sum') {
-   L.DomUtil.get('formulaInput').value = '=SUM()';
-   L.DomUtil.get('formulaInput').focus();
-   map.cellEnterString(L.DomUtil.get('formulaInput').value);
+   map.sendUnoCommand('.uno:AutoSum');
}
else if (id === 'function') {
L.DomUtil.get('formulaInput').value = '=';
___
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-1-0' - loleaflet/src

2016-10-10 Thread Henry Castro
 loleaflet/src/control/Control.ColumnHeader.js |4 ++--
 loleaflet/src/control/Control.RowHeader.js|4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 5a71755f36717f71c54bd41c884b2d6d23b9546c
Author: Henry Castro 
Date:   Sun Oct 9 11:43:26 2016 -0400

loleaflet: increase re-size cursor zone

(cherry picked from commit 7f514422c3fe8347b3e6baad51f95f8ba541f3a7)

diff --git a/loleaflet/src/control/Control.ColumnHeader.js 
b/loleaflet/src/control/Control.ColumnHeader.js
index ef67d60..0535b8c 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -142,8 +142,8 @@ L.Control.ColumnHeader = L.Control.Header.extend({
resize.column = iterator + 1;
resize.width = width;
L.DomUtil.setStyle(column, 'width', width + 
'px');
-   L.DomUtil.setStyle(text, 'width', width - 3 + 
'px');
-   L.DomUtil.setStyle(resize, 'width', '3px');
+   L.DomUtil.setStyle(text, 'width', width - 6 + 
'px');
+   L.DomUtil.setStyle(resize, 'width', '6px');
this.mouseInit(resize);
}
L.DomEvent.addListener(text, 'click', 
this._onColumnHeaderClick, this);
diff --git a/loleaflet/src/control/Control.RowHeader.js 
b/loleaflet/src/control/Control.RowHeader.js
index 2236c20..28d501e 100644
--- a/loleaflet/src/control/Control.RowHeader.js
+++ b/loleaflet/src/control/Control.RowHeader.js
@@ -140,8 +140,8 @@ L.Control.RowHeader = L.Control.Header.extend({
resize.height = height;
L.DomUtil.setStyle(row, 'height', height + 
'px');
L.DomUtil.setStyle(text, 'line-height', height 
+ 'px');
-   L.DomUtil.setStyle(text, 'height', height - 3 + 
'px');
-   L.DomUtil.setStyle(resize, 'height', '3px');
+   L.DomUtil.setStyle(text, 'height', height - 6 + 
'px');
+   L.DomUtil.setStyle(resize, 'height', '6px');
this.mouseInit(resize);
}
L.DomEvent.addListener(text, 'click', 
this._onRowHeaderClick, this);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: 2 commits - loleaflet/dist loleaflet/src loolwsd/LOOLKit.cpp

2016-10-10 Thread Pranav Kant
 loleaflet/dist/toolbar/toolbar.js |2 -
 loleaflet/src/core/LOUtil.js  |   20 +---
 loleaflet/src/layer/tile/TileLayer.js |   14 
 loleaflet/src/map/Map.js  |   15 +++--
 loolwsd/LOOLKit.cpp   |   53 --
 5 files changed, 72 insertions(+), 32 deletions(-)

New commits:
commit 0ad39593d02e139e5f0bba0b8262d7c12563663a
Author: Pranav Kant 
Date:   Thu Oct 6 20:07:53 2016 +0530

loleaflet: Use view colors directly from core

Change-Id: I2fdffd6dd0823a77ff52e40150a81db4b261ec81

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index fc35a45..9003281 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1346,7 +1346,7 @@ map.on('addview', function(e) {
}, 3000);
 
var username = e.username;
-   var color = L.LOUtil.getViewIdHexColor(e.viewId);
+   var color = L.LOUtil.rgbToHex(e.color);
if (e.viewId === map._docLayer._viewId) {
username = _('You');
color = '#000';
diff --git a/loleaflet/src/core/LOUtil.js b/loleaflet/src/core/LOUtil.js
index 24c516b..4ebb9d1 100644
--- a/loleaflet/src/core/LOUtil.js
+++ b/loleaflet/src/core/LOUtil.js
@@ -3,20 +3,6 @@
  */
 
 L.LOUtil = {
-   // Based on core.git's colordata.hxx: 
COL_AUTHOR1_DARK...COL_AUTHOR9_DARK
-   // consisting of arrays of RGB values
-   // Maybe move the color logic to separate file when it becomes complex
-   darkColors: [
-   [198, 146, 0],
-   [87, 157,  28],
-   [105,  43, 157],
-   [197,   0,  11],
-   [0, 128, 128],
-   [140, 132,  0],
-   [53,  85, 107],
-   [209, 118,   0]
-   ],
-
startSpinner: function (spinnerCanvas, spinnerSpeed) {
var spinnerInterval;
spinnerCanvas.width = 50;
@@ -42,9 +28,7 @@ L.LOUtil = {
return spinnerInterval;
},
 
-   getViewIdHexColor: function(viewId) {
-   var color = this.darkColors[(viewId + 1) % 
this.darkColors.length];
-   var hex = color[2] | (color[1] << 8) | (color[0] << 16);
-   return '#' + ('00' + hex.toString(16)).slice(-6);
+   rgbToHex: function(color) {
+   return '#' + ('00' + color.toString(16)).slice(-6);
}
 };
diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index a5aad09..452a93c 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -682,7 +682,7 @@ L.TileLayer = L.GridLayer.extend({
 
if 
(!this._isEmptyRectangle(this._cellViewCursors[viewId].bounds) && 
this._selectedPart === viewPart) {
if (!cellViewCursorMarker) {
-   var borderColor = 
L.LOUtil.getViewIdHexColor(viewId);
+   var borderColor = 
L.LOUtil.rgbToHex(this._map.getViewColor(viewId));
cellViewCursorMarker = 
L.rectangle(this._cellViewCursors[viewId].bounds, {fill: false, color: 
borderColor, weight: 2});
this._cellViewCursors[viewId].marker = 
cellViewCursorMarker;

cellViewCursorMarker.bindPopup(this._map.getViewName(viewId), {autoClose: 
false, autoPan: false, borderColor: borderColor});
@@ -714,8 +714,8 @@ L.TileLayer = L.GridLayer.extend({
this._onUpdateViewCursor(viewId);
},
 
-   _addView: function(viewId, username) {
-   this._map.addView(viewId, username);
+   _addView: function(viewId, username, color) {
+   this._map.addView(viewId, username, color);
 
//TODO: We can initialize color and other properties here.
if (typeof this._viewCursors[viewId] !== 'undefined') {
@@ -755,7 +755,7 @@ L.TileLayer = L.GridLayer.extend({
var viewIds = [];
for (var viewInfoIdx in viewInfo) {
if (!(parseInt(viewInfo[viewInfoIdx].id) in 
this._map._viewInfo)) {
-   this._addView(viewInfo[viewInfoIdx].id, 
viewInfo[viewInfoIdx].username);
+   this._addView(viewInfo[viewInfoIdx].id, 
viewInfo[viewInfoIdx].username, viewInfo[viewInfoIdx].color);
}
viewIds.push(viewInfo[viewInfoIdx].id);
}
@@ -1235,7 +1235,7 @@ L.TileLayer = L.GridLayer.extend({
   (this._docType === 'text' || this._selectedPart === 
viewPart)) {
if (!viewCursorMarker) {
var viewCursorOptions = {
-   color: 
L.LOUtil.getViewIdHexColor(viewId),
+   color: 
L.LOUtil.rgbToHex(this._map.getViewColor(viewId)),
   

[Libreoffice-commits] core.git: 7 commits - desktop/source extras/source svx/Library_svx.mk svx/qa svx/source svx/uiconfig svx/UIConfig_svx.mk svx/util

2016-10-10 Thread Francisco Adrián Sánchez
 desktop/source/app/app.cxx  |   21 +++
 desktop/source/app/cmdlineargs.cxx  |5 
 desktop/source/app/cmdlineargs.hxx  |2 
 desktop/source/app/cmdlinehelp.cxx  |2 
 extras/source/templates/presnt/Alizarin.otp |binary
 extras/source/templates/presnt/Focus.otp|binary
 extras/source/templates/presnt/Pencil.otp   |binary
 extras/source/templates/presnt/Vivid.otp|binary
 svx/Library_svx.mk  |2 
 svx/UIConfig_svx.mk |1 
 svx/qa/unit/data/svx-dialogs-test.txt   |2 
 svx/source/dialog/SafeModeDialog.cxx|   65 
 svx/source/dialog/SafeModeDialog.hxx|   44 
 svx/source/dialog/SafeModeUI.cxx|   99 ++
 svx/uiconfig/ui/safemodedialog.ui   |  148 
 svx/util/svx.component  |4 
 16 files changed, 394 insertions(+), 1 deletion(-)

New commits:
commit 842873d37c2716ced5674ebaadfb2fae9620632d
Author: Francisco Adrián Sánchez 
Date:   Fri Oct 7 18:51:41 2016 +0200

Improve 'Pencil' template

Change-Id: Ic4590752354376e9dcd534560918b3463c156411

diff --git a/extras/source/templates/presnt/Pencil.otp 
b/extras/source/templates/presnt/Pencil.otp
index 1ef4d13..549714b 100644
Binary files a/extras/source/templates/presnt/Pencil.otp and 
b/extras/source/templates/presnt/Pencil.otp differ
commit 2d997a78fabcc45937e235a92394bca71cc53f90
Author: Francisco Adrián Sánchez 
Date:   Fri Oct 7 18:51:26 2016 +0200

Improve 'Focus' template

Change-Id: I00ded55d07dc1d0e4abf26a53ccc499cf4db6dac

diff --git a/extras/source/templates/presnt/Focus.otp 
b/extras/source/templates/presnt/Focus.otp
index 7d52177..18b3eca 100644
Binary files a/extras/source/templates/presnt/Focus.otp and 
b/extras/source/templates/presnt/Focus.otp differ
commit ef92954906fe3d4658876fcccb4fd7e239b5185f
Author: Francisco Adrián Sánchez 
Date:   Fri Oct 7 18:51:00 2016 +0200

Improve 'Alizarin' template

Change-Id: Ia19f8df552e737b936cbf234b8f91f2846486c1c

diff --git a/extras/source/templates/presnt/Alizarin.otp 
b/extras/source/templates/presnt/Alizarin.otp
index f47e4eb..dcd05bb 100644
Binary files a/extras/source/templates/presnt/Alizarin.otp and 
b/extras/source/templates/presnt/Alizarin.otp differ
commit f9a427680f59be8591b5e5d750ce0189a6becd54
Author: Samuel Mehrbrodt 
Date:   Fri Oct 7 18:19:25 2016 +0200

Show dialog when starting in safe mode

Change-Id: Ie4b5f5b7309735dfa844bbaba9cb2763a3de3dc1

diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 3456db2..bb836d2 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1056,6 +1056,22 @@ void handleCrashReport()
 }
 #endif
 
+void handleSafeMode()
+{
+static const char SERVICENAME_SAFEMODE[] = 
"com.sun.star.comp.svx.SafeModeUI";
+
+css::uno::Reference< css::uno::XComponentContext > xContext = 
::comphelper::getProcessComponentContext();
+
+Reference< css::frame::XSynchronousDispatch > xSafeModeUI(
+
xContext->getServiceManager()->createInstanceWithContext(SERVICENAME_SAFEMODE, 
xContext),
+css::uno::UNO_QUERY_THROW);
+
+css::util::URL aURL;
+css::uno::Any aRet = xSafeModeUI->dispatchWithReturnValue(aURL, 
css::uno::Sequence< css::beans::PropertyValue >());
+bool bRet = false;
+aRet >>= bRet;
+}
+
 /** @short  check if recovery must be started or not.
 
 @param  bCrashed [boolean ... out!]
@@ -2029,6 +2045,11 @@ void Desktop::OpenClients()
 // need some time, where the user won't see any results and wait for 
finishing the office startup...
 bool bAllowRecoveryAndSessionManagement = ( !rArgs.IsNoRestore() ) && ( 
!rArgs.IsHeadless()  );
 
+// Enter safe mode if requested
+if (rArgs.IsSafeMode())
+handleSafeMode();
+
+
 #if HAVE_FEATURE_BREAKPAD
 if (crashReportInfoExists())
 handleCrashReport();
diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk
index e564af8..2c91b13 100644
--- a/svx/Library_svx.mk
+++ b/svx/Library_svx.mk
@@ -146,6 +146,8 @@ $(eval $(call gb_Library_add_exception_objects,svx,\
 svx/source/dialog/rlrcitem \
 svx/source/dialog/rubydialog \
 svx/source/dialog/rulritem \
+svx/source/dialog/SafeModeDialog \
+svx/source/dialog/SafeModeUI \
 svx/source/dialog/SpellDialogChildWindow \
 svx/source/dialog/srchctrl \
 svx/source/dialog/srchdlg \
diff --git a/svx/UIConfig_svx.mk b/svx/UIConfig_svx.mk
index bd9c6d8..65b9bde 100644
--- a/svx/UIConfig_svx.mk
+++ b/svx/UIConfig_svx.mk
@@ -64,6 +64,7 @@ $(eval $(call gb_UIConfig_add_uifiles,svx,\
svx/uiconfig/ui/redlinecontrol \
svx/uiconfig/ui/redlinefilterpage \
svx/uiconfig/ui/redlineviewpage \
+   svx/uiconfig/ui/safemodedialog \
svx/uiconfig/ui/savemodifieddialog \
svx/uiconfig/ui/sidebararea \
svx/uiconfig/ui/sidebarshadow \
diff --git a/svx/sourc