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

2013-07-14 Thread Tomaž Vajngerl
 sc/AllLangResTarget_sc.mk  |1 
 sc/UIConfig_scalc.mk   |1 
 sc/inc/globstr.hrc |   21 ++
 sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx |   54 ++---
 sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.src |   99 
++
 5 files changed, 150 insertions(+), 26 deletions(-)

New commits:
commit 79aa0c50dae2ff6d143d99212d3a32a8ac28f306
Author: Tomaž Vajngerl 
Date:   Mon Jul 15 08:31:52 2013 +0200

RNG: Externalize strings and add .ui to UIConfig

Change-Id: I98620d235044365bcc67e29a72f036f5fdfd5e45

diff --git a/sc/AllLangResTarget_sc.mk b/sc/AllLangResTarget_sc.mk
index 52a6ec3..536e954 100644
--- a/sc/AllLangResTarget_sc.mk
+++ b/sc/AllLangResTarget_sc.mk
@@ -83,6 +83,7 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\
 sc/source/ui/formdlg/formdlgs.src \
 sc/source/ui/formdlg/dwfunctr.src \
 sc/source/ui/sidebar/CellAppearancePropertyPanel.src \
+sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.src \
 sc/source/core/src/compiler.src \
 ))
 
diff --git a/sc/UIConfig_scalc.mk b/sc/UIConfig_scalc.mk
index ddf13e8..cab8091 100644
--- a/sc/UIConfig_scalc.mk
+++ b/sc/UIConfig_scalc.mk
@@ -91,6 +91,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/printareasdialog \
sc/uiconfig/scalc/ui/printeroptions \
sc/uiconfig/scalc/ui/protectsheetdlg \
+   sc/uiconfig/scalc/ui/randomnumbergenerator \
sc/uiconfig/scalc/ui/rightfooterdialog \
sc/uiconfig/scalc/ui/rightheaderdialog \
sc/uiconfig/scalc/ui/scgeneralpage \
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc
index 314f29a..31694f1 100644
--- a/sc/inc/globstr.hrc
+++ b/sc/inc/globstr.hrc
@@ -683,6 +683,27 @@
 
 #define STR_COUNT   553
 
