[Libreoffice] Errors in LibreOffice

2011-03-06 Thread Stefan Lindel

Hi,

where can i submit errors in LibreOffice?


mfg

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


[Libreoffice] [PATCH] 1/2 fdo#34896 make color palette size consistent

2011-03-06 Thread Xavier ALT
Hi,

This patch series fix make the color palette size consistent everywhere.
Related to bug fdo#34896 (https://bugs.freedesktop.org//show_bug.cgi?id=34896)

It's my first patch for LibreOffice, so don't hesitate to correct me if
something is wrong.

Cheers,
--
Xavier ALT
From 92dee34f55738f241dc832fcf9b0a8021f82af9c Mon Sep 17 00:00:00 2001
From: Xavier ALT d...@phoenix-ind.net
Date: Sun, 6 Mar 2011 10:00:50 +0100
Subject: [PATCH] fdo#34896 make color palette size consistent (8x13)

---
 svx/source/tbxctrls/tbcontrl.cxx |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 41662cc..14c45e4 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -813,8 +813,8 @@ void SvxFontNameBox_Impl::Select()
 #define WB_NO_DIRECTSELECT  ((WinBits)0x0400)
 #endif
 
-#define PALETTE_X 10
-#define PALETTE_Y 11
+#define PALETTE_X 8
+#define PALETTE_Y 13
 #define PALETTE_SIZE (PALETTE_X * PALETTE_Y)
 
 SvxColorWindow_Impl::SvxColorWindow_Impl( const OUStringrCommand,
-- 
1.7.1

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


[Libreoffice] [PATCH] 2/2 fdo#34896 make color palette size consistent

2011-03-06 Thread Xavier ALT
second patch.
--
Xavier ALT

From f053a65fe610f77926f5b07288f346b0b901500f Mon Sep 17 00:00:00 2001
From: Xavier ALT d...@phoenix-ind.net
Date: Sun, 6 Mar 2011 10:02:54 +0100
Subject: [PATCH] fdo#34896 color palette size (8x13), only show scrollbar when needed

---
 cui/source/options/optchart.cxx  |7 +--
 cui/source/tabpages/backgrnd.cxx |8 
 cui/source/tabpages/tpcolor.cxx  |5 -
 3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index 4046db1..eddf334 100644
--- a/cui/source/options/optchart.cxx
+++ b/cui/source/options/optchart.cxx
@@ -69,9 +69,9 @@ SvxDefaultColorOptPage::SvxDefaultColorOptPage( Window* pParent, const SfxItemSe
 aValSetColorBox.SetSelectHdl( LINK( this, SvxDefaultColorOptPage, BoxClickedHdl ) );
 
 aValSetColorBox.SetStyle( aValSetColorBox.GetStyle()
-| WB_VSCROLL | WB_ITEMBORDER | WB_NAMEFIELD );
+| WB_ITEMBORDER | WB_NAMEFIELD );
 aValSetColorBox.SetColCount( 8 );
-aValSetColorBox.SetLineCount( 12 );
+aValSetColorBox.SetLineCount( 13 );
 aValSetColorBox.SetExtraSpacing( 0 );
 aValSetColorBox.Show();
 
@@ -143,6 +143,9 @@ void SvxDefaultColorOptPage::FillColorBox()
 long nCount = pColorTab-Count();
 XColorEntry* pColorEntry;
 
+if( nCount  104 )
+aValSetColorBox.SetStyle( aValSetColorBox.GetStyle() | WB_VSCROLL );
+
 for( long i = 0; i  nCount; i++ )
 {
 pColorEntry = pColorTab-GetColor( i );
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index 9aabee4..44a93a7 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -1154,13 +1154,13 @@ void SvxBackgroundTabPage::FillColorValueSets_Impl()
 aBackgroundColorSet.InsertItem(	i + 1, pEntry-GetColor(), pEntry-GetName() );
 }
 
-while ( i  80 )
+while ( i  104 )
 {
 aBackgroundColorSet.InsertItem( i + 1, aColWhite, aStrWhite );
 i++;
 }
 
-if ( nCount  80 )
+if ( nCount  104 )
 {
 aBackgroundColorSet.SetStyle( nBits | WB_VSCROLL );
 }
@@ -1169,8 +1169,8 @@ void SvxBackgroundTabPage::FillColorValueSets_Impl()
 if ( bOwn )
 delete pColorTable;
 
-aBackgroundColorSet.SetColCount( 10 );
-aBackgroundColorSet.SetLineCount( 10 );
+aBackgroundColorSet.SetColCount( 8 );
+aBackgroundColorSet.SetLineCount( 13 );
 aBackgroundColorSet.CalcWindowSizePixel( aSize15x15 );
 
 }
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index 984e97f..603849b 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -162,7 +162,7 @@ SvxColorTabPage::SvxColorTabPage
 // ValueSet
 aValSetColorTable.SetStyle( aValSetColorTable.GetStyle() | WB_VSCROLL | WB_ITEMBORDER );
 aValSetColorTable.SetColCount( 8 );
-aValSetColorTable.SetLineCount( 10 );
+aValSetColorTable.SetLineCount( 13 );
 aValSetColorTable.SetExtraSpacing( 0 );
 aValSetColorTable.Show();
 
@@ -1142,6 +1142,9 @@ void SvxColorTabPage::FillValueSet_Impl( ValueSet rVs )
 long nCount = pColorTab-Count();
 XColorEntry* pColorEntry;
 
+if( nCount  104 )
+rVs.SetStyle( rVs.GetStyle() | WB_VSCROLL );
+
 for( long i = 0; i  nCount; i++ )
 {
 pColorEntry = pColorTab-GetColor( i );
-- 
1.7.1

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


[Libreoffice] be-BY and ns locale codes in LibreOffice

2011-03-06 Thread Andras Timar
Hi,

Do you know why 'be-BY' code was used in LibreOffice instead of
simpler form 'be' (Belarusian)?
Do you know why 'ns' was used instead of the standard (ISO 639-2)
'nso' for Northern Sotho?
If I replace them, i.e. be-BY - be and ns - nso, can it break anything?

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


Re: [Libreoffice] Remove using namespace ::rtl

2011-03-06 Thread Pierre-André Jacquod
Hello,

 Finally since I'm not sure for the moment about what must be done on
 using namespace com::sun::star::uno, I did the work on binfilters.

Thanks
regards
Pierre-André
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [PATCH] [PUSHED] Easy Hacks: Translation of Comments from German to English

2011-03-06 Thread Pierre-André Jacquod
Hello,
thanks, just changed a typo
best regards
Pierre-André

On 03/06/2011 04:10 PM, Daniel Di Marco wrote:
 Hi,
 
 I translated some more comments. The patch is attached.
 
 
 Cheers,
 Daniel
 
 
 
 ___
 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] [PATCH] Additional translations of German comments in libs-core/editeng

2011-03-06 Thread Albert Thuswaldner
Hi,
While tidying up my local repo I discovered some changes that did not
get properly pushed to master. It is all my fault, my patch back then
was humungous.

You can commit the patch under the terms of MPL 1.1 / GPLv3+ / LGPLv3+
triple license.

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


Re: [Libreoffice] [PATCH] Additional translations of German comments in libs-core/editeng

2011-03-06 Thread Albert Thuswaldner
And now the actual patch

/Albert

On Sun, Mar 6, 2011 at 20:49, Albert Thuswaldner
albert.thuswald...@gmail.com wrote:
 Hi,
 While tidying up my local repo I discovered some changes that did not
 get properly pushed to master. It is all my fault, my patch back then
 was humungous.

 You can commit the patch under the terms of MPL 1.1 / GPLv3+ / LGPLv3+
 triple license.

 /Albert



editeng-additional-fixes.diff.gz
Description: GNU Zip compressed data
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] [PATCH] Additional translations of German comments in libs-core/sfx2/sdi

2011-03-06 Thread Albert Thuswaldner
.. and a tiny additional patch.

You can commit the patch under the terms of MPL 1.1 / GPLv3+ / LGPLv3+
triple license.

/Albert
diff --git a/sfx2/sdi/frmslots.sdi b/sfx2/sdi/frmslots.sdi
index 7f66212..e73dbc7 100644
--- a/sfx2/sdi/frmslots.sdi
+++ b/sfx2/sdi/frmslots.sdi
@@ -276,12 +276,12 @@ interface Window
 ExecMethod = ExecView_Impl;
 ]
 
-// Nur fur Gestalter: Slot mu\s vorhanden sein
+// Only for Designers: Slot must be present
 SID_STYLE_NEW
 [
 ]
 
-// Nur fur Gestalter: Slot mu\s vorhanden sein
+// Only for Designers: Slot must be present
 SID_STYLE_DRAGHIERARCHIE
 [
 ]
