Re: MSI Editing / Documentation for the Community

2014-03-05 Thread Sophie
Hi Adrian,
Le 05/03/2014 05:15, AJ a écrit :
 Hello,
 
 I am trying to coordinate documentation on editing the MSI file using ORCA
 or other MSI editor in order to create a custom installer package(s).
  Since there is not any official documentation for this I was hoping that
 those with expertise in this area would be willing to work with me in
 defining fields and options and I will work to create the
 information/documentation in an easy to use format.  This is a pretty
 regularly requested item from what I can see and I am looking to help
 myself while giving back to the community.  Please let me know if you can
 help.

Thanks for your proposal, may be you could enhance the documentation on
the wiki here https://wiki.documentfoundation.org/Deployment_and_Migration

Kind regards
Sophie

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


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

2014-03-05 Thread Markus Mohrhard
 sc/qa/unit/helper/qahelper.cxx |8 ++--
 sfx2/source/doc/objstor.cxx|   22 --
 2 files changed, 22 insertions(+), 8 deletions(-)

New commits:
commit 5490f585f09c0a24b7caab011593ab6bb6e9a318
Author: Markus Mohrhard markus.mohrh...@collabora.co.uk
Date:   Wed Mar 5 09:29:32 2014 +0100

sal_Bool to bool

Change-Id: I866946a2a987a95a41cf2b32ed089568ff94b236

diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 34eadda..59335d3 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2367,9 +2367,9 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium rMedium )
 // put in the REAL file name, and copy all PropertyValues
 const OUString sOutputStream ( OutputStream  );
 const OUString sStream ( StreamForOutput  );
-sal_Bool bHasOutputStream = sal_False;
-sal_Bool bHasStream = sal_False;
-sal_Bool bHasBaseURL = sal_False;
+bool bHasOutputStream = false;
+bool bHasStream = false;
+bool bHasBaseURL = false;
 bool bHasFilterName = false;
 sal_Int32 i;
 sal_Int32 nEnd = aOldArgs.getLength();
@@ -2380,11 +2380,11 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium rMedium )
 if ( pOldValue[i].Name == FileName )
 pNewValue[i].Value = OUString ( rMedium.GetName() );
 else if ( pOldValue[i].Name == sOutputStream )
-bHasOutputStream = sal_True;
+bHasOutputStream = true;
 else if ( pOldValue[i].Name == sStream )
-bHasStream = sal_True;
+bHasStream = true;
 else if ( pOldValue[i].Name == DocumentBaseURL )
-bHasBaseURL = sal_True;
+bHasBaseURL = true;
 else if( pOldValue[i].Name == FilterName )
 bHasFilterName = true;
 }
commit ffc4fc97d3ade42aace321a86f8712f8de749a30
Author: Markus Mohrhard markus.mohrh...@collabora.co.uk
Date:   Wed Mar 5 09:27:44 2014 +0100

let us use OOXML transitional in the calc export tests

Now the export validation test passes and we can finally make use of it.

Change-Id: Ic8a6d15f3f0aa84b35b480e3cb0fa1c54c5e6b25

diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index 2c22850..7ab7a36 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -68,7 +68,7 @@ std::ostream operator(std::ostream rStrm, const Color 
rColor)
 FileFormat aFileFormats[] = {
 { ods , calc8, , ODS_FORMAT_TYPE },
 { xls , MS Excel 97, calc_MS_EXCEL_97, XLS_FORMAT_TYPE },
-{ xlsx, Calc MS Excel 2007 XML , MS Excel 2007 XML, XLSX_FORMAT_TYPE 
},
+{ xlsx, Calc Office Open XML , Office Open XML Spreadsheet, 
XLSX_FORMAT_TYPE },
 { csv , Text - txt - csv (StarCalc), generic_Text, CSV_FORMAT_TYPE },
 { html , calc_HTML_WebQuery, generic_HTML, HTML_FORMAT_TYPE },
 { 123 , Lotus, calc_Lotus, LOTUS123_FORMAT_TYPE },
@@ -638,6 +638,10 @@ void validate(const utl::TempFile rTempFile, 
validation::ScValidationFormat eFo
 sal_Int32 nErrors = aNumber.toInt32();
 OString aMsg(validation error in OOXML export: Errors: );
 aMsg = aMsg + OString::number(nErrors);
+if(nErrors)
+{
+SAL_WARN(sc, aContent);
+}
 CPPUNIT_ASSERT_EQUAL_MESSAGE(aMsg.getStr(), sal_Int32(0), nErrors);
 }
 }
commit 702e08d1130f1e323926e37104853c7e8469db5a
Author: Markus Mohrhard markus.mohrh...@collabora.co.uk
Date:   Wed Mar 5 09:27:00 2014 +0100

make sure we always set the filter name in the media descriptor

Change-Id: I659c87a0f0856a95a5f9c71180b1d595f0dc09fa

diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 76e9f13..34eadda 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2370,6 +2370,7 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium rMedium )
 sal_Bool bHasOutputStream = sal_False;
 sal_Bool bHasStream = sal_False;
 sal_Bool bHasBaseURL = sal_False;
+bool bHasFilterName = false;
 sal_Int32 i;
 sal_Int32 nEnd = aOldArgs.getLength();
 
@@ -2384,6 +2385,8 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium rMedium )
 bHasStream = sal_True;
 else if ( pOldValue[i].Name == DocumentBaseURL )
 bHasBaseURL = sal_True;
+else if( pOldValue[i].Name == FilterName )
+bHasFilterName = true;
 }
 
 if ( !bHasOutputStream )
@@ -2408,6 +2411,13 @@ sal_Bool SfxObjectShell::ExportTo( SfxMedium rMedium )
 aArgs[nEnd-1].Value = rMedium.GetBaseURL( true );
 }
 
+if( !bHasFilterName )
+{
+aArgs.realloc( ++nEnd );
+aArgs[nEnd-1].Name = FilterName;
+aArgs[nEnd-1].Value = aFilterName;
+}
+
 return xFilter-filter( aArgs );
 

[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.2' - 4 commits - distro-configs/CPOSX.conf sw/source writerfilter/CppunitTest_writerfilter_misc.mk writerfilter/Module_writerfilter.mk wri

2014-03-05 Thread Michael Stahl
 distro-configs/CPOSX.conf |2 
 sw/source/core/unocore/unofield.cxx   |2 
 writerfilter/CppunitTest_writerfilter_misc.mk |   36 +++
 writerfilter/Module_writerfilter.mk   |1 
 writerfilter/qa/cppunittests/misc/misc.cxx|  162 ++
 writerfilter/source/dmapper/DomainMapper.cxx  |4 
 writerfilter/source/dmapper/DomainMapper_Impl.cxx |  245 +++---
 writerfilter/source/dmapper/DomainMapper_Impl.hxx |   10 
 8 files changed, 383 insertions(+), 79 deletions(-)

New commits:
commit 793e4ae782483ac159cd59cad4e8eef881914bb6
Author: Michael Stahl mst...@redhat.com
Date:   Sun Mar 2 00:32:17 2014 +0100

fdo#47811: RTF import: fix Database field content

1. the Database field master does not have a Content property
2. SetFieldContent was called once for every chunk of text in the field
   result, always overwriting the previous value; accumulate the text.

Change-Id: I63cfda19e2e416c52d100d9071796305a5d813c6
(cherry picked from commit e24ae38c8ef233e4b44840058e35959194724743)
Reviewed-on: https://gerrit.libreoffice.org/8442
Reviewed-by: Miklos Vajna vmik...@collabora.co.uk
Tested-by: Miklos Vajna vmik...@collabora.co.uk

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx 
b/writerfilter/source/dmapper/DomainMapper.cxx
index 4b6ed8e..2532942 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -3827,7 +3827,7 @@ void DomainMapper::lcl_text(const sal_uInt8 * data_, 
size_t len)
 else if( m_pImpl-IsOpenField()  m_pImpl-IsFieldResultAsString())
  /*depending on the success of the field insert operation this 
result will be
   set at the field or directly inserted into the text*/
-m_pImpl-SetFieldResult( sText );
+m_pImpl-AppendFieldResult(sText);
 else
 {
 if (pContext == 0)
@@ -3930,7 +3930,7 @@ void DomainMapper::lcl_utext(const sal_uInt8 * data_, 
size_t len)
 else if( m_pImpl-IsOpenField()  
m_pImpl-IsFieldResultAsString())
 /*depending on the success of the field insert operation this 
result will be
   set at the field or directly inserted into the text*/
-m_pImpl-SetFieldResult( sText );
+m_pImpl-AppendFieldResult(sText);
 else
 {
 if (pContext == 0)
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx 
b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index c7302cf..8822882 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -3304,7 +3304,6 @@ void DomainMapper_Impl::CloseFieldCommand()
 // uno::makeAny( pContext-GetCommand().copy( 
nIndex + 1 )));
 uno::Reference text::XDependentTextField  
xDependentField( xFieldInterface, uno::UNO_QUERY_THROW );
 xDependentField-attachTextFieldMaster( xMaster );
-m_bSetUserFieldContent = true;
 }
 break;
 case FIELD_MERGEREC : break;
@@ -3538,8 +3537,18 @@ bool DomainMapper_Impl::IsFieldResultAsString()
 return bRet;
 }
 
+void DomainMapper_Impl::AppendFieldResult(OUString const rString)
+{
+assert(!m_aFieldStack.empty());
+FieldContextPtr pContext = m_aFieldStack.top();
+SAL_WARN_IF(!pContext.get(), writerfilter.dmapper, no field context);
+if (pContext.get())
+{
+pContext-AppendResult(rString);
+}
+}
 
-void DomainMapper_Impl::SetFieldResult( OUString rResult )
+void DomainMapper_Impl::SetFieldResult(OUString const rResult)
 {
 #ifdef DEBUG_DOMAINMAPPER
 dmapper_logger-startElement(setFieldResult);
@@ -3595,9 +3604,10 @@ void DomainMapper_Impl::SetFieldResult( OUString 
rResult )
 }
 }
 }
-catch( const uno::Exception )
+catch (const uno::Exception e)
 {
-
+SAL_WARN(writerfilter.dmapper,
+DomainMapper_Impl::SetFieldResult: exception:   e.Message);
 }
 }
 }
@@ -3641,6 +3651,9 @@ void DomainMapper_Impl::PopFieldContext()
 if( !pContext-IsCommandCompleted() )
 CloseFieldCommand();
 
+if (!pContext-GetResult().isEmpty())
+SetFieldResult(pContext-GetResult());
+
 //insert the field, TC or TOC
 uno::Reference text::XTextAppend   xTextAppend;
 if (!m_aTextAppendStack.empty())
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx 
b/writerfilter/source/dmapper/DomainMapper_Impl.hxx
index 4686baa..6792be2 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx
@@ -124,6 +124,7 @@ class FieldContext
 ::com::sun::star::uno::Reference 

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

2014-03-05 Thread Nikhil Walvekar
 sw/qa/extras/inc/swmodeltestbase.hxx   |   17 ++
 sw/qa/extras/ooxmlexport/data/fdo73596_AlphaSeparator.docx |binary
 sw/qa/extras/ooxmlexport/data/fdo73596_RunInStyle.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx   |   21 +
 sw/source/filter/ww8/ww8atr.cxx|2 +
 writerfilter/source/dmapper/DomainMapper_Impl.cxx  |   13 +++-
 6 files changed, 52 insertions(+), 1 deletion(-)

New commits:
commit d043c9e3be791993348afaba6effdc3731f7c33d
Author: Nikhil Walvekar nikhil.walve...@synerzip.com
Date:   Mon Feb 17 20:46:18 2014 +0530

fdo#73596 Added support to import and export \r,\h Index flags.

This supports \r flag run-in type index. If \r is specified then we don't
have to write \e flag (separator char).
\h is Alphabetic separator, where indexes are grouped as per starting
character.

Change-Id: I690b29cef3d24b2a71b01f1deef0e418162d71aa
Reviewed-on: https://gerrit.libreoffice.org/8099
Reviewed-by: Miklos Vajna vmik...@collabora.co.uk
Tested-by: Miklos Vajna vmik...@collabora.co.uk

diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx 
b/sw/qa/extras/inc/swmodeltestbase.hxx
index 5be397a..cb15d69 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -580,6 +580,23 @@ protected:
  nNumberOfNodes, 
xmlXPathNodeSetGetLength(pXmlNodes));
 }
 
+
+/**
+ * Assert that rXPath exists, and returns exactly nNumberOfNodes nodes.
+ * Useful for checking that we do _not_ export some node (nNumberOfNodes 
== 0).
+ */
+void assertXPathContent(xmlDocPtr pXmlDoc, const OString rXPath, const 
OUString rContent)
+{
+xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc, rXPath);
+
+CPPUNIT_ASSERT_EQUAL_MESSAGE(OString(XPath ' + rXPath + ' not 
found).getStr(),
+ 1, xmlXPathNodeSetGetLength(pXmlNodes));
+
+xmlNodePtr pXmlNode = pXmlNodes-nodeTab[0];
+OUString contents = OUString::createFromAscii((const 
char*)((pXmlNode-children[0]).content));
+CPPUNIT_ASSERT_EQUAL_MESSAGE(XPath contents do not 
match,rContent,contents);
+}
+
 /**
  * Assert that rXPath exists, and has exactly nNumberOfChildNodes child 
nodes.
  * Useful for checking that we do have a no child nodes to a specific node 
(nNumberOfChildNodes == 0).
diff --git a/sw/qa/extras/ooxmlexport/data/fdo73596_AlphaSeparator.docx 
b/sw/qa/extras/ooxmlexport/data/fdo73596_AlphaSeparator.docx
new file mode 100644
index 000..892bc55
Binary files /dev/null and 
b/sw/qa/extras/ooxmlexport/data/fdo73596_AlphaSeparator.docx differ
diff --git a/sw/qa/extras/ooxmlexport/data/fdo73596_RunInStyle.docx 
b/sw/qa/extras/ooxmlexport/data/fdo73596_RunInStyle.docx
new file mode 100644
index 000..8f1863b
Binary files /dev/null and 
b/sw/qa/extras/ooxmlexport/data/fdo73596_RunInStyle.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 06b6fa5..f885438 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -2348,6 +2348,27 @@ DECLARE_OOXMLEXPORT_TEST(testFdo73541,fdo73541.docx)
 assertXPath(pXmlDoc, /w:settings/w:mirrorMargins);
 }
 
+DECLARE_OOXMLEXPORT_TEST(testfdo73596_RunInStyle,fdo73596_RunInStyle.docx)
+{
+// INDEX should be preserved.
+xmlDocPtr pXmlDoc = parseExport(word/document.xml);
+if (!pXmlDoc)
+return;
+assertXPathContent(pXmlDoc, 
/w:document/w:body/w:p[2]/w:r[2]/w:instrText[1], INDEX \\e \);
+}
+
+DECLARE_OOXMLEXPORT_TEST(testfdo73596_AlphaSeparator,fdo73596_AlphaSeparator.docx)
+{
+// INDEX flag \h A should be preserved.
+xmlDocPtr pXmlDoc = parseExport(word/document.xml);
+if (!pXmlDoc)
+return;
+xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc, 
/w:document/w:body/w:p[2]/w:r[2]/w:instrText[1]);
+xmlNodePtr pXmlNode = pXmlNodes-nodeTab[0];
+OUString contents = OUString::createFromAscii((const 
char*)((pXmlNode-children[0]).content));
+CPPUNIT_ASSERT(contents.match( INDEX \\h \A\ \\e \));
+}
+
 DECLARE_OOXMLEXPORT_TEST(testFDO74106, FDO74106.docx)
 {
 xmlDocPtr pXmlDoc = parseExport(word/numbering.xml);
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 5263dcf..0109d87 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -2102,7 +2102,9 @@ void AttributeOutputBase::StartTOX( const SwSection 
rSect )
 if (nsSwTOIOptions::TOI_ALPHA_DELIMITTER  pTOX-GetOptions())
 sStr += \\h \A\ ;
 
+if (!pTOX-GetTOXForm().IsCommaSeparated())
 {
+// In case of Run-in style no separators are added.
 OUString aFillTxt;
 for (sal_uInt8 n = 1; n = 3; ++n)
 {
diff 

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

2014-03-05 Thread Vinaya Mandke
 include/oox/drawingml/shape.hxx |3 
 oox/source/drawingml/diagram/diagram.cxx|   15 
 oox/source/drawingml/diagram/diagram.hxx|4 -
 oox/source/drawingml/shape.cxx  |   40 +++
 oox/source/shape/ShapeContextHandler.cxx|   11 ++-
 sw/qa/extras/ooxmlexport/data/fdo74792.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx|   24 ++
 sw/source/filter/ww8/docxsdrexport.cxx  |  101 ++--
 sw/source/filter/ww8/docxsdrexport.hxx  |5 +
 9 files changed, 193 insertions(+), 10 deletions(-)

New commits:
commit 6536826f2f4c747582d60ed40b0418c6a67a9829
Author: Vinaya Mandke vinaya.man...@synerzip.com
Date:   Tue Feb 25 13:13:11 2014 +0530

fdo#74792 [DOCX] Grab-bag rels and images for SmartArt

Added support to grab-bag rels and associated Images for
data[i].xml, and drawing[i].xml.
Added UT for the same

Conflicts:
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
https://gerrit.libreoffice.org/8362

Change-Id: I545825f67214f14037ab72b77764a07d575b8b5b

diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx
index fa3f58c..7f3ba65 100644
--- a/include/oox/drawingml/shape.hxx
+++ b/include/oox/drawingml/shape.hxx
@@ -178,7 +178,8 @@ public:
 const com::sun::star::uno::Sequencecom::sun::star::beans::PropertyValue 
 getDiagramDoms() { return maDiagramDoms; }
 voidsetDiagramDoms(const 
com::sun::star::uno::Sequencecom::sun::star::beans::PropertyValue 
rDiagramDoms) { maDiagramDoms = rDiagramDoms; }
-
+com::sun::star::uno::Sequence com::sun::star::uno::Sequence 
com::sun::star::uno::Any  resolveRelationshipsOfType(
+  
core::XmlFilterBase rFilter, OUString sFragment, OUString sType );
 protected:
 
 ::com::sun::star::uno::Reference ::com::sun::star::drawing::XShape 
diff --git a/oox/source/drawingml/diagram/diagram.cxx 
b/oox/source/drawingml/diagram/diagram.cxx
index da439ea..4672a28 100644
--- a/oox/source/drawingml/diagram/diagram.cxx
+++ b/oox/source/drawingml/diagram/diagram.cxx
@@ -338,6 +338,9 @@ uno::Sequencebeans::PropertyValue 
Diagram::getDomsAsPropertyValues() const
 {
 sal_Int32 length = maMainDomMap.size();
 
+if ( 0  maDataRelsMap.getLength() )
+++length;
+
 uno::Sequencebeans::PropertyValue aValue(length);
 beans::PropertyValue* pValue = aValue.getArray();
 for (DiagramDomMap::const_iterator i = maMainDomMap.begin();
@@ -349,6 +352,13 @@ uno::Sequencebeans::PropertyValue 
Diagram::getDomsAsPropertyValues() const
 ++pValue;
 }
 
+if ( 0  maDataRelsMap.getLength() )
+{
+pValue[0].Name = OUString(OOXDiagramDataRels);
+pValue[0].Value = uno::makeAny ( maDataRelsMap );
+++pValue;
+}
+
 return aValue;
 }
 
@@ -410,6 +420,11 @@ void loadDiagram( ShapePtr pShape,
OOXData,
pDiagram,
xRefDataModel);
+
+pDiagram-getDataRelsMap() = pShape-resolveRelationshipsOfType( 
rFilter, xRefDataModel-getFragmentPath(),
+   
http://schemas.openxmlformats.org/officeDocument/2006/relationships/image; );
+
+
 // Pass the info to pShape
 for( ::std::vectorOUString::const_iterator aIt = 
pData-getExtDrawings().begin(), aEnd = pData-getExtDrawings().end();
 aIt != aEnd; ++aIt )
diff --git a/oox/source/drawingml/diagram/diagram.hxx 
b/oox/source/drawingml/diagram/diagram.hxx
index 031c66b..ae611c9 100644
--- a/oox/source/drawingml/diagram/diagram.hxx
+++ b/oox/source/drawingml/diagram/diagram.hxx
@@ -157,6 +157,7 @@ typedef boost::shared_ptr LayoutNode  LayoutNodePtr;
 
 
 typedef std::map OUString, uno::Referencexml::dom::XDocument  
DiagramDomMap;
+typedef uno::Sequence uno::Sequence uno::Any   DiagramRelsMap;
 
 
 
@@ -296,7 +297,7 @@ public:
 DiagramColorMap getColors() { return maColors; }
 const DiagramColorMap getColors() const { return maColors; }
 DiagramDomMap  getDomMap() { return maMainDomMap; }
-
+DiagramRelsMap  getDataRelsMap() { return maDataRelsMap; }
 void addTo( const ShapePtr  pShape );
 
 uno::Sequencebeans::PropertyValue getDomsAsPropertyValues() const;
@@ -308,6 +309,7 @@ private:
 DiagramColorMapmaColors;
 std::map OUString, ShapePtr  maShapeMap;
 DiagramDomMap  maMainDomMap;
+DiagramRelsMap maDataRelsMap;
 };
 
 
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index ce1d3b6..3a2ebae 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -1200,6 +1200,46 @@ void Shape::putPropertiesToGrabBag( const Sequence 
PropertyValue  aProperties
 }
 }
 
+uno::Sequence uno::Sequence uno::Any

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

2014-03-05 Thread Andre Fischer
 filter/source/msfilter/msdffimp.cxx |   18 ++
 1 file changed, 18 insertions(+)

New commits:
commit 1cbec9cd986100de185f6dc10301a54f6604e6af
Author: Andre Fischer a...@apache.org
Date:   Mon Jul 9 11:10:26 2012 +

Resolves: #i119480# Fixed import of curves from PPT

Reported by: Du Jing
Patch by: SunYing
Review by: Andre Fischer

(cherry picked from commit 7d4fbffcf83ae6cbd01485320c2f21155c3dd4de)

Change-Id: I1ca3caf3aaec255ab204a4a687ed8434fbdb234a

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index 679388c..f759592 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4393,6 +4393,7 @@ SdrObject* SvxMSDffManager::ImportShape( const 
DffRecordHeader rHd, SvStream r
 // before clearing the GeometryItem we have to store 
the current Coordinates
 const uno::Any* pAny = 
((SdrCustomShapeGeometryItem)aGeometryItem).GetPropertyValueByName( sPath, 
sCoordinates );
 Rectangle aPolyBoundRect;
+Point aStartPt( 0,0 );
 if ( pAny  ( *pAny = seqCoordinates )  ( 
seqCoordinates.getLength() = 4 ) )
 {
 sal_Int32 nPtNum, nNumElemVert = 
seqCoordinates.getLength();
@@ -4408,6 +4409,11 @@ SdrObject* SvxMSDffManager::ImportShape( const 
DffRecordHeader rHd, SvStream r
 aXP[ (sal_uInt16)nPtNum ] = aP;
 }
 aPolyBoundRect = Rectangle( aXP.GetBoundRect() );
+if ( nNumElemVert = 3 )
+{ // arc first command is always wr -- clockwise 
arc
+// the parameters are : 
(left,top),(right,bottom),start(x,y),end(x,y)
+aStartPt = aXP[2];
+}
 }
 else
 aPolyBoundRect = Rectangle( -21600, 0, 21600, 
43200 );  // defaulting
@@ -4432,6 +4438,18 @@ SdrObject* SvxMSDffManager::ImportShape( const 
DffRecordHeader rHd, SvStream r
 else
 {
 fNumber = 270.0;
+//normal situation:if endAngle != 90,there 
will be a direct_value,but for damaged curve,the endAngle need to recalculate.
+Point cent = aPolyBoundRect.Center();
+if ( aStartPt.Y() == cent.Y() )
+fNumber = ( aStartPt.X() = cent.X() ) ? 
0:180.0;
+else if ( aStartPt.X() == cent.X() )
+fNumber = ( aStartPt.Y() = cent.Y() ) ? 
90.0: 270.0;
+else
+{
+fNumber = atan2( double( aStartPt.X() - 
cent.X() ),double( aStartPt.Y() - cent.Y() ) )+ F_PI; // 0..2PI
+fNumber /= F_PI180; // 0..360.0
+}
+nEndAngle = NormAngle360( - (sal_Int32)fNumber 
* 100 );
 seqAdjustmentValues[ 0 ].Value = fNumber;
 seqAdjustmentValues[ 0 ].State = 
com::sun::star::beans::PropertyState_DIRECT_VALUE; // so this value will 
properly be stored
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - 7d/4fbffcf83ae6cbd01485320c2f21155c3dd4de

2014-03-05 Thread Caolán McNamara
 7d/4fbffcf83ae6cbd01485320c2f21155c3dd4de |1 +
 1 file changed, 1 insertion(+)

New commits:
commit c1443f3186e2dcf0ba40d78e37fe0180a4c5f293
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 09:23:59 2014 +

Notes added by 'git notes add'

diff --git a/7d/4fbffcf83ae6cbd01485320c2f21155c3dd4de 
b/7d/4fbffcf83ae6cbd01485320c2f21155c3dd4de
new file mode 100644
index 000..74b73d7
--- /dev/null
+++ b/7d/4fbffcf83ae6cbd01485320c2f21155c3dd4de
@@ -0,0 +1 @@
+merged as: 1cbec9cd986100de185f6dc10301a54f6604e6af
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Caolán McNamara
 oox/source/drawingml/shape.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 19a28edc632b8b8b209717c1b21ae69c3ac51bfb
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 09:33:34 2014 +

getRelationsFromType - getRelationsFromTypeFromOfficeDoc (?)

Change-Id: I492020d03ed4178510e6aae431cf4827c1166f0b

diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 3a2ebae..b40356a 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -1208,7 +1208,7 @@ uno::Sequence uno::Sequence uno::Any
Shape::resolveRelationshipsOfType(co
 core::RelationsRef xRels = rFilter.importRelations( sFragment );
 if ( xRels )
 {
-core::RelationsRef xImageRels = xRels-getRelationsFromType( sType );
+core::RelationsRef xImageRels = 
xRels-getRelationsFromTypeFromOfficeDoc( sType );
 if ( xImageRels )
 {
 xRelListTemp.realloc( xImageRels-size() );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Caolán McNamara
 include/oox/core/relations.hxx |1 +
 oox/source/core/relations.cxx  |9 +
 oox/source/drawingml/shape.cxx |2 +-
 3 files changed, 11 insertions(+), 1 deletion(-)

New commits:
commit d2c08569373551144b141bbdeea76894cf7fc82b
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 09:42:06 2014 +

Revert remove unused code oox::core::Relations::getRelationsFromType

we need it again now

This reverts commit 77c45eb25eb462bacdf7d658d6cb485f755beaa5.

Change-Id: I3e171d95e4f50c8e26824da2f6e6817d3b597d4d

diff --git a/include/oox/core/relations.hxx b/include/oox/core/relations.hxx
index bbe2968..4254b99 100644
--- a/include/oox/core/relations.hxx
+++ b/include/oox/core/relations.hxx
@@ -82,6 +82,7 @@ public:
 /** Returns the first relation with the passed type. */
 const Relation* getRelationFromFirstTypeFromOfficeDoc( const OUString 
rType ) const;
 /** Finds all relations associated with the passed type. */
+RelationsRefgetRelationsFromType( const OUString rType ) const;
 RelationsRefgetRelationsFromTypeFromOfficeDoc( const OUString 
rType ) const;
 
 /** Returns the external target of the relation with the passed relation 
identifier. */
diff --git a/oox/source/core/relations.cxx b/oox/source/core/relations.cxx
index 4122678..d2e1b28 100644
--- a/oox/source/core/relations.cxx
+++ b/oox/source/core/relations.cxx
@@ -71,6 +71,15 @@ const Relation* Relations::getRelationFromFirstType( const 
OUString rType ) con
 return 0;
 }
 