+#define STR_UNDO_DISTRIBUTION_TEMPLATE  554
+#define STR_DISTRIBUTION_UNIFORM_REAL   555
+#define STR_DISTRIBUTION_UNIFORM_INTEGER556
+#define STR_DISTRIBUTION_NORMAL 557
+#define STR_DISTRIBUTION_CAUCHY 558
+#define STR_DISTRIBUTION_BERNOULLI  559
+#define STR_DISTRIBUTION_BINOMIAL   560
+#define STR_DISTRIBUTION_NEGATIVE_BINOMIAL  561
+#define STR_DISTRIBUTION_CHI_SQUARED562
+#define STR_DISTRIBUTION_GEOMETRIC  563
+
+#define STR_RNG_PARAMETER_MINIMUM   564
+#define STR_RNG_PARAMETER_MAXIMUM   565
+#define STR_RNG_PARAMETER_MEAN  566
+#define STR_RNG_PARAMETER_STANDARD_DEVIATION567
+#define STR_RNG_PARAMETER_STANDARD_MEDIAN   568
+#define STR_RNG_PARAMETER_STANDARD_SIGMA569
+#define STR_RNG_PARAMETER_STANDARD_PROBABILITY  570
+#define STR_RNG_PARAMETER_STANDARD_NUMBER_OF_TRIALS 571
+#define STR_RNG_PARAMETER_STANDARD_NU_VALUE 572
+
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx 
b/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
index 80a2da7..356a54d 100644
--- a/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
@@ -213,63 +213,63 @@ void 
ScRandomNumberGeneratorDialog::SelectGeneratorAndGenerateNumbers()
 {
 boost::random::uniform_real_distribution<> 
distribution(parameter1, parameter2);
 boost::variate_generator > rng(seed, distribution);
-GenerateNumbers(rng, OUString("Uniform Real"));
+GenerateNumbers(rng, 
OUString(ScResId(STR_DISTRIBUTION_UNIFORM_REAL)));
 break;
 }
 case DIST_UNIFORM_INTEGER:
 {
 boost::random::uniform_int_distribution<> 
distribution(parameterInteger1, parameterInteger2);
 boost::variate_generator > rng(seed, distribution);
-GenerateNumbers(rng, OUString("Uniform Integer"));
+GenerateNumbers(rng, 
OUString(ScResId(STR_DISTRIBUTION_UNIFORM_INTEGER)));
 break;
 }
 case DIST_NORMAL:
 {
 boost::random::normal_distribution<> distribution(parameter1, 
parameter2);
 boost::variate_generator > rng(seed, distribution);
-GenerateNumbers(rng, OUString("Normal"));
+GenerateNumbers(rng, OUString(ScResId(STR_DISTRIBUTION_NORMAL)));
 break;
 }
 case DIST_CAUCHY:
 {
 boost::random::cauchy_distribution<> distribution(parameter1);
 boost::variate_generator > rng(seed, distribution);
-GenerateNumbers(rng, OUString("Cauchy"));
+GenerateNumbers(rng, OUString(ScResId(STR_DISTRIBUTION_CAUCHY)));
 break;
 }
 case DIST_BERNOULLI:
 {
 boost::random::bernoulli_distribution<> distribution(parameter1);
 boost::variate_generator > rng(s

Re: Why dev-www.libreoffice.org is unreachable

2013-07-14 Thread Noel Grandin

On 2013-07-14 04:19, LOH KOK HOE wrote:
I did try to manually connect to dev-www.libreoffice.org 
 but failed. I then issue the make 
command again and this time I got timed out error as shown below:





It's working for me now.
Either there was a temporary failure, or you are behind a proxy and have 
not configured your proxy settings on that box.


Disclaimer: http://www.peralex.com/disclaimer.html


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


[PATCH] i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.

2013-07-14 Thread Lionel Elie Mamane (via Code Review)
Lionel Elie Mamane has uploaded a new patch set (#4).

Change subject: i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.
..

i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.

Add IsUTC member to:

com.sun.star.util.DateTime
com.sun.star.util.DateTimeRange
com.sun.star.util.Time

Add new stucts with explicit time zones:

com.sun.star.util.DateTimeWithTimezone
com.sun.star.util.DateWithTimezone
com.sun.star.util.TimeWithTimezone

Adapt the sax::Converter to read/write timezones, and fix the unit test.

Everything else just uses default (no time zone), this commit is just
to fix the API.

Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18
STRUCT: /UCR/com/sun/star/util/DateTime
nFields1 = 7  !=  nFields2 = 8
Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/DateTimeRange
nFields1 = 14  !=  nFields2 = 15
Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/Time
nFields1 = 4  !=  nFields2 = 5
Registry2 contains 1 more fields
---
M comphelper/source/misc/anycompare.cxx
M connectivity/source/commontools/dbconversion.cxx
M connectivity/source/drivers/file/FDateFunctions.cxx
M connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx
M connectivity/source/drivers/odbcbase/OResultSet.cxx
M extensions/source/propctrlr/standardcontrol.cxx
M forms/source/xforms/convert.cxx
M offapi/UnoApi_offapi.mk
M offapi/com/sun/star/util/Date.idl
M offapi/com/sun/star/util/DateTime.idl
M offapi/com/sun/star/util/DateTimeRange.idl
A offapi/com/sun/star/util/DateTimeWithTimezone.idl
A offapi/com/sun/star/util/DateWithTimezone.idl
M offapi/com/sun/star/util/Time.idl
A offapi/com/sun/star/util/TimeWithTimezone.idl
M offapi/type_reference/offapi.rdb
M oox/source/docprop/docprophandler.cxx
M qadevOOo/tests/java/ifc/sdbc/_XParameters.java
M reportdesign/source/core/sdr/RptObject.cxx
M sax/qa/cppunit/test_converter.cxx
M sax/source/tools/converter.cxx
M sc/source/filter/oox/unitconverter.cxx
M sd/source/ui/annotations/annotationmanager.cxx
M sfx2/source/appl/sfxpicklist.cxx
M sfx2/source/dialog/dinfdlg.cxx
M sfx2/source/doc/SfxDocumentMetaData.cxx
M sfx2/source/doc/objcont.cxx
M sfx2/source/doc/oleprops.cxx
M sfx2/source/view/viewprn.cxx
M svl/source/items/dateitem.cxx
M svtools/source/misc/templatefoldercache.cxx
M svtools/source/svhtml/parhtml.cxx
M sw/source/core/doc/docglbl.cxx
M sw/source/filter/ww8/ww8par.cxx
M toolkit/source/controls/unocontrols.cxx
M ucb/source/ucp/ftp/ftpdirp.hxx
M ucb/source/ucp/gio/gio_content.cxx
M unotools/source/misc/datetime.cxx
M writerfilter/source/rtftok/rtfdocumentimpl.cxx
M xmloff/source/chart/SchXMLExport.cxx
40 files changed, 446 insertions(+), 109 deletions(-)


  git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/33/4833/4
-- 
To view, visit https://gerrit.libreoffice.org/4833
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18
Gerrit-PatchSet: 4
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Michael Stahl 
Gerrit-Reviewer: Eike Rathke 
Gerrit-Reviewer: LibreOffice gerrit bot 
Gerrit-Reviewer: Lionel Elie Mamane 
Gerrit-Reviewer: Michael Stahl 

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


[PATCH] i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.

2013-07-14 Thread Lionel Elie Mamane (via Code Review)
Lionel Elie Mamane has uploaded a new patch set (#3).

Change subject: i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.
..

i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.

Add IsUTC member to:

com.sun.star.util.DateTime
com.sun.star.util.DateTimeRange
com.sun.star.util.Time

Add new stucts with explicit time zones:

com.sun.star.util.DateTimeWithTimeZone
com.sun.star.util.DateWithTimeZone
com.sun.star.util.TimeWithTimeZone

Adapt the sax::Converter to read/write timezones, and fix the unit test.

Everything else just uses default (no time zone), this commit is just
to fix the API.

Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18
STRUCT: /UCR/com/sun/star/util/DateTime
nFields1 = 7  !=  nFields2 = 8
Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/DateTimeRange
nFields1 = 14  !=  nFields2 = 15
Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/Time
nFields1 = 4  !=  nFields2 = 5
Registry2 contains 1 more fields
---
M comphelper/source/misc/anycompare.cxx
M connectivity/source/commontools/dbconversion.cxx
M connectivity/source/drivers/file/FDateFunctions.cxx
M connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx
M connectivity/source/drivers/odbcbase/OResultSet.cxx
M extensions/source/propctrlr/standardcontrol.cxx
M forms/source/xforms/convert.cxx
M offapi/UnoApi_offapi.mk
M offapi/com/sun/star/util/Date.idl
M offapi/com/sun/star/util/DateTime.idl
M offapi/com/sun/star/util/DateTimeRange.idl
A offapi/com/sun/star/util/DateTimeWithTimeZone.idl
A offapi/com/sun/star/util/DateWithTimeZone.idl
M offapi/com/sun/star/util/Time.idl
A offapi/com/sun/star/util/TimeWithTimeZone.idl
M offapi/type_reference/offapi.rdb
M oox/source/docprop/docprophandler.cxx
M qadevOOo/tests/java/ifc/sdbc/_XParameters.java
M reportdesign/source/core/sdr/RptObject.cxx
M sax/qa/cppunit/test_converter.cxx
M sax/source/tools/converter.cxx
M sc/source/filter/oox/unitconverter.cxx
M sd/source/ui/annotations/annotationmanager.cxx
M sfx2/source/appl/sfxpicklist.cxx
M sfx2/source/dialog/dinfdlg.cxx
M sfx2/source/doc/SfxDocumentMetaData.cxx
M sfx2/source/doc/objcont.cxx
M sfx2/source/doc/oleprops.cxx
M sfx2/source/view/viewprn.cxx
M svl/source/items/dateitem.cxx
M svtools/source/misc/templatefoldercache.cxx
M svtools/source/svhtml/parhtml.cxx
M sw/source/core/doc/docglbl.cxx
M sw/source/filter/ww8/ww8par.cxx
M toolkit/source/controls/unocontrols.cxx
M ucb/source/ucp/ftp/ftpdirp.hxx
M ucb/source/ucp/gio/gio_content.cxx
M unotools/source/misc/datetime.cxx
M writerfilter/source/rtftok/rtfdocumentimpl.cxx
M xmloff/source/chart/SchXMLExport.cxx
40 files changed, 446 insertions(+), 109 deletions(-)


  git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/33/4833/3
-- 
To view, visit https://gerrit.libreoffice.org/4833
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18
Gerrit-PatchSet: 3
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Michael Stahl 
Gerrit-Reviewer: Eike Rathke 
Gerrit-Reviewer: LibreOffice gerrit bot 
Gerrit-Reviewer: Lionel Elie Mamane 
Gerrit-Reviewer: Michael Stahl 

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


[Libreoffice-commits] core.git: Branch 'feature/gsoc-calc-enhanced-db-range' - sc/source

2013-07-14 Thread Akash Shetye
 sc/source/filter/excel/xestyle.cxx |  107 ++---
 1 file changed, 100 insertions(+), 7 deletions(-)

New commits:
commit ade08f4f0c3e2ff2b7b9a356430efaa9ec10d443
Author: Akash Shetye 
Date:   Mon Jul 15 05:49:43 2013 +0530

Refactored Dxf export code to work with styles defined for table/DBRanges

Change-Id: I2f05e8572e55b3fa840740a65badc4fef40ea59a

diff --git a/sc/source/filter/excel/xestyle.cxx 
b/sc/source/filter/excel/xestyle.cxx
index 0623ae5..368cd2d 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -48,6 +48,7 @@
 #include "globstr.hrc"
 #include "xestring.hxx"
 #include "conditio.hxx"
+#include "dbdata.hxx"
 
 #include 
 #include 
@@ -2875,16 +2876,17 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot )
 (*mpKeywordTable)[ NF_KEY_ ] = "";
 // Export the Thai T NatNum modifier.
 (*mpKeywordTable)[ NF_KEY_THAI_T ] = "T";
+sal_Int32 nIndex = 0;
 
 SCTAB nTables = rRoot.GetDoc().GetTableCount();
 for(SCTAB nTab = 0; nTab < nTables; ++nTab)
 {
 ScConditionalFormatList* pList = rRoot.GetDoc().GetCondFormList(nTab);
-if (pList)
+if (pList)//Yes found some conditional formats to look at
 {
-sal_Int32 nIndex = 0;
+nIndex = 0;
 for (ScConditionalFormatList::const_iterator itr = pList->begin();
-itr != pList->end(); ++itr)
+itr != pList->end(); ++itr)//Now iterate through each item 
in the list
 {
 size_t nEntryCount = itr->size();
 for (size_t nFormatEntry = 0; nFormatEntry < nEntryCount; 
++nFormatEntry)
@@ -2898,15 +2900,15 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot )
 if(pFormatEntry->GetType() == condformat::CONDITION)
 {
 const ScCondFormatEntry* pEntry = static_cast(pFormatEntry);
-aStyleName= pEntry->GetStyle();
+aStyleName= pEntry->GetStyle();//getting the stylename 
in aStyleName
 }
 else
 {
 const ScCondDateFormatEntry* pEntry = 
static_cast(pFormatEntry);
 aStyleName = pEntry->GetStyleName();
-}
+}//here we finish with loading the concerned style names
 
-if (maStyleNameToDxfId.find(aStyleName) == 
maStyleNameToDxfId.end())
+if (maStyleNameToDxfId.find(aStyleName) == 
maStyleNameToDxfId.end())//If not already in
 {
 maStyleNameToDxfId.insert(std::pair(aStyleName, nIndex));
 
@@ -2914,7 +2916,7 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot )
 if(!pStyle)
 continue;
 
-SfxItemSet& rSet = pStyle->GetItemSet();
+SfxItemSet& rSet = pStyle->GetItemSet();//Get each 
item set
 
 XclExpCellBorder* pBorder = new XclExpCellBorder;
 if (!pBorder->FillFromItemSet( rSet, GetPalette(), 
GetBiff()) )
@@ -2968,6 +2970,97 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot )
 }
 }
 }