@@ -328,7 +328,7 @@ interface BrowseWindow : Window
 {
 SID_ACTIVATE // ole(no) api(final/play/rec)
 [
-// Implementierung in Subklassen
+// Implementations in Subclasses
 ]
 SID_NEWWINDOW // ole(no) api(play/rec)
 [
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Compilation failed in sd part.

2011-03-06 Thread Julien Nabet

Hello,

After this command today :
make clean  ./autogen.sh  make
I've got an error in sd part.
After building the specific part, I've got this :
Entering /home/maryline/compile-libreoffice/libo/sd/util

Making:libsdli.so
../unxlngi6.pro/slo/outlview.o: In function 
`sd::OutlineView::PrepareClose(unsigned char)':
outlview.cxx:(.text+0x240e): undefined reference to `typeinfo for 
sd::UndoManager'
outlview.cxx:(.text+0x242b): undefined reference to 
`sd::UndoManager::SetLinkedUndoManager(SfxUndoManager*)'
../unxlngi6.pro/slo/outlview.o: In function 
`sd::OutlineView::OutlineView(sd::DrawDocShell*, Window*, 
sd::OutlineViewShell*)':
outlview.cxx:(.text+0x45f8): undefined reference to `typeinfo for 
sd::UndoManager'
outlview.cxx:(.text+0x4627): undefined reference to 
`sd::UndoManager::SetLinkedUndoManager(SfxUndoManager*)'
../unxlngi6.pro/slo/outlview.o: In function 
`sd::OutlineView::OutlineView(sd::DrawDocShell*, Window*, 
sd::OutlineViewShell*)':
outlview.cxx:(.text+0x4bb2): undefined reference to `typeinfo for 
sd::UndoManager'
outlview.cxx:(.text+0x4be1): undefined reference to 
`sd::UndoManager::SetLinkedUndoManager(SfxUndoManager*)'
../unxlngi6.pro/slo/ImpressViewShellBase.o: In function 
`sd::ImpressViewShellBase::~ImpressViewShellBase()':
ImpressViewShellBase.cxx:(.text+0x11b): undefined reference to 
`sd::MasterPageObserver::Instance()'
ImpressViewShellBase.cxx:(.text+0x124): undefined reference to 
`sd::MasterPageObserver::UnregisterDocument(SdDrawDocument)'
../unxlngi6.pro/slo/ImpressViewShellBase.o: In function 
`sd::ImpressViewShellBase::~ImpressViewShellBase()':
ImpressViewShellBase.cxx:(.text+0x189): undefined reference to 
`sd::MasterPageObserver::Instance()'
ImpressViewShellBase.cxx:(.text+0x192): undefined reference to 
`sd::MasterPageObserver::UnregisterDocument(SdDrawDocument)'
../unxlngi6.pro/slo/ImpressViewShellBase.o: In function 
`sd::ImpressViewShellBase::~ImpressViewShellBase()':
ImpressViewShellBase.cxx:(.text+0x1ff): undefined reference to 
`sd::MasterPageObserver::Instance()'
ImpressViewShellBase.cxx:(.text+0x208): undefined reference to 
`sd::MasterPageObserver::UnregisterDocument(SdDrawDocument)'
../unxlngi6.pro/slo/ImpressViewShellBase.o: In function 
`sd::ImpressViewShellBase::ImpressViewShellBase(SfxViewFrame*, 
SfxViewShell*)':
ImpressViewShellBase.cxx:(.text+0x283): undefined reference to 
`sd::MasterPageObserver::Instance()'
ImpressViewShellBase.cxx:(.text+0x28c): undefined reference to 
`sd::MasterPageObserver::RegisterDocument(SdDrawDocument)'
../unxlngi6.pro/slo/ImpressViewShellBase.o: In function 
`sd::ImpressViewShellBase::ImpressViewShellBase(SfxViewFrame*, 
SfxViewShell*)':
ImpressViewShellBase.cxx:(.text+0x2f7): undefined reference to 
`sd::MasterPageObserver::Instance()'
ImpressViewShellBase.cxx:(.text+0x300): undefined reference to 
`sd::MasterPageObserver::RegisterDocument(SdDrawDocument)'
../unxlngi6.pro/slo/ViewShellImplementation.o: In function 
`sd::ViewShell::Implementation::ProcessModifyPageSlot(SfxRequest, 
SdPage*, PageKind)':
ViewShellImplementation.cxx:(.text+0x9a7): undefined reference to 
`sd::UndoAutoLayoutPosAndSize::UndoAutoLayoutPosAndSize(SdPage)'
../unxlngi6.pro/slo/docshell.o: In function 
`sd::DrawDocShell::Construct(bool)':
docshell.cxx:(.text+0x1332): undefined reference to 
`sd::UndoManager::UndoManager(unsigned short)'
docshell.cxx:(.text+0x1352): undefined reference to `vtable for 
sd::UndoFactory'
../unxlngi6.pro/slo/drawdoc2.o: In function 
`SdDrawDocument::GetUndoManager() const':
drawdoc2.cxx:(.text+0x77): undefined reference to `typeinfo for 
sd::UndoManager'

../unxlngi6.pro/slo/sdpage.o: In function `.L796':
sdpage.cxx:(.text+0x3fa2): undefined reference to 
`sd::UndoObjectUserCall::UndoObjectUserCall(SdrObject)'
sdpage.cxx:(.text+0x401b): undefined reference to 
`sd::UndoObjectPresentationKind::UndoObjectPresentationKind(SdrObject)'
../unxlngi6.pro/slo/sdpage.o: In function 
`SdPage::InsertAutoLayoutShape(SdrObject*, PresObjKind, bool, Rectangle, 
bool)':
sdpage.cxx:(.text+0x47a3): undefined reference to 
`sd::UndoObjectUserCall::UndoObjectUserCall(SdrObject)'
sdpage.cxx:(.text+0x4cb0): undefined reference to 
`sd::UndoObjectPresentationKind::UndoObjectPresentationKind(SdrObject)'
../unxlngi6.pro/slo/sdpage.o: In function `SdPage::Changed(SdrObject 
const, SdrUserCallType, Rectangle const)':
sdpage.cxx:(.text+0x8dd8): undefined reference to 
`sd::UndoObjectUserCall::UndoObjectUserCall(SdrObject)'
../unxlngi6.pro/slo/ToolPanelViewShell.o: In function 
`sd::toolpanel::ToolPanelViewShell::RegisterControls()':
ToolPanelViewShell.cxx:(.text+0xa18): undefined reference to 
`sd::toolpanel::controls::MasterPagesSelector::RegisterInterface(SfxModule*)'

../unxlngi6.pro/slo/ToolPanelViewShell.o: In function `.L931':
ToolPanelViewShell.cxx:(.text+0x2aaf): undefined reference to 
`sd::toolpanel::controls::TableDesignPanel::CreateControlFactory(sd::toolpanel::ToolPanelViewShell)'

../unxlngi6.pro/slo/ToolPanelViewShell.o: In function 

Re: [Libreoffice] Question about using namespace ::com::sun::star::uno

2011-03-06 Thread Julien Nabet

Le 04/03/2011 23:48, Julien Nabet a écrit :

Hello,

I just finished the removing of using reference ::rtl:: in each 
directory (binfilters included).
I'd like to be sure of what has to be done for ::com::sun::star::uno 
part

1) remove using namespace ::com::sun::star::uno ok
2) replace Reference by uno::Reference ok
3) But what about use ::com::sun::star ? Must we replace this :
using namespace ::com::sun::star::uno
by this :
using ::com::sun::star
?

Julien.

Hello,

I attached a patch which is a first try.
The patched file, sc/source/filter/xml/xmlstyli.cxx already had
using com::sun::star::uno::Reference;
but he had too :
using namespace ::com::sun::star:uno;

So I removed the using namespace and had to add :
using com::sun::star::uno::UNO_QUERY;
for the compilation.
Is this patch ok ?

If it's ok, 2 remarks :
1) this file also has this :
using namespace ::com::sun::star;
using namespace ::com::sun::star::xml::sax;
using namespace ::com::sun::star::style;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
Is the Reference problem which needs the removing of using namespace 
::com::sun::star::uno the only one or may there be some others using 
namespace to remove ?
I read in some websites that it's better to remove using namespace in 
include files to avoid conflicts.


2) like the other replacement (using namespace ::rtl), the changes will 
certainly give some errors that i won't see since, obviously, i don't 
compile with all environments and all the combinations of options. The 
pb is there may be a lot more errors than when i made replacements for 
using namespace ::rtl.


Some ideas/remarks ?

Julien.
commit 7eb6236ba55213c0558f7a4408d6d22a4e011061
Author: Julien Nabet serval2...@yahoo.fr
Date:   Sun Mar 6 22:57:37 2011 +0100

First try of removing using namespace ::com::sun::star::uno

diff --git a/sc/source/filter/xml/xmlstyli.cxx 
b/sc/source/filter/xml/xmlstyli.cxx
index 302fe8e..bf8478a 100644
--- a/sc/source/filter/xml/xmlstyli.cxx
+++ b/sc/source/filter/xml/xmlstyli.cxx
@@ -67,7 +67,6 @@
 #define XML_LINE_BLTR 1
 
 using namespace ::com::sun::star;
-using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::xml::sax;
 using namespace ::com::sun::star::style;
 using namespace ::com::sun::star::frame;
@@ -78,6 +77,7 @@ using namespace ::formula;
 
 using rtl::OUString;
 using com::sun::star::uno::Reference;
+using com::sun::star::uno::UNO_QUERY;
 
 ScXMLCellImportPropertyMapper::ScXMLCellImportPropertyMapper(
 const UniReference XMLPropertySetMapper  rMapper,
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] What's Standing In The Way of Your Success?

2011-03-06 Thread Kimberly Choate

Let's face it, in today's economic environment, it has become increasingly 
difficult to make real life changing income working for someone else.

Unemployment, layoffs, foreclosures and bankruptcy are at an all time high and 
in it's not going to change any time soon.

So what can YOU do?

Take control of your financial destiny.  Find out how to create your own 
virtual business and start building your future today.  Visit  
http://on.fb.me/hdZOcs?t=lnp for more information.

Best,

Kimberly



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


[Libreoffice] A missing file

2011-03-06 Thread Darryl Rooks
The dll file shlxthdl_x64.dll is missing from the 3.3.1 Windows 
distribution.

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


[Libreoffice] [PUSHED] Comment-translation

2011-03-06 Thread Martin Kepplinger
Hi,

This translates all german code comments in writer/sw/source/ui/envelp to
english. Please note that this is already pushed to master and posted for 
review and visibility only!

Thanks you!

martin

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


[Libreoffice] [PATCH 1/2] Translate german comments

2011-03-06 Thread Martin Kepplinger
This translates german code comments in writer/sw/source/ui/envelp to english.

This is contributed under the terms of the MPL 1.1 / GPLv3+ / LGPLv3+ triple
license.
---
 sw/source/ui/envelp/envfmt.cxx  |   34 +-
 sw/source/ui/envelp/envfmt.hrc  |6 +++---
 sw/source/ui/envelp/envlop.hrc  |6 +++---
 sw/source/ui/envelp/envlop1.cxx |4 ++--
 4 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx
index e01b532..d0d608a 100644
--- a/sw/source/ui/envelp/envfmt.cxx
+++ b/sw/source/ui/envelp/envfmt.cxx
@@ -120,7 +120,7 @@ SwEnvFmtPage::SwEnvFmtPage(Window* pParent, const 
SfxItemSet rSet) :
 SetMetric(aSizeWidthField,  aMetric);
 SetMetric(aSizeHeightField, aMetric);
 
-// Menues einhaengen
+// Hook in Menues
 ::pMenu = new PopupMenu(SW_RES(MNU_EDIT));
 aAddrEditButton.SetPopupMenu(::pMenu);
 aSendEditButton.SetPopupMenu(::pMenu);
@@ -206,7 +206,7 @@ IMPL_LINK_INLINE_START( SwEnvFmtPage, ModifyHdl, Edit *, 
pEdit )
 if (aIDs[i] == (USHORT)ePaper)
 aSizeFormatBox.SelectEntryPos(i);
 
-// Benutzergroesse merken
+// remember user size
 if (aIDs[aSizeFormatBox.GetSelectEntryPos()] == (USHORT)PAPER_USER)
 {
 lUserW = lWidth ;
@@ -230,7 +230,7 @@ IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton )
 SwWrtShell* pSh = GetParent()-pSh;
 OSL_ENSURE(pSh, Shell missing);
 
-// Collection-Ptr ermitteln
+// determine collection-ptr
 BOOL bSender = pButton != aAddrEditButton;
 
 SwTxtFmtColl* pColl = pSh-GetTxtCollFromPool( static_cast USHORT (
@@ -243,11 +243,11 @@ IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton )
 {
 SfxItemSet *pCollSet = GetCollItemSet(pColl, bSender);
 
-// Damit die Hintergrundfarbe nicht uebergebuegelt wird:
+// In order for the background color not to get ironed over:
 SfxAllItemSet aTmpSet(*pCollSet);
 
-// Das CHRATR_BACKGROUND-Attribut wird fuer den Dialog in
-// ein RES_BACKGROUND verwandelt und wieder zurueck ...
+// The CHRATR_BACKGROUND attribute gets transformed into a
+// RES_BACKGROUND for the dialog and back again ... 
 const SfxPoolItem *pTmpBrush;
 
 if( SFX_ITEM_SET == aTmpSet.GetItemState( RES_CHRATR_BACKGROUND,
@@ -287,10 +287,10 @@ IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton )
 {
 SfxItemSet *pCollSet = GetCollItemSet(pColl, bSender);
 
-// Damit die Tabulatoren nicht uebergebuegelt werden:
+// In order for the tabulators not to get ironed over:
 SfxAllItemSet aTmpSet(*pCollSet);
 
-// Insert tabs, default tabs ito ItemSet
+// Insert tabs, default tabs into ItemSet
 const SvxTabStopItem rDefTabs = (const SvxTabStopItem)
 
pSh-GetView().GetCurShell()-GetPool().GetDefaultItem(RES_PARATR_TABSTOP);
 
@@ -302,20 +302,20 @@ IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton )
 SfxUInt16Item aTabPos( SID_ATTR_TABSTOP_POS, 0 );
 aTmpSet.Put( aTabPos );
 
-// linker Rand als Offset
+// left border as offset
 const long nOff = ((SvxLRSpaceItem)aTmpSet.Get( RES_LR_SPACE )).
 GetTxtLeft();
 SfxInt32Item aOff( SID_ATTR_TABSTOP_OFFSET, nOff );
 aTmpSet.Put( aOff );
 
-// BoxInfo setzen
+// set BoxInfo 
 ::PrepareBoxInfo( aTmpSet, *pSh );
 
 SwParaDlg *pDlg = new SwParaDlg(GetParent(), pSh-GetView(), 
aTmpSet, DLG_ENVELOP, pColl-GetName());
 
 if ( pDlg-Execute() == RET_OK )
 {
-// Defaults evtl umsetzen
+// maybe relocate defaults 
 const SfxPoolItem* pItem = 0;
 SfxItemSet* pOutputSet = (SfxItemSet*)pDlg-GetOutputItemSet();
 USHORT nNewDist;
@@ -342,7 +342,7 @@ IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton )
 }
 
 /*
-  Beschreibung: Ein temporaeres Itemset, das bei Abbruch verworfen wird
+  Description: A temporary Itemset that gets discarded at abort
 */
 
 SfxItemSet *SwEnvFmtPage::GetCollItemSet(SwTxtFmtColl* pColl, BOOL bSender)
@@ -351,7 +351,7 @@ SfxItemSet *SwEnvFmtPage::GetCollItemSet(SwTxtFmtColl* 
pColl, BOOL bSender)
 
 if (!pAddrSet)
 {
-// Range ermitteln (Ranges beider Itemsets mergen)
+// determine range (merge both Itemsets' ranges)
 const USHORT *pRanges = pColl-GetAttrSet().GetRanges();
 
 static USHORT const aRanges[] =
@@ -367,7 +367,7 @@ SfxItemSet *SwEnvFmtPage::GetCollItemSet(SwTxtFmtColl* 

[Libreoffice] [PATCH 2/2] Translate german comments

2011-03-06 Thread Martin Kepplinger
This translates the remaining german code comments in writer/sw/source/ui/envelp
to english.

This is contributed under the terms of the MPL 1.1 / GPLv3+ / LGPLv3+ triple
license.
---
 sw/source/ui/envelp/envprt.hrc   |6 +++---
 sw/source/ui/envelp/label.hrc|6 +++---
 sw/source/ui/envelp/label1.cxx   |4 ++--
 sw/source/ui/envelp/labfmt.cxx   |   36 ++--
 sw/source/ui/envelp/labfmt.hrc   |6 +++---
 sw/source/ui/envelp/labprt.cxx   |2 +-
 sw/source/ui/envelp/labprt.hrc   |4 ++--
 sw/source/ui/envelp/labprt.hxx   |2 +-
 sw/source/ui/envelp/mailmrge.hrc |2 +-
 9 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/sw/source/ui/envelp/envprt.hrc b/sw/source/ui/envelp/envprt.hrc
index 044b0cb..3ee2c10 100644
--- a/sw/source/ui/envelp/envprt.hrc
+++ b/sw/source/ui/envelp/envprt.hrc
@@ -30,7 +30,7 @@
 
 #include envelp.hrc
 
-// Lokale Resourcen *
+// local resources *
 
 #define BOX_ALIGN  1
 #define BTN_TOP7
@@ -44,7 +44,7 @@
 #define BTN_PRTSETUP  15
 #define FL_PRINTER16
 
-// Globale Resourcen 
+// global resources 
 
 #define BMP_HOR_LEFT_LOWER  (RC_ENVPRT_BEGIN )
 #define BMP_HOR_LEFT_UPPER  (RC_ENVPRT_BEGIN +  1)
@@ -67,7 +67,7 @@
 #define ITM_VER_CNTR(RC_ENVPRT_BEGIN + 16)
 #define ITM_VER_RGHT(RC_ENVPRT_BEGIN + 17)
 
-// Ueberlaufpruefung 
+// overflow check 
 
 #define ENVPRT_ACT_END  ITM_VER_RGHT
 
diff --git a/sw/source/ui/envelp/label.hrc b/sw/source/ui/envelp/label.hrc
index c74d9fb..02b25f3 100644
--- a/sw/source/ui/envelp/label.hrc
+++ b/sw/source/ui/envelp/label.hrc
@@ -30,7 +30,7 @@
 
 #include envelp.hrc
 
-// Lokale Resourcen *
+// local resources *
 
 #define TXT_WRITING   1
 #define BOX_ADDR  2
@@ -110,11 +110,11 @@
 //#define FT_MOBILE72
 #define FT_FAX 73
 
-// Globale Resourcen 
+// global resources 
 #define STR_DOC_TITLE  (RC_LABEL_BEGIN)
 #define STR_CUSTOM (RC_LABEL_BEGIN + 1)
 
-// Ueberlaufpruefung 
+// overflow check 
 
 #define LABEL_ACT_END  STR_CUSTOM
 
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index bdc0ca1..c035303 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -126,7 +126,7 @@ SwLabDlg::SwLabDlg(Window* pParent, const SfxItemSet rSet,
 
 GetOKButton().SetText(String(SW_RES(STR_BTN_NEW_DOC)));
 GetOKButton().SetHelpId(HID_LABEL_INSERT);
-GetOKButton().SetHelpText(aEmptyStr);  // Damit generierter Hilfetext 
verwendet wird
+GetOKButton().SetHelpText(aEmptyStr);  // in order for generated help 
text to get used
 
 AddTabPage(TP_LAB_LAB, m_bLabel ? sFormat : sMedium ,SwLabPage   ::Create, 
0, sal_False, 0);
 AddTabPage(TP_VISITING_CARDS, SwVisitingCardPage::Create, 0);
@@ -197,7 +197,7 @@ void SwLabDlg::GetLabItem(SwLabItem rItem)
 
 if (rActItem != rOldItem)
 {
-// Wurde schon mal mit (hoffentlich) korrektem Inhalt geputtet
+// Was already put with (hopefully) correct content
 rItem = rActItem;
 }
 else
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
index acabdaf..fb3ae4d 100644
--- a/sw/source/ui/envelp/labfmt.cxx
+++ b/sw/source/ui/envelp/labfmt.cxx
@@ -128,7 +128,7 @@ void SwLabPreview::Paint(const Rectangle )
 aPaintFont.SetTransparent(FALSE);
 SetFont(aPaintFont);
 
-// Groesse des darzustellenden Bereichs
+// size of region to be displayed
 long lDispW = ROUND(aItem.lLeft  + aItem.lHDist);
 long lDispH = ROUND(aItem.lUpper + aItem.lVDist);
 if (aItem.nCols == 1)
@@ -140,12 +140,12 @@ void SwLabPreview::Paint(const Rectangle )
 else
 lDispH += ROUND(aItem.lVDist / 10);
 
-// Scale factor Skalierungsfaktor
+// Scale factor 
 float fx = (float) lOutWPix23 / Max(1L, lDispW),
   fy = (float) lOutHPix23 / Max(1L, lDispH),
   f  = fx  fy ? fx : fy;
 
-// Nullpunkt
+// zero point 
 long lOutlineW = ROUND(f * lDispW);
 long lOutlineH = ROUND(f * lDispH);
 
@@ -158,17 +158,17 @@ void SwLabPreview::Paint(const Rectangle )
 long lX3 = ROUND(lX0 + f * (aItem.lLeft  + aItem.lHDist ));
 long lY3 = ROUND(lY0 + f * (aItem.lUpper + aItem.lVDist ));
 
-// 

[Libreoffice] Translation okay?

2011-03-06 Thread Martin Kepplinger
Hey!

There are some german error messages like in the appended patch lying around.
Would that patch be okay to do? I'm just checking before I may push such kind 
of translations.

Thanks!

martin

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


[Libreoffice] [PATCH] Translate an error message

2011-03-06 Thread Martin Kepplinger
This translates an error message from german to english.

thanks,
martin
---
 sw/source/ui/envelp/envfmt.hrc |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sw/source/ui/envelp/envfmt.hrc b/sw/source/ui/envelp/envfmt.hrc
index 17cd764..ad4875a 100644
--- a/sw/source/ui/envelp/envfmt.hrc
+++ b/sw/source/ui/envelp/envfmt.hrc
@@ -73,7 +73,7 @@
 #define ENVFMT_ACT_END  MNU_EDIT
 
 #if ENVFMT_ACT_END  RC_ENVFMT_END
-#error Resource-Ueberlauf in #file, #line
+#error resource overflow in #file, #line
 #endif
 
 #endif
-- 
1.7.1

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


Re: [Libreoffice] Errors in LibreOffice

2011-03-06 Thread David Tardon
On Sun, Mar 06, 2011 at 09:39:15AM +0100, Stefan Lindel wrote:
 Hi,
 
 where can i submit errors in LibreOffice?

https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice

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


Re: [Libreoffice] Compilation failed in sd part.

2011-03-06 Thread David Tardon
On Sun, Mar 06, 2011 at 10:18:04PM +0100, Julien Nabet wrote:
 Hello,
 
 After this command today :
 make clean  ./autogen.sh  make
 I've got an error in sd part.

Hi,

try to remove sd/unxlngi6.pro . It should build again after that.

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


[Libreoffice] images in images.zip and other issues, please have a look

2011-03-06 Thread Clio
*1.* LibO-3.3.all_x86: help_en(ru, etc). File 'sdatabase.jar' is not 
used - included in the archive 'shared.jar'.


LibO-3.3.1_win_x86:
*2.* Toolbar_Standart: F7 'Spelling and Grammar = 
images.zip\res\commandimagelist\l{s}c_spellingandgrammardialog.png' 
(Writer and Web) named as 'Spelling=...l{s}c_spelldialog.png' (Calc and 
Other). GUI is not used Files 
images.zip\res\commandimagelist\lc_spelling.png;sc_spelling.png
*3.* Toolbar_Formatting: Ctrl(Align)+L,E,R,J 
('images.zip\res\commandimagelist\...') Libre.Writer and Libre.Web used 
other pictures in Libre.Calc and Libre.Other_Programs.
*4.* Program used only 'images.zip\res\odb{s,t,f,g,p}_32.png'. GUI is 
not used other 'OD***.PNG'
*5.* The High contrasting images may not be used in the following 
themes: Galaxy, Tango, Classic, Oxygen, Industrial and Crystal.


(source: http://forumooo.ru/index.php/topic,1052.msg10728.html#msg10728)
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Approaches to enable international number format import/export in Calc

2011-03-06 Thread Samphan Raruenrom


  
  
Surprisingly, Calc doesn't support or even handle import/export
from/to Excel international number format, result in lost of
information from dates in non-western locale when convert.

For example, these dates in Excel (see i18ndate.xls
file)


When import to Calc will become


The reason is that Excel international number format (LCID) is
completely different from Calc's.
See
https://office.microsoft.com/en-us/excel-help/creating-international-number-formats-HA001034635.aspx

The correct import would generate the following in Calc (see
manually-fixed i18ndate.ods)

(note: still see difference in how Excel and Calc interpret Hijri
calendar)

See LibO bug
https://bugs.freedesktop.org/show_bug.cgi?id=33089
and the original OOo issue
http://openoffice.org/bugzilla/show_bug.cgi?id=93503

In bugzilla, I and Kohei have made a discussion about the approaches
to fix this problem :-
1) When import from Excel, convert Excel LCID (4-8 hex digits) to
Calc's natnum and calendar specifier. When export reverse the
process to generate the appropriate Excel LCID.
2) When import form Excel, maintain Excel LCID as-is in Calc number
format. When export use the LCID already there.

Since this is a feature that effect many non-western locales. Each
with specific details in how they handle local calendars and
natnums. I think we should make this important decision first,
before we start to implement it. This will benefit every non-western
locales with natnums and/or local calendars. I know because this is
the top-priority bug in Thai, to convert date in buddhist calendar
from Excel. Other non-western locales must have faced similar
problems.

So what do you think?

-- 
  _/|\_ Samphan Raruenrom.? Osdev - Open Source Development Co.,
  Ltd.
   ??.? ? - ?? ??
  ?
  tel: +66 2 269 9889? web: osdev.co.th
  twitter: @osdev? facebook:
  facebook.com/osdev
  

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