+RelationsRef Relations::getRelationsFromType( const OUString rType ) const
+{
+RelationsRef xRelations( new Relations( maFragmentPath ) );
+for( const_iterator aIt = begin(), aEnd = end(); aIt != aEnd; ++aIt )
+if( aIt-second.maType.equalsIgnoreAsciiCase( rType ) )
+(*xRelations)[ aIt-first ] = aIt-second;
+return xRelations;
+}
+
 RelationsRef Relations::getRelationsFromTypeFromOfficeDoc( const OUString 
rType ) const
 {
 RelationsRef xRelations( new Relations( maFragmentPath ) );
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index b40356a..3a2ebae 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -1208,7 +1208,7 @@ uno::Sequence uno::Sequence uno::Any
Shape::resolveRelationshipsOfType(co
 core::RelationsRef xRels = rFilter.importRelations( sFragment );
 if ( xRels )
 {
-core::RelationsRef xImageRels = 
xRels-getRelationsFromTypeFromOfficeDoc( sType );
+core::RelationsRef xImageRels = xRels-getRelationsFromType( sType );
 if ( xImageRels )
 {
 xRelListTemp.realloc( xImageRels-size() );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread PriyankaGaikwad
 sw/qa/extras/ooxmlexport/data/tableCurrupt.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx|9 +
 sw/source/filter/ww8/docxattributeoutput.cxx|   11 +++
 sw/source/filter/ww8/docxattributeoutput.hxx|2 ++
 4 files changed, 22 insertions(+)

New commits:
commit 0415e2696156b25226f21085a0716187f83c2f4b
Author: PriyankaGaikwad priyanka.gaik...@synerzip.com
Date:   Thu Feb 27 17:42:52 2014 +0530

fdo#73219 File corruption: Table in header

Description:
File corrupt due to the end tag /w:tc /w:tr /w:tbl are missing after 
roundtrip in header4.xml

Conflicts:
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
https://gerrit.libreoffice.org/8378

Change-Id: Ib05a50b3b3beca6c744b93360f9341ddcaa1a22a

diff --git a/sw/qa/extras/ooxmlexport/data/tableCurrupt.docx 
b/sw/qa/extras/ooxmlexport/data/tableCurrupt.docx
new file mode 100644
index 000..1deda7d
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tableCurrupt.docx 
differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 094519c..4c1ba4f 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -2962,6 +2962,15 @@ DECLARE_OOXMLEXPORT_TEST(testFdo74792, fdo74792.docx)
 CPPUNIT_ASSERT( xInputStream.is() );
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTableCurruption, tableCurrupt.docx)
+{
+xmlDocPtr pXmlDoc = parseExport(word/header4.xml);
+if (!pXmlDoc)
+return;
+CPPUNIT_ASSERT(pXmlDoc) ;
+assertXPath(pXmlDoc, /w:hdr/w:tbl[1]/w:tr[1]/w:tc[1],1);
+}
+
 #endif
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx 
b/sw/source/filter/ww8/docxattributeoutput.cxx
index d7d9dea..2fe102c 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -251,9 +251,18 @@ void DocxAttributeOutput::StartParagraph( 
ww8::WW8TableNodeInfo::Pointer_t pText
 {
 ww8::WW8TableNodeInfoInner::Pointer_t pInner( 
pTextNodeInfo-getInnerForDepth( nDepth ) );
 
+if (m_tableReference-m_pOldTablepInner  
m_tableReference-m_pOldTablepInner-getTable() == pInner-getTable()  
nCurrentDepth  1   nDepth != 1)
+{
+   m_tableReference-m_pOldTablepInner = pInner;
+   break;
+}
+else
+{
 StartTable( pInner );
 StartTableRow( pInner );
 StartTableCell( pInner );
+m_tableReference-m_pOldTablepInner = pInner;
+}
 }
 
 m_tableReference-m_nTableDepth = nCurrentDepth;
@@ -2366,8 +2375,10 @@ void DocxAttributeOutput::switchHeaderFooter(bool 
isHeaderFooter, sal_Int32 inde
 {
 m_oldTableReference-m_bTableCellOpen = 
m_tableReference-m_bTableCellOpen;
 m_oldTableReference-m_nTableDepth = m_tableReference-m_nTableDepth;
+m_oldTableReference-m_pOldTablepInner = 
m_tableReference-m_pOldTablepInner;
 m_tableReference-m_bTableCellOpen = false;
 m_tableReference-m_nTableDepth = 0;
+m_pSectionInfo.reset();
 }
 else if( index == -1)
 {
diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx 
b/sw/source/filter/ww8/docxattributeoutput.hxx
index b765315..6012f43 100644
--- a/sw/source/filter/ww8/docxattributeoutput.hxx
+++ b/sw/source/filter/ww8/docxattributeoutput.hxx
@@ -113,6 +113,8 @@ struct TableReference
 /// Remember the current table depth.
 sal_uInt32 m_nTableDepth;
 
+ww8::WW8TableNodeInfoInner::Pointer_t m_pOldTablepInner;
+
 TableReference()
 : m_bTableCellOpen(false),
 m_nTableDepth(0)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - filter/CppunitTest_filter_xslt.mk filter/Module_filter.mk filter/qa filter/source

2014-03-05 Thread Michael Stahl
 filter/CppunitTest_filter_xslt.mk   |   45 +
 filter/Module_filter.mk |4 
 filter/qa/cppunit/data/xslt/copy.xslt   |9 +
 filter/qa/cppunit/xslt-test.cxx |  193 
 filter/source/xsltfilter/LibXSLTTransformer.cxx |5 
 5 files changed, 255 insertions(+), 1 deletion(-)

New commits:
commit 4cb3765cccd22cb127a263be4125470466c65467
Author: Michael Stahl mst...@redhat.com
Date:   Tue Mar 4 17:59:45 2014 +0100

filter: make LibXSLTTransformer init backward compatible

As reported by Fernand Vanrie, initializing the XSLT service can fail
because the LibXSLTTransformer::initialize was changed to require
the parameters as a nested Sequence; accept previous parameter
convention as a fall-back.

(regression from ca0ea73a4ab104031a16b5bac7a9bb6e57c77ba0)

(cherry picked from commit 6967da019b69767a15116de101d33a16b95c8a44)

filter: and we learn that BootstrapFixture requires boost headers
(cherry picked from commit bfdd18eb35f5c8bf7f713910ec35b853c7456969)

filter: don't wait forever if the xslt test fails
(cherry picked from commit 8af7a8953248dd184cd620b934ee6abc147f4076)

I imagine this should have a SAL_CALL decoration
(cherry picked from commit 62d6252d2cde33f6ef0e627c3192a63d43ba2a87)

filter: sigh... fix the xslt test to run on WNT too
(cherry picked from commit 4fcd5534348adcb61ab85b93478c272b8d9e8f8c)

Change-Id: I136e6e6338f11ffecf9f856f0736d1d0e6b17c3f
Reviewed-on: https://gerrit.libreoffice.org/8451
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/filter/CppunitTest_filter_xslt.mk 
b/filter/CppunitTest_filter_xslt.mk
new file mode 100644
index 000..181f482
--- /dev/null
+++ b/filter/CppunitTest_filter_xslt.mk
@@ -0,0 +1,45 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_CppunitTest_CppunitTest,filter_xslt))
+
+$(eval $(call gb_CppunitTest_use_api,filter_xslt,\
+   offapi \
+   udkapi \
+))
+
+$(eval $(call gb_CppunitTest_use_ure,filter_xslt))
+
+$(eval $(call gb_CppunitTest_use_configuration,filter_xslt))
+
+$(eval $(call gb_CppunitTest_use_external,filter_xslt,boost_headers))
+
+$(eval $(call gb_CppunitTest_use_libraries,filter_xslt, \
+   comphelper \
+   test \
+   unotest \
+   cppuhelper \
+   cppu \
+   sal \
+   $(gb_UWINAPI) \
+))
+
+$(eval $(call gb_CppunitTest_use_components,filter_xslt,\
+   configmgr/source/configmgr \
+   filter/source/xsltfilter/xsltfilter \
+   i18npool/util/i18npool \
+   ucb/source/core/ucb1 \
+   ucb/source/ucp/file/ucpfile1 \
+))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,filter_xslt, \
+   filter/qa/cppunit/xslt-test \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/filter/Module_filter.mk b/filter/Module_filter.mk
index 403184a..e5d67e7 100644
--- a/filter/Module_filter.mk
+++ b/filter/Module_filter.mk
@@ -77,6 +77,10 @@ $(eval $(call gb_Module_add_targets,filter,\
 ))
 endif
 
+$(eval $(call gb_Module_add_check_targets,filter,\
+CppunitTest_filter_xslt \
+))
+
 ifneq ($(DISABLE_CVE_TESTS),TRUE)
 $(eval $(call gb_Module_add_check_targets,filter,\
 CppunitTest_filter_pict_test \
diff --git a/filter/qa/cppunit/data/xslt/copy.xslt 
b/filter/qa/cppunit/data/xslt/copy.xslt
new file mode 100644
index 000..d46172a
--- /dev/null
+++ b/filter/qa/cppunit/data/xslt/copy.xslt
@@ -0,0 +1,9 @@
+?xml version=1.0 encoding=UTF-8?
+xsl:stylesheet version=1.0
+xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
+
+xsl:template match=/
+   xsl:copy-of select=//
+/xsl:template
+
+/xsl:stylesheet
diff --git a/filter/qa/cppunit/xslt-test.cxx b/filter/qa/cppunit/xslt-test.cxx
new file mode 100644
index 000..509d37c
--- /dev/null
+++ b/filter/qa/cppunit/xslt-test.cxx
@@ -0,0 +1,193 @@
+/* -*- 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/.
+ */
+
+#include limits
+
+#include cppunit/TestAssert.h
+#include cppunit/TestFixture.h
+#include cppunit/extensions/HelperMacros.h
+#include cppunit/plugin/TestPlugIn.h
+
+#include sal/types.h
+
+#include rtl/ref.hxx
+
+#include osl/file.hxx
+#include osl/thread.h
+
+#include com/sun/star/beans/NamedValue.hpp
+#include com/sun/star/io/XStreamListener.hpp
+#include com/sun/star/uno/XComponentContext.hpp
+#include 

[Bug 44446] LibreOffice 3.6 most annoying bugs

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=6

Bug 6 depends on bug 51550, which changed state.

Bug 51550 Summary: FILESAVE as .docx looses embedded OLE objects
https://bugs.freedesktop.org/show_bug.cgi?id=51550

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

-- 
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


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

2014-03-05 Thread Jacobo Aragunde Pérez
 sw/source/filter/ww8/docxsdrexport.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aad35298c43795e60605e0ea71290642687c8fc4
Author: Jacobo Aragunde Pérez jaragu...@igalia.com
Date:   Fri Feb 28 19:47:44 2014 +0100

fdo#70838: fix size error in rotated shapes in DrawingML

We should pass the natural rectangle instead of the bounding box as
the size of the shape.

Change-Id: I3ecee9d5645f280071c2872ecd08dbcf54574b8a

diff --git a/sw/source/filter/ww8/docxsdrexport.cxx 
b/sw/source/filter/ww8/docxsdrexport.cxx
index d07e477..5ed1811 100644
--- a/sw/source/filter/ww8/docxsdrexport.cxx
+++ b/sw/source/filter/ww8/docxsdrexport.cxx
@@ -486,7 +486,7 @@ void DocxSdrExport::writeVMLDrawing(const SdrObject* 
sdrObj, const SwFrmFmt rFr
 void DocxSdrExport::Impl::writeDMLDrawing(const SdrObject* pSdrObject, const 
SwFrmFmt* pFrmFmt, int nAnchorId)
 {
 sax_fastparser::FSHelperPtr pFS = m_pSerializer;
-Size aSize(pSdrObject-GetSnapRect().GetWidth(), 
pSdrObject-GetSnapRect().GetHeight());
+Size aSize(pSdrObject-GetLogicRect().GetWidth(), 
pSdrObject-GetLogicRect().GetHeight());
 m_rSdrExport.startDMLAnchorInline(pFrmFmt, aSize);
 
 sax_fastparser::FastAttributeList* pDocPrAttrList = pFS-createAttrList();
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Vinaya Mandke
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx  |2 +
 writerfilter/source/dmapper/DomainMapper.cxx  |   23 --
 writerfilter/source/dmapper/DomainMapper_Impl.cxx |6 -
 writerfilter/source/dmapper/DomainMapper_Impl.hxx |1 
 4 files changed, 29 insertions(+), 3 deletions(-)

New commits:
commit 7691532a89a94120c220f77e8cc6c42615e3d7c4
Author: Vinaya Mandke vinaya.man...@synerzip.com
Date:   Mon Mar 3 16:31:00 2014 +0530

fdo#73596 [DOCX] Index:distance between columns

Import the w:space or the distance between multiple
columns of an Index
Modifies existing UT for the same

Reviewed on:
https://gerrit.libreoffice.org/8444

Change-Id: I6d38e106208524cb22d0b98b0071360865e64bc0

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 4c1ba4f..920f33a 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -2755,6 +2755,8 @@ 
DECLARE_OOXMLEXPORT_TEST(testAlphabeticalIndex_MultipleColumns,alphabeticalInde
 // check for section breaks after and before the Index Section
 assertXPath(pXmlDoc, 
/w:document/w:body/w:p[2]/w:pPr/w:sectPr/w:type,val,continuous);
 assertXPath(pXmlDoc, 
/w:document/w:body/w:p[9]/w:pPr/w:sectPr/w:type,val,continuous);
+// check for w:space attribute for the columns in Section Properties
+assertXPath(pXmlDoc, 
/w:document/w:body/w:p[9]/w:pPr/w:sectPr/w:cols/w:col[1],space,720);
 }
 
 DECLARE_OOXMLEXPORT_TEST(testPageref, testPageref.docx)
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx 
b/writerfilter/source/dmapper/DomainMapper.cxx
index ccc6a85..6e0f4e3 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -57,6 +57,7 @@
 #include com/sun/star/text/WritingMode.hpp
 #include com/sun/star/text/WritingMode2.hpp
 #include com/sun/star/text/XFootnote.hpp
+#include com/sun/star/text/XTextColumns.hpp
 #include com/sun/star/uno/XComponentContext.hpp
 #include comphelper/types.hxx
 #include comphelper/storagehelper.hxx
@@ -1912,6 +1913,24 @@ void DomainMapper::sprmWithProps( Sprm rSprm, 
PropertyMapPtr rContext, SprmType
 pSectionContext-SetSeparatorLine( pSectHdl-IsSeparator() 
);
 }
 }
+
+else if ( pSectionContext )
+{
+FieldContextPtr pContext = m_pImpl-GetTopFieldContext();
+uno::Reference beans::XPropertySet  xTOC = 
pContext-GetTOC();
+if( xTOC.is() )
+{
+uno::Referencetext::XTextColumns xTextColumns;
+xTOC-getPropertyValue(rPropNameSupplier.GetName( 
PROP_TEXT_COLUMNS )) = xTextColumns;
+if (xTextColumns.is())
+{
+uno::Reference beans::XPropertySet  xColumnPropSet( 
xTextColumns, uno::UNO_QUERY_THROW );
+if ( xColumnPropSet.is() )
+xColumnPropSet-setPropertyValue( 
rPropNameSupplier.GetName( PROP_AUTOMATIC_DISTANCE ), uno::makeAny( 
pSectHdl-GetSpace() ));
+xTOC-setPropertyValue( rPropNameSupplier.GetName( 
PROP_TEXT_COLUMNS ), uno::makeAny( xTextColumns ) );
+}
+}
+}
 }
 }
 break;
@@ -2405,7 +2424,7 @@ void DomainMapper::data(const sal_uInt8* /*buf*/, size_t 
/*len*/,
 
 void DomainMapper::lcl_startSectionGroup()
 {
-if (!m_pImpl-isInIndexContext() || !m_pImpl-isInBibliographyContext())
+if (!m_pImpl-isInIndexContext()  !m_pImpl-isInBibliographyContext())
 {
 m_pImpl-PushProperties(CONTEXT_SECTION);
 }
@@ -2413,7 +2432,7 @@ void DomainMapper::lcl_startSectionGroup()
 
 void DomainMapper::lcl_endSectionGroup()
 {
-if (!m_pImpl-isInIndexContext() || !m_pImpl-isInBibliographyContext())
+if (!m_pImpl-isInIndexContext()  !m_pImpl-isInBibliographyContext())
 {
 m_pImpl-CheckUnregisteredFrameConversion();
 m_pImpl-ExecuteFrameConversion();
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx 
b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 3501098..0d08a38 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -464,7 +464,11 @@ uno::Reference text::XTextAppend   
DomainMapper_Impl::GetTopTextAppend()
 return m_aTextAppendStack.top().xTextAppend;
 }
 
-
+FieldContextPtr  DomainMapper_Impl::GetTopFieldContext()
+{
+SAL_WARN_IF(m_aFieldStack.empty(), writerfilter, Field stack is empty);
+return m_aFieldStack.top();
+}
 
 void DomainMapper_Impl::InitTabStopFromStyle( const uno::Sequence 
style::TabStop  rInitTabStops )
 {
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx 
b/writerfilter/source/dmapper/DomainMapper_Impl.hxx
index ddd7775..6c7cac5 100644
--- 

[Bug 60270] LibreOffice 4.1 most annoying bugs

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60270

Michael Meeks michael.me...@collabora.com changed:

   What|Removed |Added

 Depends on||51550

-- 
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


[Bug 44446] LibreOffice 3.6 most annoying bugs

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=6

Michael Meeks michael.me...@collabora.com changed:

   What|Removed |Added

 Depends on|51550   |

-- 
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


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

2014-03-05 Thread Markus Mohrhard
 include/test/bootstrapfixture.hxx |8 
 sc/qa/unit/helper/qahelper.cxx|   68 --
 test/source/bootstrapfixture.cxx  |   74 ++
 3 files changed, 83 insertions(+), 67 deletions(-)

New commits:
commit 9a7ca779cdd3007df4e1425d296ba83091a4044d
Author: Markus Mohrhard markus.mohrh...@collabora.co.uk
Date:   Wed Mar 5 11:11:41 2014 +0100

move the export validation code to test

Change-Id: Iaafe30a1095bd5b6dac3637c394818ba8bd848ce

diff --git a/include/test/bootstrapfixture.hxx 
b/include/test/bootstrapfixture.hxx
index 3896010..f7e40e6 100644
--- a/include/test/bootstrapfixture.hxx
+++ b/include/test/bootstrapfixture.hxx
@@ -27,6 +27,12 @@
 
 namespace test {
 
+enum ValidationFormat
+{
+OOXML,
+ODF
+};
+
 // Class to do lots of heavy-lifting UNO  environment
 // bootstrapping for unit tests, such that we can use
 // almost an entire LibreOffice during compile - so
@@ -47,6 +53,8 @@ public:
 
   virtual void setUp();
   virtual void tearDown();
+
+  static void validate(const OUString rURL, ValidationFormat);
 };
 
 }
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index 7ab7a36..320ab5e 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -587,70 +587,6 @@ void ScBootstrapFixture::createCSVPath(const OUString 
aFileBase, OUString rCSV
 rCSVPath = aBuffer.makeStringAndClear();
 }
 
-namespace validation {
-
-enum ScValidationFormat
-{
-OOXML
-};
-
-}
-
-#if HAVE_EXPORT_VALIDATION
-
-namespace {
-
-void validate(const utl::TempFile rTempFile, validation::ScValidationFormat 
eFormat)
-{
-OUString aValidator;
-if( eFormat == validation::OOXML )
-{
-aValidator = officeotron ;
-}
-else
-return;
-
-utl::TempFile aOutput;
-aOutput.EnableKillingFile();
-OUString aOutputFile = aOutput.GetFileName();
-OUString aInputFile = rTempFile.GetFileName();
-OUString aCommand = aValidator + aInputFile ++ aOutputFile;
-
-system(OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8).getStr());
-
-std::string aContent;
-loadFile(aOutputFile, aContent);
-OString aContentString(aContent.c_str());
-OUString aContentOUString = OStringToOUString(aContentString, 
RTL_TEXTENCODING_UTF8);
-
-if( eFormat == validation::OOXML  !aContentOUString.isEmpty() )
-{
-// check for validation errors here
-sal_Int32 nIndex = aContentOUString.lastIndexOf(Grand total of errors 
in submitted package: );
-if(nIndex == -1)
-{
-SAL_WARN(sc, no summery line);
-}
-else
-{
-sal_Int32 nStartOfNumber = nIndex + std::strlen(Grand total of 
errors in submitted package: );
-OUString aNumber = aContentOUString.copy(nStartOfNumber);
-sal_Int32 nErrors = aNumber.toInt32();
-OString aMsg(validation error in OOXML export: Errors: );
-aMsg = aMsg + OString::number(nErrors);
-if(nErrors)
-{
-SAL_WARN(sc, aContent);
-}
-CPPUNIT_ASSERT_EQUAL_MESSAGE(aMsg.getStr(), sal_Int32(0), nErrors);
-}
-}
-}
-
-}
-
-#endif
-
 ScDocShellRef ScBootstrapFixture::saveAndReload(
 ScDocShell* pShell, const OUString rFilter,
 const OUString rUserData, const OUString rTypeName, sal_uLong 
nFormatType)
@@ -678,10 +614,8 @@ ScDocShellRef ScBootstrapFixture::saveAndReload(
 nFormat = SFX_FILTER_IMPORT | SFX_FILTER_USESOPTIONS;
 
 ScDocShellRef xDocSh = load(aTempFile.GetURL(), rFilter, rUserData, 
rTypeName, nFormatType, nFormat );
-#if HAVE_EXPORT_VALIDATION
 if(nFormatType == XLSX_FORMAT_TYPE)
-validate(aTempFile, validation::OOXML);
-#endif
+validate(aTempFile.GetFileName(), test::OOXML);
 return xDocSh;
 }
 
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index 23ea391..137a284 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -23,6 +23,11 @@
 #include tools/resmgr.hxx
 #include vcl/graphicfilter.hxx
 #include unotools/syslocaleoptions.hxx
+#include osl/file.hxx
+#include unotools/tempfile.hxx
+
+#include boost/scoped_array.hpp
+#include cstring
 
 using namespace ::com::sun::star;
 
@@ -113,6 +118,75 @@ test::BootstrapFixture::~BootstrapFixture()
 {
 }
 
+namespace {
+
+OString loadFile(const OUString rURL)
+{
+osl::File aFile(rURL);
+osl::FileBase::RC eStatus = aFile.open(osl_File_OpenFlag_Read);
+CPPUNIT_ASSERT_EQUAL(eStatus, osl::FileBase::E_None);
+sal_uInt64 nSize;
+aFile.getSize(nSize);
+boost::scoped_arraychar aBytes(new char[nSize]);
+sal_uInt64 nBytesRead;
+aFile.read(aBytes.get(), nSize, nBytesRead);
+CPPUNIT_ASSERT_EQUAL(nSize, nBytesRead);
+OString aContent(aBytes.get());
+
+return aContent;
+}
+
+}
+
+void test::BootstrapFixture::validate(const OUString rPath, 

[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - filter/CppunitTest_filter_xslt.mk filter/Module_filter.mk filter/qa filter/source

2014-03-05 Thread Michael Stahl
 filter/CppunitTest_filter_xslt.mk   |   46 +
 filter/Module_filter.mk |4 
 filter/qa/cppunit/data/xslt/copy.xslt   |9 +
 filter/qa/cppunit/xslt-test.cxx |  193 
 filter/source/xsltfilter/LibXSLTTransformer.cxx |5 
 5 files changed, 256 insertions(+), 1 deletion(-)

New commits:
commit f856667ee6ae786575aa8e82f71ff2dabf16a659
Author: Michael Stahl mst...@redhat.com
Date:   Tue Mar 4 17:59:45 2014 +0100

filter: make LibXSLTTransformer init backward compatible

As reported by Fernand Vanrie, initializing the XSLT service can fail
because the LibXSLTTransformer::initialize was changed to require
the parameters as a nested Sequence; accept previous parameter
convention as a fall-back.

(regression from ca0ea73a4ab104031a16b5bac7a9bb6e57c77ba0)

(cherry picked from commit 6967da019b69767a15116de101d33a16b95c8a44)

filter: and we learn that BootstrapFixture requires boost headers
(cherry picked from commit bfdd18eb35f5c8bf7f713910ec35b853c7456969)

filter: don't wait forever if the xslt test fails
(cherry picked from commit 8af7a8953248dd184cd620b934ee6abc147f4076)

I imagine this should have a SAL_CALL decoration
(cherry picked from commit 62d6252d2cde33f6ef0e627c3192a63d43ba2a87)

filter: sigh... fix the xslt test to run on WNT too
(cherry picked from commit 4fcd5534348adcb61ab85b93478c272b8d9e8f8c)

Change-Id: I136e6e6338f11ffecf9f856f0736d1d0e6b17c3f
Reviewed-on: https://gerrit.libreoffice.org/8456
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/filter/CppunitTest_filter_xslt.mk 
b/filter/CppunitTest_filter_xslt.mk
new file mode 100644
index 000..90af9b0
--- /dev/null
+++ b/filter/CppunitTest_filter_xslt.mk
@@ -0,0 +1,46 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_CppunitTest_CppunitTest,filter_xslt))
+
+$(eval $(call gb_CppunitTest_use_api,filter_xslt,\
+   offapi \
+   udkapi \
+))
+
+$(eval $(call gb_CppunitTest_use_ure,filter_xslt))
+
+$(eval $(call gb_CppunitTest_use_configuration,filter_xslt))
+
+$(eval $(call gb_CppunitTest_use_external,filter_xslt,boost_headers))
+
+$(eval $(call gb_CppunitTest_use_libraries,filter_xslt, \
+   comphelper \
+   test \
+   unotest \
+   cppuhelper \
+   cppu \
+   sal \
+   $(gb_UWINAPI) \
+))
+
+$(eval $(call gb_CppunitTest_use_components,filter_xslt,\
+   configmgr/source/configmgr \
+   fileaccess/source/fileacc \
+   filter/source/xsltfilter/xsltfilter \
+   i18npool/util/i18npool \
+   ucb/source/core/ucb1 \
+   ucb/source/ucp/file/ucpfile1 \
+))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,filter_xslt, \
+   filter/qa/cppunit/xslt-test \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/filter/Module_filter.mk b/filter/Module_filter.mk
index 559fb65..85480f7 100644
--- a/filter/Module_filter.mk
+++ b/filter/Module_filter.mk
@@ -75,6 +75,10 @@ $(eval $(call gb_Module_add_targets,filter,\
 ))
 endif
 
+$(eval $(call gb_Module_add_check_targets,filter,\
+CppunitTest_filter_xslt \
+))
+
 ifneq ($(DISABLE_CVE_TESTS),TRUE)
 $(eval $(call gb_Module_add_check_targets,filter,\
 CppunitTest_filter_pict_test \
diff --git a/filter/qa/cppunit/data/xslt/copy.xslt 
b/filter/qa/cppunit/data/xslt/copy.xslt
new file mode 100644
index 000..d46172a
--- /dev/null
+++ b/filter/qa/cppunit/data/xslt/copy.xslt
@@ -0,0 +1,9 @@
+?xml version=1.0 encoding=UTF-8?
+xsl:stylesheet version=1.0
+xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
+
+xsl:template match=/
+   xsl:copy-of select=//
+/xsl:template
+
+/xsl:stylesheet
diff --git a/filter/qa/cppunit/xslt-test.cxx b/filter/qa/cppunit/xslt-test.cxx
new file mode 100644
index 000..509d37c
--- /dev/null
+++ b/filter/qa/cppunit/xslt-test.cxx
@@ -0,0 +1,193 @@
+/* -*- 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/.
+ */
+
+#include limits
+
+#include cppunit/TestAssert.h
+#include cppunit/TestFixture.h
+#include cppunit/extensions/HelperMacros.h
+#include cppunit/plugin/TestPlugIn.h
+
+#include sal/types.h
+
+#include rtl/ref.hxx
+
+#include osl/file.hxx
+#include osl/thread.h
+
+#include com/sun/star/beans/NamedValue.hpp
+#include com/sun/star/io/XStreamListener.hpp
+#include 

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

2014-03-05 Thread Tushar Bende
 sw/qa/extras/ooxmlexport/data/test_ole_object.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx   |8 
 sw/source/filter/ww8/docxattributeoutput.cxx   |1 +
 3 files changed, 9 insertions(+)

New commits:
commit 7b7b64f26b9ef4ed717506f689d6d870305cb2bb
Author: Tushar Bende tushar.be...@synerzip.com
Date:   Wed Mar 5 11:25:35 2014 +0530

fdo#75557 : OLE Objects of type .zip not being preserved in RT

Problem was Document containing ole object if RoundTripped then after 
Roundtripping the OLE object was not working.
Which means if doc contains .zip file as ole object then after 
RoundTripping that .zip object was not getting opened .

Reason found that it was because of missing o:title attribute during 
RoundTrip for v:imagedata inside v:shape.

XML file difference :
In document.xml,
Before - v:shape id=ole_rId2 style=width:72pt;height:40.3pt 
o:ole=
   v:imagedata r:id=rId3 /
 /v:shape
After -  v:shape id=ole_rId2 style=width:72pt;height:40.3pt 
o:ole=
   v:imagedata r:id=rId3 o:title= /
 /v:shape

Verified that code changes working for other ole objects as well which are: 
Equations ,Excel Sheet and .zip.

Change-Id: I813de38bcd6e334ce38a661fdfcfa434ef246ed0
Reviewed-on: https://gerrit.libreoffice.org/8458
Reviewed-by: Miklos Vajna vmik...@collabora.co.uk
Tested-by: Miklos Vajna vmik...@collabora.co.uk

diff --git a/sw/qa/extras/ooxmlexport/data/test_ole_object.docx 
b/sw/qa/extras/ooxmlexport/data/test_ole_object.docx
new file mode 100644
index 000..4391946
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/test_ole_object.docx 
differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 920f33a..383566c 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -2943,6 +2943,14 @@ DECLARE_OOXMLEXPORT_TEST(testCompatSettingsForW14, 
TextEffects_StylisticSets_Cn
 assertXPath(pXmlDoc, /w:settings/w:compat/w:compatSetting[5], uri, 
http://schemas.microsoft.com/office/word;);
 assertXPath(pXmlDoc, /w:settings/w:compat/w:compatSetting[5], val, 
1);
 }
+DECLARE_OOXMLEXPORT_TEST(testOleObject, test_ole_object.docx)
+{
+xmlDocPtr pXmlDoc = parseExport(word/document.xml);
+if (!pXmlDoc)
+return;
+
+ assertXPath(pXmlDoc, 
/w:document/w:body/w:p[2]/w:r/w:object/v:shape/v:imagedata, o:title, );
+}
 
 DECLARE_OOXMLEXPORT_TEST(testFdo74792, fdo74792.docx)
 {
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx 
b/sw/source/filter/ww8/docxattributeoutput.cxx
index 2fe102c..dad9d27 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -3712,6 +3712,7 @@ void DocxAttributeOutput::WriteOLE( SwOLENode rNode, 
const Size rSize, const S
 // shape filled with the preview image
 m_pSerializer-singleElementNS( XML_v, XML_imagedata,
 FSNS( XML_r, XML_id ), OUStringToOString( 
sImageId, RTL_TEXTENCODING_UTF8 ).getStr(),
+FSNS( XML_o, XML_title ), ,
 FSEND );
 
 m_pSerializer-endElementNS( XML_v, XML_shape );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Miklos Vajna
 sw/qa/extras/ww8import/data/bnc821208.doc |binary
 sw/qa/extras/ww8import/ww8import.cxx  |   11 +++
 sw/source/filter/ww8/ww8par2.cxx  |5 +
 3 files changed, 16 insertions(+)

New commits:
commit f57fa998035cb5f859b89451a563137fdaf1b465
Author: Miklos Vajna vmik...@collabora.co.uk
Date:   Tue Mar 4 14:47:13 2014 +0100

bnc#821208 DOC import: don't overwrite WW8Num* character styles

In general we're overwriting styles on import in case we're not pasting.
But these WW8Num* character styles are in general not from the document,
they are created because Writer needs a character style for each
numbering level to handle what's in the DOC file.

So, in case there is a character style with the same name as our
character style for numbering styles, prefer the later ones, as that's
intended most likely.

(cherry picked from commit e88ee8aa307ecec1cc22cda56b97dcfd8b838ce8)

Conflicts:
sw/qa/extras/ww8import/ww8import.cxx

Change-Id: I675f867722360aca765bb96b0b43ea47deab9847
Reviewed-on: https://gerrit.libreoffice.org/8449
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/sw/qa/extras/ww8import/data/bnc821208.doc 
b/sw/qa/extras/ww8import/data/bnc821208.doc
new file mode 100755
index 000..d89d711
Binary files /dev/null and b/sw/qa/extras/ww8import/data/bnc821208.doc differ
diff --git a/sw/qa/extras/ww8import/ww8import.cxx 
b/sw/qa/extras/ww8import/ww8import.cxx
index 3311563..4fd9d21 100644
--- a/sw/qa/extras/ww8import/ww8import.cxx
+++ b/sw/qa/extras/ww8import/ww8import.cxx
@@ -35,6 +35,7 @@ public:
 void testN816593();
 void testPageBorder();
 void testN823651();
+void testBnc821208();
 
 CPPUNIT_TEST_SUITE(Test);
 #if !defined(MACOSX)  !defined(WNT)
@@ -61,6 +62,7 @@ void Test::run()
 {n816593.doc, Test::testN816593},
 {page-border.doc, Test::testPageBorder},
 {n823651.doc, Test::testN823651},
+{bnc821208.doc, Test::testBnc821208},
 };
 header();
 for (unsigned int i = 0; i  SAL_N_ELEMENTS(aMethods); ++i)
@@ -265,6 +267,15 @@ void Test::testN823651()
 CPPUNIT_ASSERT_EQUAL(7.5f, getPropertyfloat(getParagraphOfText(1, 
xText), CharHeight));
 }
 
+void Test::testBnc821208()
+{
+// WW8Num1z0 earned a Symbol font, turning numbers into rectangles.
+uno::Referencebeans::XPropertyState 
xPropertyState(getStyles(CharacterStyles)-getByName(WW8Num1z0), 
uno::UNO_QUERY);
+beans::PropertyState ePropertyState = 
xPropertyState-getPropertyState(CharFontName);
+// This was beans::PropertyState_DIRECT_VALUE.
+CPPUNIT_ASSERT_EQUAL(beans::PropertyState_DEFAULT_VALUE, ePropertyState);
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(Test);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 81841d5..01baf33 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -3763,6 +3763,11 @@ bool WW8RStyle::PrepareStyle(SwWW8StyInf rSI, ww::sti 
eSti, sal_uInt16 nThisSty
 }
 
 bool bImport = !bStyExist || pIo-mbNewDoc; // import content ?
+
+// Do not override character styles the list import code created earlier.
+if (bImport  bStyExist  rSI.GetOrgWWName().SearchAscii(WW8Num) == 0)
+bImport = false;
+
 bool bOldNoImp = pIo-bNoAttrImport;
 rSI.bImportSkipped = !bImport;
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Miklos Vajna
 sw/qa/extras/ww8import/data/bnc821208.doc |binary
 sw/qa/extras/ww8import/ww8import.cxx  |9 +
 sw/source/filter/ww8/ww8par2.cxx  |5 +
 3 files changed, 14 insertions(+)

New commits:
commit 4b7d584b13a40a6e067afdacb77638b334606da2
Author: Miklos Vajna vmik...@collabora.co.uk
Date:   Tue Mar 4 14:47:13 2014 +0100

bnc#821208 DOC import: don't overwrite WW8Num* character styles

In general we're overwriting styles on import in case we're not pasting.
But these WW8Num* character styles are in general not from the document,
they are created because Writer needs a character style for each
numbering level to handle what's in the DOC file.

So, in case there is a character style with the same name as our
character style for numbering styles, prefer the later ones, as that's
intended most likely.

Change-Id: I675f867722360aca765bb96b0b43ea47deab9847
(cherry picked from commit e88ee8aa307ecec1cc22cda56b97dcfd8b838ce8)
Reviewed-on: https://gerrit.libreoffice.org/8448
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/sw/qa/extras/ww8import/data/bnc821208.doc 
b/sw/qa/extras/ww8import/data/bnc821208.doc
new file mode 100755
index 000..d89d711
Binary files /dev/null and b/sw/qa/extras/ww8import/data/bnc821208.doc differ
diff --git a/sw/qa/extras/ww8import/ww8import.cxx 
b/sw/qa/extras/ww8import/ww8import.cxx
index 0c3e1fc..cc107e0 100644
--- a/sw/qa/extras/ww8import/ww8import.cxx
+++ b/sw/qa/extras/ww8import/ww8import.cxx
@@ -234,6 +234,15 @@ DECLARE_WW8IMPORT_TEST(testListNolevel, list-nolevel.doc)
 CPPUNIT_ASSERT_EQUAL(OUString(1.), aText);
 }
 
+DECLARE_WW8IMPORT_TEST(testBnc821208, bnc821208.doc)
+{
+// WW8Num1z0 earned a Symbol font, turning numbers into rectangles.
+uno::Referencebeans::XPropertyState 
xPropertyState(getStyles(CharacterStyles)-getByName(WW8Num1z0), 
uno::UNO_QUERY);
+beans::PropertyState ePropertyState = 
xPropertyState-getPropertyState(CharFontName);
+// This was beans::PropertyState_DIRECT_VALUE.
+CPPUNIT_ASSERT_EQUAL(beans::PropertyState_DEFAULT_VALUE, ePropertyState);
+}
+
 #endif
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 4d454e1..f94e055 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -3750,6 +3750,11 @@ bool WW8RStyle::PrepareStyle(SwWW8StyInf rSI, ww::sti 
eSti, sal_uInt16 nThisSty
 }
 
 bool bImport = !bStyExist || pIo-mbNewDoc; // import content ?
+
+// Do not override character styles the list import code created earlier.
+if (bImport  bStyExist  rSI.GetOrgWWName().startsWith(WW8Num))
+bImport = false;
+
 bool bOldNoImp = pIo-bNoAttrImport;
 rSI.bImportSkipped = !bImport;
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2

2014-03-05 Thread Caolán McNamara
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 76ccdee026b7166904f3f9ec04340c70e6132ae0
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 10:17:24 2014 +

Updated core
Project: help  fd4b247481040463a7037ed0d96e78256ad2c32d

diff --git a/helpcontent2 b/helpcontent2
index bf4bd6b..fd4b247 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit bf4bd6b7a918771621956a90f13213e8fc777507
+Subproject commit fd4b247481040463a7037ed0d96e78256ad2c32d
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: extras/source sfx2/source sfx2/uiconfig sfx2/UIConfig_sfx.mk

2014-03-05 Thread Caolán McNamara
 extras/source/glade/libreoffice-catalog.xml.in |3 
 sfx2/UIConfig_sfx.mk   |1 
 sfx2/source/appl/app.hrc   |1 
 sfx2/source/appl/newhelp.cxx   |  108 +
 sfx2/source/appl/newhelp.hxx   |   14 +--
 sfx2/source/appl/newhelp.src   |   29 --
 sfx2/source/inc/helpid.hrc |1 
 sfx2/uiconfig/ui/helpbookmarkpage.ui   |   74 +
 8 files changed, 123 insertions(+), 108 deletions(-)

New commits:
commit 8c766085a045710a1fc761fe57026e60a6ccdba3
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 09:51:43 2014 +

convert help bookmarks tabpage to .ui

Change-Id: I2bfbb2aa53729be1c12ccc3ca3dd8644aa4d5410

diff --git a/extras/source/glade/libreoffice-catalog.xml.in 
b/extras/source/glade/libreoffice-catalog.xml.in
index ebb007f..3aaadca 100644
--- a/extras/source/glade/libreoffice-catalog.xml.in
+++ b/extras/source/glade/libreoffice-catalog.xml.in
@@ -15,6 +15,9 @@
 --
 glade-catalog name=LibreOffice domain=glade-3 depends=gtk+ 
version=1.0
   glade-widget-classes
+glade-widget-class title=Bookmarks Box name=sfxlo-BookmarksBox
+generic-name=BookmarksBox parent=GtkComboBoxText
+icon-name=widget-gtk-comboboxtext/
 glade-widget-class title=Font PickListBox name=smlo-SmFontPickListBox
 generic-name=SmFontPickListBox 
parent=GtkComboBoxText
 icon-name=widget-gtk-comboboxtext/
diff --git a/sfx2/UIConfig_sfx.mk b/sfx2/UIConfig_sfx.mk
index d3e53de..614071b 100644
--- a/sfx2/UIConfig_sfx.mk
+++ b/sfx2/UIConfig_sfx.mk
@@ -22,6 +22,7 @@ $(eval $(call gb_UIConfig_add_uifiles,sfx,\
sfx2/uiconfig/ui/documentpropertiesdialog \
sfx2/uiconfig/ui/editdurationdialog \
sfx2/uiconfig/ui/errorfindemaildialog \
+   sfx2/uiconfig/ui/helpbookmarkpage \
sfx2/uiconfig/ui/inputdialog \
sfx2/uiconfig/ui/licensedialog \
sfx2/uiconfig/ui/managestylepage \
diff --git a/sfx2/source/appl/app.hrc b/sfx2/source/appl/app.hrc
index 84050c0..e6c1adc 100644
--- a/sfx2/source/appl/app.hrc
+++ b/sfx2/source/appl/app.hrc
@@ -45,7 +45,6 @@
 #define TP_HELP_CONTENT (RID_SFX_APP_START+100)
 #define TP_HELP_INDEX   (RID_SFX_APP_START+101)
 #define TP_HELP_SEARCH  (RID_SFX_APP_START+102)
-#define TP_HELP_BOOKMARKS   (RID_SFX_APP_START+103)
 
 #define MENU_HELP_BOOKMARKS (RID_SFX_APP_START+105)
 #define RID_INFO_NOSEARCHRESULTS(RID_SFX_APP_START+106)
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 664302c..0b1f653 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -92,6 +92,7 @@
 #include svtools/imagemgr.hxx
 #include svtools/miscopt.hxx
 #include svtools/imgdef.hxx
+#include vcl/builder.hxx
 #include vcl/unohelp.hxx
 #include vcl/i18nhelp.hxx
 #include vcl/settings.hxx
@@ -414,13 +415,17 @@ OUString ContentListBox_Impl::GetSelectEntry() const
 
 // class HelpTabPage_Impl 
 
-HelpTabPage_Impl::HelpTabPage_Impl(
-Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin, const ResId rResId ) :
-
-TabPage( pParent, rResId ),
-
-m_pIdxWin( _pIdxWin )
+HelpTabPage_Impl::HelpTabPage_Impl(Window* pParent, SfxHelpIndexWindow_Impl* 
_pIdxWin,
+const ResId rResId )
+: TabPage( pParent, rResId )
+, m_pIdxWin( _pIdxWin )
+{
+}
 
+HelpTabPage_Impl::HelpTabPage_Impl(Window* pParent, SfxHelpIndexWindow_Impl* 
_pIdxWin,
+const OString rID, const OUString rUIXMLDescription)
+: TabPage( pParent, rID, rUIXMLDescription)
+, m_pIdxWin( _pIdxWin )
 {
 }
 
@@ -1229,16 +1234,22 @@ void GetBookmarkEntry_Impl
 }
 }
 
-
-
-BookmarksBox_Impl::BookmarksBox_Impl( Window* pParent, const ResId rResId ) :
-
-ListBox( pParent, rResId )
-
+BookmarksBox_Impl::BookmarksBox_Impl(Window* pParent, WinBits nStyle)
+: ListBox(pParent, nStyle)
 {
 }
 
-
+extern C SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeBookmarksBox(Window 
*pParent,
+VclBuilder::stringmap rMap)
+{
+WinBits nWinBits = 
WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE;
+OString sBorder = VclBuilder::extractCustomProperty(rMap);
+if (!sBorder.isEmpty())
+   nWinBits |= WB_BORDER;
+BookmarksBox_Impl* pListBox = new BookmarksBox_Impl(pParent, nWinBits);
+pListBox-EnableAutoSize(true);
+return pListBox;
+}
 
 BookmarksBox_Impl::~BookmarksBox_Impl()
 {
@@ -1345,20 +1356,17 @@ bool BookmarksBox_Impl::Notify( NotifyEvent rNEvt )
 
 // class BookmarksTabPage_Impl ---
 
-BookmarksTabPage_Impl::BookmarksTabPage_Impl( Window* pParent, 
SfxHelpIndexWindow_Impl* _pIdxWin ) :
-
-HelpTabPage_Impl( pParent, _pIdxWin, SfxResId( TP_HELP_BOOKMARKS ) 

[Libreoffice-commits] help.git: helpers/help_hid.lst source/text

2014-03-05 Thread Caolán McNamara
 helpers/help_hid.lst   |3 ---
 source/text/shared/05/0150.xhp |2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

New commits:
commit fd4b247481040463a7037ed0d96e78256ad2c32d
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 10:17:24 2014 +

update help ids for help bookmarks .ui conversion

Change-Id: I4d264d6e53bffa652d58ccd99fb0d2279a77218e

diff --git a/helpers/help_hid.lst b/helpers/help_hid.lst
index 71736aa..b2d5a85 100644
--- a/helpers/help_hid.lst
+++ b/helpers/help_hid.lst
@@ -2106,7 +2106,6 @@ HID_HELP_LISTBOX,33347,
 HID_HELP_ONHELP,68245,
 HID_HELP_ONSTARTUP_BOX,33389,
 HID_HELP_TABCONTROL,33348,
-HID_HELP_TABPAGE_BOOKMARKS,33359,
 HID_HELP_TABPAGE_CONTENTS,33356,
 HID_HELP_TABPAGE_INDEX,33357,
 HID_HELP_TABPAGE_SEARCH,33358,
@@ -5967,7 +5966,6 @@ sfx2_FT_DOCNAME_DLG_PRINTMONITOR,2218852352,
 sfx2_FloatingWindow_SID_RECORDING_FLOATWINDOW,1705639936,
 sfx2_ListBox_DLG_NEW_FILE_LB_REGION,1107381781,
 sfx2_ListBox_DLG_NEW_FILE_LB_TEMPLATE,1107381812,
-sfx2_ListBox_TP_HELP_BOOKMARKS_LB_BOOKMARKS,547016203,
 sfx2_ListBox_TP_HELP_SEARCH_LB_RESULT,546999824,
 sfx2_ModalDialog_MD_DDE_LINKEDIT,1082212352,
 sfx2_ModalDialog_RID_URLOPEN,1112571904,
@@ -5977,7 +5975,6 @@ sfx2_MultiLineEdit_DLG_NEW_FILE_ED_DESC,1107380807,
 sfx2_PushButton_DLG_NEW_FILE_PB_LOAD_FILE,1107382822,
 sfx2_PushButton_RID_WARN_PRINTTRANSPARENCY_BTN_PRINTTRANS_NO,1113051711,
 sfx2_PushButton_TP_CUSTOMPROPERTIES_BTN_ADD,541364830,
-sfx2_PushButton_TP_HELP_BOOKMARKS_PB_BOOKMARKS,547017228,
 sfx2_PushButton_TP_HELP_INDEX_PB_OPEN_INDEX,546984460,
 sfx2_PushButton_TP_HELP_SEARCH_PB_OPEN_SEARCH,547000849,
 sfx2_PushButton_TP_HELP_SEARCH_PB_SEARCH,547000844,
diff --git a/source/text/shared/05/0150.xhp 
b/source/text/shared/05/0150.xhp
index e1b584d..9f659e5 100644
--- a/source/text/shared/05/0150.xhp
+++ b/source/text/shared/05/0150.xhp
@@ -51,7 +51,7 @@
   paragraph xml-lang=en-US role=paragraph id=par_id3149827 l10n=U 
oldref=3You can find the bookmarks on the emphBookmarks/emph tab 
page./paragraph
   list type=unordered
listitem
-bookmark branch=hid/sfx2:ListBox:TP_HELP_BOOKMARKS:LB_BOOKMARKS 
xml-lang=en-US id=bm_id3156410 localize=false/paragraph l10n=U 
role=listitem id=par_id3145345 xml-lang=en-US oldref=4ahelp 
hid=SFX2_LISTBOX_TP_HELP_BOOKMARKS_LB_BOOKMARKS 
visibility=visibleDouble-clicking a bookmark or pressing the Return key 
opens the assigned page in Help. A right-click opens the context 
menu./ahelp/paragraph
+bookmark branch=hid/sfx/ui/helpbookmarkpage/HelpBookmarkPage 
xml-lang=en-US id=bm_id3156410 localize=false/paragraph l10n=U 
role=listitem id=par_id3145345 xml-lang=en-US oldref=4ahelp 
hid=sfx/ui/helpbookmarkpage/HelpBookmarkPage 
visibility=visibleDouble-clicking a bookmark or pressing the Return key 
opens the assigned page in Help. A right-click opens the context 
menu./ahelp/paragraph
/listitem
listitem
 paragraph role=listitem id=par_id3166410 l10n=U xml-lang=en-US 
oldref=5Use the Del key to delete a selected bookmark./paragraph
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[ANN] LIbreOffice 4.2.2 RC1 available

2014-03-05 Thread Christian Lohmaier
Dear Community,

The Document Foundation is pleased to announce the first release
candidate of LibreOffice 4.2.2. The upcoming 4.2.2 will be the second
in a sequence of frequent bugfix release for our feature-packed 4.2
line. Feel free to give it a try instead of
4.2.1. Conservative users should continue to use LibreOffice 4.1.5

The release is available for Windows, Linux and Mac OS X from our QA
builds download page at

  http://www.libreoffice.org/download/pre-releases/

LibreOffice 4.2.2 RC1 is also available in a 64bit version for Mac OS
X 10.8 (or newer)

Developers and QA might also be interested in the symbol server for
windows debug information (see the release notes linked below for
details)

Should you find bugs, please report them to the FreeDesktop Bugzilla:

  https://bugs.freedesktop.org

A good way to assess the release candidate quality is to run some
specific manual tests on it, our TCM wiki page has more details:

 
http://wiki.documentfoundation.org/QA/Testing/Regression_Tests#Full_Regression_Test

For other ways to get involved with this exciting project - you can
e.g. contribute code:

  http://www.libreoffice.org/get-involved/developers/

translate LibreOffice to your language:

  http://wiki.documentfoundation.org/LibreOffice_Localization_Guide

or help with funding our operations:

  http://donate.libreoffice.org/

A list of known issues and fixed bugs with 4.2.2 RC1 is available
from our wiki:

  http://wiki.documentfoundation.org/Releases/4.2.2/RC1

Let us close again with a BIG Thank You! to all of you having
contributed to the LibreOffice project - this release would not have
been possible without your help.

On behalf of the Community,

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


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

2014-03-05 Thread Olivier Hallot
 svtools/uiconfig/ui/placeedit.ui |  429 ---
 1 file changed, 228 insertions(+), 201 deletions(-)

New commits:
commit 935e91c55f5878ce999db30b777cec36b50c3b3a
Author: Olivier Hallot olivier.hal...@edx.srv.br
Date:   Tue Mar 4 15:06:40 2014 -0300

Add window title and frame into placeedit.ui

Change-Id: Ibc45598b719c0898af19e6266799f84cc66d2db1
Reviewed-on: https://gerrit.libreoffice.org/8453
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/svtools/uiconfig/ui/placeedit.ui b/svtools/uiconfig/ui/placeedit.ui
index c6bde76..681e95e 100644
--- a/svtools/uiconfig/ui/placeedit.ui
+++ b/svtools/uiconfig/ui/placeedit.ui
@@ -6,9 +6,38 @@
 property name=step_increment1/property
 property name=page_increment10/property
   /object
+  object class=GtkImage id=image1
+property name=visibleTrue/property
+property name=can_focusFalse/property
+property name=stockgtk-refresh/property
+  /object
+  object class=GtkListStore id=liststore1
+columns
+  !-- column-name type --
+  column type=gchararray/
+/columns
+data
+  row
+col id=0 translatable=yesWebDAV/col
+  /row
+  row
+col id=0 translatable=yesFTP/col
+  /row
+  row
+col id=0 translatable=yesSSH/col
+  /row
+  row
+col id=0 translatable=yesWindows Share/col
+  /row
+  row
+col id=0 translatable=yesCMIS/col
+  /row
+/data
+  /object
   object class=GtkDialog id=PlaceEditDialog
 property name=can_focusFalse/property
 property name=border_width6/property
+property name=title translatable=yesFile Services/property
 property name=type_hintdialog/property
 child internal-child=vbox
   object class=GtkBox id=dialog-vbox1
@@ -16,78 +45,104 @@
 property name=orientationvertical/property
 property name=spacing12/property
 child
-  object class=GtkGrid id=grid1
+  object class=GtkFrame id=FileServices
 property name=visibleTrue/property
 property name=can_focusFalse/property
-property name=row_spacing6/property
-property name=column_spacing12/property
-child
-  object class=GtkLabel id=label1
-property name=visibleTrue/property
-property name=can_focusFalse/property
-property name=halignstart/property
-property name=xalign0/property
-property name=label translatable=yesName/property
-property name=use_underlineTrue/property
-property name=mnemonic_widgetname/property
-  /object
-  packing
-property name=left_attach0/property
-property name=top_attach0/property
-property name=width1/property
-property name=height1/property
-  /packing
-/child
+property name=label_xalign0/property
+property name=shadow_typenone/property
 child
-  object class=GtkLabel id=label2
+  object class=GtkAlignment id=alignment5
 property name=visibleTrue/property
 property name=can_focusFalse/property
-property name=halignstart/property
-property name=xalign0/property
-property name=label translatable=yesType/property
-property name=use_underlineTrue/property
-property name=mnemonic_widgettype/property
-  /object
-  packing
-property name=left_attach0/property
-property name=top_attach1/property
-property name=width1/property
-property name=height1/property
-  /packing
-/child
-child
-  object class=GtkEntry id=name
-property name=visibleTrue/property
-property name=can_focusTrue/property
-property name=hexpandTrue/property
-property name=invisible_char●/property
+property name=top_padding6/property
+property name=left_padding12/property
+child
+  object class=GtkGrid id=grid1
+property name=visibleTrue/property
+property name=can_focusFalse/property
+property name=row_spacing6/property
+property name=column_spacing12/property
+child
+  object class=GtkLabel id=label2
+property name=visibleTrue/property
+property name=can_focusFalse/property
+property name=halignstart/property
+property name=xalign0/property
+property name=label 

[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - extensions/source

2014-03-05 Thread Caolán McNamara
 extensions/source/propctrlr/browserlistbox.cxx |9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 47bf525643fb0b609b248387b7192ce8b285f881
Author: Caolán McNamara caol...@redhat.com
Date:   Thu Feb 27 09:55:18 2014 +

coverity#704633 Dereference after null check

(cherry picked from commit ccf0f7ef03bf98831a3e21b4b1327673a590b918)

Change-Id: I4985249110da93ba67881dcd1c8cd1dc66ae08e2
Reviewed-on: https://gerrit.libreoffice.org/8379
Reviewed-by: Miklos Vajna vmik...@collabora.co.uk
Tested-by: Miklos Vajna vmik...@collabora.co.uk

diff --git a/extensions/source/propctrlr/browserlistbox.cxx 
b/extensions/source/propctrlr/browserlistbox.cxx
index fa6bfcc..9a8cf37 100644
--- a/extensions/source/propctrlr/browserlistbox.cxx
+++ b/extensions/source/propctrlr/browserlistbox.cxx
@@ -1196,11 +1196,12 @@ namespace pcr
 // So, we manually switch this to read-only.
 if ( xControl.is()  ( xControl-getControlType() == 
PropertyControlType::Unknown ) )
 {
-Edit* pControlWindowAsEdit = dynamic_cast Edit* ( 
rLine.pLine-getControlWindow() );
-if ( pControlWindowAsEdit )
-pControlWindowAsEdit-SetReadOnly( sal_True );
+Window *pWindow = rLine.pLine-getControlWindow();
+Edit* pControlWindowAsEdit = dynamic_castEdit*(pWindow);
+if (pControlWindowAsEdit)
+pControlWindowAsEdit-SetReadOnly(sal_True);
 else
-pControlWindowAsEdit-Enable( sal_False );
+pWindow-Enable(sal_False);
 }
 }
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2

2014-03-05 Thread Caolán McNamara
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eb847b33f7ea5b5e103886da7eb5dd1cc3061422
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 10:56:47 2014 +

Updated core
Project: help  d17b89d10487e87000998056c30f9ecfa8b1a86a

diff --git a/helpcontent2 b/helpcontent2
index fd4b247..d17b89d 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit fd4b247481040463a7037ed0d96e78256ad2c32d
+Subproject commit d17b89d10487e87000998056c30f9ecfa8b1a86a
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: helpers/help_hid.lst source/text

2014-03-05 Thread Caolán McNamara
 helpers/help_hid.lst   |3 ---
 source/text/shared/05/0130.xhp |8 
 2 files changed, 4 insertions(+), 7 deletions(-)

New commits:
commit d17b89d10487e87000998056c30f9ecfa8b1a86a
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 10:56:47 2014 +

update help ids for help index page .ui conversion

Change-Id: I13210a5173f28ecd111bfd9c2809c36b1fedfe6c

diff --git a/helpers/help_hid.lst b/helpers/help_hid.lst
index b2d5a85..f1da63d 100644
--- a/helpers/help_hid.lst
+++ b/helpers/help_hid.lst
@@ -2107,7 +2107,6 @@ HID_HELP_ONHELP,68245,
 HID_HELP_ONSTARTUP_BOX,33389,
 HID_HELP_TABCONTROL,33348,
 HID_HELP_TABPAGE_CONTENTS,33356,
-HID_HELP_TABPAGE_INDEX,33357,
 HID_HELP_TABPAGE_SEARCH,33358,
 HID_HELP_TEXT_SELECTION_MODE,33373,
 HID_HELP_TOOLBOX,33349,
@@ -5949,7 +5948,6 @@ sfx2_CheckBox_DLG_NEW_FILE_CB_TEXT_STYLE,1107379233,
 sfx2_CheckBox_RID_WARN_PRINTTRANSPARENCY_CBX_NOPRINTTRANSWARN,1113048129,
 sfx2_CheckBox_TP_HELP_SEARCH_CB_FULLWORDS,546997262,
 sfx2_CheckBox_TP_HELP_SEARCH_CB_SCOPE,546997263,
-sfx2_ComboBox_TP_HELP_INDEX_CB_INDEX,546983947,
 sfx2_ComboBox_TP_HELP_SEARCH_ED_SEARCH,547000331,
 sfx2_Edit_DLG_DOCINFO_EDT_ED_INFO1,1078102021,
 sfx2_Edit_DLG_DOCINFO_EDT_ED_INFO2,1078102023,
@@ -5975,7 +5973,6 @@ sfx2_MultiLineEdit_DLG_NEW_FILE_ED_DESC,1107380807,
 sfx2_PushButton_DLG_NEW_FILE_PB_LOAD_FILE,1107382822,
 sfx2_PushButton_RID_WARN_PRINTTRANSPARENCY_BTN_PRINTTRANS_NO,1113051711,
 sfx2_PushButton_TP_CUSTOMPROPERTIES_BTN_ADD,541364830,
-sfx2_PushButton_TP_HELP_INDEX_PB_OPEN_INDEX,546984460,
 sfx2_PushButton_TP_HELP_SEARCH_PB_OPEN_SEARCH,547000849,
 sfx2_PushButton_TP_HELP_SEARCH_PB_SEARCH,547000844,
 starmath_ComboBox_RID_SYMDEFINEDIALOG_1,1401573377,
diff --git a/source/text/shared/05/0130.xhp 
b/source/text/shared/05/0130.xhp
index 0af617d..dfdc578 100644
--- a/source/text/shared/05/0130.xhp
+++ b/source/text/shared/05/0130.xhp
@@ -39,10 +39,10 @@
 paragraph role=paragraph id=par_id3149428 xml-lang=en-US l10n=E 
oldref=2 localize=false/
 paragraph role=heading id=hd_id3153884 xml-lang=en-US level=1 
l10n=U oldref=5variable id=0130link 
href=text/shared/05/0130.xhp name=Index - Keyword Search in the 
HelpIndex - Keyword Search in the Help/link
 /variable/paragraph
-bookmark xml-lang=en-US branch=hid/sfx2:ComboBox:TP_HELP_INDEX:CB_INDEX 
id=bm_id3149662 localize=false/
-paragraph role=paragraph id=par_id3150960 xml-lang=en-US l10n=U 
oldref=3ahelp hid=SFX2_COMBOBOX_TP_HELP_INDEX_CB_INDEX 
visibility=hiddenDouble-click an entry or type the word you want to find in 
the index./ahelp/paragraph
-bookmark xml-lang=en-US 
branch=hid/sfx2:PushButton:TP_HELP_INDEX:PB_OPEN_INDEX id=bm_id3150476 
localize=false/
-paragraph role=paragraph id=par_id3148668 xml-lang=en-US l10n=U 
oldref=8ahelp hid=SFX2_PUSHBUTTON_TP_HELP_INDEX_PB_OPEN_INDEX 
visibility=hiddenClick to display the selected topic./ahelp/paragraph
+bookmark xml-lang=en-US branch=hid/sfx/ui/helpindexpage/HelpIndexPage 
id=bm_id3149662 localize=false/
+paragraph role=paragraph id=par_id3150960 xml-lang=en-US l10n=U 
oldref=3ahelp hid=sfx/ui/helpindexpage/HelpIndexPage 
visibility=hiddenDouble-click an entry or type the word you want to find in 
the index./ahelp/paragraph
+bookmark xml-lang=en-US branch=hid/sfx/ui/helpindexpage/display 
id=bm_id3150476 localize=false/
+paragraph role=paragraph id=par_id3148668 xml-lang=en-US l10n=U 
oldref=8ahelp hid=sfx/ui/helpindexpage/display visibility=hiddenClick 
to display the selected topic./ahelp/paragraph
 paragraph role=paragraph id=par_id3155934 xml-lang=en-US l10n=U 
oldref=1You can search for a specific topic by typing a word into the 
emphSearch term/emph text box. The window contains an alphabetical list of 
index terms./paragraph
 paragraph role=paragraph id=par_id3145669 xml-lang=en-US l10n=U 
oldref=6If the cursor is in the index list when you type the search term, 
the display will jump directly to the next match. When you type a word in the 
emphSearch term/emph text box, the focus will jump to the best match in the 
index list./paragraph
 paragraph role=tip id=par_id3147653 xml-lang=en-US l10n=CHG 
oldref=7The index and full-text searches always apply to the currently 
selected item type=productname%PRODUCTNAME/item application. Select the 
appropriate application using the list box on the help viewer's 
toolbar./paragraph
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: extras/source sfx2/source sfx2/uiconfig sfx2/UIConfig_sfx.mk

2014-03-05 Thread Caolán McNamara
 extras/source/glade/libreoffice-catalog.xml.in |3 
 sfx2/UIConfig_sfx.mk   |1 
 sfx2/source/appl/app.hrc   |1 
 sfx2/source/appl/newhelp.cxx   |  130 -
 sfx2/source/appl/newhelp.hrc   |   10 -
 sfx2/source/appl/newhelp.hxx   |   17 +--
 sfx2/source/appl/newhelp.src   |   28 -
 sfx2/source/inc/helpid.hrc |1 
 sfx2/uiconfig/ui/helpindexpage.ui  |   74 ++
 9 files changed, 130 insertions(+), 135 deletions(-)

New commits:
commit e5107024bd2703122c4d8a27e29abd2c73e6af38
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 10:49:43 2014 +

convert help index page to .ui

Change-Id: I2d3b5311b8f40350f6d9524f802cb074c175ffaa

diff --git a/extras/source/glade/libreoffice-catalog.xml.in 
b/extras/source/glade/libreoffice-catalog.xml.in
index 3aaadca..1e5ff88 100644
--- a/extras/source/glade/libreoffice-catalog.xml.in
+++ b/extras/source/glade/libreoffice-catalog.xml.in
@@ -18,6 +18,9 @@
 glade-widget-class title=Bookmarks Box name=sfxlo-BookmarksBox
 generic-name=BookmarksBox parent=GtkComboBoxText
 icon-name=widget-gtk-comboboxtext/
+glade-widget-class title=Index Box name=sfxlo-IndexBox
+generic-name=IndexBox parent=GtkComboBoxText
+icon-name=widget-gtk-comboboxtext/
 glade-widget-class title=Font PickListBox name=smlo-SmFontPickListBox
 generic-name=SmFontPickListBox 
parent=GtkComboBoxText
 icon-name=widget-gtk-comboboxtext/
diff --git a/sfx2/UIConfig_sfx.mk b/sfx2/UIConfig_sfx.mk
index 614071b..7fcf9b0 100644
--- a/sfx2/UIConfig_sfx.mk
+++ b/sfx2/UIConfig_sfx.mk
@@ -23,6 +23,7 @@ $(eval $(call gb_UIConfig_add_uifiles,sfx,\
sfx2/uiconfig/ui/editdurationdialog \
sfx2/uiconfig/ui/errorfindemaildialog \
sfx2/uiconfig/ui/helpbookmarkpage \
+   sfx2/uiconfig/ui/helpindexpage \
sfx2/uiconfig/ui/inputdialog \
sfx2/uiconfig/ui/licensedialog \
sfx2/uiconfig/ui/managestylepage \
diff --git a/sfx2/source/appl/app.hrc b/sfx2/source/appl/app.hrc
index e6c1adc..79d94c1 100644
--- a/sfx2/source/appl/app.hrc
+++ b/sfx2/source/appl/app.hrc
@@ -43,7 +43,6 @@
 
 #define WIN_HELPINDEX   (RID_SFX_APP_START+99)
 #define TP_HELP_CONTENT (RID_SFX_APP_START+100)
-#define TP_HELP_INDEX   (RID_SFX_APP_START+101)
 #define TP_HELP_SEARCH  (RID_SFX_APP_START+102)
 
 #define MENU_HELP_BOOKMARKS (RID_SFX_APP_START+105)
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 0b1f653..509014d 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -470,16 +470,24 @@ Control* ContentTabPage_Impl::GetLastFocusControl()
 
 // class IndexBox_Impl ---
 
-IndexBox_Impl::IndexBox_Impl( Window* pParent, const ResId rResId ) :
-
-ComboBox( pParent, rResId )
-
+IndexBox_Impl::IndexBox_Impl(Window* pParent, WinBits nStyle)
+: ComboBox(pParent, nStyle)
 {
-EnableAutocomplete( true );
-EnableUserDraw( true );
+EnableAutocomplete(true);
+EnableUserDraw(true);
 }
 
-
+extern C SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeIndexBox(Window *pParent,
+VclBuilder::stringmap rMap)
+{
+WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK;
+OString sBorder = VclBuilder::extractCustomProperty(rMap);
+if (!sBorder.isEmpty())
+   nWinBits |= WB_BORDER;
+IndexBox_Impl* pListBox = new IndexBox_Impl(pParent, nWinBits);
+pListBox-EnableAutoSize(true);
+return pListBox;
+}
 
 void IndexBox_Impl::UserDraw( const UserDrawEvent rUDEvt )
 {
@@ -537,31 +545,25 @@ void IndexBox_Impl::SelectExecutableEntry()
 
 // class IndexTabPage_Impl ---
 
-IndexTabPage_Impl::IndexTabPage_Impl( Window* pParent, 
SfxHelpIndexWindow_Impl* _pIdxWin ) :
-
-HelpTabPage_Impl( pParent, _pIdxWin, SfxResId( TP_HELP_INDEX ) ),
-
-aExpressionFT   ( this, SfxResId( FT_EXPRESSION ) ),
-aIndexCB( this, SfxResId( CB_INDEX ) ),
-aOpenBtn( this, SfxResId( PB_OPEN_INDEX ) ),
-
-bIsActivated( sal_False )
-
+IndexTabPage_Impl::IndexTabPage_Impl(Window* pParent, SfxHelpIndexWindow_Impl* 
_pIdxWin)
+: HelpTabPage_Impl(pParent, _pIdxWin, HelpIndexPage,
+sfx/ui/helpindexpage.ui)
+, bIsActivated(false)
 {
-FreeResource();
+get(m_pIndexCB, terms);
+Size aSize(LogicToPixel(Size(108, 97), MAP_APPFONT));
+m_pIndexCB-set_width_request(aSize.Width());
+m_pIndexCB-set_height_request(aSize.Height());
+get(m_pOpenBtn, display);
 
-aOpenBtn.SetClickHdl( LINK( this, IndexTabPage_Impl, OpenHdl ) );
+

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

2014-03-05 Thread Jan Holesovsky
 sw/qa/extras/inc/swmodeltestbase.hxx |   13 +--
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx |  123 +++
 2 files changed, 52 insertions(+), 84 deletions(-)

New commits:
commit 27e57531b48afa7bf0c95418a89811c375a96c32
Author: Jan Holesovsky ke...@collabora.com
Date:   Wed Mar 5 12:01:21 2014 +0100

sw tests: Fix description of the new assertXPathContent() and use it 
broadly.

Change-Id: I3c8d5e491fcf9f871d72fb2d138bb7094ff69746

diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx 
b/sw/qa/extras/inc/swmodeltestbase.hxx
index cb15d69..77c32c2 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -580,21 +580,20 @@ protected:
  nNumberOfNodes, 
xmlXPathNodeSetGetLength(pXmlNodes));
 }
 
-
 /**
- * Assert that rXPath exists, and returns exactly nNumberOfNodes nodes.
- * Useful for checking that we do _not_ export some node (nNumberOfNodes 
== 0).
+ * Assert that rXPath exists, and its content equals rContent.
  */
 void assertXPathContent(xmlDocPtr pXmlDoc, const OString rXPath, const 
OUString rContent)
 {
 xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc, rXPath);
 
-CPPUNIT_ASSERT_EQUAL_MESSAGE(OString(XPath ' + rXPath + ' not 
found).getStr(),
- 1, xmlXPathNodeSetGetLength(pXmlNodes));
+CPPUNIT_ASSERT_MESSAGE(OString(XPath ' + rXPath + ' not 
found).getStr(),
+xmlXPathNodeSetGetLength(pXmlNodes)  0);
 
 xmlNodePtr pXmlNode = pXmlNodes-nodeTab[0];
-OUString contents = OUString::createFromAscii((const 
char*)((pXmlNode-children[0]).content));
-CPPUNIT_ASSERT_EQUAL_MESSAGE(XPath contents do not 
match,rContent,contents);
+
+CPPUNIT_ASSERT_EQUAL_MESSAGE(XPath contents of child does not match, 
rContent,
+OUString::createFromAscii((const 
char*)((pXmlNode-children[0]).content)));
 }
 
 /**
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 383566c..c51b58a 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -2108,10 +2108,8 @@ DECLARE_OOXMLEXPORT_TEST(testFdo69649, fdo69649.docx)
 xmlDocPtr pXmlDoc = parseExport(word/document.xml);
 if (!pXmlDoc)
 return;
-xmlNodeSetPtr pXmlNodes = 
getXPathNode(pXmlDoc,/w:document/w:body/w:p[21]/w:hyperlink/w:r[5]/w:t);
-xmlNodePtr pXmlNode = pXmlNodes-nodeTab[0];
-OUString contents = OUString::createFromAscii((const 
char*)((pXmlNode-children[0]).content));
-CPPUNIT_ASSERT(contents.match(15));
+
+assertXPathContent(pXmlDoc, 
/w:document/w:body/w:p[21]/w:hyperlink/w:r[5]/w:t, 15);
 }
 
 DECLARE_OOXMLEXPORT_TEST(testTextBoxPictureFill, textbox_picturefill.docx)
@@ -2143,12 +2141,10 @@ 
DECLARE_OOXMLEXPORT_TEST(testFieldFlagO,TOC_field_f.docx)
 xmlDocPtr pXmlDoc = parseExport();
 if (!pXmlDoc)
 return;
+
 // FIXME p[2] will have to be p[1], once the TOC import code is fixed
 // not to insert an empty paragraph before TOC.
-xmlNodeSetPtr pXmlNodes = 
getXPathNode(pXmlDoc,/w:document/w:body/w:p[2]/w:r[2]/w:instrText);
-xmlNodePtr pXmlNode = pXmlNodes-nodeTab[0];
-OUString contents = OUString::createFromAscii((const 
char*)((pXmlNode-children[0]).content));
-CPPUNIT_ASSERT(contents.match( TOC \\z \\f \\o \1-3\ \\u \\h));
+assertXPathContent(pXmlDoc, 
/w:document/w:body/w:p[2]/w:r[2]/w:instrText,  TOC \\z \\f \\o \1-3\ \\u 
\\h);
 }
 
 DECLARE_OOXMLEXPORT_TEST(testTOCFlag_f, toc_doc.docx)
@@ -2162,12 +2158,10 @@ DECLARE_OOXMLEXPORT_TEST(testTOCFlag_f, toc_doc.docx)
 xmlDocPtr pXmlDoc = parseExport();
 if (!pXmlDoc)
 return;
+
 // FIXME p[2] will have to be p[1], once the TOC import code is fixed
 // not to insert an empty paragraph before TOC.
-xmlNodeSetPtr pXmlNodes = 
getXPathNode(pXmlDoc,/w:document/w:body/w:p[2]/w:r[2]/w:instrText);
-xmlNodePtr pXmlNode = pXmlNodes-nodeTab[0];
-OUString contents = OUString::createFromAscii((const 
char*)((pXmlNode-children[0]).content));
-CPPUNIT_ASSERT(contents.endsWith(\\h));
+assertXPathContent(pXmlDoc, 
/w:document/w:body/w:p[2]/w:r[2]/w:instrText,  TOC \\z \\o \1-3\ \\u \\h);
 }
 
 DECLARE_OOXMLEXPORT_TEST(testPreserveZfield,preserve_Z_field_TOC.docx)
@@ -2175,48 +2169,40 @@ 
DECLARE_OOXMLEXPORT_TEST(testPreserveZfield,preserve_Z_field_TOC.docx)
 xmlDocPtr pXmlDoc = parseExport(word/document.xml);
 if (!pXmlDoc)
 return;
+
 // FIXME p[2] will have to be p[1], once the TOC import code is fixed
 // not to insert an empty paragraph before TOC.
-xmlNodeSetPtr pXmlNodes = 
getXPathNode(pXmlDoc,/w:document/w:body/w:p[2]/w:r[2]/w:instrText);
-xmlNodePtr pXmlNode = pXmlNodes-nodeTab[0];
-OUString contents = OUString::createFromAscii((const 
char*)((pXmlNode-children[0]).content));
-

[Bug 39440] cppcheck cleanliness

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39440

--- Comment #19 from Commit Notification 
libreoffice-comm...@lists.freedesktop.org ---
Mihai Varga committed a patch related to this issue.
It has been pushed to master:

http://cgit.freedesktop.org/libreoffice/core/commit/?id=888cf44109a515982162f836d88b0c08624d3913

fdo#39440 the sSymName parameter is now passed by reference



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

-- 
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


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

2014-03-05 Thread Stephan Bergmann
 include/sal/log-areas.dox |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5cab7c7b24fab6e77cb54a134ada2ee33cf51acc
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Mar 5 12:11:46 2014 +0100

loplugin:sallogareas

Change-Id: Iba543bf0642071ab4a9164af8a4bcb35ac1ecfd0

diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index 11b7613..931a989 100644
--- a/include/sal/log-areas.dox
+++ b/include/sal/log-areas.dox
@@ -457,6 +457,7 @@ certain functionality.
 @li @c shell
 @li @c stoc
 @li @c svg
+@li @c test
 @li @c ucbhelper
 @li @c unoidl
 @li @c unoxml
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: extras/source sfx2/source sfx2/uiconfig sfx2/UIConfig_sfx.mk

2014-03-05 Thread Caolán McNamara
 extras/source/glade/libreoffice-catalog.xml.in |6 
 sfx2/UIConfig_sfx.mk   |1 
 sfx2/source/appl/app.hrc   |1 
 sfx2/source/appl/newhelp.cxx   |  173 ++---
 sfx2/source/appl/newhelp.hrc   |   10 -
 sfx2/source/appl/newhelp.hxx   |   37 ++---
 sfx2/source/appl/newhelp.src   |   57 
 sfx2/source/inc/helpid.hrc |1 
 sfx2/uiconfig/ui/helpsearchpage.ui |  156 ++
 9 files changed, 253 insertions(+), 189 deletions(-)

New commits:
commit 8ce132ee0e2ddcd7f47e46fb943b32326cfa429e
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 11:25:15 2014 +

convert help search page to .ui

Change-Id: Ib40ab75ce04c60df29895b0b14450d507d67db23

diff --git a/extras/source/glade/libreoffice-catalog.xml.in 
b/extras/source/glade/libreoffice-catalog.xml.in
index 1e5ff88..24c8c3e 100644
--- a/extras/source/glade/libreoffice-catalog.xml.in
+++ b/extras/source/glade/libreoffice-catalog.xml.in
@@ -21,6 +21,12 @@
 glade-widget-class title=Index Box name=sfxlo-IndexBox
 generic-name=IndexBox parent=GtkComboBoxText
 icon-name=widget-gtk-comboboxtext/
+glade-widget-class title=Search Box name=sfxlo-SearchBox
+generic-name=SearchBox parent=GtkComboBoxText
+icon-name=widget-gtk-comboboxtext/
+glade-widget-class title=Search Results Box 
name=sfxlo-SearchResultsBox
+generic-name=SearchResultsBox 
parent=GtkComboBoxText
+icon-name=widget-gtk-comboboxtext/
 glade-widget-class title=Font PickListBox name=smlo-SmFontPickListBox
 generic-name=SmFontPickListBox 
parent=GtkComboBoxText
 icon-name=widget-gtk-comboboxtext/
diff --git a/sfx2/UIConfig_sfx.mk b/sfx2/UIConfig_sfx.mk
index 7fcf9b0..46f3160 100644
--- a/sfx2/UIConfig_sfx.mk
+++ b/sfx2/UIConfig_sfx.mk
@@ -24,6 +24,7 @@ $(eval $(call gb_UIConfig_add_uifiles,sfx,\
sfx2/uiconfig/ui/errorfindemaildialog \
sfx2/uiconfig/ui/helpbookmarkpage \
sfx2/uiconfig/ui/helpindexpage \
+   sfx2/uiconfig/ui/helpsearchpage \
sfx2/uiconfig/ui/inputdialog \
sfx2/uiconfig/ui/licensedialog \
sfx2/uiconfig/ui/managestylepage \
diff --git a/sfx2/source/appl/app.hrc b/sfx2/source/appl/app.hrc
index 79d94c1..138aa53 100644
--- a/sfx2/source/appl/app.hrc
+++ b/sfx2/source/appl/app.hrc
@@ -43,7 +43,6 @@
 
 #define WIN_HELPINDEX   (RID_SFX_APP_START+99)
 #define TP_HELP_CONTENT (RID_SFX_APP_START+100)
-#define TP_HELP_SEARCH  (RID_SFX_APP_START+102)
 
 #define MENU_HELP_BOOKMARKS (RID_SFX_APP_START+105)
 #define RID_INFO_NOSEARCHRESULTS(RID_SFX_APP_START+106)
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 509014d..f7080b1 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -873,6 +873,15 @@ void IndexTabPage_Impl::OpenKeyword()
 
 // class SearchBox_Impl --
 
+extern C SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSearchBox(Window *pParent,
+VclBuilder::stringmap )
+{
+WinBits nWinBits = 
WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE|WB_DROPDOWN;
+SearchBox_Impl* pComboBox = new SearchBox_Impl(pParent, nWinBits);
+pComboBox-EnableAutoSize(true);
+return pComboBox;
+}
+
 bool SearchBox_Impl::PreNotify( NotifyEvent rNEvt )
 {
 sal_Bool bHandled = sal_False;
@@ -897,6 +906,18 @@ void SearchBox_Impl::Select()
 
 // class SearchResultsBox_Impl ---
 
+extern C SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSearchResultsBox(Window 
*pParent,
+VclBuilder::stringmap rMap)
+{
+WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK;
+OString sBorder = VclBuilder::extractCustomProperty(rMap);
+if (!sBorder.isEmpty())
+   nWinBits |= WB_BORDER;
+SearchResultsBox_Impl* pListBox = new SearchResultsBox_Impl(pParent, 
nWinBits);
+pListBox-EnableAutoSize(true);
+return pListBox;
+}
+
 bool SearchResultsBox_Impl::Notify( NotifyEvent rNEvt )
 {
 bool bHandled = false;
@@ -912,29 +933,30 @@ bool SearchResultsBox_Impl::Notify( NotifyEvent rNEvt )
 
 // class SearchTabPage_Impl --
 
-SearchTabPage_Impl::SearchTabPage_Impl( Window* pParent, 
SfxHelpIndexWindow_Impl* _pIdxWin ) :
+SearchTabPage_Impl::SearchTabPage_Impl(Window* pParent, 
SfxHelpIndexWindow_Impl* _pIdxWin)
+: HelpTabPage_Impl(pParent, _pIdxWin, HelpSearchPage,
+sfx/ui/helpsearchpage.ui)
 
-HelpTabPage_Impl( pParent, _pIdxWin, SfxResId( TP_HELP_SEARCH ) ),
+,
 
-aSearchFT   ( this, SfxResId( FT_SEARCH ) 

[Libreoffice-commits] core.git: helpcontent2

2014-03-05 Thread Caolán McNamara
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a099961a13752dedbdf5ec7445865e0d6cb45455
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 11:31:01 2014 +

Updated core
Project: help  a1500f2d2d62db355abf42dbd136b26baecf8abc

diff --git a/helpcontent2 b/helpcontent2
index d17b89d..a1500f2 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit d17b89d10487e87000998056c30f9ecfa8b1a86a
+Subproject commit a1500f2d2d62db355abf42dbd136b26baecf8abc
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: helpers/help_hid.lst source/text

2014-03-05 Thread Caolán McNamara
 helpers/help_hid.lst   |7 ---
 source/text/shared/05/0140.xhp |   24 
 2 files changed, 12 insertions(+), 19 deletions(-)

New commits:
commit a1500f2d2d62db355abf42dbd136b26baecf8abc
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 11:31:01 2014 +

update help ids for help search page .ui conversion

Change-Id: I34d65b1d4f4929ae69bea4e2a47bef21f5e9a958

diff --git a/helpers/help_hid.lst b/helpers/help_hid.lst
index f1da63d..53cd13c 100644
--- a/helpers/help_hid.lst
+++ b/helpers/help_hid.lst
@@ -2107,7 +2107,6 @@ HID_HELP_ONHELP,68245,
 HID_HELP_ONSTARTUP_BOX,33389,
 HID_HELP_TABCONTROL,33348,
 HID_HELP_TABPAGE_CONTENTS,33356,
-HID_HELP_TABPAGE_SEARCH,33358,
 HID_HELP_TEXT_SELECTION_MODE,33373,
 HID_HELP_TOOLBOX,33349,
 HID_HELP_TOOLBOXITEM_BACKWARD,33352,
@@ -5946,9 +5945,6 @@ sfx2_CheckBox_DLG_NEW_FILE_CB_NUM_STYLE,1107379236,
 sfx2_CheckBox_DLG_NEW_FILE_CB_PAGE_STYLE,1107379235,
 sfx2_CheckBox_DLG_NEW_FILE_CB_TEXT_STYLE,1107379233,
 sfx2_CheckBox_RID_WARN_PRINTTRANSPARENCY_CBX_NOPRINTTRANSWARN,1113048129,
-sfx2_CheckBox_TP_HELP_SEARCH_CB_FULLWORDS,546997262,
-sfx2_CheckBox_TP_HELP_SEARCH_CB_SCOPE,546997263,
-sfx2_ComboBox_TP_HELP_SEARCH_ED_SEARCH,547000331,
 sfx2_Edit_DLG_DOCINFO_EDT_ED_INFO1,1078102021,
 sfx2_Edit_DLG_DOCINFO_EDT_ED_INFO2,1078102023,
 sfx2_Edit_DLG_DOCINFO_EDT_ED_INFO3,1078102025,
@@ -5964,7 +5960,6 @@ sfx2_FT_DOCNAME_DLG_PRINTMONITOR,2218852352,
 sfx2_FloatingWindow_SID_RECORDING_FLOATWINDOW,1705639936,
 sfx2_ListBox_DLG_NEW_FILE_LB_REGION,1107381781,
 sfx2_ListBox_DLG_NEW_FILE_LB_TEMPLATE,1107381812,
-sfx2_ListBox_TP_HELP_SEARCH_LB_RESULT,546999824,
 sfx2_ModalDialog_MD_DDE_LINKEDIT,1082212352,
 sfx2_ModalDialog_RID_URLOPEN,1112571904,
 sfx2_ModalDialog_RID_WARN_PRINTTRANSPARENCY,1113047040,
@@ -5973,8 +5968,6 @@ sfx2_MultiLineEdit_DLG_NEW_FILE_ED_DESC,1107380807,
 sfx2_PushButton_DLG_NEW_FILE_PB_LOAD_FILE,1107382822,
 sfx2_PushButton_RID_WARN_PRINTTRANSPARENCY_BTN_PRINTTRANS_NO,1113051711,
 sfx2_PushButton_TP_CUSTOMPROPERTIES_BTN_ADD,541364830,
-sfx2_PushButton_TP_HELP_SEARCH_PB_OPEN_SEARCH,547000849,
-sfx2_PushButton_TP_HELP_SEARCH_PB_SEARCH,547000844,
 starmath_ComboBox_RID_SYMDEFINEDIALOG_1,1401573377,
 starmath_ComboBox_RID_SYMDEFINEDIALOG_2,1401573378,
 starmath_ComboBox_RID_SYMDEFINEDIALOG_3,1401573379,
diff --git a/source/text/shared/05/0140.xhp 
b/source/text/shared/05/0140.xhp
index 3d79bec..ffb02dc 100644
--- a/source/text/shared/05/0140.xhp
+++ b/source/text/shared/05/0140.xhp
@@ -38,18 +38,18 @@
 paragraph role=paragraph id=par_id3148532 xml-lang=en-US l10n=E 
oldref=1 localize=false/
 paragraph role=heading id=hd_id3148523 xml-lang=en-US level=1 
l10n=U oldref=7variable id=0140link 
href=text/shared/05/0140.xhp name=Find - The Full-Text SearchFind - 
The Full-Text Search/link
 /variable/paragraph
-bookmark xml-lang=en-US branch=hid/sfx2:ComboBox:TP_HELP_SEARCH:ED_SEARCH 
id=bm_id3151100 localize=false/
-paragraph role=paragraph id=par_id3155599 xml-lang=en-US l10n=U 
oldref=2ahelp hid=SFX2_COMBOBOX_TP_HELP_SEARCH_ED_SEARCH 
visibility=hiddenEnter the search term here. The search is not 
case-sensitive./ahelp/paragraph
-bookmark xml-lang=en-US 
branch=hid/sfx2:PushButton:TP_HELP_SEARCH:PB_SEARCH id=bm_id3109850 
localize=false/
-paragraph role=paragraph id=par_id3153323 xml-lang=en-US l10n=U 
oldref=3ahelp hid=SFX2_PUSHBUTTON_TP_HELP_SEARCH_PB_SEARCH 
visibility=hiddenClick to start a full-text search for the term you 
entered./ahelp/paragraph
-bookmark xml-lang=en-US branch=hid/sfx2:ListBox:TP_HELP_SEARCH:LB_RESULT 
id=bm_id3149140 localize=false/
-paragraph role=paragraph id=par_id3150499 xml-lang=en-US l10n=CHG 
oldref=4ahelp hid=SFX2_LISTBOX_TP_HELP_SEARCH_LB_RESULT 
visibility=hiddenLists the headings of the pages found in your full-text 
search. To display a page, double-click its entry./ahelp/paragraph
-bookmark xml-lang=en-US 
branch=hid/sfx2:CheckBox:TP_HELP_SEARCH:CB_FULLWORDS id=bm_id3154673 
localize=false/
-paragraph role=paragraph id=par_id3156027 xml-lang=en-US l10n=U 
oldref=14ahelp hid=SFX2_CHECKBOX_TP_HELP_SEARCH_CB_FULLWORDS 
visibility=hiddenSpecifies whether to carry out an exact search for the word 
you entered. Incomplete words will not be found./ahelp/paragraph
-bookmark xml-lang=en-US branch=hid/sfx2:CheckBox:TP_HELP_SEARCH:CB_SCOPE 
id=bm_id3147835 localize=false/
-paragraph role=paragraph id=par_id312 xml-lang=en-US l10n=U 
oldref=5ahelp hid=SFX2_CHECKBOX_TP_HELP_SEARCH_CB_SCOPE 
visibility=hiddenSpecifies whether to only search in document headings for 
the search term./ahelp/paragraph
-bookmark xml-lang=en-US 
branch=hid/sfx2:PushButton:TP_HELP_SEARCH:PB_OPEN_SEARCH id=bm_id3145346 
localize=false/
-paragraph role=paragraph id=par_id315 xml-lang=en-US l10n=U 
oldref=6ahelp hid=SFX2_PUSHBUTTON_TP_HELP_SEARCH_PB_OPEN_SEARCH 
visibility=hiddenDisplays the entry selected in the list./ahelp/paragraph
+bookmark xml-lang=en-US 

[Libreoffice-commits] help.git: helpers/help_hid.lst source/text

2014-03-05 Thread Caolán McNamara
 helpers/help_hid.lst   |2 --
 source/text/shared/05/0160.xhp |4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit b7b2120b6b279ed678c9fc8dbd5ee02e184064bc
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 11:48:05 2014 +

update help ids for help contents page .ui conversion

Change-Id: I11701c2b795fde45d671762951046ea3e459e5b0

diff --git a/helpers/help_hid.lst b/helpers/help_hid.lst
index 53cd13c..a0e43a2 100644
--- a/helpers/help_hid.lst
+++ b/helpers/help_hid.lst
@@ -2106,7 +2106,6 @@ HID_HELP_LISTBOX,33347,
 HID_HELP_ONHELP,68245,
 HID_HELP_ONSTARTUP_BOX,33389,
 HID_HELP_TABCONTROL,33348,
-HID_HELP_TABPAGE_CONTENTS,33356,
 HID_HELP_TEXT_SELECTION_MODE,33373,
 HID_HELP_TOOLBOX,33349,
 HID_HELP_TOOLBOXITEM_BACKWARD,33352,
@@ -2116,7 +2115,6 @@ HID_HELP_TOOLBOXITEM_INDEX,33350,
 HID_HELP_TOOLBOXITEM_PRINT,33354,
 HID_HELP_TOOLBOXITEM_SEARCHDIALOG,33363,
 HID_HELP_TOOLBOXITEM_START,33351,
-HID_HELP_TREELISTBOX_CONTENTS,33369,
 HID_HELP_WINDOW,33346,
 HID_HYPERDLG_DOC_PATH,34092,
 HID_HYPERDLG_INET_PATH,34090,
diff --git a/source/text/shared/05/0160.xhp 
b/source/text/shared/05/0160.xhp
index e18ba5a..0b3fa89 100644
--- a/source/text/shared/05/0160.xhp
+++ b/source/text/shared/05/0160.xhp
@@ -35,10 +35,10 @@
 bookmark_valuetree view of Help/bookmark_value
 /bookmark
 paragraph role=paragraph id=par_id3147090 xml-lang=en-US l10n=E 
oldref=1 localize=false/
-bookmark xml-lang=en-US branch=hid/SFX2_HID_HELP_TABPAGE_CONTENTS 
id=bm_id3155354 localize=false/
+bookmark xml-lang=en-US branch=hid/sfx/ui/helpcontentpage/HelpContentPage 
id=bm_id3155354 localize=false/
 paragraph role=heading id=hd_id3146856 xml-lang=en-US level=1 
l10n=U oldref=2variable id=doc_titlelink 
href=text/shared/05/0160.xhp name=Contents - The Main Help 
TopicsContents - The Main Help Topics/link
 /variable/paragraph
-paragraph role=paragraph id=par_id3147000 xml-lang=en-US l10n=U 
oldref=3ahelp hid=HID_HELP_TABPAGE_CONTENTSDisplays the main help 
themes, arranged in a similar way to folders in a file 
manager./ahelp/paragraph
+paragraph role=paragraph id=par_id3147000 xml-lang=en-US l10n=U 
oldref=3ahelp hid=sfx/ui/helpcontentpage/HelpContentPageDisplays the 
main help themes, arranged in a similar way to folders in a file 
manager./ahelp/paragraph
 table id=tbl_id3150476
 tablerow
 tablecell colspan= rowspan=
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2

2014-03-05 Thread Caolán McNamara
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3991641ad68b08ad6be332c9a3f8ffa7ff98a4d1
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 11:48:05 2014 +

Updated core
Project: help  b7b2120b6b279ed678c9fc8dbd5ee02e184064bc

diff --git a/helpcontent2 b/helpcontent2
index a1500f2..b7b2120 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit a1500f2d2d62db355abf42dbd136b26baecf8abc
+Subproject commit b7b2120b6b279ed678c9fc8dbd5ee02e184064bc
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: extras/source sfx2/source sfx2/uiconfig sfx2/UIConfig_sfx.mk

2014-03-05 Thread Caolán McNamara
 extras/source/glade/libreoffice-catalog.xml.in |3 +
 sfx2/UIConfig_sfx.mk   |1 
 sfx2/source/appl/app.hrc   |1 
 sfx2/source/appl/newhelp.cxx   |   56 +
 sfx2/source/appl/newhelp.hrc   |3 -
 sfx2/source/appl/newhelp.hxx   |   13 ++---
 sfx2/source/appl/newhelp.src   |   16 ---
 sfx2/source/inc/helpid.hrc |2 
 sfx2/uiconfig/ui/helpcontentpage.ui|   45 
 9 files changed, 77 insertions(+), 63 deletions(-)

New commits:
commit c1d9f1ff1868ecd8fa21028c53c5dd357701affe
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 11:45:51 2014 +

convert help contents page to .ui

Change-Id: I9ffd2881bfbf51749d69d7fc1af2d74335d8e3f4

diff --git a/extras/source/glade/libreoffice-catalog.xml.in 
b/extras/source/glade/libreoffice-catalog.xml.in
index 24c8c3e..645ec55 100644
--- a/extras/source/glade/libreoffice-catalog.xml.in
+++ b/extras/source/glade/libreoffice-catalog.xml.in
@@ -472,6 +472,9 @@
 glade-widget-class title=Chart Series ListBox 
name=chartcontrollerlo-SeriesListBox
 generic-name=Chart Series ListBox 
parent=svtlo-SvTreeListBox
 icon-name=widget-gtk-treeview/
+glade-widget-class title=Content List Box name=sfxlo-ContentListBox
+generic-name=Content List Box 
parent=svtlo-SvTreeListBox
+icon-name=widget-gtk-treeview/
 glade-widget-class title=DD ListBox name=swuilo-DDListBox
 generic-name=DD ListBox parent=svtlo-SvTreeListBox
 icon-name=widget-gtk-treeview/
diff --git a/sfx2/UIConfig_sfx.mk b/sfx2/UIConfig_sfx.mk
index 46f3160..a39c171 100644
--- a/sfx2/UIConfig_sfx.mk
+++ b/sfx2/UIConfig_sfx.mk
@@ -23,6 +23,7 @@ $(eval $(call gb_UIConfig_add_uifiles,sfx,\
sfx2/uiconfig/ui/editdurationdialog \
sfx2/uiconfig/ui/errorfindemaildialog \
sfx2/uiconfig/ui/helpbookmarkpage \
+   sfx2/uiconfig/ui/helpcontentpage \
sfx2/uiconfig/ui/helpindexpage \
sfx2/uiconfig/ui/helpsearchpage \
sfx2/uiconfig/ui/inputdialog \
diff --git a/sfx2/source/appl/app.hrc b/sfx2/source/appl/app.hrc
index 138aa53..e0c1d13 100644
--- a/sfx2/source/appl/app.hrc
+++ b/sfx2/source/appl/app.hrc
@@ -42,7 +42,6 @@
 #define CONFIG_PATH_START   (RID_SFX_APP_START+98)
 
 #define WIN_HELPINDEX   (RID_SFX_APP_START+99)
-#define TP_HELP_CONTENT (RID_SFX_APP_START+100)
 
 #define MENU_HELP_BOOKMARKS (RID_SFX_APP_START+105)
 #define RID_INFO_NOSEARCHRESULTS(RID_SFX_APP_START+106)
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index f7080b1..b7909d8 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -270,13 +270,11 @@ struct ContentEntry_Impl
 
 // ContentListBox_Impl ---
 
-ContentListBox_Impl::ContentListBox_Impl( Window* pParent, const ResId rResId 
) :
-
-SvTreeListBox( pParent, rResId ),
-
-aOpenBookImage  ( SfxResId( IMG_HELP_CONTENT_BOOK_OPEN ) ),
-aClosedBookImage( SfxResId( IMG_HELP_CONTENT_BOOK_CLOSED ) ),
-aDocumentImage  ( SfxResId( IMG_HELP_CONTENT_DOC ) )
+ContentListBox_Impl::ContentListBox_Impl(Window* pParent, WinBits nStyle)
+: SvTreeListBox(pParent, nStyle)
+, aOpenBookImage(SfxResId(IMG_HELP_CONTENT_BOOK_OPEN))
+, aClosedBookImage(SfxResId(IMG_HELP_CONTENT_BOOK_CLOSED))
+, aDocumentImage(SfxResId(IMG_HELP_CONTENT_DOC))
 
 {
 SetStyle( GetStyle() | WB_HIDESELECTION | WB_HSCROLL );
@@ -292,7 +290,15 @@ ContentListBox_Impl::ContentListBox_Impl( Window* pParent, 
const ResId rResId )
 InitRoot();
 }
 
-
+extern C SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeContentListBox(Window 
*pParent,
+VclBuilder::stringmap rMap)
+{
+WinBits nWinStyle = WB_TABSTOP;
+OString sBorder = VclBuilder::extractCustomProperty(rMap);
+if (!sBorder.isEmpty())
+nWinStyle |= WB_BORDER;
+return new ContentListBox_Impl(pParent, nWinStyle);
+}
 
 ContentListBox_Impl::~ContentListBox_Impl()
 {
@@ -306,8 +312,6 @@ ContentListBox_Impl::~ContentListBox_Impl()
 }
 }
 
-
-
 void ContentListBox_Impl::InitRoot()
 {
 OUString aHelpTreeviewURL( 
vnd.sun.star.hier://com.sun.star.help.TreeView/ );
@@ -431,41 +435,25 @@ HelpTabPage_Impl::HelpTabPage_Impl(Window* pParent, 
SfxHelpIndexWindow_Impl* _pI
 
 // class ContentTabPage_Impl -
 
-ContentTabPage_Impl::ContentTabPage_Impl( Window* pParent, 
SfxHelpIndexWindow_Impl* _pIdxWin ) :
-
-HelpTabPage_Impl( pParent, _pIdxWin, SfxResId( TP_HELP_CONTENT ) ),
-
-aContentBox( this, SfxResId( LB_CONTENTS ) )
-
+ContentTabPage_Impl::ContentTabPage_Impl(Window* pParent, 

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

2014-03-05 Thread Winfried Donkers
 formula/source/core/api/FormulaCompiler.cxx|1 
 formula/source/core/resource/core_resource.src |   28 +
 include/formula/compiler.hrc   |6 -
 include/formula/opcode.hxx |4 
 sc/inc/helpids.h   |4 
 sc/qa/unit/subsequent_filters-test.cxx |   10 -
 sc/qa/unit/ucalc.cxx   |4 
 sc/source/core/inc/interpre.hxx|2 
 sc/source/core/tool/interpr3.cxx   |   27 
 sc/source/core/tool/interpr4.cxx   |6 -
 sc/source/core/tool/interpr5.cxx   |   63 +++
 sc/source/core/tool/parclass.cxx   |3 
 sc/source/filter/excel/xlformula.cxx   |6 -
 sc/source/filter/oox/formulabase.cxx   |6 -
 sc/source/ui/src/scfuncs.src   |  136 +
 15 files changed, 297 insertions(+), 9 deletions(-)

New commits:
commit e4def6edaa4686e50bbfd4490a4b9ddb928397a4
Author: Winfried Donkers winfrieddonk...@libreoffice.org
Date:   Sun Feb 2 12:37:39 2014 +0100

fdo#72197 Add Excel 2010 functions

MODE.SNGL, MODE.MULT, NEGBINOM.DIST, Z.TEST

Change-Id: I55eb05e1ebdb9dbc3ce9ae84e3cdacfdfa112091
Reviewed-on: https://gerrit.libreoffice.org/7776
Tested-by: LibreOffice gerrit bot ger...@libreoffice.org
Reviewed-by: Eike Rathke er...@redhat.com
Tested-by: Eike Rathke er...@redhat.com

diff --git a/formula/source/core/api/FormulaCompiler.cxx 
b/formula/source/core/api/FormulaCompiler.cxx
index 0302855..d37f8cf 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -842,6 +842,7 @@ bool FormulaCompiler::IsMatrixFunction( OpCode eOpCode )
 case ocMatMult :
 case ocMatInv :
 case ocMatrixUnit :
+case ocModalValue_Multi :
 return true;
 default:
 {
diff --git a/formula/source/core/resource/core_resource.src 
b/formula/source/core/resource/core_resource.src
index d3b3ea3..a6de271 100644
--- a/formula/source/core/resource/core_resource.src
+++ b/formula/source/core/resource/core_resource.src
@@ -301,6 +301,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF
 String SC_OPCODE_WEIBULL { Text = WEIBULL ; };
 String SC_OPCODE_WEIBULL_MS { Text = COM.MICROSOFT.WEIBULL.DIST ; };
 String SC_OPCODE_NEG_BINOM_VERT { Text = NEGBINOMDIST ; };
+String SC_OPCODE_NEG_BINOM_DIST_MS { Text = COM.MICROSOFT.NEGBINOM.DIST 
; };
 String SC_OPCODE_KRIT_BINOM { Text = CRITBINOM ; };
 String SC_OPCODE_BINOM_INV { Text = COM.MICROSOFT.BINOM.INV ; };
 String SC_OPCODE_KURT { Text = KURT ; };
@@ -313,7 +314,10 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF
 String SC_OPCODE_DEV_SQ { Text = DEVSQ ; };
 String SC_OPCODE_MEDIAN { Text = MEDIAN ; };
 String SC_OPCODE_MODAL_VALUE { Text = MODE ; };
+String SC_OPCODE_MODAL_VALUE_MS { Text = COM.MICROSOFT.MODE.SNGL ; };
+String SC_OPCODE_MODAL_VALUE_MULTI { Text = COM.MICROSOFT.MODE.MULT ; };
 String SC_OPCODE_Z_TEST { Text = ZTEST ; };
+String SC_OPCODE_Z_TEST_MS { Text = COM.MICROSOFT.Z.TEST ; };
 String SC_OPCODE_T_TEST { Text = TTEST ; };
 String SC_OPCODE_T_TEST_MS { Text = COM.MICROSOFT.T.TEST ; };
 String SC_OPCODE_RANK { Text = RANK ; };
@@ -695,6 +699,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML
 String SC_OPCODE_WEIBULL { Text = WEIBULL ; };
 String SC_OPCODE_WEIBULL_MS { Text = _xlfn.WEIBULL.DIST ; };
 String SC_OPCODE_NEG_BINOM_VERT { Text = NEGBINOMDIST ; };
+String SC_OPCODE_NEG_BINOM_DIST_MS { Text = _xlfn.NEGBINOM.DIST ; };
 String SC_OPCODE_KRIT_BINOM { Text = CRITBINOM ; };
 String SC_OPCODE_BINOM_INV { Text = _xlfn.BINOM.INV ; };
 String SC_OPCODE_KURT { Text = KURT ; };
@@ -707,7 +712,10 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML
 String SC_OPCODE_DEV_SQ { Text = DEVSQ ; };
 String SC_OPCODE_MEDIAN { Text = MEDIAN ; };
 String SC_OPCODE_MODAL_VALUE { Text = MODE ; };
+String SC_OPCODE_MODAL_VALUE_MS { Text = _xlfn.MODE.SNGL ; };
+String SC_OPCODE_MODAL_VALUE_MULTI { Text = _xlfn.MODE.MULT ; };
 String SC_OPCODE_Z_TEST { Text = ZTEST ; };
+String SC_OPCODE_Z_TEST_MS { Text = _xlfn.Z.TEST ; };
 String SC_OPCODE_T_TEST { Text = TTEST ; };
 String SC_OPCODE_T_TEST_MS { Text = _xlfn.T.TEST ; };
 String SC_OPCODE_RANK { Text = RANK ; };
@@ -1091,6 +1099,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH
 String SC_OPCODE_WEIBULL { Text = WEIBULL ; };
 String SC_OPCODE_WEIBULL_MS { Text = WEIBULL.DIST ; };
 String SC_OPCODE_NEG_BINOM_VERT { Text = NEGBINOMDIST ; };
+String SC_OPCODE_NEG_BINOM_DIST_MS { Text = NEGBINOM.DIST ; };
 String SC_OPCODE_KRIT_BINOM { Text = CRITBINOM ; };
 String SC_OPCODE_BINOM_INV { Text = BINOM.INV ; };
 String SC_OPCODE_KURT { Text = KURT ; };
@@ -1103,7 +1112,10 @@ Resource 

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

2014-03-05 Thread Caolán McNamara
 sfx2/source/appl/newhelp.cxx |7 ---
 sfx2/source/appl/newhelp.hxx |1 -
 2 files changed, 8 deletions(-)

New commits:
commit e203cf28c7ab5b256e02769392fff487c5ecc87a
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 11:55:00 2014 +

HelpTabPage_Impl ResId variant is now unused

Change-Id: I084aaae3f090b36e7f16c4cd2541613fc91d6490

diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index b7909d8..f7199a4 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -420,13 +420,6 @@ OUString ContentListBox_Impl::GetSelectEntry() const
 // class HelpTabPage_Impl 
 
 HelpTabPage_Impl::HelpTabPage_Impl(Window* pParent, SfxHelpIndexWindow_Impl* 
_pIdxWin,
-const ResId rResId )
-: TabPage( pParent, rResId )
-, m_pIdxWin( _pIdxWin )
-{
-}
-
-HelpTabPage_Impl::HelpTabPage_Impl(Window* pParent, SfxHelpIndexWindow_Impl* 
_pIdxWin,
 const OString rID, const OUString rUIXMLDescription)
 : TabPage( pParent, rID, rUIXMLDescription)
 , m_pIdxWin( _pIdxWin )
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index fa63cff..a8ef107 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -78,7 +78,6 @@ protected:
 SfxHelpIndexWindow_Impl*m_pIdxWin;
 
 public:
-HelpTabPage_Impl( Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin, 
const ResId rResId );
 HelpTabPage_Impl(Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin,
 const OString rID, const OUString rUIXMLDescription);
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Winfried Donkers
 sc/source/core/tool/parclass.cxx |8 
 1 file changed, 8 insertions(+)

New commits:
commit 9b808856ca26a1879303bd562f6b02233cb87ac3
Author: Winfried Donkers winfrieddonk...@libreoffice.org
Date:   Wed Feb 26 11:08:12 2014 +0100

fdo#70798 add missing parclass.cxx entries for new Excel2010 functions

Change-Id: If27559ffb077b5704d46ec4057b5531a9887b0cd
Reviewed-on: https://gerrit.libreoffice.org/8355
Reviewed-by: Eike Rathke er...@redhat.com
Tested-by: Eike Rathke er...@redhat.com

diff --git a/sc/source/core/tool/parclass.cxx b/sc/source/core/tool/parclass.cxx
index ae10b6c..2b74084 100644
--- a/sc/source/core/tool/parclass.cxx
+++ b/sc/source/core/tool/parclass.cxx
@@ -152,13 +152,21 @@ const ScParameterClassification::RawData 
ScParameterClassification::pRawData[] =
 { ocOr,  {{ Reference  
  }, 1 }},
 { ocPearson, {{ ForceArray, ForceArray 
  }, 0 }},
 { ocPercentile,  {{ Reference, Value   
  }, 0 }},
+{ ocPercentile_Exc,  {{ Reference, Value   
  }, 0 }},
+{ ocPercentile_Inc,  {{ Reference, Value   
  }, 0 }},
 { ocPercentrank, {{ Reference, Value, Value
  }, 0 }},
+{ ocPercentrank_Exc, {{ Reference, Value, Value
  }, 0 }},
+{ ocPercentrank_Inc, {{ Reference, Value, Value
  }, 0 }},
 { ocPow, {{ Array, Array   
  }, 0 }},
 { ocPower,   {{ Array, Array   
  }, 0 }},
 { ocProb,{{ ForceArray, ForceArray, Value, Value   
  }, 0 }},
 { ocProduct, {{ Reference  
  }, 1 }},
 { ocQuartile,{{ Reference, Value   
  }, 0 }},
+{ ocQuartile_Exc,{{ Reference, Value   
  }, 0 }},
+{ ocQuartile_Inc,{{ Reference, Value   
  }, 0 }},
 { ocRank,{{ Value, Reference, Value
  }, 0 }},
+{ ocRank_Avg,{{ Value, Reference, Value
  }, 0 }},
+{ ocRank_Eq, {{ Value, Reference, Value
  }, 0 }},
 { ocRGP, {{ Reference, Reference, Value, Value 
  }, 0 }},
 { ocRKP, {{ Reference, Reference, Value, Value 
  }, 0 }},
 { ocRow, {{ Reference  
  }, 0 }},
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - 2 commits - sc/inc stlport/systemstl

2014-03-05 Thread Andre Fischer
 sc/inc/refdata.hxx |2 +-
 stlport/systemstl/hash_map |   17 ++---
 2 files changed, 11 insertions(+), 8 deletions(-)

New commits:
commit fddfd6e97750acacf667fc195456d33af8828a46
Author: Andre Fischer a...@apache.org
Date:   Wed Mar 5 11:51:34 2014 +

124361: Avoid warning by not assigning from sal_Int32 to sal_Int16.

diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx
index 9550b82..b3352faa 100644
--- a/sc/inc/refdata.hxx
+++ b/sc/inc/refdata.hxx
@@ -78,7 +78,7 @@ struct SC_DLLPUBLIC ScSingleRefData// Single 
reference (one address) int
 inline  void InitFlags() { bFlags = 0; }// all FALSE
 
 // #123870# Make it possible to init members to some defined values
-inline void InitMembers() { nCol = nRow = nTab = nRelCol = nRelRow = 
nRelTab = 0; }
+inline void InitMembers() { nRow = nRelRow = 0; nCol = nRelCol = 0; nTab = 
nRelTab = 0; }
 
 // InitAddress: InitFlags and set address
 inline  void InitAddress( const ScAddress rAdr );
commit 6fbf6653bebf3dfb6998233dff386d2ae977b152
Author: Andre Fischer a...@apache.org
Date:   Wed Mar 5 10:51:54 2014 +

124361: Avoid MSVC warning 4555 while including unordered_map.

diff --git a/stlport/systemstl/hash_map b/stlport/systemstl/hash_map
index 198b055..9ebcb44 100644
--- a/stlport/systemstl/hash_map
+++ b/stlport/systemstl/hash_map
@@ -23,16 +23,19 @@
 #define SYSTEM_STL_HASHMAP
 
 #ifdef HAVE_STL_INCLUDE_PATH
-   // TODO: use computed include file name
-   #include_next unordered_map
+// TODO: use computed include file name
+#include_next unordered_map
 #elif defined(__cplusplus)  (__cplusplus = 201103L)
-   #include unordered_map
+#include unordered_map
 #elif defined(_MSC_VER)
-   #include ../../VC/include/unordered_map
-   #define STLP4_EMUBASE_NS ::std::tr1
+#pragma warning(push)
+#pragma warning(disable:4555)
+#include ../../VC/include/unordered_map
+#pragma warning(pop)
+#define STLP4_EMUBASE_NS ::std::tr1
 #else // fall back to boost/tr1
-   #include boost/tr1/tr1/unordered_map
-   #define STLP4_EMUBASE_NS ::boost
+#include boost/tr1/tr1/unordered_map
+#define STLP4_EMUBASE_NS ::boost
 #endif
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: [Libreoffice-qa] [ANN] LIbreOffice 4.2.2 RC1 available

2014-03-05 Thread Bjoern Michaelsen
On Wed, Mar 05, 2014 at 11:43:59AM +0100, Christian Lohmaier wrote:
 The release is available for Windows, Linux and Mac OS X from our QA
 builds download page at
 
   http://www.libreoffice.org/download/pre-releases/
 
 LibreOffice 4.2.2 RC1 is also available in a 64bit version for Mac OS
 X 10.8 (or newer)

Ubuntu trusty (14.04) users will also find a build in all these PPAs:

 https://launchpad.net/~libreoffice/+archive/ppa
 https://launchpad.net/~libreoffice/+archive/libreoffice-prereleases
 https://launchpad.net/~libreoffice/+archive/libreoffice-4-2

Backports to Ubuntu 13.10 and 12.04 will likely follow soon.

Best,

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


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

2014-03-05 Thread Maxim Monastirsky
 officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu |5 -
 sc/inc/sc.hrc |3 
 sc/sdi/formatsh.sdi   |1 
 sc/sdi/scalc.sdi  |   25 -
 sc/source/core/data/docpool.cxx   |3 
 sc/source/ui/app/scmod.cxx|1 
 sc/source/ui/inc/formatsh.hxx |3 
 sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx  |8 -
 sc/source/ui/view/formatsh.cxx|   48 
--
 sc/source/ui/view/tabview3.cxx|1 
 10 files changed, 6 insertions(+), 92 deletions(-)

New commits:
commit c3403ac888c2e62edaf8befe7982f5f8cc95c16f
Author: Maxim Monastirsky momonas...@gmail.com
Date:   Wed Mar 5 09:42:30 2014 +0200

fdo#67104 Use correct command for show grid

Not sure why .uno:ViewGridLines  SID_SCGRIDSHOW were
introduced (in merge sidebar feature and related commits).

Change-Id: I90bdfaef86adcbfa44129b8f7f9df61ca7f35114
Reviewed-on: https://gerrit.libreoffice.org/8459
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
index 5c75e98..cdfd826 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
@@ -835,11 +835,6 @@
   value xml:lang=en-US~Formula Bar/value
 /prop
   /node
-  node oor:name=.uno:ViewGridLines oor:op=replace
-prop oor:name=Label oor:type=xs:string
-  value xml:lang=en-USView Grid lines/value
-/prop
-  /node
   node oor:name=.uno:ViewRowColumnHeaders oor:op=replace
 prop oor:name=Label oor:type=xs:string
   value xml:lang=en-USC~olumn amp; Row Headers/value
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index 3ed851a..ae92cf8 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -677,8 +677,7 @@
 // Sidebar -
 
 #define SID_PROPERTY_PANEL_CELLTEXT_DLG (SC_SIDEBAR_PROPERTY_BEGIN+0)
-#define SID_SCGRIDSHOW  (SC_SIDEBAR_PROPERTY_BEGIN+1)
-#define SID_NUMBER_TYPE_FORMAT  (SC_SIDEBAR_PROPERTY_BEGIN+2)
+#define SID_NUMBER_TYPE_FORMAT  (SC_SIDEBAR_PROPERTY_BEGIN+1)
 
 // resources
 
diff --git a/sc/sdi/formatsh.sdi b/sc/sdi/formatsh.sdi
index 72e1e14..903c5e5 100644
--- a/sc/sdi/formatsh.sdi
+++ b/sc/sdi/formatsh.sdi
@@ -101,7 +101,6 @@ interface FormatForSelection
 SID_ALIGNCENTERVER  [ ExecMethod = ExecuteTextAttr; StateMethod = 
GetTextAttrState; ]
 SID_ALIGNBLOCK  [ ExecMethod = ExecuteTextAttr; StateMethod = 
GetTextAttrState; ]
 SID_ALIGNCENTERHOR  [ ExecMethod = ExecuteTextAttr; StateMethod = 
GetTextAttrState; ]
-SID_SCGRIDSHOW  [ ExecMethod = ExecViewOptions; StateMethod = 
GetViewOptions; ]
 
 SID_V_ALIGNCELL [ ExecMethod = ExecuteAlignment; StateMethod = 
GetAlignState; ]
 SID_H_ALIGNCELL [ ExecMethod = ExecuteAlignment; StateMethod = 
GetAlignState; ]
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi
index 1313bdb..ca7b225 100644
--- a/sc/sdi/scalc.sdi
+++ b/sc/sdi/scalc.sdi
@@ -8801,31 +8801,6 @@ SfxVoidItem ExportAsGraphic SID_EXPORT_AS_GRAPHIC
 ]
 
 
-SfxBoolItem ViewGridLines SID_SCGRIDSHOW
-[
-AutoUpdate = TRUE,
-Cachable = Cachable,
-FastCall = FALSE,
-HasCoreId = FALSE,
-HasDialog = FALSE,
-ReadOnlyDoc = FALSE, //TRUE
-Toggle = FALSE,
-Container = FALSE,
-RecordAbsolute = FALSE,
-RecordPerSet;
-Synchron;
-
-Readonly = FALSE,
-
-/* config */
-AccelConfig = FALSE,
-MenuConfig = FALSE,
-StatusBarConfig = FALSE,
-ToolBoxConfig = FALSE,
-GroupId = GID_VIEW;
-]
-
-
 SfxUInt16Item NumberFormatType SID_NUMBER_TYPE_FORMAT
 [
 /* flags: */
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index db06224..3c7e52d 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -182,8 +182,7 @@ static SfxItemInfo const  aItemInfos[] =
 { SID_ATTR_PAGE_FOOTERSET,  SFX_ITEM_POOLABLE },// 
ATTR_PAGE_FOOTERSET
 { SID_SCATTR_PAGE_FORMULAS, SFX_ITEM_POOLABLE },// 
ATTR_PAGE_FORMULAS
 { SID_SCATTR_PAGE_NULLVALS, SFX_ITEM_POOLABLE },// 
ATTR_PAGE_NULLVALS
-{ SID_SCATTR_PAGE_SCALETO,  SFX_ITEM_POOLABLE },// 
ATTR_PAGE_SCALETO
-{ SID_SCGRIDSHOW,   SFX_ITEM_POOLABLE }
+{ SID_SCATTR_PAGE_SCALETO,  SFX_ITEM_POOLABLE } // 
ATTR_PAGE_SCALETO
 };
 
 
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 496062b..ba7aec8 100644
--- 

How to install Libreoffice SDK in Ubuntu

2014-03-05 Thread Prabhat Kumar
Hi,
I'm new to Libreoffice development and I'm having problem to start with
Libreoffice SDK.

I have run this script /usr/lib/libreoffice/sdk/setsdkenv_unix

and got following message :-

 *
 * SDK environment is prepared for Linux
 *
 * SDK = /usr/lib/libreoffice/sdk
 * Office = /usr/lib/libreoffice
 * URE = /usr/lib/libreoffice/ure-link
 * Make = /usr/bin
 * Zip = /usr/bin
 * C++ Compiler = /usr/bin
 * Java = /usr
 * SDK Output directory = Desktop/GSoC/libreoffice4.1_sdk
 * Auto deployment = YES
 *
 
but still I'm not able to run cpp program and getting several errors
Please help me to start with it

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


[Bug 60270] LibreOffice 4.1 most annoying bugs

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60270

Bug 60270 depends on bug 67104, which changed state.

Bug 67104 Summary: UI - Default value of Show cell grid lines checkbox on 
sidebar
https://bugs.freedesktop.org/show_bug.cgi?id=67104

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

-- 
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


[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - 6f/bf6653bebf3dfb6998233dff386d2ae977b152

2014-03-05 Thread Caolán McNamara
 6f/bf6653bebf3dfb6998233dff386d2ae977b152 |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2deb97d28179ef857eeae8e4e1283476ed752c9b
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 13:14:06 2014 +

Notes added by 'git notes add'

diff --git a/6f/bf6653bebf3dfb6998233dff386d2ae977b152 
b/6f/bf6653bebf3dfb6998233dff386d2ae977b152
new file mode 100644
index 000..8ebbe55
--- /dev/null
+++ b/6f/bf6653bebf3dfb6998233dff386d2ae977b152
@@ -0,0 +1 @@
+ignore: obsolete
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - fd/dfd6e97750acacf667fc195456d33af8828a46

2014-03-05 Thread Caolán McNamara
 fd/dfd6e97750acacf667fc195456d33af8828a46 |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 624178fd90827db2264451859e102c39f6270a33
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 13:14:49 2014 +

Notes added by 'git notes add'

diff --git a/fd/dfd6e97750acacf667fc195456d33af8828a46 
b/fd/dfd6e97750acacf667fc195456d33af8828a46
new file mode 100644
index 000..8e5c182
--- /dev/null
+++ b/fd/dfd6e97750acacf667fc195456d33af8828a46
@@ -0,0 +1 @@
+ignore: aoo
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Widget Conversion: Getting hard to find the last 175 remaining

2014-03-05 Thread Caolán McNamara
Its getting harder for me to *find* in the UI the way to launch most of
the remaining dialogs and tabpages that need converting and it's slowing
me down to have to spend a few minutes muddling through the help content
and the text of the .src to figure that out, so if you want to help then
you can fill in a few entries of this tracking wiki page with
instructions as to how to launch a given dialog/tabpage

https://wiki.documentfoundation.org/Development/WidgetLayout/FindDialogs

There are some hints on the page as how to do it.

C.

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


Re: Current Build from Git: Writer-Wizards don't run

2014-03-05 Thread Caolán McNamara
On Tue, 2014-03-04 at 15:59 +0100, Stephan Bergmann wrote:
 Right, /org.openoffice.Office.Paths/Template/InternalPaths is a set, and 
 the order in which its elements are reported by configmgr is 
 unspecified.  Still, at least the two elements given in 
 officecfg/registry/data/org/openoffice/Office/Paths.xcu,
 
  node oor:name=$(insturl)/@LIBO_SHARE_FOLDER@/template/common 
  oor:op=fuse/
  node oor:name=$(insturl)/@LIBO_SHARE_FOLDER@/template/$(vlang) 
  oor:op=fuse/
 
 would both result in the same effective path generated via
 
  sLetterPath = self.sTemplatePath + /../common/wizard/letter

Not if the expanded vlang path doesn't exist, then relative path of
foo/template/NOTTHERE/../common/wizard/letter
won't work either.

C.

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


Re: Widget Conversion: Getting hard to find the last 175 remaining

2014-03-05 Thread Joao S. O. Bueno
Hi there -
I think  that issue maybe could spin of as a UI discussion -
only yesterday I was thinking just about this issue, though regarding
2 other softwares I use a lot: GIMP and Inkscape.

Inkscape has this same design as L.O., where the dialogs can be
launched from the U.I. form different places - and, even thoguh there
might be an order of magnitude less dialogs in inkscape than in L.O.
they are already difficult to find.

In GIMP, regardless of the type of dialog, ALL of the primary types
of dialog are
under Window-Dockable dialogs menu.  Some of them, due to logic
organization of the UI are _also_ present in other places - but one
does not need to think where can I possibly find a way to get to the
textures dialog - they are all listed in one place.

Maybe L.O. could have in the future a submenu where all tabs and
dialogs could be found? Or a dialog browser tool?

I am sorry if this list is not the appropriate place for UI discussion
suggestions  - I I've been reading it for some months and saw some
e-mails talking about UI, but very few. Where could that conversation
take place?

  js
 --


On 5 March 2014 10:38, Caolán McNamara caol...@redhat.com wrote:
 Its getting harder for me to *find* in the UI the way to launch most of
 the remaining dialogs and tabpages that need converting and it's slowing
 me down to have to spend a few minutes muddling through the help content
 and the text of the .src to figure that out, so if you want to help then
 you can fill in a few entries of this tracking wiki page with
 instructions as to how to launch a given dialog/tabpage

 https://wiki.documentfoundation.org/Development/WidgetLayout/FindDialogs

 There are some hints on the page as how to do it.

 C.

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


[Libreoffice-commits] help.git: helpers/help_hid.lst

2014-03-05 Thread Caolán McNamara
 helpers/help_hid.lst |   19 ---
 1 file changed, 19 deletions(-)

New commits:
commit 89290aeb021a3ab91a0a091537eaa7c8194c8449
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 14:00:39 2014 +

remove unused helpids that go nowhere

Change-Id: I8d3296053c8f744894888fcf9e217495de9de8b8

diff --git a/helpers/help_hid.lst b/helpers/help_hid.lst
index a0e43a2..f557f87 100644
--- a/helpers/help_hid.lst
+++ b/helpers/help_hid.lst
@@ -2984,9 +2984,6 @@ HID_SC_APPEND_NAME,58914,
 HID_SC_ASCII_TABCTR,58926,
 HID_SC_AUTOFMT_NAME,58921,
 HID_SC_CHANGES_COMMENT,58990,
-HID_SC_DPDATEGROUP,59012,
-HID_SC_DPDATEGROUP_LB,59013,
-HID_SC_DPNUMGROUP,59011,
 HID_SC_DPSHOWDETAIL,59014,
 HID_SC_DRAW_RENAME,59007,
 HID_SC_DROPMODE_COPY,58924,
@@ -5748,16 +5745,11 @@ 
sc_CheckBox_TP_VALIDATION_VALUES_TSB_ALLOW_BLANKS,548275203,
 sc_ComboBox_RID_SCDLG_PIVOTFILTER_ED_VAL1,1493749792,
 sc_ComboBox_RID_SCDLG_PIVOTFILTER_ED_VAL2,1493749793,
 sc_ComboBox_RID_SCDLG_PIVOTFILTER_ED_VAL3,1493749794,
-sc_DateField_RID_SCDLG_DPDATEGROUP_ED_END,1495440898,
-sc_DateField_RID_SCDLG_DPDATEGROUP_ED_START,1495440897,
 sc_Edit_RID_SCDLG_CHANGES_ED_ASSIGN,2568898575,
 sc_Edit_RID_SCDLG_DAPISERVICE_ED_NAME,1495336973,
 sc_Edit_RID_SCDLG_DAPISERVICE_ED_PASSWD,1495336977,
 sc_Edit_RID_SCDLG_DAPISERVICE_ED_SOURCE,1495336971,
 sc_Edit_RID_SCDLG_DAPISERVICE_ED_USER,1495336975,
-sc_Edit_RID_SCDLG_DPNUMGROUP_ED_BY,1495418883,
-sc_Edit_RID_SCDLG_DPNUMGROUP_ED_END,1495418882,
-sc_Edit_RID_SCDLG_DPNUMGROUP_ED_START,1495418881,
 sc_Edit_RID_SCPAGE_CALC_ED_EPS,957253637,
 sc_Edit_TP_VALIDATION_VALUES_EDT_MAX,548276233,
 sc_Edit_TP_VALIDATION_VALUES_EDT_MIN,548276231,
@@ -5790,7 +5782,6 @@ sc_ModalDialog_RID_SCDLG_RETYPEPASS,1495662592,
 sc_MoreButton_RID_SCDLG_AUTOFORMAT_BTN_MORE,1493545576,
 sc_MoreButton_RID_SCDLG_PIVOTFILTER_BTN_MORE,1493758465,
 sc_MultiLineEdit_TP_VALIDATION_VALUES_EDT_LIST,548276765,
-sc_NumericField_RID_SCDLG_DPDATEGROUP_ED_NUMDAYS,1495439364,
 sc_NumericField_RID_SCPAGE_CALC_ED_PREC,957257735,
 sc_NumericField_RID_SCPAGE_CALC_ED_STEPS,957257732,
 sc_PushButton_RID_SCDLG_AUTOFORMAT_BTN_ADD,1493537385,
@@ -5804,16 +5795,6 @@ 
sc_PushButton_RID_SCDLG_RETYPEPASS_BTN_RETYPE_SHEET1,1495667315,
 sc_PushButton_RID_SCDLG_RETYPEPASS_BTN_RETYPE_SHEET2,1495667318,
 sc_PushButton_RID_SCDLG_RETYPEPASS_BTN_RETYPE_SHEET3,1495667321,
 sc_PushButton_RID_SCDLG_RETYPEPASS_BTN_RETYPE_SHEET4,1495667324,
-sc_RadioButton_RID_SCDLG_DPDATEGROUP_RB_AUTOEND,1495433731,
-sc_RadioButton_RID_SCDLG_DPDATEGROUP_RB_AUTOSTART,1495433729,
-sc_RadioButton_RID_SCDLG_DPDATEGROUP_RB_MANEND,1495433732,
-sc_RadioButton_RID_SCDLG_DPDATEGROUP_RB_MANSTART,1495433730,
-sc_RadioButton_RID_SCDLG_DPDATEGROUP_RB_NUMDAYS,1495433733,
-sc_RadioButton_RID_SCDLG_DPDATEGROUP_RB_UNITS,1495433734,
-sc_RadioButton_RID_SCDLG_DPNUMGROUP_RB_AUTOEND,1495417347,
-sc_RadioButton_RID_SCDLG_DPNUMGROUP_RB_AUTOSTART,1495417345,
-sc_RadioButton_RID_SCDLG_DPNUMGROUP_RB_MANEND,1495417348,
-sc_RadioButton_RID_SCDLG_DPNUMGROUP_RB_MANSTART,1495417346,
 sc_RadioButton_RID_SCPAGE_CALC_BTN_DATE1904,957252107,
 sc_RadioButton_RID_SCPAGE_CALC_BTN_DATESC10,957252106,
 sc_RadioButton_RID_SCPAGE_CALC_BTN_DATESTD,957252105,
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2

2014-03-05 Thread Caolán McNamara
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3184f539b0bb4e7df6189248fb33804916259d9d
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 14:00:39 2014 +

Updated core
Project: help  89290aeb021a3ab91a0a091537eaa7c8194c8449

diff --git a/helpcontent2 b/helpcontent2
index b7b2120..89290ae 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit b7b2120b6b279ed678c9fc8dbd5ee02e184064bc
+Subproject commit 89290aeb021a3ab91a0a091537eaa7c8194c8449
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - 2 commits - stlport/systemstl sw/source

2014-03-05 Thread Andre Fischer
 stlport/systemstl/list |   17 +
 sw/source/core/crsr/swcrsr.cxx |   40 ++--
 2 files changed, 35 insertions(+), 22 deletions(-)

New commits:
commit c739861cc38b09a1f99c3d91f879bfd8ee1ea43a
Author: Andre Fischer a...@apache.org
Date:   Wed Mar 5 13:52:22 2014 +

124361: Avoid MSVC warning 4555 while including list.

diff --git a/stlport/systemstl/list b/stlport/systemstl/list
index 283880b..1fa1dc5 100644
--- a/stlport/systemstl/list
+++ b/stlport/systemstl/list
@@ -23,16 +23,17 @@
 #define SYSTEM_STL_LIST
 
 #ifdef HAVE_STL_INCLUDE_PATH
-   // TODO: use computed include file name
-   #include_next list
+// TODO: use computed include file name
+#include_next list
 #elif defined(_MSC_VER)
-   #include ../../VC/include/list
-   // MSVC's list would cause a lot of expression-result-unused warnings
-   // unless it is compiled in iterator-debugging mode. Silence this noise
-   #pragma warning(disable:4555)
+// MSVC's list would cause a lot of expression-result-unused warnings
+// unless it is compiled in iterator-debugging mode. Silence this noise 
temporarily.
+#pragma warning(push)
+#pragma warning(disable:4555)
+#include ../../VC/include/list
+#pragma warning(pop)
 #else // fall back to boost/tr1
-   #include boost/tr1/tr1/list
+#include boost/tr1/tr1/list
 #endif
 
 #endif
-
commit 83510855eff12832682adfb0c1093ccb5cfc7b13
Author: Oliver-Rainer Wittmann o...@apache.org
Date:   Wed Mar 5 13:24:23 2014 +

123979: method SwCursor::IsSelOvr(..) - treat application of new position 
due to content frame without height to next/previous content frame as restore 
to saved position, if new position equals the saved one.

This avoid cursor traveling loops due to hidden content at the 
beginning/end of the text document.

diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index 6922b16..b81ea04 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -343,7 +343,8 @@ sal_Bool SwCursor::IsSelOvr( int eFlags )
 if( pNd-IsCntntNode()  !dynamic_castSwUnoCrsr*(this) )
 {
 const SwCntntFrm* pFrm = ((SwCntntNode*)pNd)-getLayoutFrm( 
pDoc-GetCurrentLayout() );
-if( pFrm  pFrm-IsValid()
+if( pFrm != NULL
+ pFrm-IsValid()
  0 == pFrm-Frm().Height()
  0 != ( nsSwCursorSelOverFlags::SELOVER_CHANGEPOS  eFlags ) )
 {
@@ -356,40 +357,51 @@ sal_Bool SwCursor::IsSelOvr( int eFlags )
 
 // -- LIJIAN/FME 2007-11-27 #i72394# skip to prev /next valid 
paragraph
 // with a layout in case the first search did not succeed:
-if( !pFrm )
+if ( pFrm == NULL )
 {
 bGoNxt = !bGoNxt;
 pFrm = ((SwCntntNode*)pNd)-getLayoutFrm( 
pDoc-GetCurrentLayout() );
-while ( pFrm  0 == pFrm-Frm().Height() )
+while ( pFrm != NULL
+ 0 == pFrm-Frm().Height() )
 {
-pFrm = bGoNxt ? pFrm-GetNextCntntFrm()
-:   pFrm-GetPrevCntntFrm();
+pFrm = bGoNxt ? pFrm-GetNextCntntFrm() : 
pFrm-GetPrevCntntFrm();
 }
 }
 // --
 
-SwCntntNode* pCNd;
-if( pFrm  0 != (pCNd = (SwCntntNode*)pFrm-GetNode()) )
+SwCntntNode* pCNd = (pFrm != NULL) ? (SwCntntNode*)pFrm-GetNode() 
: NULL;
+if ( pCNd != NULL )
 {
 // set this cntntNode as new position
 rPtIdx = *pCNd;
 pNd = pCNd;
 
-// ContentIndex noch anmelden:
-xub_StrLen nTmpPos = bGoNxt ? 0 : pCNd-Len();
+// assign corresponding ContentIndex
+const xub_StrLen nTmpPos = bGoNxt ? 0 : pCNd-Len();
 GetPoint()-nContent.Assign( pCNd, nTmpPos );
 
-// sollten wir in einer Tabelle gelandet sein?
-if( IsInProtectTable( sal_True ) )
-pFrm = 0;
+if ( rPtIdx.GetIndex() == pSavePos-nNode
+  nTmpPos == pSavePos-nCntnt )
+{
+// new position equals saved one
+// -- trigger restore of saved pos by setting pFrm to 
NULL - see below
+pFrm = NULL;
+}
+
+if ( IsInProtectTable( sal_True ) )
+{
+// new position in protected table
+// -- trigger restore of saved pos by setting pFrm to 
NULL - see below
+pFrm = NULL;
+}
 }
 }
 
-if( !pFrm )
+if( pFrm == NULL )
 {
 DeleteMark();
 RestoreSavePos();
-return sal_True;// ohne Frames geht gar nichts!
+return sal_True;

[Libreoffice-commits] core.git: 2 commits - ios/experimental sal/osl

2014-03-05 Thread Tor Lillqvist
 ios/experimental/TiledLibreOffice/TiledLibreOffice.xcodeproj/project.pbxproj | 
  70 ++
 sal/osl/unx/osxlocale.cxx| 
   4 
 2 files changed, 72 insertions(+), 2 deletions(-)

New commits:
commit 0b5558a68de6b9d887fd76a5ad8463116e7be4bd
Author: Tor Lillqvist t...@collabora.com
Date:   Wed Mar 5 16:05:27 2014 +0200

Add sal source files

Change-Id: Id44a5bb0dca7bc6b8d97a6d5ae26ea642043e374

diff --git 
a/ios/experimental/TiledLibreOffice/TiledLibreOffice.xcodeproj/project.pbxproj 
b/ios/experimental/TiledLibreOffice/TiledLibreOffice.xcodeproj/project.pbxproj
index 4ec246a..bf29e9a 100644
--- 
a/ios/experimental/TiledLibreOffice/TiledLibreOffice.xcodeproj/project.pbxproj
+++ 
b/ios/experimental/TiledLibreOffice/TiledLibreOffice.xcodeproj/project.pbxproj
@@ -184,6 +184,37 @@
BE82BDAB182190E400A447B5 /* TiledView.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= TiledView.m; sourceTree = group; };
BE82BDAD1821A1D000A447B5 /* View.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
View.h; sourceTree = group; };
BE82BDAE1821A1D000A447B5 /* View.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= View.m; sourceTree = group; };
+   BE82C38918C752E20050EB79 /* backtrace.c */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.c; name = backtrace.c; path 
= ../../../sal/osl/unx/backtrace.c; sourceTree = group; };
+   BE82C38A18C752E20050EB79 /* conditn.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = conditn.cxx; 
path = ../../../sal/osl/unx/conditn.cxx; sourceTree = group; };
+   BE82C38B18C752E20050EB79 /* diagnose.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = diagnose.cxx; 
path = ../../../sal/osl/unx/diagnose.cxx; sourceTree = group; };
+   BE82C38C18C752E20050EB79 /* file_error_transl.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = 
file_error_transl.cxx; path = ../../../sal/osl/unx/file_error_transl.cxx; 
sourceTree = group; };
+   BE82C38D18C752E20050EB79 /* file_misc.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = file_misc.cxx; 
path = ../../../sal/osl/unx/file_misc.cxx; sourceTree = group; };
+   BE82C38E18C752E20050EB79 /* file_path_helper.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = 
file_path_helper.cxx; path = ../../../sal/osl/unx/file_path_helper.cxx; 
sourceTree = group; };
+   BE82C38F18C752E20050EB79 /* file_stat.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = file_stat.cxx; 
path = ../../../sal/osl/unx/file_stat.cxx; sourceTree = group; };
+   BE82C39018C752E20050EB79 /* file_url.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = file_url.cxx; 
path = ../../../sal/osl/unx/file_url.cxx; sourceTree = group; };
+   BE82C39118C752E20050EB79 /* file_volume.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = 
file_volume.cxx; path = ../../../sal/osl/unx/file_volume.cxx; sourceTree = 
group; };
+   BE82C39218C752E20050EB79 /* file.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = file.cxx; path 
= ../../../sal/osl/unx/file.cxx; sourceTree = group; };
+   BE82C39318C752E20050EB79 /* interlck.c */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.c; name = interlck.c; path = 
../../../sal/osl/unx/interlck.c; sourceTree = group; };
+   BE82C39418C752E20050EB79 /* memory.c */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.c; name = memory.c; path = 
../../../sal/osl/unx/memory.c; sourceTree = group; };
+   BE82C39518C752E20050EB79 /* module.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = module.cxx; 
path = ../../../sal/osl/unx/module.cxx; sourceTree = group; };
+   BE82C39618C752E20050EB79 /* mutex.c */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.c; name = mutex.c; path = 
../../../sal/osl/unx/mutex.c; sourceTree = group; };
+   BE82C39718C752E20050EB79 /* nlsupport.c */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.c; name = nlsupport.c; path 
= ../../../sal/osl/unx/nlsupport.c; sourceTree = group; };
+   BE82C39818C752E20050EB79 /* osxlocale.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = osxlocale.cxx; 
path = ../../../sal/osl/unx/osxlocale.cxx; sourceTree = group; };
+   BE82C39918C752E20050EB79 /* pipe.c */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.c.c; name = pipe.c; path = 
../../../sal/osl/unx/pipe.c; 

[Libreoffice-commits] core.git: 2 commits - android/experimental configure.ac sal/osl

2014-03-05 Thread Tor Lillqvist
 android/experimental/DocumentLoader/AndroidManifest.xml |4 ++--
 android/experimental/DocumentLoader/project.properties  |2 +-
 android/experimental/desktop/AndroidManifest.xml|4 ++--
 android/experimental/desktop/project.properties |2 +-
 configure.ac|6 +++---
 sal/osl/unx/nlsupport.c |3 ---
 6 files changed, 9 insertions(+), 12 deletions(-)

New commits:
commit ad2d1082b1e6eb446798e363ccc1e71461bf1748
Author: Tor Lillqvist t...@collabora.com
Date:   Wed Mar 5 15:04:25 2014 +0200

Bin unused global variable

Change-Id: I9bd4ea90638df91122b96f1fb86043c2d770417d

diff --git a/sal/osl/unx/nlsupport.c b/sal/osl/unx/nlsupport.c
index f504b9e..ac5ef18 100644
--- a/sal/osl/unx/nlsupport.c
+++ b/sal/osl/unx/nlsupport.c
@@ -838,9 +838,6 @@ rtl_TextEncoding osl_getTextEncodingFromLocale( rtl_Locale 
* pLocale )
 #if defined(MACOSX) || defined(IOS)
 #include system.h
 
-/* OS X locale discovery function */
-int (*pGetOSXLocale)( char *, sal_uInt32 );
-
 /*
  return the current process locale
  */
commit c2756737e0dafe9c802346a2cf4d459bf59acd9d
Author: Tor Lillqvist t...@collabora.com
Date:   Wed Mar 5 13:49:04 2014 +0200

Require Android API level 15, which is from December 2011

Note that this doesn't really mean a lot for the NDK.

Change-Id: I4061cb856055ae126aadf56afc462182a875e65f

diff --git a/android/experimental/DocumentLoader/AndroidManifest.xml 
b/android/experimental/DocumentLoader/AndroidManifest.xml
index 65f223b..9781534 100644
--- a/android/experimental/DocumentLoader/AndroidManifest.xml
+++ b/android/experimental/DocumentLoader/AndroidManifest.xml
@@ -4,8 +4,8 @@
   android:installLocation=preferExternal
   android:versionCode=1
   android:versionName=1.0
-  uses-sdk android:minSdkVersion=9
-android:targetSdkVersion=14/
+  uses-sdk android:minSdkVersion=15
+android:targetSdkVersion=15/
 application android:label=LO Experimental DocumentLoader
  android:debuggable=true
  android:largeHeap=true
diff --git a/android/experimental/DocumentLoader/project.properties 
b/android/experimental/DocumentLoader/project.properties
index 06b2d88..772d3c5 100644
--- a/android/experimental/DocumentLoader/project.properties
+++ b/android/experimental/DocumentLoader/project.properties
@@ -8,7 +8,7 @@
 # project structure.
 
 # Project target.
-target=android-14
+target=android-15
 
 # Use the Bootstrap class
 android.library.reference.1=../../Bootstrap
diff --git a/android/experimental/desktop/AndroidManifest.xml 
b/android/experimental/desktop/AndroidManifest.xml
index 9e3b4ac..d685e17 100644
--- a/android/experimental/desktop/AndroidManifest.xml
+++ b/android/experimental/desktop/AndroidManifest.xml
@@ -3,8 +3,8 @@
   package=org.libreoffice.experimental.desktop
   android:versionCode=1
   android:versionName=1.0
-uses-sdk android:minSdkVersion=9
-  android:targetSdkVersion=14/
+uses-sdk android:minSdkVersion=15
+  android:targetSdkVersion=15/
 application android:label=LibreOffice Desktop
  android:debuggable=true
  android:largeHeap=true
diff --git a/android/experimental/desktop/project.properties 
b/android/experimental/desktop/project.properties
index cffbf1f..56b38d2 100644
--- a/android/experimental/desktop/project.properties
+++ b/android/experimental/desktop/project.properties
@@ -8,6 +8,6 @@
 # project structure.
 
 # Project target.
-target=android-14
+target=android-15
 
 android.library.reference.1=../../Bootstrap
diff --git a/configure.ac b/configure.ac
index 3676db5..6742046 100644
--- a/configure.ac
+++ b/configure.ac
@@ -328,7 +328,7 @@ if test -n $with_android_ndk; then
 android_gnu_prefix=i686-linux-android
 fi
 
-test -z $SYSBASE  export 
SYSBASE=$ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu
+test -z $SYSBASE  export 
SYSBASE=$ANDROID_NDK_HOME/platforms/android-15/arch-$android_cpu
 test -z $AR  AR=$ANDROID_BINUTILS_BIN/$android_gnu_prefix-ar
 test -z $NM  NM=$ANDROID_BINUTILS_BIN/$android_gnu_prefix-nm
 test -z $OBJDUMP  
OBJDUMP=$ANDROID_BINUTILS_BIN/$android_gnu_prefix-objdump
@@ -355,7 +355,7 @@ if test -n $with_android_ndk; then
 fi
 ANDROIDCFLAGS=$ANDROIDCFLAGS -ffunction-sections -fdata-sections
 ANDROIDCFLAGS=$ANDROIDCFLAGS 
-L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/$ANDROID_APP_ABI
-ANDROIDCFLAGS=$ANDROIDCFLAGS --sysroot 
$ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu
+ANDROIDCFLAGS=$ANDROIDCFLAGS --sysroot 
$ANDROID_NDK_HOME/platforms/android-15/arch-$android_cpu
 ANDROIDCFLAGS=$ANDROIDCFLAGS 

[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - c7/39861cc38b09a1f99c3d91f879bfd8ee1ea43a

2014-03-05 Thread Caolán McNamara
 c7/39861cc38b09a1f99c3d91f879bfd8ee1ea43a |1 +
 1 file changed, 1 insertion(+)

New commits:
commit ccdd8c6f520d65a73f289c806ca18f1c41c9a178
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 14:19:07 2014 +

Notes added by 'git notes add'

diff --git a/c7/39861cc38b09a1f99c3d91f879bfd8ee1ea43a 
b/c7/39861cc38b09a1f99c3d91f879bfd8ee1ea43a
new file mode 100644
index 000..8ebbe55
--- /dev/null
+++ b/c7/39861cc38b09a1f99c3d91f879bfd8ee1ea43a
@@ -0,0 +1 @@
+ignore: obsolete
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Alexander Wilms
 winaccessibility/inc/AccResource.hxx|4 -
 winaccessibility/source/UAccCOM/AccActionBase.cxx   |8 +-
 winaccessibility/source/UAccCOM/AccActionBase.h |4 -
 winaccessibility/source/UAccCOM/AccComponentBase.cxx|4 -
 winaccessibility/source/UAccCOM/AccComponentBase.h  |4 -
 winaccessibility/source/UAccCOM/AccEditableText.cxx |4 -
 winaccessibility/source/UAccCOM/AccHypertext.cxx|4 -
 winaccessibility/source/UAccCOM/AccTextBase.cxx |   32 
+-
 winaccessibility/source/UAccCOM/AccTextBase.h   |4 -
 winaccessibility/source/UAccCOM/EnumVariant.cxx |2 
 winaccessibility/source/UAccCOM/EnumVariant.h   |   14 ++--
 winaccessibility/source/UAccCOM/Resource.h  |4 -
 winaccessibility/source/UAccCOM/UAccCOM.cxx |6 -
 winaccessibility/source/UAccCOM/UAccCOM.rc  |   32 
+-
 winaccessibility/source/UAccCOM/UNOXWrapper.cxx |2 
 winaccessibility/source/UAccCOMIDL/AccessibleKeyBinding.idl |   28 
+++-
 winaccessibility/source/service/AccObjectContainerEventListener.cxx |4 -
 winaccessibility/source/service/AccResource.cxx |6 -
 18 files changed, 80 insertions(+), 86 deletions(-)

New commits:
commit b25c29389e81c52395521ce8efdf99699abc500a
Author: Alexander Wilms f.alexander.wi...@gmail.com
Date:   Tue Feb 25 22:57:15 2014 +0100

Remove visual noise from winaccessibility

Change-Id: If8ac2543e3dca393e14380a85547cafbb68ab8c6
Reviewed-on: https://gerrit.libreoffice.org/8340
Tested-by: LibreOffice gerrit bot ger...@libreoffice.org
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/winaccessibility/inc/AccResource.hxx 
b/winaccessibility/inc/AccResource.hxx
index 793ab86..87b429b 100644
--- a/winaccessibility/inc/AccResource.hxx
+++ b/winaccessibility/inc/AccResource.hxx
@@ -26,10 +26,10 @@ class SimpleResMgr;
 
 #define ACC_RES_STRING(id) ResourceManager::loadString(id)
 
-//==
+
 //= ResourceManager
 //= handling ressources within the FormLayer library
-//==
+
 class ResourceManager
 {
 static SimpleResMgr*m_pImpl;
diff --git a/winaccessibility/source/UAccCOM/AccActionBase.cxx 
b/winaccessibility/source/UAccCOM/AccActionBase.cxx
index c965225..a12d8a9 100644
--- a/winaccessibility/source/UAccCOM/AccActionBase.cxx
+++ b/winaccessibility/source/UAccCOM/AccActionBase.cxx
@@ -17,9 +17,9 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-//
+
 // AccActionBase.cpp: implementation of the CAccActionBase class.
-//
+
 #include stdafx.h
 
 #include AccActionBase.h
@@ -41,9 +41,9 @@ using namespace com::sun::star::accessibility;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::awt;
 
-//
+
 // Construction/Destruction
-//
+
 
 CAccActionBase::CAccActionBase()
 {}
diff --git a/winaccessibility/source/UAccCOM/AccActionBase.h 
b/winaccessibility/source/UAccCOM/AccActionBase.h
index 0ed9914..876 100644
--- a/winaccessibility/source/UAccCOM/AccActionBase.h
+++ b/winaccessibility/source/UAccCOM/AccActionBase.h
@@ -17,9 +17,9 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-//
+
 // AccActionBase.h: interface for the CAccActionBase class.
-//
+
 
 #if 
!defined(AFX_ACCACTIONBASE_H__F87FAD24_D66E_4D22_9B24_3304A303DC84__INCLUDED_)
 #define AFX_ACCACTIONBASE_H__F87FAD24_D66E_4D22_9B24_3304A303DC84__INCLUDED_
diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.cxx 
b/winaccessibility/source/UAccCOM/AccComponentBase.cxx
index cc6cf46..670783c 100644
--- a/winaccessibility/source/UAccCOM/AccComponentBase.cxx
+++ b/winaccessibility/source/UAccCOM/AccComponentBase.cxx
@@ -27,9 +27,9 @@
 using namespace com::sun::star::accessibility;
 using namespace com::sun::star::uno;
 
-//
+
 // Construction/Destruction
-//
+
 
 CAccComponentBase::CAccComponentBase()
 {}
diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.h 
b/winaccessibility/source/UAccCOM/AccComponentBase.h
index 9081157..6d72b39e 100644
--- 

[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - vcl/unx

2014-03-05 Thread Jan-Marek Glogowski
 vcl/unx/kde4/KDE4FilePicker.cxx |9 +++--
 vcl/unx/kde4/KDE4FilePicker.hxx |5 -
 vcl/unx/kde4/KDEXLib.cxx|   17 +++--
 vcl/unx/kde4/KDEXLib.hxx|2 ++
 4 files changed, 28 insertions(+), 5 deletions(-)

New commits:
commit e95d5d52c84c073e1878c290031cdde6061fcc7d
Author: Jan-Marek Glogowski glo...@fbihome.de
Date:   Wed Feb 26 18:19:11 2014 +

fdo#74416: sleep in yield for native file picker

As it seems to be the only way to poll the clipboard, reintroduce

 m_pApplication-clipboard()-setProperty(
useEventLoopWhenWaiting, true );

To prevent crashes, disable event processing in the Qt thread while
the dialog is open.

Instead this applies the same workaround as the Windows backend to
sleep a ms, which keeps the FP dialogs more usable, but feels like
a horrible workaround.

This is still slower then running processEvent in Yield but still
much better then the current situation.

(cherry picked from commit 380f3b4b6cbbe8e82b58ddf55e95c5005307b51f)

Change-Id: I10c422f1c0d7448d4a7ad28e57a32ed2cb42f48f
Reviewed-on: https://gerrit.libreoffice.org/8435
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/vcl/unx/kde4/KDE4FilePicker.cxx b/vcl/unx/kde4/KDE4FilePicker.cxx
index b3fde26..405eafe 100644
--- a/vcl/unx/kde4/KDE4FilePicker.cxx
+++ b/vcl/unx/kde4/KDE4FilePicker.cxx
@@ -38,6 +38,7 @@
 
 #include KDE4FilePicker.hxx
 #include FPServiceInfo.hxx
+#include KDEXLib.hxx
 
 /* * Hack, but needed because of conflicting types... */
 #define Region QtXRegion
@@ -113,10 +114,11 @@ QString toQString(const OUString s)
 // KDE4FilePicker
 //
 
-KDE4FilePicker::KDE4FilePicker( const uno::Referenceuno::XComponentContext )
+KDE4FilePicker::KDE4FilePicker( const uno::Referenceuno::XComponentContext, 
KDEXLib *xlib )
 : KDE4FilePicker_Base(_helperMutex)
 , _resMgr( ResMgr::CreateResMgr(fps_office) )
 , allowRemoteUrls( false )
+, _mXLib( xlib )
 {
 _extraControls = new QWidget();
 _layout = new QGridLayout(_extraControls);
@@ -261,8 +263,11 @@ sal_Int16 SAL_CALL KDE4FilePicker::execute()
 _dialog-filterWidget()-setEditable(false);
 
 // We're entering a nested loop.
-// Release the yield mutex to prevent deadlocks.
+// Prevent yield calls, which would crash LO.
+
+_mXLib-freezeYield( true );
 int result = _dialog-exec();
+_mXLib-freezeYield( false );
 
 // HACK: KFileDialog uses KConfig(kdeglobals) for saving some settings
 // (such as the auto-extension flag), but that doesn't update 
KGlobal::config()
diff --git a/vcl/unx/kde4/KDE4FilePicker.hxx b/vcl/unx/kde4/KDE4FilePicker.hxx
index 6dc97df..81acf0c 100644
--- a/vcl/unx/kde4/KDE4FilePicker.hxx
+++ b/vcl/unx/kde4/KDE4FilePicker.hxx
@@ -40,6 +40,7 @@
 class KFileDialog;
 class QWidget;
 class QLayout;
+class KDEXLib;
 
 class ResMgr;
 
@@ -82,8 +83,10 @@ protected:
 
 bool allowRemoteUrls;
 
+KDEXLib* _mXLib;
+
 public:
-KDE4FilePicker( const ::com::sun::star::uno::Reference 
::com::sun::star::uno::XComponentContext  );
+KDE4FilePicker( const ::com::sun::star::uno::Reference 
::com::sun::star::uno::XComponentContext , KDEXLib* );
 virtual ~KDE4FilePicker();
 
 // XFilePickerNotifier
diff --git a/vcl/unx/kde4/KDEXLib.cxx b/vcl/unx/kde4/KDEXLib.cxx
index 7c67e35..b4be6d6 100644
--- a/vcl/unx/kde4/KDEXLib.cxx
+++ b/vcl/unx/kde4/KDEXLib.cxx
@@ -64,7 +64,8 @@
 KDEXLib::KDEXLib() :
 SalXLib(),  m_bStartupDone(false), m_pApplication(0),
 m_pFreeCmdLineArgs(0), m_pAppCmdLineArgs(0), m_nFakeCmdLineArgs( 0 ),
-eventLoopType( LibreOfficeEventLoop )
+eventLoopType( LibreOfficeEventLoop ),
+m_bYieldFrozen( false )
 {
 // the timers created here means they belong to the main thread
 connect( timeoutTimer, SIGNAL( timeout()), this, SLOT( 
timeoutActivated()));
@@ -225,6 +226,7 @@ void KDEXLib::setupEventLoop()
 eventLoopType = GlibEventLoop;
 old_gpoll = g_main_context_get_poll_func( NULL );
 g_main_context_set_poll_func( NULL, gpoll_wrapper );
+m_pApplication-clipboard()-setProperty( useEventLoopWhenWaiting, 
true );
 return;
 }
 #endif
@@ -308,6 +310,17 @@ void KDEXLib::Yield( bool bWait, bool 
bHandleAllCurrentEvents )
 return SalXLib::Yield( bWait, bHandleAllCurrentEvents );
 }
 
+if( m_bYieldFrozen ) {
+if( qApp-thread() != QThread::currentThread() ) {
+QAbstractEventDispatcher* dispatcher = 
QAbstractEventDispatcher::instance( qApp-thread() );
+if( dispatcher-hasPendingEvents() ) {
+struct timespec delay = {0, ( 100 )};
+nanosleep(delay, NULL);
+}
+}
+return;
+}
+
 // if we are the main thread (which is where the event processing 

[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - vcl/unx

2014-03-05 Thread Jan-Marek Glogowski
 vcl/unx/kde4/KDEData.cxx|   17 +
 vcl/unx/kde4/KDESalGraphics.cxx |   12 
 2 files changed, 21 insertions(+), 8 deletions(-)

New commits:
commit 6b6398b72401b35dc0d01de70ee2124a0a4072a8
Author: Jan-Marek Glogowski glo...@fbihome.de
Date:   Thu Feb 27 08:54:57 2014 +

fdo#45935: try hard to paint a frame for menus

Current Oxygen theme doesn't draw frames for menus, but uses shaped
and colored background images. This workaround paints the window
and menu frame for menus. Any frame seems to be better then no frame
at all.

Change-Id: I4d553ea58cac2729826f8395cb2597fa200187b6
(cherry picked from commit e72849cd435cc50a744dcbcfb422f5600dd0cce9)
Reviewed-on: https://gerrit.libreoffice.org/8436
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/vcl/unx/kde4/KDEData.cxx b/vcl/unx/kde4/KDEData.cxx
index 196f186..ccbbd99 100644
--- a/vcl/unx/kde4/KDEData.cxx
+++ b/vcl/unx/kde4/KDEData.cxx
@@ -17,10 +17,18 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#define Region QtXRegion
+
+#include QStyle
+#include kapplication.h
+
+#undef Region
+
 #include KDEData.hxx
 
 #include KDEXLib.hxx
 
+
 KDEData::~KDEData()
 {
 }
@@ -39,6 +47,15 @@ void KDEData::initNWF()
 pSVData-maNWFData.mbDockingAreaSeparateTB = true;
 // no borders for menu, theming does that
 pSVData-maNWFData.mbFlatMenu = true;
+
+// Styled menus need additional space
+QStyle *style = kapp-style();
+pSVData-maNWFData.mnMenuFormatBorderX =
+   style-pixelMetric( QStyle::PM_MenuPanelWidth ) +
+   style-pixelMetric( QStyle::PM_MenuHMargin );
+pSVData-maNWFData.mnMenuFormatBorderY =
+   style-pixelMetric( QStyle::PM_MenuPanelWidth ) +
+   style-pixelMetric( QStyle::PM_MenuVMargin );
 }
 
 void KDEData::deInitNWF()
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index cf72dcd..967864f 100644
--- a/vcl/unx/kde4/KDESalGraphics.cxx
+++ b/vcl/unx/kde4/KDESalGraphics.cxx
@@ -78,7 +78,7 @@ QRect region2QRect( const Rectangle rControlRegion )
 }
 
 KDESalGraphics::KDESalGraphics() :
-m_image(0)
+m_image(NULL)
 {
 }
 
@@ -130,13 +130,7 @@ sal_Bool KDESalGraphics::IsNativeControlSupported( 
ControlType type, ControlPart
 if (type == CTRL_SLIDER  (part == PART_TRACK_HORZ_AREA || part == 
PART_TRACK_VERT_AREA) )
 return true;
 
-if ( (type == CTRL_PROGRESS) (part == PART_ENTIRE_CONTROL) ) return 
true;
-
-return false;
-
-if ( (type == CTRL_TAB_ITEM)  (part == PART_ENTIRE_CONTROL) ) return 
true;
-if ( (type == CTRL_TAB_PANE)  (part == PART_ENTIRE_CONTROL) ) return 
true;
-// no CTRL_TAB_BODY for KDE
+if ( (type == CTRL_PROGRESS)  (part == PART_ENTIRE_CONTROL) ) return 
true;
 
 return false;
 }
@@ -378,8 +372,10 @@ sal_Bool KDESalGraphics::drawNativeControl( ControlType 
type, ControlPart part,
 {
 QStyleOptionMenuItem option;
 draw( QStyle::PE_PanelMenu, option, m_image, 
vclStateValue2StateFlag( nControlState, value ));
+// Try hard to get any frame!
 QStyleOptionFrame frame;
 draw( QStyle::PE_FrameMenu, frame, m_image, 
vclStateValue2StateFlag( nControlState, value ));
+draw( QStyle::PE_FrameWindow, frame, m_image, 
vclStateValue2StateFlag( nControlState, value ));
 lastPopupRect = widgetRect;
 }
 else
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Tor Lillqvist
 svtools/source/control/ctrlbox.cxx |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 9d4c3a2a217e02444601bea9e0eae7ae342fe0e8
Author: Tor Lillqvist t...@collabora.com
Date:   Wed Mar 5 16:19:31 2014 +0200

WaE: comparison of integers of different signs

Change-Id: I936e7bdaf3a4236775add4982005b465f229eb78

diff --git a/svtools/source/control/ctrlbox.cxx 
b/svtools/source/control/ctrlbox.cxx
index 7508659..5461863 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -827,7 +827,7 @@ sal_Int32 LineListBox::InsertEntry( const OUString rStr, 
sal_Int32 nPos )
 {
 nPos = ListBox::InsertEntry( rStr, nPos );
 if ( nPos != LISTBOX_ERROR ) {
-if ( nPos  pLineList-size() ) {
+if ( nPos  static_castsal_Int32(pLineList-size()) ) {
 ImpLineList::iterator it = pLineList-begin();
 ::std::advance( it, nPos );
 pLineList-insert( it, reinterpret_castImpLineListData *(NULL) );
@@ -855,7 +855,7 @@ void LineListBox::RemoveEntry( sal_Int32 nPos )
 {
 ListBox::RemoveEntry( nPos );
 
-if ( 0 = nPos  nPos  pLineList-size() ) {
+if ( 0 = nPos  nPos  static_castsal_Int32(pLineList-size()) ) {
 ImpLineList::iterator it = pLineList-begin();
 ::std::advance( it, nPos );
 if ( *it ) delete *it;
@@ -901,7 +901,7 @@ sal_Int32 LineListBox::GetEntryPos( sal_uInt16 nStyle ) 
const
 
 sal_uInt16 LineListBox::GetEntryStyle( sal_Int32 nPos ) const
 {
-ImpLineListData* pData = (0 = nPos  nPos  pLineList-size()) ? 
(*pLineList)[ nPos ] : NULL;
+ImpLineListData* pData = (0 = nPos  nPos  
static_castsal_Int32(pLineList-size())) ? (*pLineList)[ nPos ] : NULL;
 return ( pData ) ? pData-GetStyle() : table::BorderLineStyle::NONE;
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Current Build from Git: Writer-Wizards don't run

2014-03-05 Thread Stephan Bergmann

On 03/05/2014 02:43 PM, Caolán McNamara wrote:

On Tue, 2014-03-04 at 15:59 +0100, Stephan Bergmann wrote:

Right, /org.openoffice.Office.Paths/Template/InternalPaths is a set, and
the order in which its elements are reported by configmgr is
unspecified.  Still, at least the two elements given in
officecfg/registry/data/org/openoffice/Office/Paths.xcu,


node oor:name=$(insturl)/@LIBO_SHARE_FOLDER@/template/common oor:op=fuse/
node oor:name=$(insturl)/@LIBO_SHARE_FOLDER@/template/$(vlang) 
oor:op=fuse/


would both result in the same effective path generated via


sLetterPath = self.sTemplatePath + /../common/wizard/letter


Not if the expanded vlang path doesn't exist, then relative path of
foo/template/NOTTHERE/../common/wizard/letter
won't work either.


Ah, right (and that's what made it behave differently for different people).

Stephan

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


[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - vcl/source

2014-03-05 Thread Ahmad H . Al Harthi
 vcl/source/window/splitwin.cxx |   49 ++---
 1 file changed, 12 insertions(+), 37 deletions(-)

New commits:
commit af172141738bf50c7edbc502acf8286191adae95
Author: Ahmad H. Al Harthi aalhar...@kacst.edu.sa
Date:   Tue Feb 11 11:19:16 2014 +0300

fdo#59329 fix docked panels borders

Change-Id: Ia918d644fb57d6fbaeef90c8c1a6806a8d7e589c
Reviewed-on: https://gerrit.libreoffice.org/8410
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 8937527..b23a65d 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -137,9 +137,9 @@ static void ImplCalcBorder( WindowAlign eAlign, sal_Bool 
bNoAlign,
 rBottom = 0;
 break;
 case WINDOWALIGN_LEFT:
-rLeft   = 2;
+rLeft   = 0;
 rTop= 2;
-rRight  = 0;
+rRight  = 2;
 rBottom = 2;
 break;
 case WINDOWALIGN_BOTTOM:
@@ -179,48 +179,23 @@ void SplitWindow::ImplDrawBorder( SplitWindow* pWin )
 {
 case WINDOWALIGN_BOTTOM:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
-pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
-pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-3 ) );
-
-pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
-pWin-DrawLine( Point( 1, 1 ), Point( 1, nDY-3 ) );
-pWin-DrawLine( Point( nDX-1, 0 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( 0, 6 ), Point( nDX-1, 6 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
 break;
 case WINDOWALIGN_TOP:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
-pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
-pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-1 ) );
-
-pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( 1, 1 ), Point( nDX-3, 1 ) );
-pWin-DrawLine( Point( 1, 1 ), Point( 1, nDY-1 ) );
-pWin-DrawLine( Point( nDX-1, 1 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( 0, nDY-7 ), Point( nDX-1, nDY-7 ) );
 break;
 case WINDOWALIGN_LEFT:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
-pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
-pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
-
-pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( 1, 1 ), Point( nDX-1, 1 ) );
-pWin-DrawLine( Point( 1, 1 ), Point( 1, nDY-3 ) );
-pWin-DrawLine( Point( 1, nDY-1 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-1 ) );
+pWin-DrawLine( Point( nDX-8, 0 ), Point( nDX-8, nDY-1 ) );
 break;
 default:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 0 ), Point( nDX-2, 0 ) );
-pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-3 ) );
-pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-2, nDY-2 ) );
-
-pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( 0, 1 ), Point( nDX-3, 1 ) );
-pWin-DrawLine( Point( nDX-1, 0 ), Point( nDX-1, nDY-1 ) );
-pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
-break;
+pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
+pWin-DrawLine( Point( 6, 0 ), Point( 6, nDY-1 ) );
 }
 }
 }
@@ -1648,7 +1623,7 @@ void SplitWindow::ImplSplitMousePos( Point rMousePos )
 
 void SplitWindow::ImplGetButtonRect( Rectangle rRect, long nEx, sal_Bool 
bTest ) const
 {
-long nSplitSize = mpMainSet-mnSplitSize-2;
+long nSplitSize = mpMainSet-mnSplitSize-1;
 if ( mbAutoHide || mbFadeOut || mbFadeIn )
 nSplitSize += SPLITWIN_SPLITSIZEEX;
 
@@ -1998,7 +1973,7 @@ void SplitWindow::ImplDrawGrip( const Rectangle rRect, 
sal_Bool bHorz, sal_Bool
 int height = (int) (0.5 * rRect.getHeight() + 0.5);
 int i = rRect.Top() + (rRect.getHeight() - height) / 2;
 height += i;
-const int x = rRect.Left() + 1;
+const int x = rRect.Left() + 2;
 ImplDrawFadeArrow( Point( x, i-8), bHorz, bLeft );
 while( i = height )
 {
___
Libreoffice-commits mailing list

[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - vcl/source

2014-03-05 Thread Ahmad H . Al Harthi
 vcl/source/window/splitwin.cxx |   52 +
 1 file changed, 38 insertions(+), 14 deletions(-)

New commits:
commit 682f723d31e6c4a59254a08f5ec62abc700f3fd6
Author: Ahmad H. Al Harthi aalhar...@kacst.edu.sa
Date:   Sun Mar 2 12:53:14 2014 +0300

fdo#59329 Fix docked window border lines

This patch completes the missing border lines. This is intended
for versions 4.1 and 4.2 only.

Change-Id: Ib15cb3b01dca4631f643a0036475cf684793d256
Reviewed-on: https://gerrit.libreoffice.org/8411
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index b23a65d..fdadc8e 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -179,23 +179,43 @@ void SplitWindow::ImplDrawBorder( SplitWindow* pWin )
 {
 case WINDOWALIGN_BOTTOM:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 6 ), Point( nDX-1, 6 ) );
 pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
+pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
+
+pWin-SetLineColor( rStyleSettings.GetLightColor() );
+pWin-DrawLine( Point( 0, 1 ), Point( nDX-1, 1 ) );
+pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
 break;
 case WINDOWALIGN_TOP:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
+pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
+
+pWin-SetLineColor( rStyleSettings.GetLightColor() );
 pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
-pWin-DrawLine( Point( 0, nDY-7 ), Point( nDX-1, nDY-7 ) );
+pWin-DrawLine( Point( 0, 1 ), Point( nDX-1, 1 ) );
 break;
 case WINDOWALIGN_LEFT:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-1 ) );
-pWin-DrawLine( Point( nDX-8, 0 ), Point( nDX-8, nDY-1 ) );
+pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-2 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
+pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-2, nDY-2 ) );
+
+pWin-SetLineColor( rStyleSettings.GetLightColor() );
+pWin-DrawLine( Point( nDX-1, 0 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( 0, 1 ), Point( nDX-3, 1 ) );
+pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-2, nDY-1 ) );
 break;
 default:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
-pWin-DrawLine( Point( 6, 0 ), Point( 6, nDY-1 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-2 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
+pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
+
+pWin-SetLineColor( rStyleSettings.GetLightColor() );
+pWin-DrawLine( Point( 1, 1 ), Point( 1, nDY-3 ) );
+pWin-DrawLine( Point( 1, 1 ), Point( nDX-1, 1 ) );
+pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
 }
 }
 }
@@ -214,27 +234,31 @@ void SplitWindow::ImplDrawBorderLine( SplitWindow* pWin )
 {
 case WINDOWALIGN_LEFT:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN-1, 0 ), Point( 
nDX-SPLITWIN_SPLITSIZEEXLN-1, nDY-3 ) );
+pWin-DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN-1, 1 ), Point( 
nDX-SPLITWIN_SPLITSIZEEXLN-1, nDY-2 ) );
+
 pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN, 1 ), Point( 
nDX-SPLITWIN_SPLITSIZEEXLN, nDY-4 ) );
+pWin-DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN, 1 ), Point( 
nDX-SPLITWIN_SPLITSIZEEXLN, nDY-3 ) );
 break;
 case WINDOWALIGN_RIGHT:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( SPLITWIN_SPLITSIZEEXLN-1, 0 ), Point( 
SPLITWIN_SPLITSIZEEXLN-1, nDY-3 ) );
+pWin-DrawLine( Point( SPLITWIN_SPLITSIZEEXLN-1, 0 ), Point( 
SPLITWIN_SPLITSIZEEXLN-1, nDY-2 ) );
+
 pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( SPLITWIN_SPLITSIZEEXLN, 1 ), Point( 
SPLITWIN_SPLITSIZEEXLN, nDY-4 ) );
+pWin-DrawLine( Point( SPLITWIN_SPLITSIZEEXLN, 1 ), Point( 
SPLITWIN_SPLITSIZEEXLN, nDY-3 ) );
 break;
 case WINDOWALIGN_TOP:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, nDY-SPLITWIN_SPLITSIZEEXLN-1 ), Point( 
nDX-3, 

Re: How to install Libreoffice SDK in Ubuntu

2014-03-05 Thread Bjoern Michaelsen
Hi,

On Wed, Mar 05, 2014 at 06:38:14PM +0530, Prabhat Kumar wrote:
 I have run this script /usr/lib/libreoffice/sdk/setsdkenv_unix
 ...

Its probably best to file a bug and include all the relevant data, at least:
- Which Ubuntu version
- Which LibreOffice version
- from were (Ubuntu?, PPA, TDF)

FWIW, I personally think it is _much_ easier to hack directly on your own
LibreOffice build than using a SDK when you are using C++ anyway. The SDK is
fine for some simple Python/Java stuff though.

Best,

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


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

2014-03-05 Thread Ahmad H . Al Harthi
 vcl/source/window/splitwin.cxx |   49 ++---
 1 file changed, 12 insertions(+), 37 deletions(-)

New commits:
commit 60b257f47750a3315edd3024ff7931a0c40ae33a
Author: Ahmad H. Al Harthi aalhar...@kacst.edu.sa
Date:   Tue Feb 11 11:19:16 2014 +0300

fdo#59329 fix docked panels borders

Change-Id: Ia918d644fb57d6fbaeef90c8c1a6806a8d7e589c
Reviewed-on: https://gerrit.libreoffice.org/8412
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index c411b51..628d598 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -137,9 +137,9 @@ static void ImplCalcBorder( WindowAlign eAlign, sal_Bool 
bNoAlign,
 rBottom = 0;
 break;
 case WINDOWALIGN_LEFT:
-rLeft   = 2;
+rLeft   = 0;
 rTop= 2;
-rRight  = 0;
+rRight  = 2;
 rBottom = 2;
 break;
 case WINDOWALIGN_BOTTOM:
@@ -179,48 +179,23 @@ void SplitWindow::ImplDrawBorder( SplitWindow* pWin )
 {
 case WINDOWALIGN_BOTTOM:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
-pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
-pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-3 ) );
-
-pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
-pWin-DrawLine( Point( 1, 1 ), Point( 1, nDY-3 ) );
-pWin-DrawLine( Point( nDX-1, 0 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( 0, 6 ), Point( nDX-1, 6 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
 break;
 case WINDOWALIGN_TOP:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
-pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
-pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-1 ) );
-
-pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( 1, 1 ), Point( nDX-3, 1 ) );
-pWin-DrawLine( Point( 1, 1 ), Point( 1, nDY-1 ) );
-pWin-DrawLine( Point( nDX-1, 1 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( 0, nDY-7 ), Point( nDX-1, nDY-7 ) );
 break;
 case WINDOWALIGN_LEFT:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
-pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
-pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
-
-pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( 1, 1 ), Point( nDX-1, 1 ) );
-pWin-DrawLine( Point( 1, 1 ), Point( 1, nDY-3 ) );
-pWin-DrawLine( Point( 1, nDY-1 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-1 ) );
+pWin-DrawLine( Point( nDX-8, 0 ), Point( nDX-8, nDY-1 ) );
 break;
 default:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 0 ), Point( nDX-2, 0 ) );
-pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-3 ) );
-pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-2, nDY-2 ) );
-
-pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( 0, 1 ), Point( nDX-3, 1 ) );
-pWin-DrawLine( Point( nDX-1, 0 ), Point( nDX-1, nDY-1 ) );
-pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
-break;
+pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
+pWin-DrawLine( Point( 6, 0 ), Point( 6, nDY-1 ) );
 }
 }
 }
@@ -1650,7 +1625,7 @@ void SplitWindow::ImplSplitMousePos( Point rMousePos )
 
 void SplitWindow::ImplGetButtonRect( Rectangle rRect, long nEx, sal_Bool 
bTest ) const
 {
-long nSplitSize = mpMainSet-mnSplitSize-2;
+long nSplitSize = mpMainSet-mnSplitSize-1;
 if ( mbAutoHide || mbFadeOut || mbFadeIn )
 nSplitSize += SPLITWIN_SPLITSIZEEX;
 
@@ -2000,7 +1975,7 @@ void SplitWindow::ImplDrawGrip( const Rectangle rRect, 
sal_Bool bHorz, sal_Bool
 int height = (int) (0.5 * rRect.getHeight() + 0.5);
 int i = rRect.Top() + (rRect.getHeight() - height) / 2;
 height += i;
-const int x = rRect.Left() + 1;
+const int x = rRect.Left() + 2;
 ImplDrawFadeArrow( Point( x, i-8), bHorz, bLeft );
 while( i = height )
 {
___
Libreoffice-commits mailing list

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

2014-03-05 Thread Ahmad H . Al Harthi
 vcl/source/window/splitwin.cxx |   52 +
 1 file changed, 38 insertions(+), 14 deletions(-)

New commits:
commit 24de7939b2f4416506bf4858711b91d48064a201
Author: Ahmad H. Al Harthi aalhar...@kacst.edu.sa
Date:   Sun Mar 2 12:53:14 2014 +0300

fdo#59329 Fix docked window border lines

This patch completes the missing border lines. This is intended
for versions 4.1 and 4.2 only.

Change-Id: Ib15cb3b01dca4631f643a0036475cf684793d256
Reviewed-on: https://gerrit.libreoffice.org/8413
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 628d598..617efa0 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -179,23 +179,43 @@ void SplitWindow::ImplDrawBorder( SplitWindow* pWin )
 {
 case WINDOWALIGN_BOTTOM:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 6 ), Point( nDX-1, 6 ) );
 pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
+pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
+
+pWin-SetLineColor( rStyleSettings.GetLightColor() );
+pWin-DrawLine( Point( 0, 1 ), Point( nDX-1, 1 ) );
+pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
 break;
 case WINDOWALIGN_TOP:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
+pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
+
+pWin-SetLineColor( rStyleSettings.GetLightColor() );
 pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
-pWin-DrawLine( Point( 0, nDY-7 ), Point( nDX-1, nDY-7 ) );
+pWin-DrawLine( Point( 0, 1 ), Point( nDX-1, 1 ) );
 break;
 case WINDOWALIGN_LEFT:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-1 ) );