+}//Conditional Formatting ends
+//Add support for Dxf styles involved in ScDBDataFormatting.
+//Get the ScDBDataCollection
+ScDBCollection* pDBCollection = rRoot.GetDoc().GetDBCollection();
+//Now iterate through this collection gathering style names
+if( pDBCollection )
+{
+ScDBCollection::NamedDBs& aNamedDBs = pDBCollection->getNamedDBs();
+ScDBCollection::NamedDBs::iterator itr = aNamedDBs.begin();
+ScDBCollection::NamedDBs::iterator itrEnd = aNamedDBs.end();
+for(; itr!= itrEnd; ++itr)
+{
+ScDBDataFormatting aDBFormatting;
+(*itr).GetTableFormatting( aDBFormatting );
+//Load all referenced stylenames into a list
+std::vector  aStyleNameVector;
+OUString aFRStyleName = aDBFormatting.GetFirstRowStripeStyle();
+if( !aFRStyleName.isEmpty() )
+aStyleNameVector.push_back( aFRStyleName );
+OUString aSRStyleName = aDBFormatting.GetSecondRowStripeStyle();
+if( !aSRStyleName.isEmpty() )
+aStyleNameVector.push_back( aSRStyleName );
+OUString aFCStyleName = aDBFormatting.GetFirstColStripeStyle();
+if( !aFCStyleName.isEmpty() )
+aStyleNameVector.push_back( aFCStyleName );
+OUString aSCStyleName = aDBFormatting.GetSecondColStripeStyle();
+if( !aSCStyleName.isEmpty() )
+aStyleNameVector.push_back( aSCStyleName );
+//Now iterate through each of these names adding their dxf one by 
one
+for( std::vector::iterator vit = 
aStyleNameVector.begin(); vit != a

[Libreoffice-commits] core.git: Branch 'feature/cmis' - officecfg/registry ucb/source

2013-07-14 Thread Cao Cuong Ngo
 officecfg/registry/data/org/openoffice/Office/Common.xcu |2 
 ucb/source/ucp/cmis/cmis_content.cxx |   12 +
 ucb/source/ucp/cmis/cmis_oauth2_providers.hxx|   32 +++
 ucb/source/ucp/cmis/cmis_url.cxx |   26 +++-
 4 files changed, 60 insertions(+), 12 deletions(-)

New commits:
commit a3e5c43ff690da09390634dd7c54c9ff193a95cc
Author: Cao Cuong Ngo 
Date:   Sun Jul 14 23:59:51 2013 +0200

CMIS: connect LO to Google Drive

Change-Id: I2c1b1d3e2bfd50ceb8647e62d37512ee3a0b9dae

diff --git a/officecfg/registry/data/org/openoffice/Office/Common.xcu 
b/officecfg/registry/data/org/openoffice/Office/Common.xcu
index fb84a88..ef0e765 100644
--- a/officecfg/registry/data/org/openoffice/Office/Common.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/Common.xcu
@@ -583,6 +583,7 @@
 https:///cmis/atom
 
http://ec2-184-72-233-127.compute-1.amazonaws.com/ot-cmis/services/RepositoryService?wsdl
 http:///_vti_bin/CMISSoapwsdl.aspx
+https://www.googleapis.com/drive/v2
   
 
 
@@ -595,6 +596,7 @@
 OpenDataSpace
 OpenText ELS 10.2.0
 SharePoint 2010
+Google Drive
   
 
   
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx 
b/ucb/source/ucp/cmis/cmis_content.cxx
index 9d4beeb..e4a206c 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -49,6 +49,7 @@
 #include "cmis_content.hxx"
 #include "cmis_provider.hxx"
 #include "cmis_resultset.hxx"
+#include "cmis_oauth2_providers.hxx"
 
 #define OUSTR_TO_STDSTR(s) string( OUStringToOString( s, RTL_TEXTENCODING_UTF8 
).getStr() )
 #define STD_TO_OUSTR( str ) OUString( str.c_str(), str.length( ), 
RTL_TEXTENCODING_UTF8 )
@@ -316,9 +317,16 @@ namespace cmis
 if ( authProvider.authenticationQuery( rUsername, rPassword ) )
 {
 // Initiate a CMIS session and register it as we found nothing
+libcmis::OAuth2DataPtr oauth2Data = NULL;
+if ( m_aURL.getBindingUrl( ) == GDRIVE_BASE_URL )
+oauth2Data.reset( new libcmis::OAuth2Data(
+GDRIVE_AUTH_URL, GDRIVE_TOKEN_URL,
+GDRIVE_SCOPE, GDRIVE_REDIRECT_URI,
+GDRIVE_CLIENT_ID, GDRIVE_CLIENT_SECRET ) );
+
 m_pSession = libcmis::SessionFactory::createSession(
 OUSTR_TO_STDSTR( m_aURL.getBindingUrl( ) ),
-rUsername, rPassword, OUSTR_TO_STDSTR( 
m_aURL.getRepositoryId( ) ) );
+rUsername, rPassword, OUSTR_TO_STDSTR( 
m_aURL.getRepositoryId( ) ), oauth2Data );
 if ( m_pSession == NULL )
 ucbhelper::cancelCommandExecution(
 ucb::IOErrorCode_INVALID_DEVICE,
@@ -1773,6 +1781,8 @@ namespace cmis
 if ( sPath[sPath.getLength( ) - 1] != '/' )
 sPath += "/";
 sPath += STD_TO_OUSTR( ( *it )->getName( ) );
+OUString sId = STD_TO_OUSTR( ( *it )->getId( ) );
+aUrl.setObjectId( sId );
 aUrl.setObjectPath( sPath );
 uno::Reference< ucb::XContentIdentifier > xId = new 
ucbhelper::ContentIdentifier( aUrl.asString( ) );
 uno::Reference< ucb::XContent > xContent = new Content( 
m_xContext, m_pProvider, xId, *it );
diff --git a/ucb/source/ucp/cmis/cmis_oauth2_providers.hxx 
b/ucb/source/ucp/cmis/cmis_oauth2_providers.hxx
new file mode 100644
index 000..bd3df5b
--- /dev/null
+++ b/ucb/source/ucp/cmis/cmis_oauth2_providers.hxx
@@ -0,0 +1,32 @@
+/* -*- 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:
+ *
+ */
+
+#ifndef CMIS_OAUTH2_PROVIDER2_HXX
+#define CMIS_OAUTH2_PROVIDERS_HXX
+
+
+namespace cmis
+{
+
+#define GDRIVE_BASE_URL "https://www.googleapis.com/drive/v2";
+#define GDRIVE_CLIENT_ID "457862564325.apps.googleusercontent.com"
+#define GDRIVE_CLIENT_SECRET "GYWrDtzyZQZ0_g5YoBCC6F0I"
+#define GDRIVE_AUTH_URL "https://accounts.google.com/o/oauth2/auth";
+#define GDRIVE_TOKEN_URL "https://accounts.google.com/o/oauth2/token";
+#define GDRIVE_REDIRECT_URI "urn:ietf:wg:oauth:2.0:oob"
+#define GDRIVE_SCOPE "https://www.googleapis.com/auth/drive";
+
+}
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/cmis/cmis_url.cxx b/ucb/source/ucp/cmis/cmis_url.cxx
index 79c7a9e..5d82e18 100644
--- a/ucb/source/ucp/cmis/cmis_url.cxx
+++ b/ucb/source/ucp/cmis/cmis_url.cxx
@@ 

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

2013-07-14 Thread Michael Stahl
 solenv/gbuild/LinkTarget.mk |9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 2f8f3a0a3e330e01cc822c5dd618a1840a492f53
Author: Michael Stahl 
Date:   Sun Jul 14 20:20:02 2013 +0200

indent that a bit

Change-Id: I40c1639356a0c7e60c276bfc7071c976ba04f314

diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk
index 626db27..a5c7132 100644
--- a/solenv/gbuild/LinkTarget.mk
+++ b/solenv/gbuild/LinkTarget.mk
@@ -433,10 +433,11 @@ $(call gb_LinkTarget_get_target,Library/%.exports) : 
$(gb_Library_OUTDIRLOCATION
 
 $(call gb_LinkTarget_get_target,%) : $(call 
gb_LinkTarget_get_headers_target,%) $(gb_Helper_MISCDUMMY)
$(if $(filter $*,$(foreach lib,$(gb_MERGEDLIBS) $(gb_URELIBS),$(call 
gb_Library_get_linktargetname,$(lib,\
-   $(if $(filter $(true),$(call gb_LinkTarget__is_build_lib,$*)),\
-   $(call gb_LinkTarget__command,$@,$*),\
-   mkdir -p $(dir $@) && echo invalid > $@ \
-   $(if $(SOVERSION),&& echo invalid > $@.$(SOVERSION))),$(call 
gb_LinkTarget__command,$@,$*))
+   $(if $(filter $(true),$(call gb_LinkTarget__is_build_lib,$*)),\
+   $(call gb_LinkTarget__command,$@,$*),\
+   mkdir -p $(dir $@) && echo invalid > $@ \
+   $(if $(SOVERSION),&& echo invalid > $@.$(SOVERSION))),\
+   $(call gb_LinkTarget__command,$@,$*))
$(call gb_LinkTarget__command_objectlist,$@,$*)
 
 ifeq ($(gb_FULLDEPS),$(true))
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] buildbot.git: 2 commits - tb3/replay-branch tb3/tb3

2013-07-14 Thread Bjoern Michaelsen
 tb3/replay-branch |   61 ++
 tb3/tb3   |8 +++
 2 files changed, 65 insertions(+), 4 deletions(-)

New commits:
commit 805f4f56651ffa165d156289fa20bc75c4b1b4b3
Author: Bjoern Michaelsen 
Date:   Sun Jul 14 20:22:01 2013 +0200

add replay-branch

diff --git a/tb3/replay-branch b/tb3/replay-branch
new file mode 100755
index 000..c8782f7
--- /dev/null
+++ b/tb3/replay-branch
@@ -0,0 +1,61 @@
+#!/usr/bin/python
+#
+# 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/.
+#
+import argparse
+import sh
+import sys
+import time
+
+class Syncer:
+def __init__(self, args):
+(   self.commit_count, self.from_branch,
+self.to_branch, self.count,
+self.intervall, self.repo) = \
+(   args['commit_count'], args['from_branch'],
+args['to_branch'], args['count'],
+args['intervall'], args['repo'])
+self.git = sh.git.bake(_cwd=self.repo)
+assert(len(self.git('rev-parse', show_cdup=True).strip()) == 0)
+assert(len(self.git.branch(self.to_branch, no_color=True, list=True)))
+assert(len(self.git.branch(self.from_branch, no_color=True, 
list=True)))
+def sync(self, args):
+more_commits = True
+commits = [c for c in self.git("rev-list", "%s..%s" % (self.to_branch, 
self.from_branch)).split('\n') if len(c)==40]
+if len(commits) == 0:
+more_commits = False
+else:
+try:
+commit = commits[-self.commit_count]
+except IndexError:
+commit = commits[0]
+more_commits = False
+#self.git.checkout(self.to_branch)
+#self.git.pull(commit)
+return more_commits
+def execute(self):
+if self.count > 0:
+for step in range(self.count):
+if not self.sync(args):
+break
+time.sleep(self.intervall)
+else:
+while self.sync(args):
+time.sleep(self.intervall)
+
+if __name__ == '__main__':
+parser = argparse.ArgumentParser(description='branch replayer')
+parser.add_argument('--repo', help='the repo to play work on (default: 
current dir)', default='.')
+parser.add_argument('--from-branch', help='the branch to replay from', 
required=True)
+parser.add_argument('--to-branch', help='the branch to replay to', 
default='master')
+parser.add_argument('--commit-count', help='the number of commits to pull 
in one sync (default: 1)', type=int, default=1)
+parser.add_argument('--intervall', help='the time to wait between sync in 
seconds (default: 1)', type=float, default=1)
+parser.add_argument('--count', help='the number of syncs (0 is unlimited 
and default)', type=int, default=0)
+args = vars(parser.parse_args())
+Syncer(args).execute()
+
+# vim: set et sw=4 ts=4:
commit d628621c6ac515e07d6ad1882f0239782fcd6473
Author: Bjoern Michaelsen 
Date:   Sun Jul 14 20:17:33 2013 +0200

check for keys first

diff --git a/tb3/tb3 b/tb3/tb3
index 8a7c4ba..b05521b 100755
--- a/tb3/tb3
+++ b/tb3/tb3
@@ -65,17 +65,17 @@ def show_proposals(parms):
 print(json.dumps([p.__dict__ for p in proposals]))
 
 def execute(parms):
-if type(parms['estimated_duration']) is float:
+if parms.has_key('estimated_duration') and 
type(parms['estimated_duration']) is float:
 parms['estimated_duration'] = 
datetime.timedelta(minutes=parms['estimated_duration'])
 if parms['sync']:
 sync(parms)
-if parms['set_commit_finished']:
+if parms.has_key('set_commit_finished') and parms['set_commit_finished']:
 set_commit_finished(parms)
-if parms['set_commit_running']:
+if parms.has_key('set_commit_running') and parms['set_commit_running']:
 set_commit_running(parms)
 if parms['show_state']:
 show_state(parms)
-if parms['show_history']:
+if parms.has_key('show_history') and parms['show_history']:
 show_history(parms)
 if parms['show_proposals']:
 show_proposals(parms)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-07-14 Thread Tomaž Vajngerl
 chart2/source/tools/PolynomialRegressionCurveCalculator.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 22b0b27cbc0bb4ce57146211a18aacadfe356e43
Author: Tomaž Vajngerl 
Date:   Sun Jul 14 22:36:08 2013 +0200

pow is ambiguous

Change-Id: Ib63bf0a67f18cf8e2f3705ae8b096c5bdf06edaf

diff --git a/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx 
b/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx
index 1c84731..951c071 100644
--- a/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx
@@ -79,7 +79,7 @@ void SAL_CALL 
PolynomialRegressionCurveCalculator::recalculateRegression(
 for(sal_Int32 i = 0; i < aNoValues; i++)
 {
 double xValue = aValues.first[i];
-aQRTransposed[i + aColumnIndex] = std::pow(xValue, aPower);
+aQRTransposed[i + aColumnIndex] = std::pow(xValue, (int) aPower);
 }
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'feature/firebird-sdbc3' - connectivity/Library_firebird_sdbc.mk scp2/source

2013-07-14 Thread Andrzej J . R . Hunt
 connectivity/Library_firebird_sdbc.mk |1 +
 scp2/source/base/module_base.scp  |4 
 2 files changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 57fe22bc06254271affd61fb48b0b229be7a5a2e
Author: Andrzej J.R. Hunt 
Date:   Sun Jul 14 22:13:34 2013 +0200

Further firebird-sdbc windows build fixes.

Change-Id: I9cb0bbd45b19cb9ef6aa4b8f6d0538484060c6a0

diff --git a/connectivity/Library_firebird_sdbc.mk 
b/connectivity/Library_firebird_sdbc.mk
index b05870f..bada0a8 100644
--- a/connectivity/Library_firebird_sdbc.mk
+++ b/connectivity/Library_firebird_sdbc.mk
@@ -12,6 +12,7 @@ $(eval $(call gb_Library_Library,firebird_sdbc))
 $(eval $(call gb_Library_use_sdk_api,firebird_sdbc))
 
 $(eval $(call gb_Library_use_externals,firebird_sdbc,\
+   boost_headers \
libfbembed \
 ))
 
diff --git a/scp2/source/base/module_base.scp b/scp2/source/base/module_base.scp
index fbc2bb1..b2bfe4a 100644
--- a/scp2/source/base/module_base.scp
+++ b/scp2/source/base/module_base.scp
@@ -39,16 +39,12 @@ Module gid_Module_Prg_Base_Bin
 gid_File_Share_Registry_Base_Xcd
 /* This should be conditional, but the condition is not working!! */
 /* #if defined ENABLE_FIREBIRD_SDBC */
-,gid_File_Lib_FirebirdSdbc
 ,gid_File_FirebirdSdbc_Rdb
 ,gid_File_FirebirdSdbc_Xcd
 /* #endif */
 );
 End
 
-/* This could be moved to a std location */
-STD_LIB_FILE(gid_File_Lib_FirebirdSdbc, firebird_sdbc)
-
 File gid_File_FirebirdSdbc_Rdb
 TXT_FILE_BODY;
 Dir = gid_Brand_Dir_Program_Services;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-07-14 Thread Caolán McNamara
 include/tools/string.hxx |2 -
 sw/source/ui/dbui/dbinsdlg.cxx   |   60 ---
 tools/source/string/strascii.cxx |   57 -
 3 files changed, 19 insertions(+), 100 deletions(-)

New commits:
commit c162a4c8e496ed457da67ab24da55cb9ee446c02
Author: Caolán McNamara 
Date:   Sun Jul 14 20:04:07 2013 +0100

remove String::ReplaceAscii

last remaining users used it as a complicated way to do a simple thing

Change-Id: I810b1542b03bd6faa54f6f076b58cb7d3e680ab0

diff --git a/include/tools/string.hxx b/include/tools/string.hxx
index 33f6522..e185480 100644
--- a/include/tools/string.hxx
+++ b/include/tools/string.hxx
@@ -221,8 +221,6 @@ public:
 UniString&  Insert( sal_Unicode c, xub_StrLen nIndex = STRING_LEN 
);
 UniString&  InsertAscii( const sal_Char* pAsciiStr, xub_StrLen 
nIndex = STRING_LEN );
 UniString&  Replace( xub_StrLen nIndex, xub_StrLen nLen, const 
UniString& rStr );
-UniString&  ReplaceAscii( xub_StrLen nIndex, xub_StrLen nLen,
-  const sal_Char* pAsciiStr, xub_StrLen 
nStrLen = STRING_LEN );
 UniString&  Erase( xub_StrLen nIndex = 0, xub_StrLen nCount = 
STRING_LEN );
 UniString   Copy( xub_StrLen nIndex = 0, xub_StrLen nCount = 
STRING_LEN ) const;
 
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index d43b132..3ba2fbd 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -1468,56 +1468,34 @@ void SwInsertDBColAutoPilot::SetTabSet()
 
 _DB_ColumnConfigData::~_DB_ColumnConfigData() {}
 
-static Sequence lcl_createSourceNames(const String& rNodeName)
+static Sequence lcl_createSourceNames(const OUString& rNodeName)
 {
 Sequence aSourceNames(11);
 OUString* pNames = aSourceNames.getArray();
-
-String sTmp( rNodeName );
-const xub_StrLen nPos = sTmp.Len();
-pNames[0] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/DataSource" ));
-pNames[1] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/Command" ));
-pNames[2] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/CommandType" ));
-pNames[3] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/ColumnsToText" ));
-pNames[4] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/ColumnsToTable" ));
-pNames[5] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/ParaStyle" ));
-pNames[6] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/TableAutoFormat" ));
-pNames[7] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/IsTable" ));
-pNames[8] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/IsField" ));
-pNames[9] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/IsHeadlineOn" ));
-pNames[10] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/IsEmptyHeadline" ));
+pNames[0] = rNodeName + "/DataSource";
+pNames[1] = rNodeName + "/Command";
+pNames[2] = rNodeName + "/CommandType";
+pNames[3] = rNodeName + "/ColumnsToText";
+pNames[4] = rNodeName + "/ColumnsToTable";
+pNames[5] = rNodeName + "/ParaStyle";
+pNames[6] = rNodeName + "/TableAutoFormat";
+pNames[7] = rNodeName + "/IsTable";
+pNames[8] = rNodeName + "/IsField";
+pNames[9] = rNodeName + "/IsHeadlineOn";
+pNames[10] = rNodeName + "/IsEmptyHeadline";
 return aSourceNames;
 }
 
-static Sequence lcl_CreateSubNames( const String& rSubNodeName )
+static Sequence lcl_CreateSubNames(const OUString& rSubNodeName)
 {
 Sequence aSubSourceNames(6);
 OUString* pNames = aSubSourceNames.getArray();
-String sTmp( rSubNodeName );
-const xub_StrLen nPos = sTmp.Len();
-pNames[0] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/ColumnName" ));
-pNames[1] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/ColumnIndex" ));
-pNames[2] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/IsNumberFormat" ));
-pNames[3] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( 
"/IsNumberFormatFromDataBase" ));
-pNames[4] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN,
-RTL_CONSTASCII_STRINGPARAM( "/NumberFormat" ));
-pNames[5] = sTmp.ReplaceAscii( nPos, STRING_MAXLEN

[Bug 54157] LibreOffice 4.0 most annoying bugs

2013-07-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54157

Cor Nouws  changed:

   What|Removed |Added

 Depends on||60883

--- Comment #161 from Cor Nouws  ---
Adding Bug 60883 - Macros: macros allways disabled in files created from
templates when working via Templatemanager: File > New > Template

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[GSOC] Code completition is BASIC IDE weekly report

2013-07-14 Thread Gergő Mocsi
Hi all,
this week I don't had much time to work. Here's what I've made: fixed the
nested reflection to use tokenizing based on syntax highlighting. The
reason for this is beacuse it parses the code, tokenizes it, I just extract
variable calls like aVar.aMethod().aOtherMethod() ... , and I just need the
identifiers. Next, I've created a CodeCompleteFloatWindow class, whicg
contains a single ListBox to show the methods of the type. Class
CodeCompleteListBox is not further needed(I hope...). Currently, I'm stuck
with disabling editing the code, when the CodeCompleteFloatWindow is
active(I mean: not ot allow to click anywhere else, etc.), and the KeyInput
function, wich should navigate the ListBox/ close the window is not working.
Regards,
Gergő
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2013-07-14 Thread Kohei Yoshida
 sc/source/core/data/dpgroup.cxx |8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 7ee62f1d499c02c329f228a1d94eb6d64b80589b
Author: Kohei Yoshida 
Date:   Sun Jul 14 11:50:45 2013 -0400

fdo#63998: Oops I introduced a new bug. Let's not.

Change-Id: I3ad3a5e30d9562d5565025e5251bf8fb0d28677f

diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx
index 81920d8..1e8059a 100644
--- a/sc/source/core/data/dpgroup.cxx
+++ b/sc/source/core/data/dpgroup.cxx
@@ -80,11 +80,15 @@ bool ScDPGroupNumFilter::match(const ScDPItemData& 
rCellData) const
 if (rtl::math::isSignBitSet(fVal))
 {
 // Less than the min value.
-return rCellData.GetValue() < maNumInfo.mfStart;
+if (rCellData.GetValue() < maNumInfo.mfStart)
+return true;
 }
 
 // Greater than the max value.
-return maNumInfo.mfEnd < rCellData.GetValue();
+if (maNumInfo.mfEnd < rCellData.GetValue())
+return true;
+
+continue;
 }
 
 double low = fVal;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: [GSOC]Slide Layout Extendibility :Weekly Report #4

2013-07-14 Thread Vishv Brahmbhatt
Hello Everyone,

Here is the 
Link
to
my blog for the weekly report update.

Thanks & Regards,
Vishv Brahmbhatt

On Mon, Jul 8, 2013 at 9:10 PM, Vishv Brahmbhatt <
vishvbrahmbhat...@gmail.com> wrote:

> Hello Everyone,
> In the beginning of the week,I was able to complete the required changes
> in XML parser function(for extracting slide layout information).
>
> But,after that I was caught up with the unit-test error(related to
> configuration XML file) for rest of the 4 days.It seemed to me as a bug in
> the unit-test process,because in-spite of having made proper entry in the
> "Package_unittest.mk" and  "layoutlist.xml"  being  added at "unit-test"
> file-path,the error came up(with wrongly generated path). I have already
> posted my question to mailing-list 
> Link
>  and
> I am thankful for the reply from Markus.
> And I will soon resolve this error with appropriate guidance and
> discussion on mailing-list/ IRC.
>
> As of now ,I have moved ahead with addition of some new layouts to
> "layoutlist.xml". I will peak up more speed from now on-wards.
>
> Also for the current status:
> + I pushed one commit with required changes(last week).
> + XML parser works in-spite of unit-test errors.
> + So information from configuration XML file "layoutlist.xml" is
> extracted perfectly.
>
> Thanks & Regards,
> Vishv Brahmbhatt
>
> On Mon, Jul 1, 2013 at 8:30 PM, Vishv Brahmbhatt <
> vishvbrahmbhat...@gmail.com> wrote:
>
>> Hello Everyone,
>>
>> Here is the  
>> Link
>> to my blog for the weekly report update.
>>
>> Thanks & Regards,
>> Vishv Brahmbhatt
>>
>>
>> On Fri, Jun 21, 2013 at 6:34 PM, Vishv Brahmbhatt <
>> vishvbrahmbhat...@gmail.com> wrote:
>>
>>> Hello Everyone,
>>>
>>> Before the beginning of  this week ,I was debugging on impress slide
>>> layouts.Basically,I got to understand the mechanism of creation of slide
>>> layouts in the "normal" page,in the master pages like "notes" and "handout"
>>> and much more.
>>>
>>> Currently in the slide layouts, Placeholder object's
>>> height,width,position are hard-coded. So,I did following things during this
>>> week:
>>>
>>> +So at first ,I started with creation of XML file  which stores
>>> following information:
>>> (1) Layout Type
>>> (2) "PresObj" Kind
>>> (3) Position co-ordinates of "PresObj"
>>> (4) Size of "PreObj"(Width and Height)
>>>
>>> + I have started coding XML parser, which will read this information
>>> from XML file and set the appropriate parameters in the function
>>> "CalcAutoLayoutRectangles" (This function  calculates/sets  the Top
>>> Position,Height and Width of Rectangle "PresObj" used.) And this will
>>> parser will help in bringing configurability with Slide Layouts.
>>>
>>> + So XML parser should be fully completed, probably by "Monday" or
>>> "Tuesday"(mostly it should get completed by this weekend).
>>>
>>> + Next week,I will work on  understanding "Slide Mater View" and  on
>>> using "Slide Mater View" to edit the current built-in layouts.
>>>
>>> Regards,
>>> Vishv Brahmbhatt
>>>
>>
>>
>
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: Branch 'feature/cmis' - include/sfx2 sfx2/source

2013-07-14 Thread Cao Cuong Ngo
 include/sfx2/dinfdlg.hxx   |2 ++
 sfx2/source/dialog/dinfdlg.cxx |   12 +---
 2 files changed, 11 insertions(+), 3 deletions(-)

New commits:
commit 0d7869b0a73f5df4a81ac6e01a06b0f951387ee9
Author: Cao Cuong Ngo 
Date:   Sun Jul 14 15:33:27 2013 +0200

CMIS properties dialog

When it's a CMIS document, don't update custom properties,
which also prevents cmis properties aren't updated.

Change-Id: Ia26d9ae5debae9c5de347ed309a3f07cfda4a475

diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx
index 43b20ad..dde187e 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -99,6 +99,7 @@ public:
 ::com::sun::star::document::XDocumentProperties> & i_xDocProps,
 bool i_bDoNotUpdateUserDefined = false)
 const;
+sal_BoolisCmisDocument() const { return m_aCmisProperties.size() > 0;}
 
 sal_BoolisAutoloadEnabled() const { return m_isAutoloadEnabled; }
 voidsetAutoloadEnabled(sal_Bool i_val) { m_isAutoloadEnabled = 
i_val; }
@@ -691,6 +692,7 @@ class SfxCmisPropertiesPage : public SfxTabPage
 private:
 CmisPropertiesControl* m_pPropertiesCtrl;
 using TabPage::DeactivatePage;
+DECL_LINK(UpdateHdl, void *);
 
 protected:
 SfxCmisPropertiesPage( Window* pParent, const SfxItemSet& );
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index a508577..99c103d 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -576,10 +576,8 @@ std::vector< CmisProperty* > 
SfxDocumentInfoItem::GetCmisProperties() const
 
 uno::Sequence< document::CmisProperty > 
SfxDocumentInfoItem::GetCmisPropertiesSeq() const
 {
-
-sal_Int32 i = 0;
 std::vector< CmisProperty* >::const_iterator pIter;
-sal_Int32 updatableCount = 0, nCount = 0;
+sal_Int32 i=0, updatableCount = 0, nCount = 0;
 
 for ( pIter = m_aCmisProperties.begin();
 pIter != m_aCmisProperties.end(); ++pIter, ++i )
@@ -2187,6 +2185,14 @@ sal_Bool SfxCustomPropertiesPage::FillItemSet( 
SfxItemSet& rSet )
 
 if ( pInfo )
 {
+// If it's a CMIS document, we can't save custom properties
+if ( pInfo->isCmisDocument( ) )
+{
+if ( bMustDelete )
+delete pInfo;
+return sal_False;
+}
+
 pInfo->ClearCustomProperties();
 Sequence< beans::PropertyValue > aPropertySeq = 
m_pPropertiesCtrl->GetCustomProperties();
 sal_Int32 i = 0, nCount = aPropertySeq.getLength();
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - dbaccess/source desktop/source extensions/source framework/source include/svx include/tools reportdesign/source scripting/source sc/source svx/source sw/inc

2013-07-14 Thread Caolán McNamara
 dbaccess/source/ui/control/opendoccontrols.cxx |6 -
 dbaccess/source/ui/misc/defaultobjectnamecheck.cxx |7 --
 desktop/source/deployment/gui/dp_gui_dialog2.cxx   |   44 ++---
 desktop/source/deployment/gui/dp_gui_dialog2.hxx   |2 
 desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx |   20 ++---
 desktop/source/deployment/inc/dp_resource.h|2 
 desktop/source/deployment/manager/dp_extensionmanager.cxx  |8 +-
 desktop/source/deployment/misc/dp_resource.cxx |   10 +-
 desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx |   23 +++---
 extensions/source/propctrlr/formcomponenthandler.cxx   |4 -
 framework/source/uielement/uicommanddescription.cxx|   10 +-
 include/svx/lboxctrl.hxx   |2 
 include/tools/string.hxx   |1 
 reportdesign/source/ui/report/ReportController.cxx |4 -
 sc/source/core/tool/compiler.cxx   |   18 ++---
 scripting/source/pyprov/mailmerge.py   |4 -
 svx/source/dialog/compressgraphicdialog.cxx|   26 +++
 svx/source/form/fmvwimp.cxx|5 -
 svx/source/tbxctrls/lboxctrl.cxx   |   11 +--
 sw/inc/shellres.hxx|2 
 sw/source/filter/ww8/ww8graf.cxx   |   13 ++-
 sw/source/filter/ww8/ww8par.hxx|2 
 sw/source/filter/ww8/ww8par5.cxx   |   28 
 sw/source/filter/ww8/ww8par6.cxx   |4 -
 sw/source/ui/dbui/mmconfigitem.cxx |   14 +---
 sw/source/ui/docvw/edtwin2.cxx |   10 +-
 sw/source/ui/utlui/initui.cxx  |   10 +-
 tools/source/string/strascii.cxx   |   16 
 vcl/aqua/source/app/salsys.cxx |5 -
 29 files changed, 141 insertions(+), 170 deletions(-)

New commits:
commit f460556bfa6bd55df3cd4b2288524d63db284d7e
Author: Caolán McNamara 
Date:   Sat Jul 13 21:45:29 2013 +0100

Related: fdo#66761 we want the bytes, not a str representation of them

Change-Id: I3c268b0c51f7e1ddd2fa6588f40412a33f316b52

diff --git a/scripting/source/pyprov/mailmerge.py 
b/scripting/source/pyprov/mailmerge.py
index 6fa486d..6ed046b 100755
--- a/scripting/source/pyprov/mailmerge.py
+++ b/scripting/source/pyprov/mailmerge.py
@@ -183,9 +183,11 @@ class PyMailSMTPService(unohelper.Base, XSmtpService):
textmsg['MIME-Version'] = '1.0'
 
try:
+   #it's a string, get it as utf-8 
bytes
textbody = 
textbody.encode('utf-8')
except:
-   textbody = 
str(textbody.value).encode('utf-8')
+   #it's a bytesequence, get raw 
bytes
+   textbody = textbody.value
if sys.version >= '3':

#http://stackoverflow.com/questions/9403265/how-do-i-use-python-3-2-email-module-to-send-unicode-messages-encoded-in-utf-8-w
textbody = 
textbody.decode('iso8859-1')
commit 82937ce3d7bc2382c4da22365d1245c9f7db178c
Author: Caolán McNamara 
Date:   Sat Jul 13 20:12:42 2013 +0100

String::SearchAndReplaceAllAscii -> OUString::replaceAll

Change-Id: I5091835c9f71c712f15996e5c6263fc5f21f6f96

diff --git a/dbaccess/source/ui/control/opendoccontrols.cxx 
b/dbaccess/source/ui/control/opendoccontrols.cxx
index 5723af6..b3136fc 100644
--- a/dbaccess/source/ui/control/opendoccontrols.cxx
+++ b/dbaccess/source/ui/control/opendoccontrols.cxx
@@ -182,10 +182,8 @@ namespace dbaui
 m_sModule = OUString::createFromAscii( _pAsciiModuleName );
 
 // our label should equal the UI text of the "Open" command
-String sLabel( GetCommandText( ".uno:Open", m_sModule ) );
-sLabel.SearchAndReplaceAllAscii( "~", String() );
-sLabel.Insert( (sal_Unicode)' ', 0 );
-SetText( sLabel );
+OUString sLabel(GetCommandText(".uno:Open", m_sModule));
+SetText(OUString(' ') + sLabel.replaceAll("~", OUString()));
 
 // Place icon left of text and both centered in the button.
 SetModeImage( GetCommandIcon( ".uno:Open", m_sModule ) );
diff --git a/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx 
b/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx
index f0d03d9..59fff79 100644
--- a/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx
+++ b/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx
@@ -72,12 +72,11 @@ namespac

Re: [GSOC] iOS remote control weekly update 5 (workable milestone)

2013-07-14 Thread Jonathan Aquilina
For app testing there is a website that allows testing of ios apps called
test flight.

https://testflightapp.com/


On Sun, Jul 14, 2013 at 10:50 AM, Tor Lillqvist  wrote:

> The progress is really impressive!
>
>
> > Also, should I publish this version on the app store so that people
> don't have to compile it? Or export it to an ipa file?
>
> I don't think it is a good idea to publish it before it is ready for real
> use; one is not supposed to publish "beta test" versions in the App Store.
>
> I would assume any hint at it being a test version in its description or
> in the app itself will automatically mean it won't get approved into the
> store.
>
> And on the other hand, if you publish it, knowing it has still problems,
> but without being able to tell so to customers, that will just generate bad
> press for it, "LibreOffice published their Impress Remote for iOS but it
> doesn't work".
>
> Better to use the ad-hoc distribution mechanism, I think, where if I
> understand correctly you specifically add provisioning to the app to run on
> up to 100 named tester devices, and then distribute the app to these
> testers.
>
> --tml
>
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>


-- 
Jonathan Aquilina
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [GSOC] iOS remote control weekly update 5 (workable milestone)

2013-07-14 Thread Tor Lillqvist
The progress is really impressive!

> Also, should I publish this version on the app store so that people don't
have to compile it? Or export it to an ipa file?

I don't think it is a good idea to publish it before it is ready for real
use; one is not supposed to publish "beta test" versions in the App Store.

I would assume any hint at it being a test version in its description or in
the app itself will automatically mean it won't get approved into the store.

And on the other hand, if you publish it, knowing it has still problems,
but without being able to tell so to customers, that will just generate bad
press for it, "LibreOffice published their Impress Remote for iOS but it
doesn't work".

Better to use the ad-hoc distribution mechanism, I think, where if I
understand correctly you specifically add provisioning to the app to run on
up to 100 named tester devices, and then distribute the app to these
testers.

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Configuring the iOS app to open DOCX files

2013-07-14 Thread Ptyl Dragon
Hi

We are working on enhancing the support for mobile, and iOS in particular,
basing our work on the experimental iOS app, and enhancing it, and we
noticed that the iOS app fails to open docx files (we have overriden the
test1.odt file with our own test1.docx file for this). when the app loads,
the screen remains black.

We compiled the app using the autogen settings
./autogen.sh --build=i386-apple-darwin10.7.0 --host=arm-apple-darwin10

(as you can see, we disabled debug)

Testing and seeing that the Android app successfully opens docx file, we
tried to include the external libraries the Android app includes, which
exist in the iOS app (i.e some of theses libs do not exist after compiling
for iOS).

It did not help. Docx files failed to open as before.


So, what are we doing wrong?
What should we do to make the iOS app open docx files?


Thank you very much in advance


Ptyl


Note:
here are the libs includes we added from the Android app compilation:

 { "libcuilo.a", cui_component_getFactory },

 { "libchartcorelo.a", chartcore_component_getFactory },

 { "libembobj.a", embobj_component_getFactory },

 { "libemboleobj.a", emboleobj_component_getFactory },

 { "libexpwraplo.a", expwrap_component_getFactory },

 { "libfastsaxlo.a", fastsax_component_getFactory },

 { "libfilterconfiglo.a", filterconfig1_component_getFactory },

 { "libsotlo.a", sot_component_getFactory },

 { "libsvxcorelo.a", svxcore_component_getFactory },

 { "libspllo.a", spl_component_getFactory },

 { "libtklo.a", tk_component_getFactory },

 { "libucppkg1.a", ucppkg1_component_getFactory },

 { "libwpftdrawlo.a", wpftdraw_component_getFactory },

 { "libwpftwriterlo.a", wpftwriter_component_getFactory },

 { "libwriterfilterlo.a", writerfilter_component_getFactory },


here are the libs included in Android app compilation, and missing from iOS
compilation:

   { "libbasprovlo.a", basprov_component_getFactory },

   { "libvbaswobjlo.a", vbaswobj_component_getFactory },

   { "libvbaeventslo.a", vbaevents_component_getFactory },

   { "libstringresourcelo.a", stringresource_component_getFactory },

   { "libprotocolhandlerlo.a", protocolhandler_component_getFactory },

   { "libsblo.a", sb_component_getFactory },

   { "libscriptframe.a", scriptframe_component_getFactory },

   { "libdlgprovlo.a", dlgprov_component_getFactory },
--
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice