[Libreoffice] patch: delete comments in German and VIM

2010-10-29 Thread bitpolare

delete comments in German and VIM at the beginning and end of file.

example:

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 
4 -*- *



/* vim:set shiftwidth=4 softtabstop=4 expandtab: */




files:

writer.cxx   wrt_fn.cxx wrtswtbl.cxx

*path: build/clone/writer/sw/source/filter/writer*


My first patch: I hope everything goes well.

Regards and good luck to all

Luigi
--- ../../build/clone/writer/sw/source/filter/writer/writer.cxx	2010-10-28 22:12:01.454128322 +0200
+++ ../../build/clone/writer/sw/source/filter/writer/writerNEW.cxx	2010-10-29 17:22:26.778110535 +0200
@@ -1,8 +1,8 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+
 /*
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
+ *
  * Copyright 2000, 2010 Oracle and/or its affiliates.
  *
  * OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@
 using namespace ::com::sun::star;
 
 
-// Stringbuffer fuer die umgewandelten Zahlen
+
 static sal_Char aNToABuf[] = 0;
 #define NTOABUFLEN (sizeof(aNToABuf))
 
@@ -130,18 +130,7 @@
 }
 }
 
-/*
- * Dieses Modul ist die Zentrale-Sammelstelle fuer alle Write-Filter
- * und ist eine DLL !
- *
- * Damit der Writer mit den unterschiedlichen Writern arbeiten kann,
- * muessen fuer diese die Ausgabe-Funktionen der Inhalts tragenden
- * Objecte auf die verschiedenen Ausgabe-Funktionen gemappt werden.
- *
- * Dazu kann fuer jedes Object ueber den Which-Wert in einen Tabelle ge-
- * griffen werden, um seine Ausgabe-Funktion zu erfragen.
- * Diese Funktionen stehen in den entsprechenden Writer-DLL's.
- */
+
 
 Writer::Writer()
 : m_pImpl(new Writer_Impl)
@@ -194,11 +183,11 @@
 {
 if( (*ppPam)-GetNext() == pOrigPam )
 {
-*ppPam = pOrigPam;			// wieder auf den Anfangs-Pam setzen
-return FALSE;// Ende vom Ring
+*ppPam = pOrigPam;
+return FALSE;
 }
 
-// ansonsten kopiere den die Werte aus dem naechsten Pam
+
 *ppPam = ((SwPaM*)(*ppPam)-GetNext() );
 
 *pCurPam-GetPoint() = *(*ppPam)-Start();
@@ -207,7 +196,7 @@
 return TRUE;
 }
 