-pWin-DrawLine( Point( nDX-8, 0 ), Point( nDX-8, nDY-1 ) );
+pWin-DrawLine( Point( nDX-2, 0 ), Point( nDX-2, nDY-2 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
+pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-2, nDY-2 ) );
+
+pWin-SetLineColor( rStyleSettings.GetLightColor() );
+pWin-DrawLine( Point( nDX-1, 0 ), Point( nDX-1, nDY-1 ) );
+pWin-DrawLine( Point( 0, 1 ), Point( nDX-3, 1 ) );
+pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-2, nDY-1 ) );
 break;
 default:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-1 ) );
-pWin-DrawLine( Point( 6, 0 ), Point( 6, nDY-1 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( 0, nDY-2 ) );
+pWin-DrawLine( Point( 0, 0 ), Point( nDX-1, 0 ) );
+pWin-DrawLine( Point( 0, nDY-2 ), Point( nDX-1, nDY-2 ) );
+
+pWin-SetLineColor( rStyleSettings.GetLightColor() );
+pWin-DrawLine( Point( 1, 1 ), Point( 1, nDY-3 ) );
+pWin-DrawLine( Point( 1, 1 ), Point( nDX-1, 1 ) );
+pWin-DrawLine( Point( 0, nDY-1 ), Point( nDX-1, nDY-1 ) );
 }
 }
 }
@@ -214,27 +234,31 @@ void SplitWindow::ImplDrawBorderLine( SplitWindow* pWin )
 {
 case WINDOWALIGN_LEFT:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN-1, 0 ), Point( 
nDX-SPLITWIN_SPLITSIZEEXLN-1, nDY-3 ) );
+pWin-DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN-1, 1 ), Point( 
nDX-SPLITWIN_SPLITSIZEEXLN-1, nDY-2 ) );
+
 pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN, 1 ), Point( 
nDX-SPLITWIN_SPLITSIZEEXLN, nDY-4 ) );
+pWin-DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN, 1 ), Point( 
nDX-SPLITWIN_SPLITSIZEEXLN, nDY-3 ) );
 break;
 case WINDOWALIGN_RIGHT:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( SPLITWIN_SPLITSIZEEXLN-1, 0 ), Point( 
SPLITWIN_SPLITSIZEEXLN-1, nDY-3 ) );
+pWin-DrawLine( Point( SPLITWIN_SPLITSIZEEXLN-1, 0 ), Point( 
SPLITWIN_SPLITSIZEEXLN-1, nDY-2 ) );
+
 pWin-SetLineColor( rStyleSettings.GetLightColor() );
-pWin-DrawLine( Point( SPLITWIN_SPLITSIZEEXLN, 1 ), Point( 
SPLITWIN_SPLITSIZEEXLN, nDY-4 ) );
+pWin-DrawLine( Point( SPLITWIN_SPLITSIZEEXLN, 1 ), Point( 
SPLITWIN_SPLITSIZEEXLN, nDY-3 ) );
 break;
 case WINDOWALIGN_TOP:
 pWin-SetLineColor( rStyleSettings.GetShadowColor() );
-pWin-DrawLine( Point( 0, nDY-SPLITWIN_SPLITSIZEEXLN-1 ), Point( 
nDX-3, 

[Libreoffice-commits] core.git: drawinglayer/source editeng/source include/vcl sw/source vcl/source

2014-03-05 Thread Keith Curtis
 drawinglayer/source/processor2d/helperwrongspellrenderer.cxx |   14 
 editeng/source/editeng/impedit3.cxx  |   16 
 include/vcl/outdev.hxx   |7 --
 sw/source/core/inc/wrong.hxx |7 --
 sw/source/core/txtnode/fntcache.cxx  |   34 --
 vcl/source/gdi/outdev3.cxx   |   37 +++
 6 files changed, 22 insertions(+), 93 deletions(-)

New commits:
commit ff6f3164dfc454354bee79eac30d6cc279b8a0ec
Author: Keith Curtis keit...@gmail.com
Date:   Sat Feb 22 05:30:00 2014 -0500

Simplify DrawWave

This patch simplifies the DrawWave logic. Callers of that code would try to
figure out what size wave to draw and pass down a style integer to
DrawWaveLine, but DrawWaveLine already has logic which trims the height of 
the
wave so it doesn't need the hint.

This doesn't change the UNO API
(::com::sun::star::awt::FontUnderline::SMALLWAVE), but it does get rid of
internal usages and maps those small waves to normal.

Note that changing the zoom in Calc right now causes spelling underlines to
disappear. That bug is not related to these changes.

Conflicts:
editeng/source/editeng/impedit3.cxx

Change-Id: I3caa2a74a0f5228b924d4e1b0a77f96eaef5fa00
Reviewed-on: https://gerrit.libreoffice.org/8168
Tested-by: Caolán McNamara caol...@redhat.com
Reviewed-by: Caolán McNamara caol...@redhat.com

diff --git a/drawinglayer/source/processor2d/helperwrongspellrenderer.cxx 
b/drawinglayer/source/processor2d/helperwrongspellrenderer.cxx
index 8d1e69f..13a015f 100644
--- a/drawinglayer/source/processor2d/helperwrongspellrenderer.cxx
+++ b/drawinglayer/source/processor2d/helperwrongspellrenderer.cxx
@@ -42,8 +42,6 @@ namespace drawinglayer
 const sal_uInt32 
nFontPixelHeight(basegfx::fround(aFontVectorPixel.getLength()));
 
 static const sal_uInt32 nMinimumFontHeight(5); // #define 
WRONG_SHOW_MIN 5
-static const sal_uInt32 nSmallFontHeight(11);  // #define 
WRONG_SHOW_SMALL  11
-static const sal_uInt32 nMediumFontHeight(15); // #define 
WRONG_SHOW_MEDIUM 15
 
 if(nFontPixelHeight  nMinimumFontHeight)
 {
@@ -51,16 +49,6 @@ namespace drawinglayer
 const basegfx::B2DPoint aStop(aLocalTransform * 
basegfx::B2DPoint(rWrongSpellCandidate.getStop(), 0.0));
 const Point aVclStart(basegfx::fround(aStart.getX()), 
basegfx::fround(aStart.getY()));
 const Point aVclStop(basegfx::fround(aStop.getX()), 
basegfx::fround(aStop.getY()));
-sal_uInt16 nWaveStyle(WAVE_FLAT);
-
-if(nFontPixelHeight  nMediumFontHeight)
-{
-nWaveStyle = WAVE_NORMAL;
-}
-else if(nFontPixelHeight  nSmallFontHeight)
-{
-nWaveStyle = WAVE_SMALL;
-}
 
 // #i101075# draw it. Do not forget to use the evtl. offsetted 
origin of the target device,
 // e.g. when used with mask/transparence buffer device
@@ -72,7 +60,7 @@ namespace drawinglayer
 rOutputDevice.EnableMapMode(false);
 rOutputDevice.SetLineColor(Color(aProcessedColor));
 rOutputDevice.SetFillColor();
-rOutputDevice.DrawWaveLine(aOrigin + aVclStart, aOrigin + 
aVclStop, nWaveStyle);
+rOutputDevice.DrawWaveLine(aOrigin + aVclStart, aOrigin + 
aVclStop);
 rOutputDevice.EnableMapMode(bMapModeEnabledState);
 }
 
diff --git a/editeng/source/editeng/impedit3.cxx 
b/editeng/source/editeng/impedit3.cxx
index 1ee1a1b..c095ba2 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -83,8 +83,6 @@ using namespace ::com::sun::star::linguistic2;
 #define RESDIFF 10
 
 #define WRONG_SHOW_MIN   5
-#define WRONG_SHOW_SMALL11
-#define WRONG_SHOW_MEDIUM   15
 
 struct TabInfo
 {
@@ -169,14 +167,6 @@ static void lcl_DrawRedLines(
 long nHght = pOutDev-LogicToPixel( Size( 0, nFontHeight ) ).Height();
 if( WRONG_SHOW_MIN  nHght )
 {
-sal_uInt16 nStyle;
-if( WRONG_SHOW_MEDIUM  nHght )
-nStyle = WAVE_NORMAL;
-else if( WRONG_SHOW_SMALL  nHght )
-nStyle = WAVE_SMALL;
-else
-nStyle = WAVE_FLAT;
-
 size_t nEnd, nStart = nIndex;
 bool bWrong = pWrongs-NextWrong( nStart, nEnd );
 while ( bWrong )
@@ -189,12 +179,12 @@ static void lcl_DrawRedLines(
 if ( nEnd  nMaxEnd )
 nEnd = nMaxEnd;
 Point aPnt1( rPnt );
-if ( bVertical  ( nStyle != WAVE_FLAT ) )
+if ( bVertical )
 {
 // VCL doesn't know that the text is vertical, and is 
manipulating
 // the positions a little bit in y direction...
 long nOnePixel = 

some comments about OOXML and 6536826f2f4c747582d60ed40b0418c6a67a9829

2014-03-05 Thread Markus Mohrhard
Hey,

I had a quick look at [1] and noticed that it introduces again
relationships with a URL starting with 
http://schemas.openxmlformats.org/officeDocument/2006/relationships;.
Please be careful when you add such relationships and try to use a way that
takes care of the OOXML strict relationships at the same time. An example
for this is
oox::core::Relations::getFragmentPathFromFirstTypeFromOfficeDoc

Basically all relations of that type have to be checked against the OOXML
transitional URL and the OOXML strict URL during import. Sadly it seems
that I did not get all places correct for writer yet so testing OOXML
strict with writer still only shows an empty document.

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


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

2014-03-05 Thread Keith Curtis
 vcl/inc/unx/saldisp.hxx |2 --
 vcl/unx/generic/app/saldisp.cxx |   23 ---
 vcl/unx/generic/gdi/salgdi.cxx  |8 ++--
 3 files changed, 6 insertions(+), 27 deletions(-)

New commits:
commit 9f308fbc02439e25f8932314a9374c205ebdbc4c
Author: Keith Curtis keit...@gmail.com
Date:   Fri Feb 21 19:21:27 2014 -0500

Simplify resolution calculation

Removed unnecessary complexity with resolutions because X in 2014 isn't
telling the truth about the size of the screen. My brand-new 13 laptop
with the latest X and everything apparently has a 33 x 18 monitor. So
if the data isn't reliable, just use 96 dpi anyway which is a very
reasonable default.

Also got rid of exact resolution member variable. LibreOffice can just
always think it has exact resolution. If it doesn't, then it just means
the code needs to be smarter, not that we need a flag about whether the
data we have is exact or not.

Change-Id: Ic41bdc3a82dbd1fdb6a987d6dc49adad8194ce14
Reviewed-on: https://gerrit.libreoffice.org/8166
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com

diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx
index 1125608..9b98a76 100644
--- a/vcl/inc/unx/saldisp.hxx
+++ b/vcl/inc/unx/saldisp.hxx
@@ -252,7 +252,6 @@ protected:
 std::vector ScreenData m_aScreens;
 ScreenData  m_aInvalidScreenData;
 PairaResolution_;   // [dpi]
-boolmbExactResolution;
 sal_uLong   nMaxRequestSize_;   // [byte]
 
 srv_vendor_tmeServerVendor;
@@ -353,7 +352,6 @@ public:
 const SalVisual  GetVisual( SalX11Screen nXScreen ) const { return 
getDataForScreen(nXScreen).m_aVisual; }
 RenderEntryMap   GetRenderEntries( SalX11Screen nXScreen ) const { 
return getDataForScreen(nXScreen).m_aRenderData; }
 const Pair GetResolution() const { return aResolution_; }
-boolGetExactResolution() const { return mbExactResolution; }
 sal_uLong   GetProperties() const { return PROPERTY_DEFAULT; }
 sal_uLong   GetMaxRequestSize() const { return nMaxRequestSize_; }
 XLIB_Time   GetLastUserEventTime( bool bAlwaysReget = false ) const;
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index c343552..99060cd 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -540,7 +540,7 @@ void SalDisplay::Init()
 int nDisplayScreens = ScreenCount( pDisp_ );
 m_aScreens = std::vectorScreenData(nDisplayScreens);
 
-mbExactResolution = false;
+bool bExactResolution = false;
 /*  #i15507#
  *  Xft resolution should take precedence since
  *  it is what modern desktops use.
@@ -554,27 +554,12 @@ void SalDisplay::Init()
 if( (nDPI = 50)  (nDPI = 500) )
 {
 aResolution_ = Pair( nDPI, nDPI );
-mbExactResolution = true;
+bExactResolution = true;
 }
 }
-if( mbExactResolution == false )
+if( bExactResolution == false )
 {
-int nDisplayWidth = DisplayWidthMM ( pDisp_, 
m_nXDefaultScreen.getXScreen() );
-int nDisplayHeight = DisplayHeightMM( pDisp_, 
m_nXDefaultScreen.getXScreen() );
-
-if (nDisplayHeight == 0 || nDisplayWidth == 0)
-{
-aResolution_ = Pair( 96, 96 );
-SAL_WARN(vcl, screen width/height reported as 0!, using 
fallback 96dpi);
-}
-else
-{
-aResolution_ =
-Pair( DPI( WidthOfScreen( DefaultScreenOfDisplay( pDisp_ ) ),
-   nDisplayWidth ),
-  DPI( HeightOfScreen( DefaultScreenOfDisplay( pDisp_ ) ),
-   nDisplayHeight ) );
-}
+aResolution_ = Pair( 96, 96 );
 }
 
 nMaxRequestSize_= XExtendedMaxRequestSize( pDisp_ ) * 4;
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index 018f833..c4b9cf9 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -484,12 +484,8 @@ void X11SalGraphics::GetResolution( sal_Int32 rDPIX, 
sal_Int32 rDPIY ) // cons
 
 rDPIX = pDisplay-GetResolution().A();
 rDPIY = pDisplay-GetResolution().B();
-if( !pDisplay-GetExactResolution()  rDPIY  96 )
-{
-rDPIX = Divide( rDPIX * 96, rDPIY );
-rDPIY = 96;
-}
-else if ( rDPIY  200 )
+
+if ( rDPIY  200 )
 {
 rDPIX = Divide( rDPIX * 200, rDPIY );
 rDPIY = 200;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Joren De Cuyper
 vcl/osx/salframeview.mm |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 644dbbc9d0098c02c8a1edd7d12daf13edca7eda
Author: Joren De Cuyper jore...@libreoffice.org
Date:   Tue Feb 25 23:10:44 2014 +0100

Switch to -magnification instead of -deltaZ for mac osx pinch-to-zoom

Using pinch-to-zoom in LibreOffice result in following warning in terminal:
soffice[2376:507] -deltaZ is deprecated for NSEventTypeMagnify.  Please use 
-magnification.

Following 
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/lMxCG03aZNs
-deltaZ is deprecated since OSX 10.6. Therefore use -magnification. The 
forum also
mentions the fact the steps are 500 times smaller. Lets use this factor 500 
to keep the
behavior as consistent as possible

Change-Id: Ie769c518492e5b149a5301b19cae8d841047cb22
Reviewed-on: https://gerrit.libreoffice.org/8345
Reviewed-by: Norbert Thiebaud nthieb...@gmail.com
Tested-by: Norbert Thiebaud nthieb...@gmail.com

diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index e521957..e556bf3 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -765,11 +765,11 @@ private:
 
 if( bNewSeries )
 mfMagnifyDeltaSum = 0.0;
-mfMagnifyDeltaSum += [pEvent deltaZ];
+mfMagnifyDeltaSum += [pEvent magnification];
 
mfLastMagnifyTime = [pEvent timestamp];
// TODO: change to 0.1 when COMMAND_WHEEL_ZOOM handlers allow 
finer zooming control
-   static const float fMagnifyFactor = 0.25;
+   static const float fMagnifyFactor = 0.25*500;
 static const float fMinMagnifyStep = 15.0 / fMagnifyFactor;
 if( fabs(mfMagnifyDeltaSum) = fMinMagnifyStep )
 return;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Eike Rathke
 svtools/source/control/ctrlbox.cxx |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 160d289564428c458f4923fe2eb5bfe28c3c61a7
Author: Eike Rathke er...@redhat.com
Date:   Wed Mar 5 16:20:31 2014 +0100

cast to the higher capacity type instead

Change-Id: I515f315c93dd19016dfdabdf9524606214f84891

diff --git a/svtools/source/control/ctrlbox.cxx 
b/svtools/source/control/ctrlbox.cxx
index 5461863..1065b34 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -827,7 +827,7 @@ sal_Int32 LineListBox::InsertEntry( const OUString rStr, 
sal_Int32 nPos )
 {
 nPos = ListBox::InsertEntry( rStr, nPos );
 if ( nPos != LISTBOX_ERROR ) {
-if ( nPos  static_castsal_Int32(pLineList-size()) ) {
+if ( static_castsize_t(nPos)  pLineList-size() ) {
 ImpLineList::iterator it = pLineList-begin();
 ::std::advance( it, nPos );
 pLineList-insert( it, reinterpret_castImpLineListData *(NULL) );
@@ -855,7 +855,7 @@ void LineListBox::RemoveEntry( sal_Int32 nPos )
 {
 ListBox::RemoveEntry( nPos );
 
-if ( 0 = nPos  nPos  static_castsal_Int32(pLineList-size()) ) {
+if ( 0 = nPos  static_castsize_t(nPos)  pLineList-size() ) {
 ImpLineList::iterator it = pLineList-begin();
 ::std::advance( it, nPos );
 if ( *it ) delete *it;
@@ -901,7 +901,7 @@ sal_Int32 LineListBox::GetEntryPos( sal_uInt16 nStyle ) 
const
 
 sal_uInt16 LineListBox::GetEntryStyle( sal_Int32 nPos ) const
 {
-ImpLineListData* pData = (0 = nPos  nPos  
static_castsal_Int32(pLineList-size())) ? (*pLineList)[ nPos ] : NULL;
+ImpLineListData* pData = (0 = nPos  static_castsize_t(nPos)  
pLineList-size()) ? (*pLineList)[ nPos ] : NULL;
 return ( pData ) ? pData-GetStyle() : table::BorderLineStyle::NONE;
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Douglas Mencken
 fpicker/source/aqua/FilterHelper.mm  |4 
 fpicker/source/aqua/SalAquaFilePicker.mm |4 
 fpicker/source/aqua/SalAquaPicker.mm |   29 +
 3 files changed, 37 insertions(+)

New commits:
commit 578bd15399a16b0a32e752e19ae42d989321d731
Author: Douglas Mencken dougmenc...@gmail.com
Date:   Sun Mar 2 22:06:25 2014 -0500

Currently used file pickers API doesn't work for OS X  10.6

Change-Id: I69592ada3a413cae2d0def2faa495db44894ed3f
Reviewed-on: https://gerrit.libreoffice.org/8430
Reviewed-by: Norbert Thiebaud nthieb...@gmail.com
Tested-by: Norbert Thiebaud nthieb...@gmail.com

diff --git a/fpicker/source/aqua/FilterHelper.mm 
b/fpicker/source/aqua/FilterHelper.mm
index 4132783..5ee7b44 100644
--- a/fpicker/source/aqua/FilterHelper.mm
+++ b/fpicker/source/aqua/FilterHelper.mm
@@ -385,7 +385,11 @@ sal_Bool FilterHelper::filenameMatchesFilter(NSString* 
sFilename)
 }
 
 NSFileManager *manager = [NSFileManager defaultManager];
+#if MAC_OS_X_VERSION_MAX_ALLOWED  1060
+NSDictionary* pAttribs = [manager fileAttributesAtPath: sFilename 
traverseLink: NO];
+#else
 NSDictionary* pAttribs = [manager attributesOfItemAtPath: sFilename error: 
nil];
+#endif
 if( pAttribs )
 {
 NSObject* pType = [pAttribs objectForKey: NSFileType];
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm 
b/fpicker/source/aqua/SalAquaFilePicker.mm
index 0d62482..6c2aa35 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.mm
+++ b/fpicker/source/aqua/SalAquaFilePicker.mm
@@ -761,7 +761,11 @@ void SalAquaFilePicker::updateSaveFileNameExtension() {
 rtl::OUString suffix = (*(aStringList.begin())).copy(1);
 NSString *requiredFileType = [NSString stringWithOUString:suffix];
 
+#if MAC_OS_X_VERSION_MAX_ALLOWED  1060
+[m_pDialog setRequiredFileType:requiredFileType];
+#else
 [m_pDialog setAllowedFileTypes:[NSArray 
arrayWithObjects:requiredFileType, nil]];
+#endif
 
 OSL_TRACE(disallowing other file types);
 [m_pDialog setAllowsOtherFileTypes:NO];
diff --git a/fpicker/source/aqua/SalAquaPicker.mm 
b/fpicker/source/aqua/SalAquaPicker.mm
index 664088f..baff7c3 100644
--- a/fpicker/source/aqua/SalAquaPicker.mm
+++ b/fpicker/source/aqua/SalAquaPicker.mm
@@ -165,6 +165,19 @@ int SalAquaPicker::run()
 
 int retVal = 0;
 
+#if MAC_OS_X_VERSION_MAX_ALLOWED  1060
+NSString *startDirectory;
+if (m_sDisplayDirectory.getLength()  0) {
+NSString *temp = [NSString stringWithOUString:m_sDisplayDirectory];
+NSURL *url = [NSURL URLWithString:temp];
+startDirectory = [url path];
+
+OSL_TRACE(start dir: %s, [startDirectory UTF8String]);
+}
+else {
+startDirectory = NSHomeDirectory();
+}
+#else
 NSURL *startDirectory;
 if (m_sDisplayDirectory.getLength()  0) {
 NSString *temp = [NSString stringWithOUString:m_sDisplayDirectory];
@@ -175,17 +188,26 @@ int SalAquaPicker::run()
 else {
 startDirectory = [NSURL fileURLWithPath:NSHomeDirectory() 
isDirectory:YES];
 }
+#endif
 
 switch(m_nDialogType) {
 case NAVIGATIONSERVICES_DIRECTORY:
 case NAVIGATIONSERVICES_OPEN:
+#if MAC_OS_X_VERSION_MAX_ALLOWED  1060
+retVal = [(NSOpenPanel*)m_pDialog 
runModalForDirectory:startDirectory file:nil types:nil];
+#else
 [m_pDialog setDirectoryURL:startDirectory];
 retVal = [(NSOpenPanel*)m_pDialog runModal];
+#endif
 break;
 case NAVIGATIONSERVICES_SAVE:
+#if MAC_OS_X_VERSION_MAX_ALLOWED  1060
+retVal = [m_pDialog runModalForDirectory:startDirectory 
file:[NSString 
stringWithOUString:((SalAquaFilePicker*)this)-getSaveFileName()]];
+#else
 [m_pDialog setDirectoryURL:startDirectory];
 [m_pDialog setNameFieldStringValue:[NSString 
stringWithOUString:((SalAquaFilePicker*)this)-getSaveFileName()]];
 retVal = [m_pDialog runModal];
+#endif
 break;
 // [m_pDialog beginSheetForDirectory:startDirectory file:[m_pDialog 
saveFilename] modalForWindow:[NSApp keyWindow] 
modalDelegate:((SalAquaFilePicker*)this)-getDelegate() 
didEndSelector:@selector(savePanelDidEnd:returnCode:contextInfo:) 
contextInfo:nil];
 default:
@@ -193,10 +215,17 @@ int SalAquaPicker::run()
 }
 
 if (retVal == NSFileHandlingPanelOKButton) {
+#if MAC_OS_X_VERSION_MAX_ALLOWED  1060
+NSString* pDir = [m_pDialog directory];
+if (pDir) {
+implsetDisplayDirectory([[NSURL fileURLWithPath:pDir] 
OUStringForInfo:FULLPATH]);
+}
+#else
 NSURL* pDir = [m_pDialog directoryURL];
 if (pDir) {
 implsetDisplayDirectory([pDir OUStringForInfo:FULLPATH]);
 }
+#endif
 }
 DBG_PRINT_EXIT(CLASS_NAME, __func__, retVal);
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org

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

2014-03-05 Thread Norbert Thiebaud
 include/ucbhelper/activedatasink.hxx |9 +--
 include/ucbhelper/activedatastreamer.hxx |9 +--
 include/ucbhelper/commandenvironment.hxx |7 +
 include/ucbhelper/contenthelper.hxx  |7 +
 include/ucbhelper/contentinfo.hxx|   14 ++-
 include/ucbhelper/macros.hxx |   17 --
 include/ucbhelper/propertyvalueset.hxx   |7 +
 include/ucbhelper/providerhelper.hxx |   10 +---
 include/ucbhelper/resultset.hxx  |7 +
 include/ucbhelper/resultsethelper.hxx|7 +
 include/ucbhelper/resultsetmetadata.hxx  |7 +
 ucb/source/cacher/cachedcontentresultset.cxx |7 +
 ucb/source/cacher/cachedcontentresultset.hxx |   18 +++
 ucb/source/cacher/cachedcontentresultsetstub.hxx |   18 +++
 ucb/source/cacher/cacheddynamicresultset.hxx |   19 +++-
 ucb/source/cacher/cacheddynamicresultsetstub.hxx |   20 +++--
 ucb/source/cacher/contentresultsetwrapper.hxx|9 +--
 ucb/source/cacher/dynamicresultsetwrapper.hxx|9 +--
 ucb/source/core/identify.hxx |7 +
 ucb/source/core/provprox.hxx |   14 ++-
 ucb/source/core/ucb.hxx  |7 +
 ucb/source/core/ucbprops.hxx |7 +
 ucb/source/core/ucbstore.cxx |7 +
 ucb/source/core/ucbstore.hxx |   21 +++--
 ucb/source/sorter/sortdynres.hxx |   27 +++
 ucb/source/sorter/sortresult.cxx |7 +
 ucb/source/sorter/sortresult.hxx |7 +
 ucb/source/ucp/cmis/cmis_content.hxx |8 +-
 ucb/source/ucp/cmis/cmis_provider.hxx|7 +
 ucb/source/ucp/cmis/cmis_repo_content.hxx|8 +-
 ucb/source/ucp/ftp/ftpcontent.hxx|7 +
 ucb/source/ucp/ftp/ftpcontentprovider.hxx|7 +
 ucb/source/ucp/gio/gio_content.hxx   |8 +-
 ucb/source/ucp/gio/gio_provider.hxx  |7 +
 ucb/source/ucp/gvfs/gvfs_content.hxx |7 +
 ucb/source/ucp/gvfs/gvfs_provider.hxx|7 +
 ucb/source/ucp/hierarchy/hierarchycontent.hxx|7 +
 ucb/source/ucp/hierarchy/hierarchydatasource.cxx |7 +
 ucb/source/ucp/hierarchy/hierarchydatasource.hxx |7 +
 ucb/source/ucp/hierarchy/hierarchyprovider.hxx   |7 +
 ucb/source/ucp/package/pkgcontent.hxx|7 +
 ucb/source/ucp/package/pkgprovider.hxx   |7 +
 ucb/source/ucp/tdoc/tdoc_content.hxx |7 +
 ucb/source/ucp/tdoc/tdoc_provider.hxx|7 +
 ucb/source/ucp/webdav-neon/webdavcontent.hxx |7 +
 ucb/source/ucp/webdav-neon/webdavprovider.hxx|7 +
 ucb/source/ucp/webdav/webdavcontent.hxx  |7 +
 ucb/source/ucp/webdav/webdavprovider.hxx |7 +
 ucbhelper/source/client/content.cxx  |7 +
 ucbhelper/source/provider/resultset.cxx  |7 +
 xmlhelp/source/cxxhelp/provider/content.hxx  |7 +
 xmlhelp/source/cxxhelp/provider/provider.hxx |7 +
 52 files changed, 375 insertions(+), 108 deletions(-)

New commits:
commit 66f2c35fac22a235a1e491824126f105e6d3869c
Author: Norbert Thiebaud nthieb...@gmail.com
Date:   Tue Mar 4 12:55:07 2014 -0600

de-macroize XINTERFACE_DECL

Change-Id: Iaa1cf999189f6b62547c208eadc38150400ca0fe
Reviewed-on: https://gerrit.libreoffice.org/8454
Reviewed-by: Norbert Thiebaud nthieb...@gmail.com
Tested-by: Norbert Thiebaud nthieb...@gmail.com

diff --git a/include/ucbhelper/activedatasink.hxx 
b/include/ucbhelper/activedatasink.hxx
index deaf6ac..5adf7be 100644
--- a/include/ucbhelper/activedatasink.hxx
+++ b/include/ucbhelper/activedatasink.hxx
@@ -45,8 +45,13 @@ class UCBHELPER_DLLPUBLIC ActiveDataSink : public 
cppu::OWeakObject,
 com::sun::star::io::XInputStream  m_xStream;
 
 public:
- // XInterface
-XINTERFACE_DECL()
+// XInterface
+virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type  
rType )
+throw( css::uno::RuntimeException, std::exception );
+virtual void SAL_CALL acquire()
+throw();
+virtual void SAL_CALL release()
+throw();
 
 // XTypeProvider
 XTYPEPROVIDER_DECL()
diff --git a/include/ucbhelper/activedatastreamer.hxx 
b/include/ucbhelper/activedatastreamer.hxx
index 799f7ee..0c1af6a 100644
--- a/include/ucbhelper/activedatastreamer.hxx
+++ b/include/ucbhelper/activedatastreamer.hxx
@@ -44,8 +44,13 @@ class ActiveDataStreamer : public cppu::OWeakObject,
 com::sun::star::io::XStream  m_xStream;
 
 public:
- // XInterface
-XINTERFACE_DECL()
+// XInterface
+virtual 

[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - cui/source drawinglayer/source editeng/source include/svtools include/xmloff offapi/com sc/source svtools/source sw/source xmloff/source

2014-03-05 Thread Kohei Yoshida
 cui/source/inc/border.hxx |2 
 cui/source/tabpages/border.cxx|   73 +-
 drawinglayer/source/primitive2d/borderlineprimitive2d.cxx |  120 ++--
 drawinglayer/source/processor2d/vclpixelprocessor2d.cxx   |4 
 editeng/source/items/borderline.cxx   |5 
 editeng/source/items/frmitems.cxx |2 
 include/svtools/ctrlbox.hxx   |9 
 include/xmloff/xmltoken.hxx   |1 
 offapi/com/sun/star/table/BorderLineStyle.idl |   10 
 sc/source/filter/excel/xistyle.cxx|2 
 sc/source/filter/html/htmlexp.cxx |1 
 sc/source/filter/lotus/lotattr.cxx|2 
 sc/source/filter/oox/stylesbuffer.cxx |4 
 svtools/source/control/ctrlbox.cxx|9 
 sw/source/core/layout/paintfrm.cxx|  369 --
 xmloff/source/core/xmltoken.cxx   |1 
 xmloff/source/style/bordrhdl.cxx  |   46 -
 17 files changed, 407 insertions(+), 253 deletions(-)

New commits:
commit 743d331357af5204108186f0428e949f68d966c7
Author: Kohei Yoshida kohei.yosh...@collabora.com
Date:   Mon Mar 3 17:58:11 2014 -0500

fdo#75260: Correctly draw double lines for both Writer and Calc.

Fix all sorts of incorrect double line handling in drawinglayer in order to
draw thick-thin double line types correctly.  Also change handling of border
lines in writer tables. There are still some outstanding issues but it's
much better than how it was before.

Also realized that Word and Excel handle simple thin double lines 
differently;
Word varies widths of all of the lines and the gap whereas Excel only has 
one
fixed size for its double line.  For this reason I decided to add a separate
double line type (DOUBLE_THIN) to handle Excel's double line.

(cherry picked from commit 2c62596cf264ef10749d8bfdb2bb2ebef2d98fbc)

Conflicts:
cui/source/tabpages/border.cxx
sc/qa/unit/subsequent_export-test.cxx
sc/source/ui/view/tabvwsha.cxx
sw/source/core/layout/paintfrm.cxx
xmloff/source/style/bordrhdl.cxx

Change-Id: Iaaa353b6e4f998b524262bea59260b4333e0cdb4
Reviewed-on: https://gerrit.libreoffice.org/8464
Reviewed-by: Miklos Vajna vmik...@collabora.co.uk
Tested-by: Miklos Vajna vmik...@collabora.co.uk

diff --git a/cui/source/inc/border.hxx b/cui/source/inc/border.hxx
index 793d584..8f66e5d 100644
--- a/cui/source/inc/border.hxx
+++ b/cui/source/inc/border.hxx
@@ -130,6 +130,8 @@ private:
 voidResetFrameLine_Impl( svx::FrameBorderType eBorder,
  const editeng::SvxBorderLine* 
pCurLine,
  bool bValid );
+
+bool IsBorderLineStyleAllowed( sal_Int16 nStyle ) const;
 };
 
 
diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 6713ee8..d2d12ac 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -42,6 +42,7 @@
 #include sfx2/itemconnect.hxx
 #include sal/macros.h
 #include borderconn.hxx
+#include svtools/ctrlbox.hxx
 
 using namespace ::editeng;
 
@@ -332,6 +333,11 @@ void SvxBorderTabPage::ResetFrameLine_Impl( 
svx::FrameBorderType eBorder, const
 }
 }
 
+bool SvxBorderTabPage::IsBorderLineStyleAllowed( sal_Int16 /*nStyle*/ ) const
+{
+return true;
+}
+
 // ---
 
 void SvxBorderTabPage::Reset( const SfxItemSet rSet )
@@ -985,38 +991,49 @@ void SvxBorderTabPage::FillLineListBox_Impl()
 {
 using namespace ::com::sun::star::table::BorderLineStyle;
 
+struct {
+sal_Int16 mnStyle;
+long mnMinWidth;
+LineListBox::ColorFunc mpColor1Fn;
+LineListBox::ColorFunc mpColor2Fn;
+LineListBox::ColorDistFunc mpColorDistFn;
+} aLines[] = {
+// Simple lines
+{ SOLID,   0, sameColor, sameColor, sameDistColor },
+{ DOTTED,  0, sameColor, sameColor, sameDistColor },
+{ DASHED,  0, sameColor, sameColor, sameDistColor },
+{ FINE_DASHED, 0, sameColor, sameColor, sameDistColor },
+
+// Double lines
+{ DOUBLE,  10, sameColor, sameColor, sameDistColor },
+{ DOUBLE_THIN, 10, sameColor, sameColor, sameDistColor },
+{ THINTHICK_SMALLGAP,  20, sameColor, sameColor, sameDistColor },
+{ THINTHICK_MEDIUMGAP,  0, sameColor, sameColor, sameDistColor },
+{ THINTHICK_LARGEGAP,   0, sameColor, sameColor, sameDistColor },
+{ THICKTHIN_SMALLGAP,  20, sameColor, sameColor, sameDistColor },
+{ THICKTHIN_MEDIUMGAP,  0, sameColor, sameColor, sameDistColor },
+{ THICKTHIN_LARGEGAP,   0, sameColor, 

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

2014-03-05 Thread Norbert Thiebaud
 include/ucbhelper/macros.hxx |  234 ---
 ucb/source/cacher/cachedcontentresultset.cxx |   13 +
 ucb/source/cacher/cachedcontentresultsetstub.cxx |   11 -
 ucb/source/cacher/cacheddynamicresultset.cxx |   11 -
 ucb/source/cacher/cacheddynamicresultsetstub.cxx |   11 -
 ucb/source/cacher/contentresultsetwrapper.cxx|   12 +
 ucb/source/core/provprox.cxx |   15 -
 ucb/source/ucp/hierarchy/hierarchydatasource.cxx |   14 -
 8 files changed, 72 insertions(+), 249 deletions(-)

New commits:
commit 10fe4b9fd17e1da11ea7ebfa354f40c2e2da3f3f
Author: Norbert Thiebaud nthieb...@gmail.com
Date:   Tue Mar 4 12:55:44 2014 -0600

de-macroize XINTERFACE_COMMON_IMPL

Change-Id: I7cffc8a111dd939272c6dbef8827b6f5c04a4590
Reviewed-on: https://gerrit.libreoffice.org/8455
Reviewed-by: Norbert Thiebaud nthieb...@gmail.com
Tested-by: Norbert Thiebaud nthieb...@gmail.com

diff --git a/include/ucbhelper/macros.hxx b/include/ucbhelper/macros.hxx
index c6f31a6..4a494e9 100644
--- a/include/ucbhelper/macros.hxx
+++ b/include/ucbhelper/macros.hxx
@@ -72,13 +72,6 @@ com::sun::star::uno::Any SAL_CALL Class::queryInterface( 
   \
 
 
 
-// 1 interface implemented
-#define XINTERFACE_IMPL_1( Class, Ifc1 )\
-XINTERFACE_COMMON_IMPL( Class ) \
-QUERYINTERFACE_IMPL_START( Class )  \
-(static_cast Ifc1* (this))  \
-QUERYINTERFACE_IMPL_END
-
 // 2 interfaces implemented
 #define XINTERFACE_IMPL_2( Class, Ifc1, Ifc2 )  \
 XINTERFACE_COMMON_IMPL( Class ) \
@@ -129,33 +122,6 @@ QUERYINTERFACE_IMPL_START( Class ) 
 \
 (static_cast I6* (this))\
 QUERYINTERFACE_IMPL_END
 
-// 7 interfaces implemented
-#define XINTERFACE_IMPL_7( Class,I1,I2,I3,I4,I5,I6,I7 ) \
-XINTERFACE_COMMON_IMPL( Class ) \
-QUERYINTERFACE_IMPL_START( Class )  \
-(static_cast I1* (this)),   \
-(static_cast I2* (this)),   \
-(static_cast I3* (this)),   \
-(static_cast I4* (this)),   \
-(static_cast I5* (this)),   \
-(static_cast I6* (this)),   \
-(static_cast I7* (this))\
-QUERYINTERFACE_IMPL_END
-
-// 8 interfaces implemented
-#define XINTERFACE_IMPL_8( Class,I1,I2,I3,I4,I5,I6,I7,I8 )  \
-XINTERFACE_COMMON_IMPL( Class ) \
-QUERYINTERFACE_IMPL_START( Class )  \
-(static_cast I1* (this)),   \
-(static_cast I2* (this)),   \
-(static_cast I3* (this)),   \
-(static_cast I4* (this)),   \
-(static_cast I5* (this)),   \
-(static_cast I6* (this)),   \
-(static_cast I7* (this)),   \
-(static_cast I8* (this))\
-QUERYINTERFACE_IMPL_END
-
 // 9 interfaces implemented
 #define XINTERFACE_IMPL_9( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9 )   \
 XINTERFACE_COMMON_IMPL( Class ) \
@@ -171,119 +137,6 @@ QUERYINTERFACE_IMPL_START( Class )
  \
 (static_cast I9* (this))\
 QUERYINTERFACE_IMPL_END
 
-// 10 interfaces implemented
-#define XINTERFACE_IMPL_10( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10 )  \
-XINTERFACE_COMMON_IMPL( Class ) \
-QUERYINTERFACE_IMPL_START( Class )  \
-(static_cast I1* (this)),   \
-(static_cast I2* (this)),   \
-(static_cast I3* (this)),   \
-(static_cast I4* (this)),   \
-(static_cast I5* (this)),   \
-(static_cast I6* (this)),   \
-(static_cast I7* (this)),   \
-(static_cast I8* (this)),   \
-(static_cast I9* (this)),  

Re: Widget Conversion: Getting hard to find the last 175 remaining

2014-03-05 Thread Caolán McNamara
On Wed, 2014-03-05 at 10:49 -0300, Joao S. O. Bueno wrote:
 Maybe L.O. could have in the future a submenu where all tabs and
 dialogs could be found? Or a dialog browser tool?

Well, we sort of have something like that in the sense that every dialog
associated with a command can be put into a mega menu by using the
customization dialog to create a menu of everything, but so many
commands are context sensitive so that the dialog won't launch unless
it's in the right context. e.g. today's conversion of the pivot table
date group dialog can only be tested if a date cell was selected before
launching the dialog.

And there's the extra edge case of e.g. warning/error dialogs that only
appear if certain errors take place, and a few times I've just thrown my
hat at it and temporarily hacked in a yes there's an error condition
in order to see the dialog rather than figure out how to recreate the
real condition, e.g. this operation is taking a long time, do you want
to turn off viewing redlines to make it faster, *shudder*

C.

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


[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.1' - cui/source drawinglayer/source editeng/source include/svtools include/xmloff offapi/com sc/source svtools/source sw/source xmloff/sou

2014-03-05 Thread Kohei Yoshida
 cui/source/inc/border.hxx |2 
 cui/source/tabpages/border.cxx|   72 +-
 drawinglayer/source/primitive2d/borderlineprimitive2d.cxx |  120 ++--
 drawinglayer/source/processor2d/vclpixelprocessor2d.cxx   |4 
 editeng/source/items/borderline.cxx   |5 
 editeng/source/items/frmitems.cxx |2 
 include/svtools/ctrlbox.hxx   |9 
 include/xmloff/xmltoken.hxx   |1 
 offapi/com/sun/star/table/BorderLineStyle.idl |   10 
 sc/source/filter/excel/xistyle.cxx|2 
 sc/source/filter/html/htmlexp.cxx |1 
 sc/source/filter/lotus/lotattr.cxx|2 
 sc/source/filter/oox/stylesbuffer.cxx |4 
 svtools/source/control/ctrlbox.cxx|9 
 sw/source/core/layout/paintfrm.cxx|  369 --
 xmloff/source/core/xmltoken.cxx   |1 
 xmloff/source/style/bordrhdl.cxx  |   44 -
 17 files changed, 408 insertions(+), 249 deletions(-)

New commits:
commit c909ebf6ea9ce3251ddb69fd0c57d00c3f361f88
Author: Kohei Yoshida kohei.yosh...@collabora.com
Date:   Mon Mar 3 17:58:11 2014 -0500

fdo#75260: Correctly draw double lines for both Writer and Calc.

Fix all sorts of incorrect double line handling in drawinglayer in order to
draw thick-thin double line types correctly.  Also change handling of border
lines in writer tables. There are still some outstanding issues but it's
much better than how it was before.

Also realized that Word and Excel handle simple thin double lines 
differently;
Word varies widths of all of the lines and the gap whereas Excel only has 
one
fixed size for its double line.  For this reason I decided to add a separate
double line type (DOUBLE_THIN) to handle Excel's double line.

(cherry picked from commit 2c62596cf264ef10749d8bfdb2bb2ebef2d98fbc)

Conflicts:
cui/source/tabpages/border.cxx
sc/qa/unit/subsequent_export-test.cxx
sc/source/ui/view/tabvwsha.cxx
sw/source/core/layout/paintfrm.cxx
xmloff/source/style/bordrhdl.cxx

Conflicts:
cui/source/tabpages/border.cxx
sw/source/core/layout/paintfrm.cxx
xmloff/source/style/bordrhdl.cxx

Change-Id: Iaaa353b6e4f998b524262bea59260b4333e0cdb4

diff --git a/cui/source/inc/border.hxx b/cui/source/inc/border.hxx
index 445222a..645115f 100644
--- a/cui/source/inc/border.hxx
+++ b/cui/source/inc/border.hxx
@@ -130,6 +130,8 @@ private:
 voidResetFrameLine_Impl( svx::FrameBorderType eBorder,
  const editeng::SvxBorderLine* 
pCurLine,
  bool bValid );
+
+bool IsBorderLineStyleAllowed( sal_Int16 nStyle ) const;
 };
 
 
diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 26f3a0c..a147975 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -42,6 +42,7 @@
 #include sfx2/itemconnect.hxx
 #include sal/macros.h
 #include borderconn.hxx
+#include svtools/ctrlbox.hxx
 
 using namespace ::editeng;
 
@@ -332,6 +333,11 @@ void SvxBorderTabPage::ResetFrameLine_Impl( 
svx::FrameBorderType eBorder, const
 }
 }
 
+bool SvxBorderTabPage::IsBorderLineStyleAllowed( sal_Int16 /*nStyle*/ ) const
+{
+return true;
+}
+
 // ---
 
 void SvxBorderTabPage::Reset( const SfxItemSet rSet )
@@ -985,37 +991,49 @@ void SvxBorderTabPage::FillLineListBox_Impl()
 {
 using namespace ::com::sun::star::table::BorderLineStyle;
 
+struct {
+sal_Int16 mnStyle;
+long mnMinWidth;
+LineListBox::ColorFunc mpColor1Fn;
+LineListBox::ColorFunc mpColor2Fn;
+LineListBox::ColorDistFunc mpColorDistFn;
+} aLines[] = {
+// Simple lines
+{ SOLID,   0, sameColor, sameColor, sameDistColor },
+{ DOTTED,  0, sameColor, sameColor, sameDistColor },
+{ DASHED,  0, sameColor, sameColor, sameDistColor },
+{ FINE_DASHED, 0, sameColor, sameColor, sameDistColor },
+
+// Double lines
+{ DOUBLE,  10, sameColor, sameColor, sameDistColor },
+{ DOUBLE_THIN, 10, sameColor, sameColor, sameDistColor },
+{ THINTHICK_SMALLGAP,  20, sameColor, sameColor, sameDistColor },
+{ THINTHICK_MEDIUMGAP,  0, sameColor, sameColor, sameDistColor },
+{ THINTHICK_LARGEGAP,   0, sameColor, sameColor, sameDistColor },
+{ THICKTHIN_SMALLGAP,  20, sameColor, sameColor, sameDistColor },
+{ THICKTHIN_MEDIUMGAP,  0, sameColor, sameColor, sameDistColor },
+{ THICKTHIN_LARGEGAP,   0, sameColor, sameColor, 

[Libreoffice-commits] core.git: Branch 'libreoffice-4-2-2' - padmin/source

2014-03-05 Thread Stephan Bergmann
 padmin/source/pamain.cxx |   54 ++-
 1 file changed, 30 insertions(+), 24 deletions(-)

New commits:
commit 42df210d4b2132bea2850e5320abf8d5984c2017
Author: Stephan Bergmann sberg...@redhat.com
Date:   Thu Feb 27 13:18:36 2014 +0100

fdo#75540 setProcessServiceFactory must be called before InitVCL

...because InitVCL now calls:

 comphelper::getProcessServiceFactory
 comphelper::getProcessComponentContext
 utl::DefaultFontConfiguration::DefaultFontConfiguration
 rtl::Staticutl::DefaultFontConfiguration, (anonymous 
namespace)::theDefaultFontConfiguration::get
 utl::DefaultFontConfiguration::get
 ImplStyleData::SetStandardStyles
 ImplStyleData::ImplStyleData
 boost::make_sharedImplStyleData
 StyleSettings::StyleSettings
 ImplAllSettingsData::ImplAllSettingsData
 boost::make_sharedImplAllSettingsData
 AllSettings::AllSettings
 Application::InitSettings
 Application::GetSettings
 GtkInstance::AfterAppInit
 InitVCL
 ImplSVMain
 SVMain
 sal_main
 main

and Application::Main is only called after InitVCL.

(cherry picked from commit c828e3cc409077a1916911b8abf1d7b8dbb2078a)
Conflicts:
padmin/source/pamain.cxx

Change-Id: I1126e33f454a4ea35ef295cbd3f48429c473efb4
Reviewed-on: https://gerrit.libreoffice.org/8381
Reviewed-by: Caolán McNamara caol...@redhat.com
Tested-by: Caolán McNamara caol...@redhat.com
Reviewed-by: David Tardon dtar...@redhat.com

diff --git a/padmin/source/pamain.cxx b/padmin/source/pamain.cxx
index bbccadf..b510f99 100644
--- a/padmin/source/pamain.cxx
+++ b/padmin/source/pamain.cxx
@@ -51,6 +51,11 @@ public:
 virtual sal_uInt16  Exception( sal_uInt16 nError );
 
 static OUString ReadStringHook( const OUString );
+
+private:
+virtual void Init() SAL_OVERRIDE;
+
+Reference XComponentContext  xCtx_;
 };
 
 void vclmain::createApplication()
@@ -84,35 +89,13 @@ int MyApp::Main()
 
 EnableAutoHelpId();
 
-//-
-// create the global service-manager
-//-
-Reference XComponentContext  xCtx;
-Reference XMultiServiceFactory  xFactory;
-try
-{
-xCtx = defaultBootstrap_InitialComponentContext();
-xFactory = Reference XMultiServiceFactory (  
xCtx-getServiceManager(), UNO_QUERY );
-if( xFactory.is() )
-setProcessServiceFactory( xFactory );
-}
-catch( const com::sun::star::uno::Exception )
-{
-}
-
-if( ! xFactory.is() )
-{
-fprintf( stderr, Could not bootstrap UNO, installation must be in 
disorder. Exiting.\n );
-exit( 1 );
-}
-
 // Detect desktop environment - need to do this as early as possible
 com::sun::star::uno::setCurrentContext(
 new DesktopContext( com::sun::star::uno::getCurrentContext() ) );
 
 // Create UCB (for backwards compatibility, in case some code still uses
 // plain createInstance w/o args directly to obtain an instance):
-com::sun::star::ucb::UniversalContentBroker::create(xCtx);
+com::sun::star::ucb::UniversalContentBroker::create(xCtx_);
 
 /*
  * Initialize the Java UNO AccessBridge if accessibility is turned on
@@ -139,7 +122,7 @@ int MyApp::Main()
  */
 try
 {
-ReferenceXComponent xComp(xCtx, UNO_QUERY_THROW);
+ReferenceXComponent xComp(xCtx_, UNO_QUERY_THROW);
 xComp-dispose();
 }
 catch(...)
@@ -149,4 +132,27 @@ int MyApp::Main()
 return EXIT_SUCCESS;
 }
 
+void MyApp::Init()
+{
+// create the global service-manager
+
+Reference XMultiServiceFactory  xFactory;
+try
+{
+xCtx_ = defaultBootstrap_InitialComponentContext();
+xFactory = Reference XMultiServiceFactory (  
xCtx_-getServiceManager(), UNO_QUERY );
+if( xFactory.is() )
+setProcessServiceFactory( xFactory );
+}
+catch( const com::sun::star::uno::Exception )
+{
+}
+
+if( ! xFactory.is() )
+{
+fprintf( stderr, Could not bootstrap UNO, installation must be in 
disorder. Exiting.\n );
+exit( 1 );
+}
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Stephan Bergmann
 svl/source/numbers/zforfind.cxx   |2 +-
 svl/source/numbers/zforfind.hxx   |2 +-
 svx/source/customshapes/EnhancedCustomShape2d.cxx |4 ++--
 vcl/source/edit/texteng.cxx   |3 ++-
 4 files changed, 6 insertions(+), 5 deletions(-)

New commits:
commit 0e78ce148371f8ae27f4660403dd057a1f632ecf
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Mar 5 13:27:17 2014 +0100

Operators for Point are only overloaded for long, not double

...so no use giving double arguments that are implicitly cast to long 
anyway.

Change-Id: I26b9059fc5ab0d55c3f320e2b2f55502423541a9

diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx 
b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index b1bd8d8..3ed2605 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -1737,8 +1737,8 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16 
rSrcPt, sal_uInt16 rSegm
 const Point aPreviousEndPoint(GetPoint( 
seqCoordinates[ rSrcPt - 1 ], true, true));
 const Point aControlQ(GetPoint( seqCoordinates[ 
rSrcPt++ ], true, true ));
 const Point aEnd(GetPoint( seqCoordinates[ 
rSrcPt++ ], true, true ));
-const Point aControlA((aPreviousEndPoint + 
(aControlQ * 2.0)) / 3.0);
-const Point aControlB(((aControlQ * 2.0) + aEnd) / 
3.0);
+const Point aControlA((aPreviousEndPoint + 
(aControlQ * 2)) / 3);
+const Point aControlB(((aControlQ * 2) + aEnd) / 
3);
 
 DBG_ASSERT(aNewB2DPolygon.count(), 
EnhancedCustomShape2d::CreateSubPath: Error in adding Q control point (!));
 aNewB2DPolygon.appendBezierSegment(
commit a7859d08ab3f4c214e83d311a5db7aeed2f707b5
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Mar 5 13:07:31 2014 +0100

Work around unfortunate libstdc++ interpretation of C++ cmath requirements

...that causes a call to std::abs with a short argument to effectively 
select
the double overload (via a template added with http://gcc.gnu.org/git/
?p=gcc.git;a=commit;h=8c0edf5c2aad076cbc805299ed82845ae049f4f6
include/c_std/cmath (abs(_Tp)): Add), see
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-toc.html#2192 Validity 
and
return type of std::abs(0u) is unclear for details.

The workaround is to use int instead of short arguments (and make sure the
integral overloads of std::abs from cstdlib are available).

Change-Id: If95363f9a54abb9cb1a57fd4828c4b91c12bc4be

diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 6119ca2..4bb4c18 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -19,7 +19,7 @@
 
 
 #include ctype.h
-#include stdlib.h
+#include cstdlib
 #include float.h
 #include errno.h
 #include comphelper/string.hxx
diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx
index 6e24040..5738ce6 100644
--- a/svl/source/numbers/zforfind.hxx
+++ b/svl/source/numbers/zforfind.hxx
@@ -104,7 +104,7 @@ private:
 static const sal_uInt8 nMatchedUsedAsReturn; // 0x10
 
 intnSign;   // Sign of number
-short  nMonth;  // Month (1..x) if date
+intnMonth;  // Month (1..x) if date
 // negative = short format
 short  nMonthPos;   // 1 = front, 2 = middle
 // 3 = end
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 0fdaa68..5567c90 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -53,6 +53,7 @@
 
 #include unicode/ubidi.h
 
+#include cstdlib
 #include set
 #include vector
 #include boost/foreach.hpp
@@ -2183,7 +2184,7 @@ bool TextEngine::CreateLines( sal_uLong nPara )
 pTEParaPortion-GetLines().push_back( pL );
 }
 
-const short nInvalidDiff = pTEParaPortion-GetInvalidDiff();
+const int nInvalidDiff = pTEParaPortion-GetInvalidDiff();
 const sal_uInt16 nInvalidStart = pTEParaPortion-GetInvalidPosStart();
 const sal_uInt16 nInvalidEnd =  nInvalidStart + std::abs( nInvalidDiff );
 bool bQuickFormat = false;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Stephan Bergmann
 include/tools/helpers.hxx |   34 --
 1 file changed, 32 insertions(+), 2 deletions(-)

New commits:
commit f51f03a46102333bac6a7fe06bc8538492f413a5
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Mar 5 12:24:14 2014 +0100

Do not needlessly truncate MinMax argument before comparison with bounds

Change-Id: I218e70d6a19901107fd037af255ad29692c850d4
Reviewed-on: https://gerrit.libreoffice.org/8461
Reviewed-by: Stephan Bergmann sberg...@redhat.com
Tested-by: Stephan Bergmann sberg...@redhat.com

diff --git a/include/tools/helpers.hxx b/include/tools/helpers.hxx
index c3cb88f..8b04050 100644
--- a/include/tools/helpers.hxx
+++ b/include/tools/helpers.hxx
@@ -9,9 +9,39 @@
 #ifndef INCLUDED_TOOLS_HELPERS_HXX
 #define INCLUDED_TOOLS_HELPERS_HXX
 
-inline long MinMax( long nVal, long nMin, long nMax )
+#include sal/config.h
+
+#include cassert
+
+#include boost/mpl/or.hpp
+#include boost/type_traits/is_floating_point.hpp
+#include boost/type_traits/is_signed.hpp
+#include boost/type_traits/is_unsigned.hpp
+#include boost/utility/enable_if.hpp
+
+templatetypename T
+inline
+typename boost::enable_if
+boost::mpl::or_ boost::is_signedT, boost::is_floating_pointT , long
+::type
+MinMax(T nVal, long nMin, long nMax)
+{
+assert(nMin = nMax);
+return nVal = nMin
+? (nVal = nMax ? static_castlong(nVal) : nMax) : nMin;
+}
+
+templatetypename T
+inline typename boost::enable_ifboost::is_unsignedT, long::type MinMax(
+T nVal, long nMin, long nMax)
 {
-return nVal = nMin ? ( nVal = nMax ? nVal : nMax ) : nMin;
+assert(nMin = nMax);
+return nMax  0
+? nMax
+: ((nMin  0 || nVal = static_castunsigned long(nMin))
+   ? (nVal = static_castunsigned long(nMax)
+  ? static_castlong(nVal) : nMax)
+   : nMin);
 }
 
 inline long AlignedWidth4Bytes( long nWidthBits )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Stephan Bergmann
 forms/source/component/FormattedField.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 191a50828c8b5aa0f694ea7e1c8e6fce69cd1982
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Mar 5 17:57:11 2014 +0100

simplify

Change-Id: Icd2dff124ca331935412e2653c57943b92deeea4

diff --git a/forms/source/component/FormattedField.cxx 
b/forms/source/component/FormattedField.cxx
index ec4c7cd..533c6fa 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -957,7 +957,7 @@ Any OFormattedModel::translateControlValueToExternalValue( 
) const
 // if this asserts ... well, the somebody set the TreatAsNumeric 
property to false,
 // and the control value is a string. This implies some weird 
misconfiguration
 // of the FormattedModel, so we won't care for it for the moment.
-aExternalValue = (sal_Bool)( fValue ? sal_True : sal_False );
+aExternalValue = fValue != 0.0;
 }
 break;
 default:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/inc

2014-03-05 Thread Kohei Yoshida
 sc/inc/formulagroup.hxx |4 +-
 sc/inc/stlalgorithm.hxx |   79 
 2 files changed, 82 insertions(+), 1 deletion(-)

New commits:
commit 5e34a3236258f47374c34e5c7ab92fde9b981bb7
Author: Kohei Yoshida kohei.yosh...@collabora.com
Date:   Wed Feb 26 16:29:27 2014 -0500

Ensure that numeric array storage is aligned to 256-byte boundary.

OpenCL devices require this else we would get a performance hit.

(cherry picked from commit 03f7a342011a4f69cfcbec7af3e4f1a2e835618b)
(cherry picked from commit 757856e9275d19e2c7a3673d10fa8963fb9fbeb3)

Change-Id: Ie69e07dc5d9b62abad5cc39d1f30e1d770c56758
Reviewed-on: https://gerrit.libreoffice.org/8466
Reviewed-by: Michael Meeks michael.me...@collabora.com
Tested-by: Michael Meeks michael.me...@collabora.com

diff --git a/sc/inc/formulagroup.hxx b/sc/inc/formulagroup.hxx
index 3834e49..602c4a4 100644
--- a/sc/inc/formulagroup.hxx
+++ b/sc/inc/formulagroup.hxx
@@ -13,6 +13,7 @@
 #include address.hxx
 #include types.hxx
 #include platforminfo.hxx
+#include stlalgorithm.hxx
 
 #include svl/sharedstringpool.hxx
 
@@ -28,7 +29,8 @@ namespace sc {
 
 struct FormulaGroupContext : boost::noncopyable
 {
-typedef std::vectordouble NumArrayType;
+typedef AlignedAllocatordouble,256 DoubleAllocType;
+typedef std::vectordouble, DoubleAllocType NumArrayType;
 typedef std::vectorrtl_uString* StrArrayType;
 typedef boost::ptr_vectorNumArrayType NumArrayStoreType;
 typedef boost::ptr_vectorStrArrayType StrArrayStoreType;
diff --git a/sc/inc/stlalgorithm.hxx b/sc/inc/stlalgorithm.hxx
index fb5509f..f788667 100644
--- a/sc/inc/stlalgorithm.hxx
+++ b/sc/inc/stlalgorithm.hxx
@@ -11,6 +11,10 @@
 #define __SC_STLALGORITHM_HXX__
 
 #include functional
+#include limits
+
+#include stdlib.h
+#include malloc.h
 
 /**
  * Function object to allow deleting instances stored in STL containers as
@@ -25,6 +29,81 @@ struct ScDeleteObjectByPtr : public 
::std::unary_functionT*, void
 }
 };
 
+namespace sc {
+
+/**
+ * Custom allocator for STL container to ensure that the base address of
+ * allocated storage is aligned to a specified boundary.
+ */
+templatetypename T, size_t _Alignment
+class AlignedAllocator
+{
+public:
+typedef T value_type;
+typedef size_t size_type;
+typedef std::ptrdiff_t difference_type;
+
+typedef T* pointer;
+typedef const T* const_pointer;
+typedef T* void_pointer;
+
+typedef T reference;
+typedef const T const_reference;
+
+templatetypename _Type2
+struct rebind
+{
+typedef AlignedAllocator_Type2,_Alignment other;
+};
+
+AlignedAllocator() {}
+~AlignedAllocator() {}
+
+templatetypename _Type2
+AlignedAllocator(const AlignedAllocator_Type2,_Alignment) {}
+
+void construct(T* p, const value_type val) { new(p) value_type(val); }
+void destroy(T* p) { p-~value_type(); }
+
+size_type max_size() const
+{
+return std::numeric_limitssize_type::max() / sizeof(value_type);
+}
+
+bool operator== (const AlignedAllocator) const { return true; }
+bool operator!= (const AlignedAllocator) const { return false; }
+
+pointer allocate(size_type n)
+{
+if (!n)
+return NULL;
+
+size_type size = n*sizeof(value_type);
+#ifdef WNT
+return _aligned_malloc(size, _Alignment);
+#elif defined __ANDROID__
+return memalign(align, size);
+#else
+void* ptr;
+int err = posix_memalign(ptr, _Alignment, size);
+if (err)
+ptr = NULL;
+return (pointer)ptr;
+#endif
+}
+
+void deallocate(pointer p, size_type)
+{
+#ifdef WNT
+_aligned_free(p);
+#else
+free(p);
+#endif
+}
+};
+
+}
+
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2014-03-05 Thread Tor Lillqvist
 sc/source/ui/dbgui/dpgroupdlg.cxx |6 +++---
 sc/source/ui/inc/dpgroupdlg.hxx   |2 --
 2 files changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 85901343fd9f5075aba96101f7dc759cc61a25d2
Author: Tor Lillqvist t...@collabora.com
Date:   Wed Mar 5 19:14:22 2014 +0200

WaE: sal_Bool vs. bool

Change-Id: I8d5a959fdca8f7deefffb0c3a0529d2e32595df4

diff --git a/sc/source/ui/dbgui/dpgroupdlg.cxx 
b/sc/source/ui/dbgui/dpgroupdlg.cxx
index b733340..03a9c63 100644
--- a/sc/source/ui/dbgui/dpgroupdlg.cxx
+++ b/sc/source/ui/dbgui/dpgroupdlg.cxx
@@ -230,8 +230,8 @@ ScDPDateGroupDlg::ScDPDateGroupDlg( Window* pParent,
 for( size_t nIdx = 0 ; nIdx  nCount; ++nIdx )
 mpLbUnits-InsertEntry( ScGlobal::GetRscString( nDatePartResIds[nIdx] 
) );
 
-mpEdStart-SetShowDateCentury( sal_True );
-mpEdEnd-SetShowDateCentury( sal_True );
+mpEdStart-SetShowDateCentury( true );
+mpEdEnd-SetShowDateCentury( true );
 
 maStartHelper.SetValue( rInfo.mbAutoStart, rInfo.mfStart );
 maEndHelper.SetValue( rInfo.mbAutoEnd, rInfo.mfEnd );
@@ -278,7 +278,7 @@ ScDPDateGroupDlg::ScDPDateGroupDlg( Window* pParent,
 ScDPNumGroupInfo ScDPDateGroupDlg::GetGroupInfo() const
 {
 ScDPNumGroupInfo aInfo;
-aInfo.mbEnable = sal_True;
+aInfo.mbEnable = true;
 aInfo.mbDateValues = mpRbNumDays-IsChecked();
 aInfo.mbAutoStart = maStartHelper.IsAuto();
 aInfo.mbAutoEnd = maEndHelper.IsAuto();
commit eadce168120506771aa01b83bef25fc325abcbe0
Author: Tor Lillqvist t...@collabora.com
Date:   Wed Mar 5 19:12:58 2014 +0200

WaE: unused private fields

Change-Id: I56d280b896b9e676994750cb684fab23bdc7060f

diff --git a/sc/source/ui/inc/dpgroupdlg.hxx b/sc/source/ui/inc/dpgroupdlg.hxx
index 9ed7c7d..e4f2fcf 100644
--- a/sc/source/ui/inc/dpgroupdlg.hxx
+++ b/sc/source/ui/inc/dpgroupdlg.hxx
@@ -115,8 +115,6 @@ private:
 ScDoubleField*   mpEdEnd;
 ScDoubleField*   mpEdBy;
 OKButton*mpBtnOk;
-CancelButton*mpBtnCancel;
-HelpButton*  mpBtnHelp;
 ScDPNumGroupEditHelper maStartHelper;
 ScDPNumGroupEditHelper maEndHelper;
 };
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/inc

2014-03-05 Thread Kohei Yoshida
 sc/inc/stlalgorithm.hxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b3bc4e283fc941c6f8c334de31fd34031afa0fef
Author: Kohei Yoshida kohei.yosh...@collabora.com
Date:   Wed Mar 5 12:28:21 2014 -0500

Oopsy.

Change-Id: Ie961fca03b99ec14f401462da56dd4110ea5518c
Reviewed-on: https://gerrit.libreoffice.org/8467
Tested-by: Markus Mohrhard markus.mohrh...@googlemail.com
Reviewed-by: Markus Mohrhard markus.mohrh...@googlemail.com

diff --git a/sc/inc/stlalgorithm.hxx b/sc/inc/stlalgorithm.hxx
index f788667..d2beaa6 100644
--- a/sc/inc/stlalgorithm.hxx
+++ b/sc/inc/stlalgorithm.hxx
@@ -82,7 +82,7 @@ public:
 #ifdef WNT
 return _aligned_malloc(size, _Alignment);
 #elif defined __ANDROID__
-return memalign(align, size);
+return memalign(_Alignment, size);
 #else
 void* ptr;
 int err = posix_memalign(ptr, _Alignment, size);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Bug 70414] create VSProject files for code editing in MSVS from gbuild

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70414

--- Comment #17 from Honza Havlíček havlicek.ho...@gmail.com ---
(In reply to comment #16)
 Hello all!
 
 When I try to execute /opt/lo/bin/make vs2012-ide-integration
 , I am getting strange error:
 
 Vort@Vort-PC /cygdrive/e/_Projects/libreoffice-build
 $ /opt/lo/bin/make vs2012-ide-integration
 cd E:/_Projects/libreoffice-core  (LC_MESSAGES=C /opt/lo/bin/make
 cmd=/opt/lo/bin/make -npf Makefile.gbuild all cmd || true) |
 E:/_Projects/libreoffice-core/bin/gbuild-to-ide --ide vs2012
 make[1]: *** No rule to make target `cmd'.  Stop.
 Solution LibreOffice:
 
 What I need to do to fix this?

Hi, 

thank you for trying out the generator. 

You are trying to generate solution in directory
(/cygdrive/e/_Projects/libreoffice-build) other than the one with sources
(E:/_Projects/libreoffice-core/).

I had some problems with that (IIRC the same message you got), try to 
* go to your directory with sources (/cygdrive/e/_Projects/libreoffice-core/) 
* run the autogen.sh with reasonable parameters (e.g. the ones from
https://wiki.documentfoundation.org/Development/Windows_Build_Dependencies)
* run command /opt/lo/bin/make vs2012-ide-integration there.

If that fails, try to build the LO and then /opt/lo/bin/make
vs2012-ide-integration (building shouldn't be necessary, but just to be sure).

I will try to investigate the issue more thoroughly.

-- 
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


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

2014-03-05 Thread Eike Rathke
 sc/source/ui/dbgui/pvfundlg.cxx |   28 ++--
 sc/source/ui/inc/pvfundlg.hxx   |4 ++--
 2 files changed, 16 insertions(+), 16 deletions(-)

New commits:
commit 425c0b91026ea4e319ee195e686befcc98de9e60
Author: Eike Rathke er...@redhat.com
Date:   Wed Mar 5 19:05:24 2014 +0100

more list type correctness

Change-Id: I97cc37c05782b6ab2cd7b8b63a4315ba2386f1ef

diff --git a/sc/source/ui/dbgui/pvfundlg.cxx b/sc/source/ui/dbgui/pvfundlg.cxx
index 2f2910b..9bc0b1c 100644
--- a/sc/source/ui/dbgui/pvfundlg.cxx
+++ b/sc/source/ui/dbgui/pvfundlg.cxx
@@ -176,14 +176,14 @@ void ScDPFunctionListBox::SetSelection( sal_uInt16 
nFuncMask )
 if( (nFuncMask == PIVOT_FUNC_NONE) || (nFuncMask == PIVOT_FUNC_AUTO) )
 SetNoSelection();
 else
-for( sal_uInt16 nEntry = 0, nCount = GetEntryCount(); nEntry  nCount; 
++nEntry )
+for( sal_Int32 nEntry = 0, nCount = GetEntryCount(); nEntry  nCount; 
++nEntry )
 SelectEntryPos( nEntry, (nFuncMask  spnFunctions[ nEntry ]) != 0 
);
 }
 
 sal_uInt16 ScDPFunctionListBox::GetSelection() const
 {
 sal_uInt16 nFuncMask = PIVOT_FUNC_NONE;
-for( sal_uInt16 nSel = 0, nCount = GetSelectEntryCount(); nSel  nCount; 
++nSel )
+for( sal_Int32 nSel = 0, nCount = GetSelectEntryCount(); nSel  nCount; 
++nSel )
 nFuncMask |= spnFunctions[ GetSelectEntryPos( nSel ) ];
 return nFuncMask;
 }
@@ -233,7 +233,7 @@ DataPilotFieldReference ScDPFunctionDlg::GetFieldRef() const
 aRef.ReferenceType = mxLbTypeWrp-GetControlValue();
 aRef.ReferenceField = GetBaseFieldName(mpLbBaseField-GetSelectEntry());
 
-sal_uInt16 nBaseItemPos = mpLbBaseItem-GetSelectEntryPos();
+sal_Int32 nBaseItemPos = mpLbBaseItem-GetSelectEntryPos();
 switch( nBaseItemPos )
 {
 case SC_BASEITEM_PREV_POS:
@@ -309,8 +309,8 @@ void ScDPFunctionDlg::Init( const ScDPLabelData 
rLabelData, const ScPivotFuncDa
 }
 else
 {
-sal_uInt16 nStartPos = mbEmptyItem ? (SC_BASEITEM_USER_POS + 
1) : SC_BASEITEM_USER_POS;
-sal_uInt16 nPos = FindBaseItemPos( 
rFuncData.maFieldRef.ReferenceItemName, nStartPos );
+sal_Int32 nStartPos = mbEmptyItem ? (SC_BASEITEM_USER_POS + 1) 
: SC_BASEITEM_USER_POS;
+sal_Int32 nPos = FindBaseItemPos( 
rFuncData.maFieldRef.ReferenceItemName, nStartPos );
 if( nPos = mpLbBaseItem-GetEntryCount() )
 nPos = (mpLbBaseItem-GetEntryCount()  
SC_BASEITEM_USER_POS) ? SC_BASEITEM_USER_POS : SC_BASEITEM_PREV_POS;
 mpLbBaseItem-SelectEntryPos( nPos );
@@ -331,9 +331,9 @@ const OUString ScDPFunctionDlg::GetBaseItemName(const 
OUString rLayoutName) co
 return itr == maBaseItemNameMap.end() ? rLayoutName : itr-second;
 }
 
-sal_uInt16 ScDPFunctionDlg::FindBaseItemPos( const OUString rEntry, 
sal_uInt16 nStartPos ) const
+sal_Int32 ScDPFunctionDlg::FindBaseItemPos( const OUString rEntry, sal_Int32 
nStartPos ) const
 {
-sal_uInt16 nPos = nStartPos;
+sal_Int32 nPos = nStartPos;
 bool bFound = false;
 while (nPos  mpLbBaseItem-GetEntryCount())
 {
@@ -625,7 +625,7 @@ void ScDPSubtotalOptDlg::Init( const ScDPNameVec 
rDataFields, bool bEnableLayou
 if( m_pLbSortBy-GetEntryCount()  SC_SORTDATA_POS )
 m_pLbSortBy-SetSeparatorPos( SC_SORTDATA_POS - 1 );
 
-sal_uInt16 nSortPos = SC_SORTNAME_POS;
+sal_Int32 nSortPos = SC_SORTNAME_POS;
 if( nSortMode == DataPilotFieldSortMode::DATA )
 {
 nSortPos = FindListBoxEntry( *m_pLbSortBy, 
maLabelData.maSortInfo.Field, SC_SORTDATA_POS );
@@ -691,7 +691,7 @@ void ScDPSubtotalOptDlg::Init( const ScDPNameVec 
rDataFields, bool bEnableLayou
 lclFillListBox( *m_pLbHierarchy, maLabelData.maHiers );
 sal_Int32 nHier = maLabelData.mnUsedHier;
 if( (nHier  0) || (nHier = maLabelData.maHiers.getLength()) ) nHier 
= 0;
-m_pLbHierarchy-SelectEntryPos( static_cast sal_uInt16 ( nHier ) );
+m_pLbHierarchy-SelectEntryPos( static_cast sal_Int32 ( nHier ) );
 m_pLbHierarchy-SetSelectHdl( LINK( this, ScDPSubtotalOptDlg, 
SelectHdl ) );
 }
 else
@@ -706,8 +706,8 @@ void ScDPSubtotalOptDlg::InitHideListBox()
 m_pLbHide-Clear();
 lclFillListBox( *m_pLbHide, maLabelData.maMembers );
 size_t n = maLabelData.maMembers.size();
-for (size_t i = 0; i  n; ++i)
-m_pLbHide-CheckEntryPos(static_castsal_uInt16(i), 
!maLabelData.maMembers[i].mbVisible);
+for (sal_uLong i = 0; i  n; ++i)
+m_pLbHide-CheckEntryPos(i, !maLabelData.maMembers[i].mbVisible);
 bool bEnable = m_pLbHide-GetEntryCount()  0;
 m_pHideFrame-Enable(bEnable);
 }
@@ -718,10 +718,10 @@ ScDPName ScDPSubtotalOptDlg::GetFieldName(const OUString 
rLayoutName) const
 return itr == maDataFieldNameMap.end() ? ScDPName() : itr-second;
 }
 
-sal_uInt16 ScDPSubtotalOptDlg::FindListBoxEntry(
-const ListBox rLBox, const OUString rEntry, 

[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/inc

2014-03-05 Thread Kohei Yoshida
 sc/inc/stlalgorithm.hxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e83598ae9e55e5f3fd21faa296f0e81df1ddca4b
Author: Kohei Yoshida kohei.yosh...@collabora.com
Date:   Wed Mar 5 13:58:56 2014 -0500

Build fix on Windows.

Change-Id: Icbd46d5bc72bdc07490dd45b3d29a4400a66119f

diff --git a/sc/inc/stlalgorithm.hxx b/sc/inc/stlalgorithm.hxx
index d2beaa6..5cc22f2 100644
--- a/sc/inc/stlalgorithm.hxx
+++ b/sc/inc/stlalgorithm.hxx
@@ -80,9 +80,9 @@ public:
 
 size_type size = n*sizeof(value_type);
 #ifdef WNT
-return _aligned_malloc(size, _Alignment);
+return (pointer)_aligned_malloc(size, _Alignment);
 #elif defined __ANDROID__
-return memalign(_Alignment, size);
+return (pointer)memalign(_Alignment, size);
 #else
 void* ptr;
 int err = posix_memalign(ptr, _Alignment, size);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 10 commits - include/sax oox/source sax/source sw/qa sw/source writerfilter/source

2014-03-05 Thread Tomaž Vajngerl
 include/sax/fastattribs.hxx   |1 
 oox/source/token/tokens.txt   |1 
 sax/source/tools/fastattribs.cxx  |6 +
 sw/qa/extras/ooxmlexport/data/AnchorId.docx   |binary
 sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx   |   12 ++
 sw/source/filter/ww8/docxsdrexport.cxx|   76 +--
 writerfilter/source/dmapper/GraphicImport.cxx |  129 --
 writerfilter/source/dmapper/GraphicImport.hxx |   55 ++-
 writerfilter/source/ooxml/model.xml   |   20 +++-
 9 files changed, 219 insertions(+), 81 deletions(-)

New commits:
commit 477684669a03e7c6048b804ca3f3ebec43a4d071
Author: Tomaž Vajngerl tomaz.vajng...@collabora.com
Date:   Wed Mar 5 20:21:58 2014 +0100

ooxml: round-trip test for w14:anchorId  wp14:anchorId

Change-Id: Iada0ba2b6d1450167977915fe95a38b5bab2559c

diff --git a/sw/qa/extras/ooxmlexport/data/AnchorId.docx 
b/sw/qa/extras/ooxmlexport/data/AnchorId.docx
new file mode 100644
index 000..b1b6668
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/AnchorId.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx
index d3e6f6b..ed9f630 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx
@@ -890,6 +890,18 @@ DECLARE_OOXMLEXPORT_TEST(testGroupshapeThemeFont, 
groupshape-theme-font.docx)
 CPPUNIT_ASSERT_EQUAL(OUString(Cambria), getPropertyOUString(xRun, 
CharFontName));
 }
 
+DECLARE_OOXMLEXPORT_TEST(testAnchorIdForWP14AndW14, AnchorId.docx)
+{
+xmlDocPtr pXmlDoc = parseExport(word/document.xml);
+if (!pXmlDoc)
+return;
+
+assertXPath(pXmlDoc, 
/w:document/w:body/w:p[1]/w:r[3]/mc:AlternateContent/mc:Choice/w:drawing/wp:inline,
 anchorId, 78735EFD);
+assertXPath(pXmlDoc, 
/w:document/w:body/w:p[1]/w:r[3]/mc:AlternateContent/mc:Fallback/w:pict/v:rect,
 anchorId, 78735EFD);
+
+
+}
+
 #endif
 
 CPPUNIT_PLUGIN_IMPLEMENT();
commit ce5cca0cdad0a414d7f5a8e007a38755e1ae1b51
Author: Tomaž Vajngerl tomaz.vajng...@collabora.com
Date:   Wed Mar 5 20:21:04 2014 +0100

ooxml export: writer anchorId for inline element

Change-Id: I366c329cbdcafdda87feef73802b4d1be991bb4f

diff --git a/sw/source/filter/ww8/docxsdrexport.cxx 
b/sw/source/filter/ww8/docxsdrexport.cxx
index eeca450..835892c 100644
--- a/sw/source/filter/ww8/docxsdrexport.cxx
+++ b/sw/source/filter/ww8/docxsdrexport.cxx
@@ -405,12 +405,19 @@ void DocxSdrExport::startDMLAnchorInline(const SwFrmFmt* 
pFrmFmt, const Size rS
 }
 else
 {
-m_pImpl-m_pSerializer-startElementNS(XML_wp, XML_inline,
-   XML_distT, 
OString::number(TwipsToEMU(pULSpaceItem.GetUpper())).getStr(),
-   XML_distB, 
OString::number(TwipsToEMU(pULSpaceItem.GetLower())).getStr(),
-   XML_distL, 
OString::number(TwipsToEMU(pLRSpaceItem.GetLeft())).getStr(),
-   XML_distR, 
OString::number(TwipsToEMU(pLRSpaceItem.GetRight())).getStr(),
-   FSEND);
+sax_fastparser::FastAttributeList* aAttrList = 
m_pImpl-m_pSerializer-createAttrList();
+aAttrList-add(XML_distT, 
OString::number(TwipsToEMU(pULSpaceItem.GetUpper())).getStr());
+aAttrList-add(XML_distB, 
OString::number(TwipsToEMU(pULSpaceItem.GetLower())).getStr());
+aAttrList-add(XML_distL, 
OString::number(TwipsToEMU(pLRSpaceItem.GetLeft())).getStr());
+aAttrList-add(XML_distR, 
OString::number(TwipsToEMU(pLRSpaceItem.GetRight())).getStr());
+const SdrObject* pObj = pFrmFmt-FindRealSdrObject();
+if (pObj != NULL)
+{
+OUString sAnchorId = lclGetAnchorIdFromGrabBag(pObj);
+if (!sAnchorId.isEmpty())
+aAttrList-addNS(XML_wp14, XML_anchorId, 
OUStringToOString(sAnchorId, RTL_TEXTENCODING_UTF8));
+}
+m_pImpl-m_pSerializer-startElementNS(XML_wp, XML_inline, aAttrList);
 }
 
 // now the common parts
commit 25acc2efb9df1090f9bb8f696fa1d43508b7a9b8
Author: Tomaž Vajngerl tomaz.vajng...@collabora.com
Date:   Wed Mar 5 20:20:03 2014 +0100

writerfilter: also push anchorId for inline to a FrameGrabBag

Change-Id: I187affa518f0df8717c75855d3ea78a5bea7e69b

diff --git a/writerfilter/source/dmapper/GraphicImport.cxx 
b/writerfilter/source/dmapper/GraphicImport.cxx
index cd014c8..5f6d50d 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -587,6 +587,7 @@ void GraphicImport::lcl_attribute(Id nName, Value rValue)
 //enable overlapping - ignored
 break;
 case NS_ooxml::LN_CT_Anchor_wp14_anchorId:
+case NS_ooxml::LN_CT_Inline_wp14_anchorId:
 {
 OUStringBuffer aBuffer = OUString::number(nIntValue, 16);
   

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

2014-03-05 Thread Miklos Vajna
 writerfilter/source/dmapper/DomainMapper.cxx   |   41 ---
 writerfilter/source/doctok/resources.xmi   |   93 -
 writerfilter/source/rtftok/rtfdocumentimpl.cxx |   84 +++---
 writerfilter/source/rtftok/rtfdocumentimpl.hxx |   16 +++-
 4 files changed, 69 insertions(+), 165 deletions(-)

New commits:
commit 1484eee9437346fce788fb4afc8488900a5c4fd1
Author: Miklos Vajna vmik...@collabora.co.uk
Date:   Wed Mar 5 21:00:51 2014 +0100

writerfilter: remove handling of never-generated sprm:CRgFtc{0,1,2} tokens

Change-Id: Idbdd4d9b8e0498f09c9a66391a8e8d0bd31606ea

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx 
b/writerfilter/source/dmapper/DomainMapper.cxx
index 6e0f4e3..e30f83a 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -1506,47 +1506,6 @@ void DomainMapper::sprmWithProps( Sprm rSprm, 
PropertyMapPtr rContext, SprmType
 case NS_ooxml::LN_EG_RPrBase_kern: // auto kerning is bound to a minimum 
font size in Word - but not in Writer :-(
 rContext-Insert(PROP_CHAR_AUTO_KERNING, uno::makeAny( 
sal_Bool(nIntValue) ) );
 break;
-case NS_sprm::LN_CRgFtc0:  // sprmCRgFtc0 //ascii font index
-case NS_sprm::LN_CRgFtc1:  // sprmCRgFtc1 //Asian font index
-case NS_sprm::LN_CRgFtc2:  // sprmCRgFtc2 //CTL font index
-{
-FontTablePtr pFontTable = m_pImpl-GetFontTable();
-if(nIntValue = 0  pFontTable-size()  sal_uInt32(nIntValue))
-{
-PropertyIds eFontName= PROP_CHAR_FONT_NAME;
-PropertyIds eFontStyle   = PROP_CHAR_FONT_STYLE;
-PropertyIds eFontFamily  = PROP_CHAR_FONT_FAMILY;
-PropertyIds eFontCharSet = PROP_CHAR_FONT_CHAR_SET;
-PropertyIds eFontPitch   = PROP_CHAR_FONT_PITCH;
-switch(nSprmId)
-{
-case NS_sprm::LN_CRgFtc0:
-//already initialized
-break;
-case NS_sprm::LN_CRgFtc1:
-eFontName = PROP_CHAR_FONT_NAME_ASIAN;
-eFontStyle =PROP_CHAR_FONT_STYLE_ASIAN;
-eFontFamily =   PROP_CHAR_FONT_FAMILY_ASIAN;
-eFontCharSet =  PROP_CHAR_FONT_CHAR_SET_ASIAN;
-eFontPitch =PROP_CHAR_FONT_PITCH_ASIAN;
-break;
-case NS_sprm::LN_CRgFtc2:
-eFontName = PROP_CHAR_FONT_NAME_COMPLEX;
-eFontStyle =PROP_CHAR_FONT_STYLE_COMPLEX;
-eFontFamily =   PROP_CHAR_FONT_FAMILY_COMPLEX;
-eFontCharSet =  PROP_CHAR_FONT_CHAR_SET_COMPLEX;
-eFontPitch =PROP_CHAR_FONT_PITCH_COMPLEX;
-break;
-}
-(void)eFontFamily;
-(void)eFontStyle;
-const FontEntry::Pointer_t 
pFontEntry(pFontTable-getFontEntry(sal_uInt32(nIntValue)));
-rContext-Insert(eFontName, uno::makeAny( 
pFontEntry-sFontName  ));
-rContext-Insert(eFontCharSet, uno::makeAny( 
(sal_Int16)pFontEntry-nTextEncoding  ));
-rContext-Insert(eFontPitch, uno::makeAny( 
pFontEntry-nPitchRequest  ));
-}
-}
-break;
 case NS_ooxml::LN_EG_RPrBase_w:
 rContext-Insert(PROP_CHAR_SCALE_WIDTH,
  uno::makeAny( sal_Int16(nIntValue) ));
diff --git a/writerfilter/source/doctok/resources.xmi 
b/writerfilter/source/doctok/resources.xmi
index 7c955d1..5f2b4d8 100644
--- a/writerfilter/source/doctok/resources.xmi
+++ b/writerfilter/source/doctok/resources.xmi
@@ -100,99 +100,6 @@
   /UML:ModelElement.taggedValue
 /UML:Class
 !--SPRM sprmCIco--
-!--SPRM sprmCRgFtc0--
-UML:Class xmi.id=sprmCRgFtc0 name=sprmCRgFtc0
-  UML:ModelElement.stereotype
-UML:Stereotype xmi.idref=ww8sprm/
-  /UML:ModelElement.stereotype
-  UML:ModelElement.taggedValue
-UML:TaggedValue
-  UML:TaggedValue.dataValue0x4A4F/UML:TaggedValue.dataValue
-  UML:TaggedValue.type
-UML:TagDefinition xmi.idref=sprmcode/
-  /UML:TaggedValue.type
-/UML:TaggedValue
-  /UML:ModelElement.taggedValue
-  UML:ModelElement.taggedValue
-UML:TaggedValue
-  
UML:TaggedValue.dataValuertf:sprmCRgFtc0/UML:TaggedValue.dataValue
-  UML:TaggedValue.type
-UML:TagDefinition xmi.idref=sprmid/
-  /UML:TaggedValue.type
-/UML:TaggedValue
-  /UML:ModelElement.taggedValue
-  UML:ModelElement.taggedValue
-UML:TaggedValue
-  UML:TaggedValue.dataValuecharacter/UML:TaggedValue.dataValue
-  UML:TaggedValue.type
-UML:TagDefinition 

[Bug 60739] cut/paste coding redux

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60739

--- Comment #7 from Lenka lenkasaidl...@seznam.cz ---
Hi people, I would like to solve this bug. Any advice for the common place for
that code?

-- 
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


[Bug 60739] cut/paste coding redux

2014-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60739

--- Comment #8 from Michael Meeks michael.me...@collabora.com ---
Lenka - it'd be great to have you working on that =) what I'd suggest you do is
to whack it in one of the source/ui pieces - and then some purist will come
along and sort that out; the key piece is doing the careful de-duplication -
analysing the problem  hacking out the bloat: then trying to work out if the
special cases / differences are deliberate or accidental ;-)

Beyond that the naming of the new headers / classes is up to your creativity -
it's easy to search/replace them in the patch usually as long as they are
reasonably unique.

Thanks so much for looking at this !

-- 
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


[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/inc

2014-03-05 Thread Kohei Yoshida
 sc/inc/stlalgorithm.hxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6a2d5f7f42406487ca2c77ed1c17856c5a4b47b8
Author: Kohei Yoshida kohei.yosh...@collabora.com
Date:   Wed Mar 5 15:35:33 2014 -0500

Build fix for OSX.

Change-Id: I63613c40a5a947625c449fcd52ca129af116c900

diff --git a/sc/inc/stlalgorithm.hxx b/sc/inc/stlalgorithm.hxx
index 5cc22f2..fb2b35b 100644
--- a/sc/inc/stlalgorithm.hxx
+++ b/sc/inc/stlalgorithm.hxx
@@ -14,7 +14,9 @@
 #include limits
 
 #include stdlib.h
+#if defined(WNT) || defined (__ANDROID__)
 #include malloc.h
+#endif
 
 /**
  * Function object to allow deleting instances stored in STL containers as
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 17 commits - sc/source sd/source sfx2/source svtools/source sw/source

2014-03-05 Thread Caolán McNamara
 sc/source/core/data/funcdesc.cxx |2 -
 sd/source/ui/func/fuchar.cxx |   13 ++-
 sd/source/ui/func/fucopy.cxx |   32 ++---
 sd/source/ui/func/fudraw.cxx |2 -
 sd/source/ui/func/fuparagr.cxx   |   34 +++
 sd/source/ui/func/fupoor.cxx |2 -
 sd/source/ui/func/futext.cxx |   23 +---
 sd/source/ui/slideshow/showwin.cxx   |3 +-
 sd/source/ui/slideshow/slideshowimpl.cxx |8 ---
 sfx2/source/doc/docfilt.cxx  |   13 ---
 svtools/source/control/scriptedtext.cxx  |2 -
 sw/source/core/crsr/swcrsr.cxx   |   25 +-
 sw/source/filter/ww8/docxexport.cxx  |7 --
 sw/source/filter/ww8/wrtw8sty.cxx|2 -
 sw/source/filter/ww8/wrtww8.cxx  |2 -
 15 files changed, 93 insertions(+), 77 deletions(-)

New commits:
commit 4516e300534fe982bb42d5b58b872406fa7991c5
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 20:39:27 2014 +

crash indexing -1

Change-Id: Ia339bed9bad3b43ec1e4ea813646cab81cf3a619

diff --git a/svtools/source/control/scriptedtext.cxx 
b/svtools/source/control/scriptedtext.cxx
index 23e5d56..acc1ab7 100644
--- a/svtools/source/control/scriptedtext.cxx
+++ b/svtools/source/control/scriptedtext.cxx
@@ -233,7 +233,7 @@ void SvtScriptedTextHelper_Impl::CalculateBreaks( const 
uno::Reference i18n::XB
 maScriptVec.push_back( nScript );
 nCharIx = nNextCharIx;
 }
-while( nCharIx  nNextPos );
+while( nCharIx  nNextPos  nCharIx != -1 );
 }
 // nothing to do for following portions
 }
commit adb265b23118a8fe172e6ce978c77e4b1e0b0d67
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 20:25:48 2014 +

coverity#982309 Logically dead code

Change-Id: Id05614cf8c90d1c845876e8a6592df8420d57d47

diff --git a/sfx2/source/doc/docfilt.cxx b/sfx2/source/doc/docfilt.cxx
index 60b53bc..f62ae7d 100644
--- a/sfx2/source/doc/docfilt.cxx
+++ b/sfx2/source/doc/docfilt.cxx
@@ -190,7 +190,6 @@ OUString SfxFilter::GetTypeFromStorage(
 throw ( beans::UnknownPropertyException, lang::WrappedTargetException, 
uno::RuntimeException )
 {
 SfxFilterMatcher aMatcher;
-const char* pType=0;
 OUString aName;
 if ( pFilterName )
 {
@@ -243,17 +242,7 @@ OUString SfxFilter::GetTypeFromStorage(
 }
 }
 
-//TODO: do it without SfxFilter
-//TODO/LATER: don't yield FilterName, should be done in FWK!
-OUString aRet;
-if ( pType )
-{
-aRet = OUString::createFromAscii(pType);
-if ( pFilterName )
-*pFilterName = aMatcher.GetFilter4EA( aRet )-GetName();
-}
-
-return aRet;
+return OUString();
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
commit e7da9d42350a7d51798e0c60c7655f99d03aa3f5
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 17:01:45 2014 +

coverity#735941 Dereference after null check

Change-Id: Ic4b27068cb3dc359ec24d4af12c64585a3a3f09a

diff --git a/sw/source/filter/ww8/docxexport.cxx 
b/sw/source/filter/ww8/docxexport.cxx
index b68368c..493a57d 100644
--- a/sw/source/filter/ww8/docxexport.cxx
+++ b/sw/source/filter/ww8/docxexport.cxx
@@ -796,8 +796,11 @@ void DocxExport::WriteSettings()
 FSEND );
 
 // Zoom
-OString aZoom(OString::number(pViewShell-GetViewOptions()-GetZoom()));
-pFS-singleElementNS(XML_w, XML_zoom, FSNS(XML_w, XML_percent), 
aZoom.getStr(), FSEND);
+if (pViewShell)
+{
+OString 
aZoom(OString::number(pViewShell-GetViewOptions()-GetZoom()));
+pFS-singleElementNS(XML_w, XML_zoom, FSNS(XML_w, XML_percent), 
aZoom.getStr(), FSEND);
+}
 
 // Display Background Shape
 if (boost::optionalconst SvxBrushItem* oBrush = getBackground())
commit 8e3593107b6eca1935b3b6134f662542a9013096
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 17:00:11 2014 +

coverity#735944 Dereference after null check

Change-Id: I2123943de85d80127042a5b3e8f5b0c1b2b4f288

diff --git a/sw/source/filter/ww8/wrtw8sty.cxx 
b/sw/source/filter/ww8/wrtw8sty.cxx
index a506801..57266c7 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -1048,7 +1048,7 @@ MSWordSections::MSWordSections( MSWordExportBase rExport 
)
 pSet = pTblNd-GetTable().GetFrmFmt()-GetAttrSet();
 pNd = pTblNd;
 }
-else if ( 0 != ( pSectNd = pNd-FindSectionNode() ) )
+else if (pNd  0 != ( pSectNd = pNd-FindSectionNode() ))
 {
 if ( TOX_HEADER_SECTION == pSectNd-GetSection().GetType() 
  pSectNd-StartOfSectionNode()-IsSectionNode() )
commit c64aac2f18c25f6c8c3c6261c80fd923bed0f9b2

[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - 83/510855eff12832682adfb0c1093ccb5cfc7b13

2014-03-05 Thread Caolán McNamara
 83/510855eff12832682adfb0c1093ccb5cfc7b13 |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 4e8ed518869feed2b2ece1abc10ff4a402768027
Author: Caolán McNamara caol...@redhat.com
Date:   Wed Mar 5 20:42:04 2014 +

Notes added by 'git notes add'

diff --git a/83/510855eff12832682adfb0c1093ccb5cfc7b13 
b/83/510855eff12832682adfb0c1093ccb5cfc7b13
new file mode 100644
index 000..24ebf9b
--- /dev/null
+++ b/83/510855eff12832682adfb0c1093ccb5cfc7b13
@@ -0,0 +1 @@
+merged as: 3b6a4c3bee4696332dd547096d5501e28a195770
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Current Build from Git: Writer-Wizards don't run

2014-03-05 Thread Jean-Baptiste Faure
Hi,
Le 03/03/2014 20:36, Andreas Mantke a écrit :
 Hi Stephan,
 
 Am 03.03.2014 12:02, schrieb Stephan Bergmann:
 On 03/02/2014 05:45 PM, Andreas Mantke wrote:
 I build LibreOffice from the current master on my openSuSE 12.3-x64 and
 the Writer wizzards don't run anymore.

It almost works for me this morning with Version: 4.3.0.0.alpha0+
Build ID: 0b2637dda47690da69f748119081151f41fe4133

Only the documents converter wizard does not start, all others start
as expected. It starts as expected in LO 4.2.3.0.0+.

Best regards
JBF

-- 
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2014-03-05 Thread Zolnai Tamás
 sw/source/core/inc/flyfrm.hxx|   13 +
 sw/source/core/inc/frame.hxx |2 
 sw/source/core/layout/calcmove.cxx   |   15 ++
 sw/source/core/layout/fly.cxx|  181 ++-
 sw/source/core/layout/flylay.cxx |8 +
 sw/source/ui/frmdlg/frmpage.cxx  |   36 +
 sw/source/ui/inc/frmpage.hxx |3 
 sw/uiconfig/swriter/ui/frmaddpage.ui |  233 +--
 8 files changed, 367 insertions(+), 124 deletions(-)

New commits:
commit cb19042f4395c97d123a27c6960d5e30d666c010
Author: Zolnai Tamás tamas.zol...@collabora.com
Date:   Wed Mar 5 22:15:09 2014 +0100

New feature: vertical alignment for text frames: Layout part

- Introduce a new attribute (content position) for fly frames. Content
position specify the top-left corner of the content area (where
frame content can be placed). Add methods and members for invalidation.
- Extract content's height calculation from SwFlyFrm::Format()
to a funtction so we can use this inside SwFlyFrm::MakeContentPos.

Change-Id: I64abb70afb652ad5c11aa69b5ba12a85210e215b

diff --git a/sw/source/core/inc/flyfrm.hxx b/sw/source/core/inc/flyfrm.hxx
index 234e94d..a666a9d 100644
--- a/sw/source/core/inc/flyfrm.hxx
+++ b/sw/source/core/inc/flyfrm.hxx
@@ -118,8 +118,12 @@ protected:
 
 friend class SwNoTxtFrm; // is allowed to call NotifyBackground
 
+Point m_aContentPos;// content area's position relatively to Frm
+bool m_bValidContentPos;
+
 virtual void Format( const SwBorderAttrs *pAttrs = 0 );
 void MakePrtArea( const SwBorderAttrs rAttrs );
+void MakeContentPos( const SwBorderAttrs rAttrs );
 
 void Lock() { bLocked = sal_True; }
 void Unlock()   { bLocked = sal_False; }
@@ -147,6 +151,8 @@ protected:
 
 virtual const IDocumentDrawModelAccess* getIDocumentDrawModelAccess( );
 
+SwTwips CalcContentHeight(const SwBorderAttrs *pAttrs, const SwTwips 
nMinHeight, const SwTwips nUL);
+
 public:
 // #i26791#
 TYPEINFO();
@@ -279,6 +285,13 @@ public:
 virtual   SwFlyFrmFmt *GetFmt();
 
 virtual void dumpAsXml( xmlTextWriterPtr writer ) { 
SwLayoutFrm::dumpAsXml( writer ); };
+
+virtual void Calc() const;
+
+const Point ContentPos() const { return m_aContentPos; }
+Point ContentPos() { return m_aContentPos; }
+
+void InvalidateContentPos();
 };
 #endif
 
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index c78614a..73b32f8 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -682,7 +682,7 @@ public:
 inline SwLayoutFrm *GetPrevLayoutLeaf();
 inline SwLayoutFrm *GetNextLayoutLeaf();
 
-inline void Calc() const;   // here might be formatted
+virtual void Calc() const;  // here might be formatted
 inline void OptCalc() const;// here we assume (for optimization) that
 // the predecessors are already formatted
 
diff --git a/sw/source/core/layout/calcmove.cxx 
b/sw/source/core/layout/calcmove.cxx
index b8e9b12..88be7b6 100644
--- a/sw/source/core/layout/calcmove.cxx
+++ b/sw/source/core/layout/calcmove.cxx
@@ -25,6 +25,7 @@
 #include fmtftn.hxx
 #include editeng/ulspitem.hxx
 #include editeng/keepitem.hxx
+#include svx/sdtaitm.hxx
 
 #include fmtfsize.hxx
 #include fmtanchr.hxx
@@ -581,7 +582,11 @@ void SwFrm::MakePos()
 else
 {
 maFrm.Pos( GetUpper()-Frm().Pos() );
-maFrm.Pos() += GetUpper()-Prt().Pos();
+if( GetUpper()-IsFlyFrm() )
+maFrm.Pos() += 
static_castSwFlyFrm*(GetUpper())-ContentPos();
+else
+maFrm.Pos() += GetUpper()-Prt().Pos();
+
 if( FRM_NEIGHBOUR  nMyType  IsRightToLeft() )
 {
 if( bVert )
@@ -1335,6 +1340,14 @@ void SwCntntFrm::MakeAll()
 if ( nConsequetiveFormatsWithoutChange = cnStopFormat )
 {
 Format();
+
+// When a lower of a vertically aligned fly frame changes it's 
size we need to recalculate content pos.
+if( GetUpper()  GetUpper()-IsFlyFrm() 
+GetUpper()-GetFmt()-GetTextVertAdjust().GetValue() != 
SDRTEXTVERTADJUST_TOP )
+{
+static_castSwFlyFrm*(GetUpper())-InvalidateContentPos();
+GetUpper()-SetCompletePaint();
+}
 }
 #if OSL_DEBUG_LEVEL  0
 else
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index df97a35..5d0aede 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -72,7 +72,8 @@ SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm 
*pAnch ) :
 bLayout( sal_False ),
 bAutoPosition( sal_False ),
 bNoShrink( sal_False ),
-bLockDeleteContent( sal_False )
+bLockDeleteContent( sal_False ),
+

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

2014-03-05 Thread Zolnai Tamás
 source/text/swriter/01/05060900.xhp |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 8942a6afa77f5f9304e566041a0ccf28613c15ec
Author: Zolnai Tamás tamas.zol...@collabora.com
Date:   Wed Mar 5 22:32:49 2014 +0100

New feature: vertical alignment for text frames: help part

Change-Id: I6d1f7785160ce9152cf0919978533bf61e85e51e

diff --git a/source/text/swriter/01/05060900.xhp 
b/source/text/swriter/01/05060900.xhp
index 28ccba4..1c9eae5 100644
--- a/source/text/swriter/01/05060900.xhp
+++ b/source/text/swriter/01/05060900.xhp
@@ -77,6 +77,9 @@
 bookmark xml-lang=en-US branch=hid/modules/swriter/ui/frmaddpage/textflow 
id=bm_id3145787 localize=false/
 paragraph role=heading id=hd_id3145776 xml-lang=en-US level=3 
l10n=U oldref=33Text flow/paragraph
 paragraph role=paragraph id=par_id3151374 xml-lang=en-US l10n=U 
oldref=32ahelp hid=modules/swriter/ui/frmaddpage/textflowSpecifies the 
preferred text flow direction in a frame. To use the default text flow settings 
for the page, select emphUse superordinate object settings /emphfrom the 
list./ahelp/paragraph
+bookmark xml-lang=en-US branch=modules/swriter/ui/frmaddpage/vertalign 
id=bm_id3262733 localize=false/
+paragraph role=heading id=hd_id3151028 xml-lang=en-US level=2 
l10n=U oldref=23Content vertical alignment/paragraph
+paragraph role=paragraph id=par_id3149164 xml-lang=en-US l10n=U 
oldref=24ahelp hid=modules/swriter/ui/frmaddpage/vertalignSpecifies the 
vertical alignment of the frame's content. Mainly it means text content, but it 
also affects tables and other objects anchored to the text area (anchored as 
character, to character or to paragraph), for example frames, graphics or 
drawings./ahelp/paragraph
 embed href=text/shared/00/0004.xhp#related/
 paragraph role=paragraph id=par_id3150689 xml-lang=en-US l10n=U 
oldref=34link href=text/shared/01/05040200.xhp name=Text directionText 
direction/link./paragraph
 /body
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2

2014-03-05 Thread Zolnai Tamás
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 20c03592d9c436a6566f926154f46cbba0919675
Author: Zolnai Tamás tamas.zol...@collabora.com
Date:   Wed Mar 5 22:32:49 2014 +0100

Updated core
Project: help  8942a6afa77f5f9304e566041a0ccf28613c15ec

diff --git a/helpcontent2 b/helpcontent2
index 89290ae..8942a6a 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit 89290aeb021a3ab91a0a091537eaa7c8194c8449
+Subproject commit 8942a6afa77f5f9304e566041a0ccf28613c15ec
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


  1   2   3   >