-// suche die naechste Bookmark-Position aus der Bookmark-Tabelle
+
 
 sal_Int32 Writer::FindPos_Bkmk(const SwPosition rPos) const
 {
@@ -250,7 +239,7 @@
 
 /
 
-// Stream-spezifisches
+
 SvStream Writer::Strm()
 {
 ASSERT( m_pImpl-m_pStream, Oh-oh. Writer with no Stream! );
@@ -262,8 +251,8 @@
 
 
 SvStream Writer::OutHex( SvStream rStrm, ULONG nHex, BYTE nLen )
-{   // in einen Stream aus
-// Pointer an das Bufferende setzen
+{
+
 sal_Char* pStr = aNToABuf + (NTOABUFLEN-1);
 for( BYTE n = 0; n  nLen; ++n )
 {
@@ -277,7 +266,7 @@
 
 SvStream Writer::OutLong( SvStream rStrm, long nVal )
 {
-// Pointer an das Bufferende setzen
+
 sal_Char* pStr = aNToABuf + (NTOABUFLEN-1);
 
 int bNeg = nVal  0;
@@ -289,7 +278,7 @@
 nVal /= 10;
 } while( nVal );
 
-// Ist Zahl negativ, dann noch -
+
 if( bNeg )
 *(--pStr) = '-';
 
@@ -298,7 +287,7 @@
 
 SvStream Writer::OutULong( SvStream rStrm, ULONG nVal )
 {
-// Pointer an das Bufferende setzen
+
 sal_Char* pStr = aNToABuf + (NTOABUFLEN-1);
 
 do {
@@ -324,9 +313,9 @@
 pOrigFileName = pFName;
 m_pImpl-m_pStream = rStrm;
 
-// PaM kopieren, damit er veraendert werden kann
+
 pCurPam = new SwPaM( *rPaM.End(), *rPaM.Start() );
-// zum Vergleich auf den akt. Pam sichern
+
 pOrigPam = rPaM;
 
 ULONG nRet = WriteStream();
@@ -375,7 +364,7 @@
 
 if (m_pImpl-pSrcArr)
 {
-// wurde die Datei schon verschoben
+
 USHORT nPos;
 if (m_pImpl-pSrcArr-Seek_Entry( rFileNm, nPos ))
 {
@@ -420,9 +409,7 @@
 
 void Writer::PutNumFmtFontsInAttrPool()
 {
-// dann gibt es noch in den NumRules ein paar Fonts
-// Diese in den Pool putten. Haben sie danach einen RefCount  1
-// kann es wieder entfernt werden - ist schon im Pool
+
 SfxItemPool rPool = pDoc-GetAttrPool();
 const SwNumRuleTbl rListTbl = pDoc-GetNumRuleTbl();
 const SwNumRule* pRule;
@@ -577,7 +564,7 @@
 
 
 
-// Storage-spezifisches
+
 
 ULONG StgWriter::WriteStream()
 {
@@ -592,9 +579,9 @@
 pDoc = rPaM.GetDoc();
 pOrigFileName = pFName;
 
-// PaM kopieren, damit er veraendert werden kann
+
 pCurPam = new SwPaM( *rPaM.End(), *rPaM.Start() );
-// zum Vergleich auf den akt. Pam sichern
+
 pOrigPam = rPaM;
 
 ULONG nRet = WriteStorage();
@@ -613,9 +600,9 @@
 pDoc = rPaM.GetDoc();
 pOrigFileName = pFName;
 
-// PaM kopieren, damit er veraendert werden kann
+
 pCurPam = new SwPaM( *rPaM.End(), *rPaM.Start() );
-// zum Vergleich auf den akt. Pam sichern
+
 pOrigPam 

Re: [Libreoffice] patch: delete comments in German and VIM

2010-10-29 Thread Jan Holesovsky
Hi Luigi,

bitpolare píše v Pá 29. 10. 2010 v 18:49 +0200:

 delete comments in German and

I am afraid there must have been a bit of misunderstanding; we do not
want to delete the German comments, but translate them to English :-)
Do you speak German?  Can you provide the translations, please?

  VIM at the beginning and end of file.

Unfortunately, that is not the intention either :-(  We want to have the
Emacs and Vim modelines at the beginning and end of the file, but
nowhere else :-) - so please try to find and remove those that are
somewhere in the middle, I suppose there must be examples of such files
still left.

I am sorry - I hope this does not discourage you! :-)

Thank you,
Kendy

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


Re: [Libreoffice] patch: delete comments in German and VIM

2010-10-29 Thread bitpolare

Excuse me: I'm new. :-[
I was wrong.

Hello everyone

Luigi


PS ty Jan :-)

Il 29/10/2010 19:40, Jan Holesovsky ha scritto:

Hi Luigi,

bitpolare píše v Pá 29. 10. 2010 v 18:49 +0200:

   

delete comments in German and
 

I am afraid there must have been a bit of misunderstanding; we do not
want to delete the German comments, but translate them to English :-)
Do you speak German?  Can you provide the translations, please?

   

  VIM at the beginning and end of file.
 

Unfortunately, that is not the intention either :-(  We want to have the
Emacs and Vim modelines at the beginning and end of the file, but
nowhere else :-) - so please try to find and remove those that are
somewhere in the middle, I suppose there must be examples of such files
still left.

I am sorry - I hope this does not discourage you! :-)

Thank you,
Kendy

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



--
Linux user number 526206 http://counter.li.org/
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice