[Libreoffice-commits] .: 9 commits - basegfx/inc basegfx/source basic/inc basic/source basic/workben chart2/source comphelper/inc comphelper/source cppcanvas/source dbaccess/source desktop/test dmake/dbug drawinglayer/inc drawinglayer/source editeng/inc editeng/source extensions/source filter/source icc/source oox/inc oox/source package/source regexp/inc registry/tools reportdesign/inc reportdesign/source sal/inc sal/osl sal/qa scripting/source sc/source sd/inc sd/source sfx2/inc sfx2/source slideshow/source solenv/bin stoc/source svl/inc svtools/inc svtools/source unusedcode.easy uui/source vbahelper/inc vbahelper/source vcl/unx wizards/util writerfilter/inc writerfilter/source writerperfect/source xmloff/inc xmloff/source xmlreader/inc xmlreader/source xmlsecurity/qa xmlsecurity/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Sep 30 01:10:30 PDT 2011


 basegfx/inc/basegfx/tools/unotools.hxx                                   |    3 
 basegfx/source/tools/unotools.cxx                                        |    3 
 basic/inc/basic/vbahelper.hxx                                            |    3 
 basic/source/basmgr/vbahelper.cxx                                        |    3 
 basic/source/inc/runtime.hxx                                             |    1 
 basic/source/inc/sbdiagnose.hxx                                          |    3 
 basic/source/inc/sbtrace.hxx                                             |    3 
 basic/source/runtime/comenumwrapper.cxx                                  |    2 
 basic/source/runtime/comenumwrapper.hxx                                  |    2 
 basic/source/runtime/runtime.cxx                                         |   11 -
 basic/source/runtime/sbdiagnose.cxx                                      |    2 
 basic/source/sbx/sbxvals.cxx                                             |    3 
 basic/workben/mgrtest.cxx                                                |    3 
 chart2/source/controller/main/ChartModelClone.cxx                        |    3 
 chart2/source/controller/main/ChartModelClone.hxx                        |    3 
 chart2/source/controller/main/UndoActions.cxx                            |    3 
 chart2/source/controller/main/UndoActions.hxx                            |    3 
 chart2/source/controller/main/UndoGuard.hxx                              |    3 
 chart2/source/inc/NumberFormatterWrapper.hxx                             |    3 
 chart2/source/inc/chartview/ExplicitScaleValues.hxx                      |    3 
 chart2/source/model/main/UndoManager.cxx                                 |    3 
 chart2/source/model/main/UndoManager.hxx                                 |    3 
 chart2/source/view/axes/DateHelper.cxx                                   |    3 
 chart2/source/view/axes/DateScaling.cxx                                  |    3 
 chart2/source/view/axes/DateScaling.hxx                                  |    2 
 chart2/source/view/axes/Tickmarks.cxx                                    |    3 
 chart2/source/view/axes/Tickmarks.hxx                                    |    3 
 chart2/source/view/axes/Tickmarks_Dates.cxx                              |    3 
 chart2/source/view/axes/Tickmarks_Dates.hxx                              |    3 
 chart2/source/view/axes/Tickmarks_Equidistant.cxx                        |    3 
 chart2/source/view/axes/Tickmarks_Equidistant.hxx                        |    3 
 comphelper/inc/comphelper/anycompare.hxx                                 |    3 
 comphelper/inc/comphelper/componentguard.hxx                             |    3 
 comphelper/inc/comphelper/flagguard.hxx                                  |    3 
 comphelper/source/misc/anycompare.cxx                                    |    3 
 cppcanvas/source/mtfrenderer/rendergraphicaction.cxx                     |    3 
 cppcanvas/source/mtfrenderer/rendergraphicaction.hxx                     |    3 
 dbaccess/source/core/dataaccess/databasedocument.cxx                     |   19 +
 dbaccess/source/ui/browser/unodatbr.cxx                                  |    6 
 dbaccess/source/ui/querydesign/TableWindowAccess.cxx                     |    6 
 desktop/test/deployment/active/active_native.cxx                         |    3 
 desktop/test/deployment/passive/passive_native.cxx                       |    3 
 drawinglayer/inc/drawinglayer/primitive2d/discreteshadowprimitive2d.hxx  |    3 
 drawinglayer/inc/drawinglayer/primitive2d/rendergraphicprimitive2d.hxx   |    3 
 drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx            |    3 
 drawinglayer/source/primitive2d/rendergraphicprimitive2d.cxx             |    3 
 editeng/inc/editeng/editview.hxx                                         |    7 
 editeng/inc/editeng/outliner.hxx                                         |    5 
 editeng/source/editeng/editview.cxx                                      |   52 -----
 editeng/source/editeng/impedit.cxx                                       |    8 
 editeng/source/editeng/impedit.hxx                                       |    2 
 editeng/source/editeng/impedit5.cxx                                      |   10 -
 editeng/source/outliner/outlvw.cxx                                       |   97 ----------
 editeng/source/outliner/paralist.cxx                                     |   44 ----
 editeng/source/outliner/paralist.hxx                                     |    3 
 extensions/source/macosx/spotlight/GetMetadataForFile.m                  |    3 
 extensions/source/macosx/spotlight/OOoContentDataParser.m                |    3 
 extensions/source/macosx/spotlight/OOoMetaDataParser.m                   |    3 
 extensions/source/macosx/spotlight/OOoSpotlightImporter.m                |    3 
 extensions/source/macosx/spotlight/ioapi.m                               |    3 
 extensions/source/macosx/spotlight/main.m                                |    2 
 extensions/source/macosx/spotlight/unzip.m                               |    3 
 extensions/source/propctrlr/editpropertyhandler.cxx                      |   12 -
 extensions/source/propctrlr/formcomponenthandler.cxx                     |   44 ++--
 extensions/source/propctrlr/xsdvalidationhelper.cxx                      |    2 
 extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx             |   36 +--
 filter/source/graphicfilter/ipict/shape.cxx                              |    3 
 filter/source/graphicfilter/ipict/shape.hxx                              |    3 
 filter/source/msfilter/services.cxx                                      |    3 
 filter/source/pdf/pdfinteract.cxx                                        |    3 
 filter/source/pdf/pdfinteract.hxx                                        |    2 
 filter/source/svg/impsvgdialog.cxx                                       |    3 
 filter/source/svg/impsvgdialog.hxx                                       |    3 
 filter/source/svg/svgdialog.cxx                                          |    3 
 filter/source/svg/svgdialog.hxx                                          |    3 
 icc/source/create_sRGB_profile/create_sRGB_profile.cpp                   |    3 
 oox/inc/oox/core/fastparser.hxx                                          |    3 
 oox/inc/oox/drawingml/scene3dcontext.hxx                                 |    3 
 oox/inc/oox/drawingml/shape3dproperties.hxx                              |    2 
 oox/inc/oox/drawingml/shapepropertymap.hxx                               |    3 
 oox/inc/oox/helper/refmap.hxx                                            |    3 
 oox/inc/oox/helper/refvector.hxx                                         |    3 
 oox/inc/oox/ppt/dgmimport.hxx                                            |    3 
 oox/inc/oox/ppt/dgmlayout.hxx                                            |    3 
 oox/inc/oox/token/namespacemap.hxx                                       |    3 
 oox/inc/oox/vml/vmltextbox.hxx                                           |    3 
 oox/inc/oox/vml/vmltextboxcontext.hxx                                    |    3 
 oox/inc/oox/xls/autofilterbuffer.hxx                                     |    3 
 oox/inc/oox/xls/connectionsbuffer.hxx                                    |    3 
 oox/inc/oox/xls/drawingbase.hxx                                          |    3 
 oox/inc/oox/xls/drawingmanager.hxx                                       |    3 
 oox/inc/oox/xls/querytablebuffer.hxx                                     |    3 
 oox/inc/oox/xls/sheetdatabuffer.hxx                                      |    3 
 oox/source/core/fastparser.cxx                                           |    3 
 oox/source/core/services.cxx                                             |    3 
 oox/source/drawingml/scene3dcontext.cxx                                  |    3 
 oox/source/drawingml/shape3dproperties.cxx                               |    2 
 oox/source/drawingml/shapepropertymap.cxx                                |    3 
 oox/source/ppt/dgmimport.cxx                                             |    3 
 oox/source/ppt/dgmlayout.cxx                                             |    3 
 oox/source/vml/vmltextboxcontext.cxx                                     |    3 
 oox/source/xls/autofilterbuffer.cxx                                      |    3 
 oox/source/xls/connectionsbuffer.cxx                                     |    3 
 oox/source/xls/drawingbase.cxx                                           |    3 
 oox/source/xls/drawingmanager.cxx                                        |    3 
 oox/source/xls/excelvbaproject.cxx                                       |    3 
 oox/source/xls/querytablebuffer.cxx                                      |    3 
 oox/source/xls/sheetdatabuffer.cxx                                       |    3 
 package/source/zipapi/blowfishcontext.cxx                                |    2 
 package/source/zipapi/blowfishcontext.hxx                                |    2 
 package/source/zipapi/sha1context.cxx                                    |    2 
 regexp/inc/regexp/reclass.hxx                                            |    3 
 registry/tools/fileurl.cxx                                               |    3 
 registry/tools/fileurl.hxx                                               |    3 
 registry/tools/options.cxx                                               |    3 
 registry/tools/options.hxx                                               |    3 
 registry/tools/rdbedit.cxx                                               |    2 
 reportdesign/inc/pch/precompiled_rptui.cxx                               |    2 
 reportdesign/inc/pch/precompiled_rptui.hxx                               |    3 
 reportdesign/inc/pch/precompiled_rptxml.cxx                              |    2 
 reportdesign/inc/pch/precompiled_rptxml.hxx                              |    3 
 reportdesign/source/filter/xml/xmlExport.cxx                             |   16 -
 reportdesign/source/ui/report/ReportController.cxx                       |    3 
 reportdesign/source/ui/report/ReportSection.cxx                          |    6 
 sal/inc/cppunittester/protectorfactory.hxx                               |    3 
 sal/inc/sal/precppunit.hxx                                               |    3 
 sal/osl/all/printtrace.cxx                                               |    3 
 sal/osl/inc/printtrace.h                                                 |    3 
 sal/osl/unx/readwrite_helper.c                                           |    3 
 sal/osl/unx/readwrite_helper.h                                           |    3 
 sal/qa/osl/getsystempathfromfileurl/test-getsystempathfromfileurl.cxx    |    3 
 sal/qa/osl/setthreadname/test-setthreadname.cxx                          |    3 
 sal/qa/rtl/math/test-rtl-math.cxx                                        |    3 
 sc/source/ui/unoobj/scdetect.cxx                                         |   11 -
 scripting/source/dlgprov/DialogModelProvider.cxx                         |    2 
 scripting/source/dlgprov/DialogModelProvider.hxx                         |    3 
 sd/inc/sdcommands.h                                                      |    3 
 sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx             |    3 
 sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx            |    3 
 sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx            |    3 
 sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx     |    3 
 sd/source/ui/slidesorter/controller/SlsSelectionObserver.cxx             |    3 
 sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx            |    3 
 sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx         |    3 
 sd/source/ui/slidesorter/inc/controller/SlsInsertionIndicatorHandler.hxx |    3 
 sd/source/ui/slidesorter/inc/controller/SlsSelectionObserver.hxx         |    3 
 sd/source/ui/slidesorter/inc/controller/SlsTransferable.hxx              |    3 
 sd/source/ui/slidesorter/inc/controller/SlsVisibleAreaManager.hxx        |    3 
 sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx                    |    3 
 sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx                       |    3 
 sd/source/ui/slidesorter/inc/view/SlsILayerPainter.hxx                   |    3 
 sd/source/ui/slidesorter/inc/view/SlsInsertAnimator.hxx                  |    3 
 sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx       |    3 
 sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx              |    3 
 sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx               |    3 
 sd/source/ui/slidesorter/inc/view/SlsTheme.hxx                           |    3 
 sd/source/ui/slidesorter/inc/view/SlsToolTip.hxx                         |    3 
 sd/source/ui/slidesorter/model/SlsVisualState.cxx                        |    3 
 sd/source/ui/slidesorter/view/SlsButtonBar.cxx                           |    3 
 sd/source/ui/slidesorter/view/SlsFramePainter.cxx                        |    3 
 sd/source/ui/slidesorter/view/SlsFramePainter.hxx                        |    3 
 sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx                      |    3 
 sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx           |    2 
 sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx                       |    3 
 sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx                       |    3 
 sd/source/ui/slidesorter/view/SlsPageObjectLayouter.cxx                  |    3 
 sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx                   |    3 
 sd/source/ui/slidesorter/view/SlsTheme.cxx                               |    3 
 sd/source/ui/slidesorter/view/SlsToolTip.cxx                             |    3 
 sfx2/inc/sfx2/brokenpackageint.hxx                                       |    2 
 sfx2/inc/sfx2/macropg.hxx                                                |    3 
 sfx2/inc/sfx2/sfxcommands.h                                              |    3 
 sfx2/source/doc/docundomanager.cxx                                       |    3 
 sfx2/source/inc/docundomanager.hxx                                       |    3 
 slideshow/source/engine/OGLTrans/mac/OGLTrans_Shaders.m                  |    3 
 slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionImpl.mm          |    2 
 slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm        |    3 
 slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m                    |    3 
 solenv/bin/add-modelines                                                 |    2 
 stoc/source/simpleregistry/textualservices.cxx                           |    3 
 stoc/source/simpleregistry/textualservices.hxx                           |    3 
 svl/inc/svl/filenotation.hxx                                             |    2 
 svtools/inc/svtools/table/tablecontrolinterface.hxx                      |    3 
 svtools/inc/svtools/table/tablesort.hxx                                  |    3 
 svtools/source/table/cellvalueconversion.cxx                             |    3 
 svtools/source/table/cellvalueconversion.hxx                             |    3 
 svtools/source/table/mousefunction.cxx                                   |    3 
 svtools/source/table/mousefunction.hxx                                   |    3 
 svtools/source/uno/unogridcolumnfacade.cxx                               |    3 
 svtools/source/uno/unogridcolumnfacade.hxx                               |    3 
 unusedcode.easy                                                          |   32 ---
 uui/source/nameclashdlg.cxx                                              |    2 
 vbahelper/inc/vbahelper/weakreference.hxx                                |    3 
 vbahelper/source/msforms/vbanewfont.cxx                                  |    3 
 vbahelper/source/msforms/vbanewfont.hxx                                  |    3 
 vcl/unx/gtk/a11y/atkutil.cxx                                             |    6 
 wizards/util/helpids.h                                                   |    3 
 writerfilter/inc/resourcemodel/LoggedResources.hxx                       |    3 
 writerfilter/source/dmapper/WrapPolygonHandler.cxx                       |    3 
 writerfilter/source/dmapper/WrapPolygonHandler.hxx                       |    3 
 writerfilter/source/resourcemodel/Fraction.cxx                           |    3 
 writerfilter/source/resourcemodel/LoggedResources.cxx                    |    3 
 writerperfect/source/filter/DocumentElement.cxx                          |    3 
 writerperfect/source/filter/DocumentElement.hxx                          |    3 
 writerperfect/source/filter/FilterInternal.hxx                           |    3 
 writerperfect/source/filter/FontStyle.cxx                                |    3 
 writerperfect/source/filter/FontStyle.hxx                                |    3 
 writerperfect/source/filter/InternalHandler.cxx                          |    3 
 writerperfect/source/filter/InternalHandler.hxx                          |    3 
 writerperfect/source/filter/ListStyle.cxx                                |    3 
 writerperfect/source/filter/ListStyle.hxx                                |    3 
 writerperfect/source/filter/OdfDocumentHandler.hxx                       |    3 
 writerperfect/source/filter/OdgGenerator.cxx                             |    2 
 writerperfect/source/filter/OdgGenerator.hxx                             |    3 
 writerperfect/source/filter/OdtGenerator.cxx                             |    3 
 writerperfect/source/filter/OdtGenerator.hxx                             |    3 
 writerperfect/source/filter/PageSpan.cxx                                 |    3 
 writerperfect/source/filter/PageSpan.hxx                                 |    3 
 writerperfect/source/filter/SectionStyle.cxx                             |    3 
 writerperfect/source/filter/SectionStyle.hxx                             |    3 
 writerperfect/source/filter/Style.hxx                                    |    3 
 writerperfect/source/filter/TableStyle.cxx                               |    3 
 writerperfect/source/filter/TableStyle.hxx                               |    3 
 writerperfect/source/filter/TextRunStyle.cxx                             |    2 
 writerperfect/source/filter/TextRunStyle.hxx                             |    3 
 writerperfect/source/filter/WriterProperties.hxx                         |    3 
 xmloff/inc/forms/form_handler_factory.hxx                                |    3 
 xmloff/inc/forms/property_handler.hxx                                    |    3 
 xmloff/inc/forms/property_ids.hxx                                        |    3 
 xmloff/inc/xmloff/xmlkywd.hxx                                            |    3 
 xmloff/source/chart/SchXMLAxisContext.cxx                                |    3 
 xmloff/source/chart/SchXMLAxisContext.hxx                                |    3 
 xmloff/source/chart/SchXMLEnumConverter.cxx                              |    3 
 xmloff/source/chart/SchXMLEnumConverter.hxx                              |    3 
 xmloff/source/chart/SchXMLLegendContext.cxx                              |    3 
 xmloff/source/forms/handler/form_handler_factory.cxx                     |    3 
 xmloff/source/forms/handler/property_handler_base.cxx                    |    3 
 xmloff/source/forms/handler/property_handler_base.hxx                    |    3 
 xmloff/source/forms/handler/vcl_date_handler.cxx                         |    3 
 xmloff/source/forms/handler/vcl_date_handler.hxx                         |    3 
 xmloff/source/forms/handler/vcl_time_handler.cxx                         |    3 
 xmloff/source/forms/property_description.hxx                             |    3 
 xmloff/source/forms/property_group.hxx                                   |    3 
 xmloff/source/forms/property_meta_data.cxx                               |    3 
 xmlreader/inc/xmlreader/detail/xmlreaderdllapi.hxx                       |    3 
 xmlreader/inc/xmlreader/pad.hxx                                          |    3 
 xmlreader/inc/xmlreader/span.hxx                                         |    3 
 xmlreader/inc/xmlreader/xmlreader.hxx                                    |    3 
 xmlreader/source/pad.cxx                                                 |    3 
 xmlreader/source/span.cxx                                                |    3 
 xmlreader/source/xmlreader.cxx                                           |    3 
 xmlsecurity/qa/certext/SanCertExt.cxx                                    |    3 
 xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl.cxx           |    2 
 xmlsecurity/source/xmlsec/mscrypt/sanextension_mscryptimpl.hxx           |    2 
 xmlsecurity/source/xmlsec/nss/ciphercontext.cxx                          |    2 
 xmlsecurity/source/xmlsec/nss/ciphercontext.hxx                          |    2 
 xmlsecurity/source/xmlsec/nss/digestcontext.cxx                          |    2 
 xmlsecurity/source/xmlsec/nss/digestcontext.hxx                          |    2 
 xmlsecurity/source/xmlsec/nss/nssinitializer.cxx                         |    2 
 xmlsecurity/source/xmlsec/nss/nssinitializer.hxx                         |    2 
 xmlsecurity/source/xmlsec/nss/sanextension_nssimpl.cxx                   |    2 
 xmlsecurity/source/xmlsec/nss/sanextension_nssimpl.hxx                   |    2 
 262 files changed, 774 insertions(+), 346 deletions(-)

New commits:
commit acc5c0734cf1d403c2ae9e70010e216563718e25
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 30 09:08:55 2011 +0100

    callcatcher: remove newly unused code

diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx
index b81e88b..b23a0b1 100644
--- a/basic/source/inc/runtime.hxx
+++ b/basic/source/inc/runtime.hxx
@@ -210,7 +210,6 @@ public:
 
     SbMethod* GetCaller( sal_uInt16 );
     SbModule* GetActiveModule();
-    SbxArray* GetLocals( SbMethod* );
 
     SbiIoSystem* GetIoSystem() { return pIosys; }
     SbiDdeControl* GetDdeControl() { return pDdeCtrl; }
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index af18d71..f778fbb 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -516,17 +516,6 @@ SbMethod* SbiInstance::GetCaller( sal_uInt16 nLevel )
         return NULL;
 }
 
-SbxArray* SbiInstance::GetLocals( SbMethod* pMeth )
-{
-    SbiRuntime* p = pRun;
-    while( p && p->GetMethod() != pMeth )
-        p = p->pNext;
-    if( p )
-        return p->GetLocals();
-    else
-        return NULL;
-}
-
 //                              SbiInstance                             //
 
 // Attention: pMeth can also be NULL (on a call of the init-code)
diff --git a/editeng/inc/editeng/editview.hxx b/editeng/inc/editeng/editview.hxx
index 09ad527..288d865 100644
--- a/editeng/inc/editeng/editview.hxx
+++ b/editeng/inc/editeng/editview.hxx
@@ -157,14 +157,10 @@ public:
     void            Paste();
     void            PasteSpecial();
 
-    void            EnablePaste( sal_Bool bEnable );
-    sal_Bool            IsPasteEnabled() const;
-
     void            Undo();
     void            Redo();
 
     // especially for Oliver Specht
-    sal_uInt16          GetParagraph( const Point& rMousePosPixel );
     Point           GetWindowPosTopLeft( sal_uInt16 nParagraph );
     void            MoveParagraphs( Range aParagraphs, sal_uInt16 nNewPos );
     void            MoveParagraphs( long nDiff );
@@ -196,7 +192,6 @@ public:
     void            ForceUpdate();
 
     SfxStyleSheet*  GetStyleSheet() const;
-    void            SetStyleSheet( SfxStyleSheet* pStyle );
 
     void            SetAnchorMode( EVAnchorMode eMode );
     EVAnchorMode    GetAnchorMode() const;
@@ -217,7 +212,6 @@ public:
 
     sal_Bool            IsCursorAtWrongSpelledWord( sal_Bool bMarkIfWrong = sal_False );
     sal_Bool            IsWrongSpelledWordAtPos( const Point& rPosPixel, sal_Bool bMarkIfWrong = sal_False );
-    void            SpellIgnoreWord();
     void            ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
 
     void                InsertField( const SvxFieldItem& rFld );
@@ -227,7 +221,6 @@ public:
 
     const SvxFieldItem* GetFieldAtSelection() const;
 
-    String          GetWordUnderMousePointer() const;
     String          GetWordUnderMousePointer( Rectangle& rWordRect ) const;
 
     void            SetInvalidateMore( sal_uInt16 nPixel );
diff --git a/editeng/inc/editeng/outliner.hxx b/editeng/inc/editeng/outliner.hxx
index 23dfe65..319b673 100644
--- a/editeng/inc/editeng/outliner.hxx
+++ b/editeng/inc/editeng/outliner.hxx
@@ -238,11 +238,6 @@ private:
     EDITENG_DLLPRIVATE void        ImpHideDDCursor();
     EDITENG_DLLPRIVATE void        ImpPaintDDCursor();
 
-    EDITENG_DLLPRIVATE void        ImpScrollLeft();
-    EDITENG_DLLPRIVATE void        ImpScrollRight();
-    EDITENG_DLLPRIVATE void        ImpScrollUp();
-    EDITENG_DLLPRIVATE void        ImpScrollDown();
-
     EDITENG_DLLPRIVATE Pointer     ImpGetMousePointer( MouseTarget eTarget );
     EDITENG_DLLPRIVATE sal_uInt16      ImpInitPaste( sal_uLong& rStart );
     EDITENG_DLLPRIVATE void        ImpPasted( sal_uLong nStart, sal_uLong nPrevParaCount, sal_uInt16 nSize);
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index 57efd1e..c0a64d1 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -632,20 +632,6 @@ void EditView::PasteSpecial()
     pImpEditView->Paste(aClipBoard, sal_True );
 }
 
-void EditView::EnablePaste( sal_Bool bEnable )
-{
-    DBG_CHKTHIS( EditView, 0 );
-    DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
-    pImpEditView->EnablePaste( bEnable );
-}
-
-sal_Bool EditView::IsPasteEnabled() const
-{
-    DBG_CHKTHIS( EditView, 0 );
-    DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
-    return pImpEditView->IsPasteEnabled();
-}
-
 Point EditView::GetWindowPosTopLeft( sal_uInt16 nParagraph )
 {
     DBG_CHKTHIS( EditView, 0 );
@@ -654,17 +640,6 @@ Point EditView::GetWindowPosTopLeft( sal_uInt16 nParagraph )
     return pImpEditView->GetWindowPos( aDocPos );
 }
 
-sal_uInt16 EditView::GetParagraph( const Point& rMousePosPixel )
-{
-    DBG_CHKTHIS( EditView, 0 );
-    DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
-    Point aMousePos( rMousePosPixel );
-    aMousePos = GetWindow()->PixelToLogic( aMousePos );
-    Point aDocPos( pImpEditView->GetDocPos( aMousePos ) );
-    sal_uInt16 nParagraph = PIMPEE->GetParaPortions().FindParagraph( aDocPos.Y() );
-    return nParagraph;
-}
-
 EESelectionMode EditView::GetSelectionMode() const
 {
     DBG_CHKTHIS( EditView, 0 );
@@ -801,17 +776,6 @@ void EditView::ForceUpdate()
     PIMPEE->SetUpdateMode( sal_True, this, sal_True );
 }
 
-void EditView::SetStyleSheet( SfxStyleSheet* pStyle )
-{
-    DBG_CHKTHIS( EditView, 0 );
-    DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
-
-    EditSelection aSel( pImpEditView->GetEditSelection() );
-    PIMPEE->UndoActionStart( EDITUNDO_STYLESHEET );
-    PIMPEE->SetStyleSheet( aSel, pStyle );
-    PIMPEE->UndoActionEnd( EDITUNDO_STYLESHEET );
-}
-
 SfxStyleSheet* EditView::GetStyleSheet() const
 {
     DBG_CHKTHIS( EditView, 0 );
@@ -1262,13 +1226,6 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
     }
 }
 
-void EditView::SpellIgnoreWord()
-{
-    DBG_CHKTHIS( EditView, 0 );
-    DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
-    pImpEditView->SpellIgnoreOrAddWord( sal_False );
-}
-
 sal_Bool EditView::SelectCurrentWord( sal_Int16 nWordType )
 {
     DBG_CHKTHIS( EditView, 0 );
@@ -1347,15 +1304,6 @@ const SvxFieldItem* EditView::GetFieldAtSelection() const
     return 0;
 }
 
-XubString EditView::GetWordUnderMousePointer() const
-{
-    DBG_CHKTHIS( EditView, 0 );
-    DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 );
-
-    Rectangle aRect;
-    return GetWordUnderMousePointer( aRect );
-}
-
 XubString EditView::GetWordUnderMousePointer( Rectangle& rWordRect ) const
 {
     DBG_CHKTHIS( EditView, 0 );
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index 2c87222..529c583 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -693,103 +693,6 @@ Rectangle OutlinerView::GetVisArea() const
     return pEditView->GetVisArea();
 }
 
-void OutlinerView::ImpScrollLeft()
-{
-    DBG_CHKTHIS(OutlinerView,0);
-    Rectangle aVisArea( pEditView->GetVisArea() );
-    long nMaxScrollOffs = aVisArea.Left();
-    if ( !nMaxScrollOffs )
-        return;
-    long nScrollOffsRef = (aVisArea.GetWidth() * OL_SCROLL_HOROFFSET) / 100;
-    if ( !nScrollOffsRef )
-        nScrollOffsRef = 1;
-    if ( nScrollOffsRef > nMaxScrollOffs )
-        nScrollOffsRef = nMaxScrollOffs;
-
-    ImpHideDDCursor();
-    Scroll( -nScrollOffsRef, 0 );
-
-    EditStatus aScrollStat;
-    aScrollStat.GetStatusWord() = EE_STAT_HSCROLL;
-    pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat );
-}
-
-
-void OutlinerView::ImpScrollRight()
-{
-    DBG_CHKTHIS(OutlinerView,0);
-    Rectangle aVisArea( pEditView->GetVisArea() );
-    long nMaxScrollOffs = pOwner->pEditEngine->GetPaperSize().Width() -
-                          aVisArea.Right();
-    if ( !nMaxScrollOffs )
-        return;
-    long nScrollOffsRef = (aVisArea.GetWidth() * OL_SCROLL_HOROFFSET) / 100;
-    if ( !nScrollOffsRef )
-        nScrollOffsRef = 1;
-    if ( nScrollOffsRef > nMaxScrollOffs )
-        nScrollOffsRef = nMaxScrollOffs;
-
-    ImpHideDDCursor();
-    Scroll( nScrollOffsRef, 0 );
-
-    EditStatus aScrollStat;
-    aScrollStat.GetStatusWord() = EE_STAT_HSCROLL;
-    pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat );
-}
-
-
-void OutlinerView::ImpScrollDown()
-{
-    DBG_CHKTHIS(OutlinerView,0);
-    Rectangle aVisArea( pEditView->GetVisArea() );
-    Size aDocSize( 0, (long)pOwner->pEditEngine->GetTextHeight() );
-
-    long nMaxScrollOffs = aDocSize.Height();
-    nMaxScrollOffs -= aVisArea.Top();
-    nMaxScrollOffs -= aVisArea.GetHeight();
-    if ( !nMaxScrollOffs )
-        return;
-
-    long nScrollOffsRef = (aVisArea.GetHeight() * OL_SCROLL_VEROFFSET) / 100;
-
-    if ( nScrollOffsRef > nMaxScrollOffs )
-        nScrollOffsRef = nMaxScrollOffs;
-    if ( !nScrollOffsRef )
-        nScrollOffsRef = 1;
-
-    ImpHideDDCursor();
-    Scroll( 0, -nScrollOffsRef );
-
-    EditStatus aScrollStat;
-    aScrollStat.GetStatusWord() = EE_STAT_VSCROLL;
-    pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat );
-}
-
-
-void OutlinerView::ImpScrollUp()
-{
-    DBG_CHKTHIS(OutlinerView,0);
-    Rectangle aVisArea( pEditView->GetVisArea() );
-    long nMaxScrollOffs = aVisArea.Top();
-    if ( !nMaxScrollOffs )
-        return;
-    long nScrollOffsRef = (aVisArea.GetHeight() * OL_SCROLL_VEROFFSET) / 100;
-
-
-    if ( nScrollOffsRef > nMaxScrollOffs )
-        nScrollOffsRef = nMaxScrollOffs;
-    if ( !nScrollOffsRef )
-        nScrollOffsRef = 1;
-
-    ImpHideDDCursor();
-    Scroll( 0, nScrollOffsRef );
-
-    EditStatus aScrollStat;
-    aScrollStat.GetStatusWord() = EE_STAT_VSCROLL;
-    pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat );
-}
-
-
 void OutlinerView::Expand()
 {
     DBG_CHKTHIS( OutlinerView, 0 );
diff --git a/editeng/source/outliner/paralist.cxx b/editeng/source/outliner/paralist.cxx
index c09e0f2..37effdf 100644
--- a/editeng/source/outliner/paralist.cxx
+++ b/editeng/source/outliner/paralist.cxx
@@ -180,34 +180,6 @@ void ParagraphList::MoveParagraphs( sal_uLong nStart, sal_uLong nDest, sal_uLong
     }
 }
 
-Paragraph* ParagraphList::NextVisible( Paragraph* pPara ) const
-{
-    std::vector<Paragraph*>::const_iterator iter = std::find(maEntries.begin(),
-                                                             maEntries.end(),
-                                                             pPara);
-    for (; iter != maEntries.end(); ++iter)
-    {
-        if ((*iter)->IsVisible())
-            break;
-    }
-
-    return iter != maEntries.end() ? *iter : NULL;
-}
-
-Paragraph* ParagraphList::PrevVisible( Paragraph* pPara ) const
-{
-    std::vector<Paragraph*>::const_reverse_iterator iter = std::find(maEntries.rbegin(),
-                                                                     maEntries.rend(),
-                                                                     pPara);
-    for (; iter != maEntries.rend(); ++iter)
-    {
-        if ((*iter)->IsVisible())
-            break;
-    }
-
-    return iter != maEntries.rend() ? *iter : NULL;
-}
-
 Paragraph* ParagraphList::LastVisible() const
 {
     std::vector<Paragraph*>::const_reverse_iterator iter;
@@ -314,20 +286,4 @@ sal_uLong ParagraphList::GetAbsPos( Paragraph* pParent ) const
     return ~0;
 }
 
-sal_uLong ParagraphList::GetVisPos( Paragraph* pPara ) const
-{
-    sal_uLong nVisPos = 0;
-    std::vector<Paragraph*>::const_iterator iter;
-    for (iter = maEntries.begin(); iter != maEntries.end(); ++iter, ++nVisPos)
-    {
-        if (*iter == pPara)
-            break;
-
-        if ((*iter)->IsVisible())
-            ++nVisPos;
-    }
-
-    return nVisPos;
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/source/outliner/paralist.hxx b/editeng/source/outliner/paralist.hxx
index 29398c2..d574551 100644
--- a/editeng/source/outliner/paralist.hxx
+++ b/editeng/source/outliner/paralist.hxx
@@ -51,15 +51,12 @@ public:
     }
 
     sal_uLong           GetAbsPos( Paragraph* pParent ) const;
-    sal_uLong           GetVisPos( Paragraph* pParagraph ) const;
 
     void            Append( Paragraph *pPara);
     void            Insert( Paragraph* pPara, sal_uLong nAbsPos);
     void            Remove( sal_uLong nPara );
     void            MoveParagraphs( sal_uLong nStart, sal_uLong nDest, sal_uLong nCount );
 
-    Paragraph*      NextVisible( Paragraph* ) const;
-    Paragraph*      PrevVisible( Paragraph* ) const;
     Paragraph*      LastVisible() const;
 
     Paragraph*      GetParent( Paragraph* pParagraph /*, sal_uInt16& rRelPos */ ) const;
diff --git a/unusedcode.easy b/unusedcode.easy
index 29c565c..b613cdb 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -90,6 +90,7 @@ CurrencyBox::RemoveValue(long)
 CurrencyField::CurrencyField(Window*, ResId const&)
 CurrencyFormatter::SetCurrencySymbol(String const&)
 CustomToolBarImportHelper::showToolbar(rtl::OUString const&)
+DateBox::DateBox(Window*, ResId const&)
 DateBox::GetDate(unsigned short) const
 DateBox::GetDatePos(Date const&) const
 DateBox::InsertDate(Date const&, unsigned short)
@@ -142,8 +143,6 @@ EditEngine::WordRight(ESelection const&, unsigned short) const
 EditView::Drop(DropEvent const&)
 EditView::GetDropPos()
 EditView::GetSelectionMode() const
-EditView::GetWordUnderMousePointer() const
-EditView::IsPasteEnabled() const
 EditView::MatchGroup()
 EditView::QueryDrop(DropEvent&)
 EditView::SetCursor(Cursor const&)
@@ -289,7 +288,6 @@ MSFilterTracer::SetProperty(rtl::OUString const&, com::sun::star::uno::Any const
 MSFilterTracer::StartElement(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>)
 MachineSettings::CopyData()
 MailDispatcher::removeListener(rtl::Reference<IMailDispatcherListener>)
-MaskSet::MaskSet(SvxBmpMask*, long)
 Matrix3d::Inverse() const
 Matrix3d::Matrix3d()
 MergeData::~MergeData()
@@ -305,13 +303,11 @@ MiscSettings::SetDisablePrinting(unsigned char)
 MiscSettings::SetEnableATToolSupport(unsigned char)
 ModulWindow::LinkStubBasicErrorHdl(void*, void*)
 MoreButton::RemoveWindow(Window*)
-MouseEvent::InitMouseEvent(com::sun::star::awt::MouseEvent&) const
 MultiLineEdit::GetHScrollBar() const
 MultiLineEdit::GetLeftMargin() const
 MultiLineEdit::GetTextLines() const
 MultiLineEdit::IsFocusSelectionHideEnabled() const
 MultiLineEdit::IsRightToLeft() const
-MultiPropertySetHelper::MultiPropertySetHelper(rtl::OUString const*)
 MultiSelection::Append(long)
 MultiSelection::PrevSelected()
 NameNode::IsOrderTree() const
@@ -341,22 +337,6 @@ OUStringsSort_Impl::Remove(unsigned short, unsigned short)
 Octree::AddColor(BitmapColor const&)
 Octree::Octree(unsigned long)
 OdtGeneratorPrivate::_writeBegin()
-OutlinerView::AdjustDepth(Paragraph*, short, unsigned char)
-OutlinerView::AdjustHeight(Paragraph*, long, unsigned char)
-OutlinerView::Collapse(Paragraph*)
-OutlinerView::CompleteAutoCorrect()
-OutlinerView::EnablePaste(unsigned char)
-OutlinerView::Expand(Paragraph*)
-OutlinerView::GetFieldUnderMousePointer(unsigned short&, unsigned short&) const
-OutlinerView::ImpDragScroll(Point const&)
-OutlinerView::ImpGetDocPos(Point const&)
-OutlinerView::ImpGetInsertionPara(Point const&)
-OutlinerView::Redo()
-OutlinerView::RemoveCharAttribs(unsigned long, unsigned short)
-OutlinerView::SetOutliner(Outliner*)
-OutlinerView::SetStyleSheet(SfxStyleSheet*)
-OutlinerView::SpellIgnoreWord()
-OutlinerView::Undo()
 OutputDevice::DrawNativeControlText(unsigned int, unsigned int, Rectangle const&, unsigned int, ImplControlValue const&, rtl::OUString)
 OutputDevice::GetFontSubstitute(unsigned short, String&, String&, unsigned short&)
 OutputDevice::GetMinKashida(Font const&) const
@@ -379,8 +359,6 @@ PageSpan::getMarginLeft() const
 PageSpan::getMarginRight() const
 ParaPortion::DbgCheckTextPortions()
 ParaPortionList::DbgCheck(EditDoc&)
-ParagraphList::GetVisPos(Paragraph*) const
-ParagraphList::PrevVisible(Paragraph*) const
 ParagraphObj::ParagraphObj(ParagraphObj&)
 PathDialog::SetPath(Edit const&)
 PatternBox::GetString(unsigned short) const
@@ -427,7 +405,6 @@ SalI18N_InputContext::SetPreeditState(int)
 SanExtensionImpl::extractCertExt()
 SanExtensionImpl::setCertExtn(com::sun::star::uno::Sequence<signed char>, com::sun::star::uno::Sequence<signed char>, unsigned char)
 SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned char)
-SbMethod::GetLocals()
 SbPropertyContainer::SbPropertyContainer()
 SbPropertySetInfo::SbPropertySetInfo()
 SbTextPortions::Insert(SbTextPortions const*, unsigned short, unsigned short, unsigned short)
@@ -884,6 +861,8 @@ SvStringsSortDtor::Insert(SvStringsSortDtor const*, unsigned short, unsigned sho
 SvStringsSortDtor::Remove(String* const&, unsigned short)
 SvStringsSortDtor::Remove(unsigned short, unsigned short)
 SvTabListBox::GetTabJustify(unsigned short) const
+SvULongs::Insert(SvULongs const*, unsigned short, unsigned short, unsigned short)
+SvULongs::Remove(unsigned short, unsigned short)
 SvULongs::Replace(unsigned long const&, unsigned short)
 SvULongs::Replace(unsigned long const*, unsigned short, unsigned short)
 SvULongs::_ForEach(unsigned short, unsigned short, unsigned char (*)(unsigned long const&, void*), void*)
@@ -1110,9 +1089,6 @@ SvxLanguageBox::SvxLanguageBox(Window*, long, unsigned char)
 SvxLightCtl3D::SvxLightCtl3D(Window*, long)
 SvxLineColorItem::SvxLineColorItem(Color const&, unsigned short)
 SvxListBoxControl::RegisterControl(unsigned short, SfxModule*)
-SvxMSConvertOCXControls::OCX_Factory(String const&)
-SvxMSConvertOCXControls::WriteOCXExcelKludgeStream(SotStorageStreamRef&, com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> const&, com::sun::star::awt::Size const&, String&)
-SvxMSConvertOCXControls::WriteOCXStream(SotStorageRef&, com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> const&, com::sun::star::awt::Size const&, String&)
 SvxMSDffManager::GetAutoForm(MSO_SPT) const
 SvxMSDffManager::ImportFontWork(SvStream&, SfxItemSet&, Rectangle&) const
 SvxMSDffManager::Scale(PolyPolygon&) const
commit 11cc59815a3eb72fe1d2a50ad4e27d8716cc5642
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 30 00:04:25 2011 +0100

    use read_uInt8s_AsOString instead of hand-crafted loop

diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index 4d3de3b..3e97c55 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -705,15 +705,8 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
 
                             // get file header
                             rStr.Seek( 0 );
-                            const int nTrySize = 80;
-                            ByteString aHeader;
-                            for ( int j = 0; j < nTrySize && !rStr.IsEof(); j++ )
-                            {
-                                sal_Char c;
-                                rStr >> c;
-                                aHeader += c;
-                            }
-                            aHeader += '\0';
+                            const sal_Size nTrySize = 80;
+                            ByteString aHeader = read_uInt8s_AsOString(rStr, nTrySize);
 
                             if ( HTMLParser::IsHTMLFormat( aHeader.GetBuffer() ) )
                             {
commit d64707589f8165acd63028af0d6d7d684640666f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 29 23:03:16 2011 +0100

    callcatcher: unused methods

diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 6f38cd9..4614ee7 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -399,14 +399,6 @@ Rectangle ImpEditView::GetWindowPos( const Rectangle& rDocRect ) const
     return aRect;
 }
 
-
-Region* ImpEditView::CalcSelectedRegion()
-{
-    Region* pRegion = new Region;
-    DrawSelection( GetEditSelection(), pRegion );
-    return pRegion;
-}
-
 void ImpEditView::SetSelectionMode( EESelectionMode eNewMode )
 {
     if ( eSelectionMode != eNewMode )
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index 9cf13e0..1cf6002 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -316,7 +316,6 @@ public:
 
     void            DrawSelection() { DrawSelection( aEditSelection ); }
     void            DrawSelection( EditSelection, Region* pRegion = NULL );
-    Region*         CalcSelectedRegion();
 
     Window*         GetWindow() const           { return pOutWin; }
 
diff --git a/unusedcode.easy b/unusedcode.easy
index d6993b2..29c565c 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -227,7 +227,6 @@ ImageList::ReplaceImage(unsigned short, Image const&)
 ImageMap::GetBoundRect() const
 ImpBitmap::ImplDestroy()
 ImpDefaultMapper::ImpDefaultMapper(com::sun::star::uno::Reference<com::sun::star::beans::XPropertyState>&)
-ImpEditView::CalcSelectedRegion()
 ImpSvMEdit::SetInsertMode(unsigned char)
 ImpSvtData::~ImpSvtData()
 ImplBorderWindow::ImplBorderWindow(Window*, long, unsigned short, com::sun::star::uno::Any const&)
commit 1b78b83fbdd16a83780085bc528f7fc733fae5fe
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 29 23:02:56 2011 +0100

    tweak ambiguities for F-15 gcc 4.6.1-9

diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index 3350275..f11df1c 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -1800,10 +1800,13 @@ void ODatabaseDocument::disposing()
     ::osl::ClearableMutexGuard aGuard( m_aMutex );
 
     OSL_ENSURE( m_aControllers.empty(), "ODatabaseDocument::disposing: there still are controllers!" );
-        // normally, nobody should explicitly dispose, but only XCloseable::close the document. And upon
-        // closing, our controllers are closed, too
+    // normally, nobody should explicitly dispose, but only XCloseable::close
+    // the document. And upon closing, our controllers are closed, too
 
-    aKeepAlive.push_back( m_xUIConfigurationManager );
+    {
+        uno::Reference<uno::XInterface> xUIInterface = m_xUIConfigurationManager;
+        aKeepAlive.push_back( xUIInterface );
+    }
     m_xUIConfigurationManager = NULL;
 
     clearObjectContainer( m_xForms );
@@ -1825,10 +1828,16 @@ void ODatabaseDocument::disposing()
     OSL_ENSURE( m_aControllers.empty(), "ODatabaseDocument::disposing: there still are controllers!" );
     impl_disposeControllerFrames_nothrow();
 
-    aKeepAlive.push_back( m_xModuleManager );
+    {
+        uno::Reference<uno::XInterface> xModuleInterface = m_xModuleManager;
+        aKeepAlive.push_back( xModuleInterface );
+    }
     m_xModuleManager.clear();
 
-    aKeepAlive.push_back( m_xTitleHelper );
+    {
+        uno::Reference<uno::XInterface> xTitleInterface = m_xTitleHelper;
+        aKeepAlive.push_back( xTitleInterface );
+    }
     m_xTitleHelper.clear();
 
     m_pImpl.clear();
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index fb13669..34bc0b0 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -784,7 +784,7 @@ sal_Bool SbaTableQueryBrowser::InitializeGridModel(const Reference< ::com::sun::
                         if ( xSupplier.is() )
                             aInitialValues.push_back( NamedValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FormatsSupplier")), makeAny( xSupplier ) ) );
                         aInitialValues.push_back( NamedValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TreatAsNumber")), makeAny( (sal_Bool)bFormattedIsNumeric ) ) );
-                        aCopyProperties.push_back( PROPERTY_FORMATKEY );
+                        aCopyProperties.push_back( static_cast<const rtl::OUString&>(PROPERTY_FORMATKEY) );
                         break;
                 }
 
@@ -817,8 +817,8 @@ sal_Bool SbaTableQueryBrowser::InitializeGridModel(const Reference< ::com::sun::
                     aInitialValues.push_back( NamedValue( sDefaultProperty, aDefault ) );
 
                 // transfer properties from the definition to the UNO-model :
-                aCopyProperties.push_back( PROPERTY_HIDDEN );
-                aCopyProperties.push_back( PROPERTY_WIDTH );
+                aCopyProperties.push_back( static_cast<const rtl::OUString&>(PROPERTY_HIDDEN) );
+                aCopyProperties.push_back( static_cast<const rtl::OUString&>(PROPERTY_WIDTH) );
 
                 // help text to display for the column
                 Any aDescription;
diff --git a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
index 44b3953..b03b08c 100644
--- a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
@@ -254,7 +254,11 @@ namespace dbaui
             ::std::vector< Reference<XInterface> > aRelations;
             aRelations.reserve(5); // just guessing
             for (; aIter != aEnd ; ++aIter )
-                aRelations.push_back(getParentChild(aIter - pConnectionList->begin()));
+            {
+                uno::Reference<uno::XInterface> xInterface =
+                    getParentChild(aIter - pConnectionList->begin());
+                aRelations.push_back(xInterface);
+            }
 
             Reference<XInterface> *pRelations = aRelations.empty() ? 0 : &aRelations[0];
             Sequence< Reference<XInterface> > aSeq(pRelations, aRelations.size());
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx
index 98909e8..9d986e5 100644
--- a/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/reportdesign/source/filter/xml/xmlExport.cxx
@@ -1201,15 +1201,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormatted
             if ( !aPos.X )
             {
                 sBorderProp = PROPERTY_BORDERLEFT;
-                aProps.push_back(PROPERTY_BORDERRIGHT);
+                aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERRIGHT));
             }
             else
             {
                 sBorderProp = PROPERTY_BORDERRIGHT;
-                aProps.push_back(PROPERTY_BORDERLEFT);
+                aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERLEFT));
             }
-            aProps.push_back(PROPERTY_BORDERTOP);
-            aProps.push_back(PROPERTY_BORDERBOTTOM);
+            aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERTOP));
+            aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERBOTTOM));
         }
         else // horizontal
         {
@@ -1217,15 +1217,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormatted
             if ( (aPos.Y + aSize.Height) == nSectionHeight )
             {
                 sBorderProp = PROPERTY_BORDERBOTTOM;
-                aProps.push_back(PROPERTY_BORDERTOP);
+                aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERTOP));
             }
             else
             {
                 sBorderProp = PROPERTY_BORDERTOP;
-                aProps.push_back(PROPERTY_BORDERBOTTOM);
+                aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERBOTTOM));
             }
-            aProps.push_back(PROPERTY_BORDERRIGHT);
-            aProps.push_back(PROPERTY_BORDERLEFT);
+            aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERRIGHT));
+            aProps.push_back(static_cast<const rtl::OUString&>(PROPERTY_BORDERLEFT));
         }
 
         xBorderProp->setPropertyValue(sBorderProp,uno::makeAny(aValue));
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index d8aa5eb..974a2f4 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -258,7 +258,8 @@ void lcl_getReportControlFormat(const Sequence< PropertyValue >& aArgs,
     }
     else
     {
-        _rControlsFormats.push_back(xReportControlFormat);
+        uno::Reference<uno::XInterface> xInterface = xReportControlFormat;
+        _rControlsFormats.push_back(xInterface);
     }
 
     if ( !_xWindow.is() )
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index 9f72392..a88e188 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -727,7 +727,11 @@ void OReportSection::fillControlModelSelection(::std::vector< uno::Reference< un
             const SdrObject* pDlgEdObj = rMarkList.GetMark(i)->GetMarkedSdrObj();
             const OObjectBase* pObj = dynamic_cast<const OObjectBase*>(pDlgEdObj);
             if ( pObj )
-                _rSelection.push_back(pObj->getReportComponent());
+            {
+                uno::Reference<uno::XInterface> xInterface =
+                    pObj->getReportComponent();
+                _rSelection.push_back(xInterface);
+            }
         }
     }
 }
commit 350e1e245643e107b6e46b2de3dc73906ab844a5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 29 21:59:28 2011 +0100

    help gcc 4.6.1 out with ambiguity

diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx
index 8514e44..d3d9824 100644
--- a/vcl/unx/gtk/a11y/atkutil.cxx
+++ b/vcl/unx/gtk/a11y/atkutil.cxx
@@ -318,8 +318,12 @@ void DocumentFocusListener::attachRecursive(
     uno::Reference< accessibility::XAccessibleEventBroadcaster > xBroadcaster =
         uno::Reference< accessibility::XAccessibleEventBroadcaster >(xContext, uno::UNO_QUERY);
 
+    if (!xBroadcaster.is())
+        return;
+
     // If not already done, add the broadcaster to the list and attach as listener.
-    if( xBroadcaster.is() && m_aRefList.insert(xBroadcaster).second )
+    uno::Reference< uno::XInterface > xInterface = xBroadcaster;
+    if( m_aRefList.insert(xInterface).second )
     {
         xBroadcaster->addEventListener(static_cast< accessibility::XAccessibleEventListener *>(this));
 
commit 6fed5b838534c5aa01351bc85ebd6ab511ffd30d
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 29 21:49:03 2011 +0100

    Repeat not implemented

diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index 7e730bf..9cf13e0 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -838,7 +838,6 @@ public:
 //  For Undo/Redo
     sal_Bool        Undo( EditView* pView );
     sal_Bool        Redo( EditView* pView );
-    sal_Bool        Repeat( EditView* pView );
 
 //  OV-Special
     void            InvalidateFromParagraph( sal_uInt16 nFirstInvPara );
diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx
index d2f0631..31583c4 100644
--- a/editeng/source/editeng/impedit5.cxx
+++ b/editeng/source/editeng/impedit5.cxx
@@ -311,16 +311,6 @@ sal_Bool ImpEditEngine::Redo( EditView* pView )
     return sal_False;
 }
 
-sal_Bool ImpEditEngine::Repeat( EditView* /* pView */ )
-{
-    if ( HasUndoManager() && GetUndoManager().GetRepeatActionCount() )
-    {
-        DBG_WARNING( "Repeat not implemented!" );
-        return sal_True;
-    }
-    return sal_False;
-}
-
 SfxItemSet ImpEditEngine::GetAttribs( EditSelection aSel, sal_Bool bOnlyHardAttrib )
 {
     DBG_CHKOBJ( GetEditEnginePtr(), EditEngine, 0 );
diff --git a/unusedcode.easy b/unusedcode.easy
index 3eb0e3b..d6993b2 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -227,7 +227,6 @@ ImageList::ReplaceImage(unsigned short, Image const&)
 ImageMap::GetBoundRect() const
 ImpBitmap::ImplDestroy()
 ImpDefaultMapper::ImpDefaultMapper(com::sun::star::uno::Reference<com::sun::star::beans::XPropertyState>&)
-ImpEditEngine::Repeat(EditView*)
 ImpEditView::CalcSelectedRegion()
 ImpSvMEdit::SetInsertMode(unsigned char)
 ImpSvtData::~ImpSvtData()
commit 1f5c696c371a36868c64cb2854a039446ddaddf7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 29 21:42:27 2011 +0100

    add mode-lines to .m files and last round of merged files, etc.

diff --git a/basegfx/inc/basegfx/tools/unotools.hxx b/basegfx/inc/basegfx/tools/unotools.hxx
index 52e2069..108a1b3 100644
--- a/basegfx/inc/basegfx/tools/unotools.hxx
+++ b/basegfx/inc/basegfx/tools/unotools.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*
  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
  *
@@ -53,3 +54,5 @@ namespace unotools
 }
 
 #endif /* INCLUDED_BASEGFX_UNOTOOLS_HXX */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basegfx/source/tools/unotools.cxx b/basegfx/source/tools/unotools.cxx
index 710568b..6cd6bbf 100644
--- a/basegfx/source/tools/unotools.cxx
+++ b/basegfx/source/tools/unotools.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -262,3 +263,5 @@ namespace unotools
 
 }
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/inc/basic/vbahelper.hxx b/basic/inc/basic/vbahelper.hxx
index 1586c1f..26ec118 100644
--- a/basic/inc/basic/vbahelper.hxx
+++ b/basic/inc/basic/vbahelper.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -134,3 +135,5 @@ BASIC_DLLPUBLIC ::rtl::OUString getCurrentDirectory(
 } // namespace basic
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/basmgr/vbahelper.cxx b/basic/source/basmgr/vbahelper.cxx
index 555e116..267626f 100644
--- a/basic/source/basmgr/vbahelper.cxx
+++ b/basic/source/basmgr/vbahelper.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -264,3 +265,5 @@ void registerCurrentDirectory( const uno::Reference< frame::XModel >& rxModel, c
 
 } // namespace vba
 } // namespace basic
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/inc/sbdiagnose.hxx b/basic/source/inc/sbdiagnose.hxx
index 065efdb..2422da2 100644
--- a/basic/source/inc/sbdiagnose.hxx
+++ b/basic/source/inc/sbdiagnose.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -32,3 +33,5 @@ void    ResetCapturedAssertions();
 #endif
 
 #endif // BASIC_SBDIAGNOSE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/inc/sbtrace.hxx b/basic/source/inc/sbtrace.hxx
index 1f450d5..1cf1774 100644
--- a/basic/source/inc/sbtrace.hxx
+++ b/basic/source/inc/sbtrace.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -55,3 +56,5 @@ void RTL_Impl_TraceCommand( StarBASIC* pBasic, SbxArray& rPar, BOOL bWrite );
 #endif
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/runtime/comenumwrapper.cxx b/basic/source/runtime/comenumwrapper.cxx
index 45e3a5f..5fb3c32 100644
--- a/basic/source/runtime/comenumwrapper.cxx
+++ b/basic/source/runtime/comenumwrapper.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -79,3 +80,4 @@ uno::Any SAL_CALL ComEnumerationWrapper::nextElement()
 }
 
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/runtime/comenumwrapper.hxx b/basic/source/runtime/comenumwrapper.hxx
index b2464d6..99057df 100644
--- a/basic/source/runtime/comenumwrapper.hxx
+++ b/basic/source/runtime/comenumwrapper.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -52,3 +53,4 @@ public:
 
 #endif // _COMENUMWRAPPER_HXX
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/runtime/sbdiagnose.cxx b/basic/source/runtime/sbdiagnose.cxx
index 97bfb0a..3516425 100644
--- a/basic/source/runtime/sbdiagnose.cxx
+++ b/basic/source/runtime/sbdiagnose.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -132,3 +133,4 @@ RTLFUNC(CaptureAssertions)
 #endif
 }
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/sbx/sbxvals.cxx b/basic/source/sbx/sbxvals.cxx
index 71a3bfc..b3dede2 100644
--- a/basic/source/sbx/sbxvals.cxx
+++ b/basic/source/sbx/sbxvals.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107,3 +108,5 @@ BigInt::BigInt( const SbxUINT64 &r )
     *this *= a10000;
     *this += (sal_uInt16)r.nLow;
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/workben/mgrtest.cxx b/basic/workben/mgrtest.cxx
index 49d63ad..4d8112c 100644
--- a/basic/workben/mgrtest.cxx
+++ b/basic/workben/mgrtest.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -588,3 +589,5 @@ void __EXPORT TestApp::Main( int, char*[] )
 
 
 TestApp aTestApp;
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/main/ChartModelClone.cxx b/chart2/source/controller/main/ChartModelClone.cxx
index 69991eb..8446dfe 100644
--- a/chart2/source/controller/main/ChartModelClone.cxx
+++ b/chart2/source/controller/main/ChartModelClone.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -278,3 +279,5 @@ namespace chart
 //......................................................................................................................
 } // namespace chart
 //......................................................................................................................
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/main/ChartModelClone.hxx b/chart2/source/controller/main/ChartModelClone.hxx
index d5653b8..a1bfc62 100644
--- a/chart2/source/controller/main/ChartModelClone.hxx
+++ b/chart2/source/controller/main/ChartModelClone.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -87,3 +88,5 @@ namespace chart
 //......................................................................................................................
 
 #endif // CHART2_CHARTMODELCLONE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/main/UndoActions.cxx b/chart2/source/controller/main/UndoActions.cxx
index 86c0e36..ba00d2e 100644
--- a/chart2/source/controller/main/UndoActions.cxx
+++ b/chart2/source/controller/main/UndoActions.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -176,3 +177,5 @@ void SAL_CALL ShapeUndoElement::disposing()
 
 } // namespace impl
 } //  namespace chart
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/main/UndoActions.hxx b/chart2/source/controller/main/UndoActions.hxx
index 2c98d6a..9862f37 100644
--- a/chart2/source/controller/main/UndoActions.hxx
+++ b/chart2/source/controller/main/UndoActions.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -132,3 +133,5 @@ private:
 
 // CHART2_IMPLUNDOMANAGER_HXX
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/main/UndoGuard.hxx b/chart2/source/controller/main/UndoGuard.hxx
index c5c00dd..ccf2504 100644
--- a/chart2/source/controller/main/UndoGuard.hxx
+++ b/chart2/source/controller/main/UndoGuard.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -135,3 +136,5 @@ private:
 }
 // CHART2_UNDOGUARD_HXX
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/inc/NumberFormatterWrapper.hxx b/chart2/source/inc/NumberFormatterWrapper.hxx
index 77e2423..90d7c14 100644
--- a/chart2/source/inc/NumberFormatterWrapper.hxx
+++ b/chart2/source/inc/NumberFormatterWrapper.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -81,3 +82,5 @@ private:
 } //namespace chart
 //.............................................................................
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/inc/chartview/ExplicitScaleValues.hxx b/chart2/source/inc/chartview/ExplicitScaleValues.hxx
index 48c9ef9..bf43ae7 100644
--- a/chart2/source/inc/chartview/ExplicitScaleValues.hxx
+++ b/chart2/source/inc/chartview/ExplicitScaleValues.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -163,3 +164,5 @@ struct OOO_DLLPUBLIC_CHARTVIEW ExplicitIncrementData
 } //namespace chart
 //.............................................................................
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/main/UndoManager.cxx b/chart2/source/model/main/UndoManager.cxx
index 4efe57e..6cb6aa4 100644
--- a/chart2/source/model/main/UndoManager.cxx
+++ b/chart2/source/model/main/UndoManager.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -425,3 +426,5 @@ namespace chart
 //......................................................................................................................
 } // namespace chart
 //......................................................................................................................
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/main/UndoManager.hxx b/chart2/source/model/main/UndoManager.hxx
index 0709120..5982ff4 100644
--- a/chart2/source/model/main/UndoManager.hxx
+++ b/chart2/source/model/main/UndoManager.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -107,3 +108,5 @@ namespace chart
 //......................................................................................................................
 
 #endif // CHART2_UNDOMANAGER_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/DateHelper.cxx b/chart2/source/view/axes/DateHelper.cxx
index 7159a73..6d9e7da 100644
--- a/chart2/source/view/axes/DateHelper.cxx
+++ b/chart2/source/view/axes/DateHelper.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -130,3 +131,5 @@ double DateHelper::RasterizeDateValue( double fValue, const Date& rNullDate, lon
 //.............................................................................
 } //namespace chart
 //.............................................................................
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx
index 8a69e83..421841f 100644
--- a/chart2/source/view/axes/DateScaling.cxx
+++ b/chart2/source/view/axes/DateScaling.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -214,3 +215,5 @@ APPHELPER_XSERVICEINFO_IMPL( InverseDateScaling, lcl_aServiceName_InverseDateSca
 //.............................................................................
 } //namespace chart
 //.............................................................................
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/DateScaling.hxx b/chart2/source/view/axes/DateScaling.hxx
index 5e55060..e5356ef 100644
--- a/chart2/source/view/axes/DateScaling.hxx
+++ b/chart2/source/view/axes/DateScaling.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -112,3 +113,4 @@ private:
 //.............................................................................
 #endif
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/Tickmarks.cxx b/chart2/source/view/axes/Tickmarks.cxx
index 6f6076a..2f50f41 100644
--- a/chart2/source/view/axes/Tickmarks.cxx
+++ b/chart2/source/view/axes/Tickmarks.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -330,3 +331,5 @@ void TickFactory_2D::updateScreenValues( ::std::vector< ::std::vector< TickInfo
 //.............................................................................
 } //namespace chart
 //.............................................................................
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/Tickmarks.hxx b/chart2/source/view/axes/Tickmarks.hxx
index 62fa5fe..ab0311b 100644
--- a/chart2/source/view/axes/Tickmarks.hxx
+++ b/chart2/source/view/axes/Tickmarks.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -164,3 +165,5 @@ private: //member
 } //namespace chart
 //.............................................................................
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/Tickmarks_Dates.cxx b/chart2/source/view/axes/Tickmarks_Dates.cxx
index de5e43a..4825f88 100644
--- a/chart2/source/view/axes/Tickmarks_Dates.cxx
+++ b/chart2/source/view/axes/Tickmarks_Dates.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -168,3 +169,5 @@ void DateTickFactory::getAllTicksShifted( ::std::vector< ::std::vector< TickInfo
 //.............................................................................
 } //namespace chart
 //.............................................................................
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/Tickmarks_Dates.hxx b/chart2/source/view/axes/Tickmarks_Dates.hxx
index 464e8b4..a4be6fe 100644
--- a/chart2/source/view/axes/Tickmarks_Dates.hxx
+++ b/chart2/source/view/axes/Tickmarks_Dates.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63,3 +64,5 @@ private: //member
 } //namespace chart
 //.............................................................................
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/Tickmarks_Equidistant.cxx b/chart2/source/view/axes/Tickmarks_Equidistant.cxx
index 086011e..1217c71 100644
--- a/chart2/source/view/axes/Tickmarks_Equidistant.cxx
+++ b/chart2/source/view/axes/Tickmarks_Equidistant.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -678,3 +679,5 @@ TickInfo* EquidistantTickIter::nextInfo()
 //.............................................................................
 } //namespace chart
 //.............................................................................
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/Tickmarks_Equidistant.hxx b/chart2/source/view/axes/Tickmarks_Equidistant.hxx
index 836a93d..c312b2f 100644
--- a/chart2/source/view/axes/Tickmarks_Equidistant.hxx
+++ b/chart2/source/view/axes/Tickmarks_Equidistant.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -164,3 +165,5 @@ private: //member
 } //namespace chart
 //.............................................................................
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/inc/comphelper/anycompare.hxx b/comphelper/inc/comphelper/anycompare.hxx
index 03f41e1..7ce7983 100644
--- a/comphelper/inc/comphelper/anycompare.hxx
+++ b/comphelper/inc/comphelper/anycompare.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -224,3 +225,5 @@ namespace comphelper
 //......................................................................................................................
 
 #endif // COMPHELPER_ANYCOMPARE_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/inc/comphelper/componentguard.hxx b/comphelper/inc/comphelper/componentguard.hxx
index 820b901..04654fa 100644
--- a/comphelper/inc/comphelper/componentguard.hxx
+++ b/comphelper/inc/comphelper/componentguard.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -68,3 +69,5 @@ namespace comphelper
 //......................................................................................................................
 
 #endif // COMPHELPER_COMPONENTGUARD_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/inc/comphelper/flagguard.hxx b/comphelper/inc/comphelper/flagguard.hxx
index 4fc1f4e..e23522a 100644
--- a/comphelper/inc/comphelper/flagguard.hxx
+++ b/comphelper/inc/comphelper/flagguard.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -81,3 +82,5 @@ namespace comphelper
 //......................................................................................................................
 
 #endif // COMPHELPER_FLAGGUARD_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/anycompare.cxx b/comphelper/source/misc/anycompare.cxx
index f776b36..f05beda 100644
--- a/comphelper/source/misc/anycompare.cxx
+++ b/comphelper/source/misc/anycompare.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -131,3 +132,5 @@ namespace comphelper
 //......................................................................................................................
 } // namespace comphelper
 //......................................................................................................................
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cppcanvas/source/mtfrenderer/rendergraphicaction.cxx b/cppcanvas/source/mtfrenderer/rendergraphicaction.cxx
index 764d3ea..222a510 100644
--- a/cppcanvas/source/mtfrenderer/rendergraphicaction.cxx
+++ b/cppcanvas/source/mtfrenderer/rendergraphicaction.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -199,3 +200,5 @@ namespace cppcanvas
         }
     }
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cppcanvas/source/mtfrenderer/rendergraphicaction.hxx b/cppcanvas/source/mtfrenderer/rendergraphicaction.hxx
index f1e2dcc..684adeb 100644
--- a/cppcanvas/source/mtfrenderer/rendergraphicaction.hxx
+++ b/cppcanvas/source/mtfrenderer/rendergraphicaction.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -75,3 +76,5 @@ namespace cppcanvas
 }
 
 #endif /*_CPPCANVAS_RENDERGRAPHICACTION_HXX */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/test/deployment/active/active_native.cxx b/desktop/test/deployment/active/active_native.cxx
index 6507cdb..5b9b56a 100644
--- a/desktop/test/deployment/active/active_native.cxx
+++ b/desktop/test/deployment/active/active_native.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -312,3 +313,5 @@ extern "C" sal_Bool SAL_CALL component_writeInfo(
     }
     return true;
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/test/deployment/passive/passive_native.cxx b/desktop/test/deployment/passive/passive_native.cxx
index 939e820..27fd2a7 100644
--- a/desktop/test/deployment/passive/passive_native.cxx
+++ b/desktop/test/deployment/passive/passive_native.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -281,3 +282,5 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
     return cppu::component_getFactoryHelper(
         pImplName, pServiceManager, pRegistryKey, services);
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dmake/dbug/dbug/example1.c b/dmake/dbug/dbug/example1.c
old mode 100755
new mode 100644
diff --git a/dmake/dbug/dbug/example2.c b/dmake/dbug/dbug/example2.c
old mode 100755
new mode 100644
diff --git a/dmake/dbug/dbug/example3.c b/dmake/dbug/dbug/example3.c
old mode 100755
new mode 100644
diff --git a/dmake/dbug/dbug/factorial.c b/dmake/dbug/dbug/factorial.c
old mode 100755
new mode 100644
diff --git a/dmake/dbug/dbug/main.c b/dmake/dbug/dbug/main.c
old mode 100755
new mode 100644
diff --git a/drawinglayer/inc/drawinglayer/primitive2d/discreteshadowprimitive2d.hxx b/drawinglayer/inc/drawinglayer/primitive2d/discreteshadowprimitive2d.hxx
index 795f4d9..de2e6ae 100644
--- a/drawinglayer/inc/drawinglayer/primitive2d/discreteshadowprimitive2d.hxx
+++ b/drawinglayer/inc/drawinglayer/primitive2d/discreteshadowprimitive2d.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -128,3 +129,5 @@ namespace drawinglayer
 
 //////////////////////////////////////////////////////////////////////////////
 // eof
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/drawinglayer/inc/drawinglayer/primitive2d/rendergraphicprimitive2d.hxx b/drawinglayer/inc/drawinglayer/primitive2d/rendergraphicprimitive2d.hxx
index 1904394..1c0a7ce 100644
--- a/drawinglayer/inc/drawinglayer/primitive2d/rendergraphicprimitive2d.hxx
+++ b/drawinglayer/inc/drawinglayer/primitive2d/rendergraphicprimitive2d.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -93,3 +94,5 @@ namespace drawinglayer
 
 //////////////////////////////////////////////////////////////////////////////
 // eof
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx b/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx
index a4afd50..e776d85 100644
--- a/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/discreteshadowprimitive2d.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -337,3 +338,5 @@ namespace drawinglayer
 
 //////////////////////////////////////////////////////////////////////////////
 // eof
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/drawinglayer/source/primitive2d/rendergraphicprimitive2d.cxx b/drawinglayer/source/primitive2d/rendergraphicprimitive2d.cxx
index 439937f..0ff3e35 100644
--- a/drawinglayer/source/primitive2d/rendergraphicprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/rendergraphicprimitive2d.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -90,3 +91,5 @@ namespace drawinglayer
 
 //////////////////////////////////////////////////////////////////////////////
 // eof
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/macosx/spotlight/GetMetadataForFile.m b/extensions/source/macosx/spotlight/GetMetadataForFile.m
index 40d7850..78a6af5 100644
--- a/extensions/source/macosx/spotlight/GetMetadataForFile.m
+++ b/extensions/source/macosx/spotlight/GetMetadataForFile.m
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -68,3 +69,5 @@ Boolean GetMetadataForFile(void* thisInterface,
     
     return importOK;
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/macosx/spotlight/OOoContentDataParser.m b/extensions/source/macosx/spotlight/OOoContentDataParser.m
index 0bcfa91..a41a108 100644
--- a/extensions/source/macosx/spotlight/OOoContentDataParser.m
+++ b/extensions/source/macosx/spotlight/OOoContentDataParser.m
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -137,3 +138,5 @@
 }
 
 @end
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/macosx/spotlight/OOoMetaDataParser.m b/extensions/source/macosx/spotlight/OOoMetaDataParser.m
index 8bc90c8..3c8bb4c 100644
--- a/extensions/source/macosx/spotlight/OOoMetaDataParser.m
+++ b/extensions/source/macosx/spotlight/OOoMetaDataParser.m
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -203,3 +204,5 @@ static NSDictionary *metaXML2MDIKeys;
 }
 
 @end
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/macosx/spotlight/OOoSpotlightImporter.m b/extensions/source/macosx/spotlight/OOoSpotlightImporter.m
index c5918e2..884fb80 100644
--- a/extensions/source/macosx/spotlight/OOoSpotlightImporter.m
+++ b/extensions/source/macosx/spotlight/OOoSpotlightImporter.m
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -233,3 +234,5 @@ static NSDictionary *uti2kind;
 
 
 @end
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/macosx/spotlight/ioapi.m b/extensions/source/macosx/spotlight/ioapi.m
index c1508d7..fb9d53f 100644
--- a/extensions/source/macosx/spotlight/ioapi.m
+++ b/extensions/source/macosx/spotlight/ioapi.m
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -202,3 +203,5 @@ void fill_fopen_filefunc (pzlib_filefunc_def)
     pzlib_filefunc_def->zerror_file = ferror_file_func;
     pzlib_filefunc_def->opaque = NULL;
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/macosx/spotlight/main.m b/extensions/source/macosx/spotlight/main.m
index b9afc65..74bcca9 100644
--- a/extensions/source/macosx/spotlight/main.m
+++ b/extensions/source/macosx/spotlight/main.m
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 //
 //  main.c
 //  SpotlightTester
@@ -223,3 +224,4 @@ void *MetadataImporterPluginFactory(CFAllocatorRef allocator,CFUUIDRef typeID)
     return NULL;
 }
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/macosx/spotlight/unzip.m b/extensions/source/macosx/spotlight/unzip.m
index fe8fad5..a7c8f2d 100644
--- a/extensions/source/macosx/spotlight/unzip.m
+++ b/extensions/source/macosx/spotlight/unzip.m
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1584,3 +1585,5 @@ extern int ZEXPORT unzSetOffset (file, pos)
     s->current_file_ok = (err == UNZ_OK);
     return err;
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/graphicfilter/ipict/shape.cxx b/filter/source/graphicfilter/ipict/shape.cxx
index 8af7e00..2663b2f 100644
--- a/filter/source/graphicfilter/ipict/shape.cxx
+++ b/filter/source/graphicfilter/ipict/shape.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -264,3 +265,5 @@ namespace PictReaderShape {
 
 
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/graphicfilter/ipict/shape.hxx b/filter/source/graphicfilter/ipict/shape.hxx
index 635a7cf..d5f83b0 100644
--- a/filter/source/graphicfilter/ipict/shape.hxx
+++ b/filter/source/graphicfilter/ipict/shape.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -58,3 +59,5 @@ namespace PictReaderShape {
   */
   void drawArc(VirtualDevice *dev, bool drawFrame, Rectangle const &orig, const double& angle1, const double& angle2, Size const &pSize);
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/msfilter/services.cxx b/filter/source/msfilter/services.cxx
index cd081b5..9586d42 100644
--- a/filter/source/msfilter/services.cxx
+++ b/filter/source/msfilter/services.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -63,3 +64,5 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const char*
 {
     return ::cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, spServices );
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/pdfinteract.cxx b/filter/source/pdf/pdfinteract.cxx
index 23ea98d..d074c07 100644
--- a/filter/source/pdf/pdfinteract.cxx
+++ b/filter/source/pdf/pdfinteract.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -135,3 +136,5 @@ sal_Bool SAL_CALL PDFInteractionHandler::supportsService( const OUString& rServi
 {
     return PDFInteractionHandler_getSupportedServiceNames();
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/pdfinteract.hxx b/filter/source/pdf/pdfinteract.hxx
index 4cffc70..421b3e5 100644
--- a/filter/source/pdf/pdfinteract.hxx
+++ b/filter/source/pdf/pdfinteract.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -89,3 +90,4 @@ SAL_CALL PDFInteractionHandler_createInstance( const Reference< XMultiServiceFac
 
 #endif // PDFINTERACT_HXX
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/svg/impsvgdialog.cxx b/filter/source/svg/impsvgdialog.cxx
index 27affcf..ad4a018 100644
--- a/filter/source/svg/impsvgdialog.cxx
+++ b/filter/source/svg/impsvgdialog.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  /*************************************************************************
  *
  *  OpenOffice.org - a multi-platform office productivity suite
@@ -142,3 +143,5 @@ IMPL_LINK( ImpSVGDialog, OnToggleCheckbox, CheckBox*, pBox )
 
     return 0;
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/svg/impsvgdialog.hxx b/filter/source/svg/impsvgdialog.hxx
index f668783..6a7e13a 100644
--- a/filter/source/svg/impsvgdialog.hxx
+++ b/filter/source/svg/impsvgdialog.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  *  OpenOffice.org - a multi-platform office productivity suite
@@ -88,3 +89,5 @@ public:
 };
 
 #endif // IMPSVGDIALOG_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/svg/svgdialog.cxx b/filter/source/svg/svgdialog.cxx
index b89479f..d1fc79d 100644
--- a/filter/source/svg/svgdialog.cxx
+++ b/filter/source/svg/svgdialog.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  /*************************************************************************
  *
  *  OpenOffice.org - a multi-platform office productivity suite
@@ -261,3 +262,5 @@ void SAL_CALL SVGDialog::setSourceDocument( const Reference< XComponent >& xDoc
 {
     mxSrcDoc = xDoc;
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/svg/svgdialog.hxx b/filter/source/svg/svgdialog.hxx
index 0a4bf3d..d4f0ff1 100644
--- a/filter/source/svg/svgdialog.hxx
+++ b/filter/source/svg/svgdialog.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  *  OpenOffice.org - a multi-platform office productivity suite
@@ -112,3 +113,5 @@ sal_Bool SAL_CALL SVGDialog_supportsService( const ::rtl::OUString& ServiceName
         throw ( ::com::sun::star::uno::Exception );
 
 #endif // SVGDialog_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
index cf1766d..cceb0c5 100644
--- a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
+++ b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  *  OpenOffice.org - a multi-platform office productivity suite
@@ -548,3 +549,5 @@ int main(int argc, char* argv[])
         return EXIT_FAILURE;
     }
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/core/fastparser.hxx b/oox/inc/oox/core/fastparser.hxx
index 3d13a49..04f8b7f 100644
--- a/oox/inc/oox/core/fastparser.hxx
+++ b/oox/inc/oox/core/fastparser.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -101,3 +102,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/drawingml/scene3dcontext.hxx b/oox/inc/oox/drawingml/scene3dcontext.hxx
index 0fe5906..cac36f3 100644
--- a/oox/inc/oox/drawingml/scene3dcontext.hxx
+++ b/oox/inc/oox/drawingml/scene3dcontext.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -51,3 +52,5 @@ private:
 } }
 
 #endif // OOX_DRAWINGML_SCENE3DPROPERTIESCONTEXT_HPP
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/drawingml/shape3dproperties.hxx b/oox/inc/oox/drawingml/shape3dproperties.hxx
index 710964f..9b6dfab 100644
--- a/oox/inc/oox/drawingml/shape3dproperties.hxx
+++ b/oox/inc/oox/drawingml/shape3dproperties.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -130,3 +131,4 @@ struct Shape3DProperties
 
 #endif
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/drawingml/shapepropertymap.hxx b/oox/inc/oox/drawingml/shapepropertymap.hxx
old mode 100755
new mode 100644
index e2326bd..b467288
--- a/oox/inc/oox/drawingml/shapepropertymap.hxx
+++ b/oox/inc/oox/drawingml/shapepropertymap.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -149,3 +150,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/helper/refmap.hxx b/oox/inc/oox/helper/refmap.hxx
index 8afaa10..f5854bc 100644
--- a/oox/inc/oox/helper/refmap.hxx
+++ b/oox/inc/oox/helper/refmap.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -189,3 +190,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/helper/refvector.hxx b/oox/inc/oox/helper/refvector.hxx
index 0a2d8be..3c830ca 100644
--- a/oox/inc/oox/helper/refvector.hxx
+++ b/oox/inc/oox/helper/refvector.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -199,3 +200,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/ppt/dgmimport.hxx b/oox/inc/oox/ppt/dgmimport.hxx
index 4d44f45..74f8020 100644
--- a/oox/inc/oox/ppt/dgmimport.hxx
+++ b/oox/inc/oox/ppt/dgmimport.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -66,3 +67,5 @@ private:
 } }
 
 #endif // OOX_POWERPOINT_QUICKDIAGRAMMINGIMPORT_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/ppt/dgmlayout.hxx b/oox/inc/oox/ppt/dgmlayout.hxx
index 893348a..35c0857 100644
--- a/oox/inc/oox/ppt/dgmlayout.hxx
+++ b/oox/inc/oox/ppt/dgmlayout.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -67,3 +68,5 @@ private:
 } }
 
 #endif // OOX_POWERPOINT_QUICKDIAGRAMMINGLAYOUT_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/token/namespacemap.hxx b/oox/inc/oox/token/namespacemap.hxx
index e4daa18..6abd0f7 100644
--- a/oox/inc/oox/token/namespacemap.hxx
+++ b/oox/inc/oox/token/namespacemap.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -47,3 +48,5 @@ struct StaticNamespaceMap : public ::rtl::Static< NamespaceMap, StaticNamespaceM
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/vml/vmltextbox.hxx b/oox/inc/oox/vml/vmltextbox.hxx
index 5aedaf8..6ba9e12 100644
--- a/oox/inc/oox/vml/vmltextbox.hxx
+++ b/oox/inc/oox/vml/vmltextbox.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -93,3 +94,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/vml/vmltextboxcontext.hxx b/oox/inc/oox/vml/vmltextboxcontext.hxx
index 1dc8832..64c1c97 100644
--- a/oox/inc/oox/vml/vmltextboxcontext.hxx
+++ b/oox/inc/oox/vml/vmltextboxcontext.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -80,3 +81,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/xls/autofilterbuffer.hxx b/oox/inc/oox/xls/autofilterbuffer.hxx
index ddf083c..bc2a986 100644
--- a/oox/inc/oox/xls/autofilterbuffer.hxx
+++ b/oox/inc/oox/xls/autofilterbuffer.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -277,3 +278,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/xls/connectionsbuffer.hxx b/oox/inc/oox/xls/connectionsbuffer.hxx
index 98a5bea..0674638 100644
--- a/oox/inc/oox/xls/connectionsbuffer.hxx
+++ b/oox/inc/oox/xls/connectionsbuffer.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -184,3 +185,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/xls/drawingbase.hxx b/oox/inc/oox/xls/drawingbase.hxx
old mode 100755
new mode 100644
index 61d60ad..c79eb7a
--- a/oox/inc/oox/xls/drawingbase.hxx
+++ b/oox/inc/oox/xls/drawingbase.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -146,3 +147,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/xls/drawingmanager.hxx b/oox/inc/oox/xls/drawingmanager.hxx
old mode 100755
new mode 100644
index 91fba91..dc0ae40
--- a/oox/inc/oox/xls/drawingmanager.hxx
+++ b/oox/inc/oox/xls/drawingmanager.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -519,3 +520,5 @@ public:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/xls/querytablebuffer.hxx b/oox/inc/oox/xls/querytablebuffer.hxx
index fa67ca8..ae50bf6 100644
--- a/oox/inc/oox/xls/querytablebuffer.hxx
+++ b/oox/inc/oox/xls/querytablebuffer.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -107,3 +108,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/inc/oox/xls/sheetdatabuffer.hxx b/oox/inc/oox/xls/sheetdatabuffer.hxx
old mode 100755
new mode 100644
index 2b3c753..8e19f8a
--- a/oox/inc/oox/xls/sheetdatabuffer.hxx
+++ b/oox/inc/oox/xls/sheetdatabuffer.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -352,3 +353,5 @@ private:
 } // namespace oox
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/core/fastparser.cxx b/oox/source/core/fastparser.cxx
index d6b37bc..b2e026c 100644
--- a/oox/source/core/fastparser.cxx
+++ b/oox/source/core/fastparser.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -152,3 +153,5 @@ sal_Int32 FastParser::getNamespaceId( const OUString& rUrl )
 
 } // namespace core
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/core/services.cxx b/oox/source/core/services.cxx
index a0d2a46..cc95050 100644
--- a/oox/source/core/services.cxx
+++ b/oox/source/core/services.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -89,3 +90,5 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const char*
 {
     return ::cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, spServices );
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/drawingml/scene3dcontext.cxx b/oox/source/drawingml/scene3dcontext.cxx
index 0c3af8b..31307c8 100644
--- a/oox/source/drawingml/scene3dcontext.cxx
+++ b/oox/source/drawingml/scene3dcontext.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -184,3 +185,5 @@ XML_brightRoom
 }
 
 } }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/drawingml/shape3dproperties.cxx b/oox/source/drawingml/shape3dproperties.cxx
index 357287c..b335294 100644
--- a/oox/source/drawingml/shape3dproperties.cxx
+++ b/oox/source/drawingml/shape3dproperties.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -61,3 +62,4 @@ namespace drawingml {
 } // namespace drawingml
 } // namespace oox
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/drawingml/shapepropertymap.cxx b/oox/source/drawingml/shapepropertymap.cxx
old mode 100755
new mode 100644
index 51736b7..fe62523
--- a/oox/source/drawingml/shapepropertymap.cxx
+++ b/oox/source/drawingml/shapepropertymap.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -207,3 +208,5 @@ bool ShapePropertyMap::setFillBitmapUrl( sal_Int32 nPropId, const Any& rValue )
 
 } // namespace drawingml
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/ppt/dgmimport.cxx b/oox/source/ppt/dgmimport.cxx
index 6527002..004c09f 100644
--- a/oox/source/ppt/dgmimport.cxx
+++ b/oox/source/ppt/dgmimport.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -135,3 +136,5 @@ OUString QuickDiagrammingImport::implGetImplementationName() const
 }
 
 }}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/ppt/dgmlayout.cxx b/oox/source/ppt/dgmlayout.cxx
index 10c76cf..62811d1 100644
--- a/oox/source/ppt/dgmlayout.cxx
+++ b/oox/source/ppt/dgmlayout.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -193,3 +194,5 @@ OUString QuickDiagrammingLayout::implGetImplementationName() const
 }
 
 }}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/vml/vmltextboxcontext.cxx b/oox/source/vml/vmltextboxcontext.cxx
index 6feae68..2d70c93 100644
--- a/oox/source/vml/vmltextboxcontext.cxx
+++ b/oox/source/vml/vmltextboxcontext.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -149,3 +150,5 @@ ContextHandlerRef TextBoxContext::onCreateContext( sal_Int32 nElement, const Att
 
 } // namespace vml
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/xls/autofilterbuffer.cxx b/oox/source/xls/autofilterbuffer.cxx
index 987e7bc..0ffcdf6 100644
--- a/oox/source/xls/autofilterbuffer.cxx
+++ b/oox/source/xls/autofilterbuffer.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -850,3 +851,5 @@ AutoFilter* AutoFilterBuffer::getActiveAutoFilter()
 
 } // namespace xls
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/xls/connectionsbuffer.cxx b/oox/source/xls/connectionsbuffer.cxx
index 6d0fcd6..e066613 100644
--- a/oox/source/xls/connectionsbuffer.cxx
+++ b/oox/source/xls/connectionsbuffer.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -499,3 +500,5 @@ void ConnectionsBuffer::insertConnectionToMap( const ConnectionRef& rxConnection
 
 } // namespace xls
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/xls/drawingbase.cxx b/oox/source/xls/drawingbase.cxx
old mode 100755
new mode 100644
index a8629d3..3369ba9
--- a/oox/source/xls/drawingbase.cxx
+++ b/oox/source/xls/drawingbase.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -323,3 +324,5 @@ EmuPoint ShapeAnchor::calcCellAnchorEmu( const CellAnchorModel& rModel ) const
 
 } // namespace xls
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/xls/drawingmanager.cxx b/oox/source/xls/drawingmanager.cxx
old mode 100755
new mode 100644
index efba682..a9826c1
--- a/oox/source/xls/drawingmanager.cxx
+++ b/oox/source/xls/drawingmanager.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1412,3 +1413,5 @@ void BiffSheetDrawing::notifyShapeInserted( const Reference< XShape >& /*rxShape
 
 } // namespace xls
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/xls/excelvbaproject.cxx b/oox/source/xls/excelvbaproject.cxx
index 7fc8115..c1306a8 100644
--- a/oox/source/xls/excelvbaproject.cxx
+++ b/oox/source/xls/excelvbaproject.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -145,3 +146,5 @@ void ExcelVbaProject::prepareImport()
 
 } // namespace xls
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/xls/querytablebuffer.cxx b/oox/source/xls/querytablebuffer.cxx
index 28ace4d..97b10fa 100644
--- a/oox/source/xls/querytablebuffer.cxx
+++ b/oox/source/xls/querytablebuffer.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -388,3 +389,5 @@ void QueryTableBuffer::finalizeImport()
 
 } // namespace xls
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/oox/source/xls/sheetdatabuffer.cxx b/oox/source/xls/sheetdatabuffer.cxx
old mode 100755
new mode 100644
index 04551e2..54fd7b3
--- a/oox/source/xls/sheetdatabuffer.cxx
+++ b/oox/source/xls/sheetdatabuffer.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -928,3 +929,5 @@ void SheetDataBuffer::finalizeMergedRange( const CellRangeAddress& rRange )
 
 } // namespace xls
 } // namespace oox
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/package/source/zipapi/blowfishcontext.cxx b/package/source/zipapi/blowfishcontext.cxx
index 6459cc4..5d0a0a3 100644
--- a/package/source/zipapi/blowfishcontext.cxx
+++ b/package/source/zipapi/blowfishcontext.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -120,3 +121,4 @@ uno::Sequence< ::sal_Int8 > SAL_CALL BlowfishCFB8CipherContext::finalizeCipherCo
 }
 
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/package/source/zipapi/blowfishcontext.hxx b/package/source/zipapi/blowfishcontext.hxx
index 49cce2f..47b89a3 100644
--- a/package/source/zipapi/blowfishcontext.hxx
+++ b/package/source/zipapi/blowfishcontext.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -56,3 +57,4 @@ public:
 
 #endif // _BLOWFISHCONTEXT_HXX
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/package/source/zipapi/sha1context.cxx b/package/source/zipapi/sha1context.cxx
index 0e34fd4..ebba219 100644
--- a/package/source/zipapi/sha1context.cxx
+++ b/package/source/zipapi/sha1context.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -95,3 +96,4 @@ uno::Sequence< ::sal_Int8 > SAL_CALL SHA1DigestContext::finalizeDigestAndDispose
 }
 
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/regexp/inc/regexp/reclass.hxx b/regexp/inc/regexp/reclass.hxx
index 329ec20..4cb2819 100644
--- a/regexp/inc/regexp/reclass.hxx
+++ b/regexp/inc/regexp/reclass.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* Definitions for data structures and routines for the regular
    expression library, version 0.12.
    Copyright (C) 1985,89,90,91,92,93,95,96,97,98 Free Software Foundation, Inc.
@@ -389,3 +390,5 @@ public:
 };
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/registry/tools/fileurl.cxx b/registry/tools/fileurl.cxx
index e356188..f203287 100644
--- a/registry/tools/fileurl.cxx
+++ b/registry/tools/fileurl.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -88,3 +89,5 @@ OUString convertToFileUrl(char const * filename, size_t length)
 
 } // namespace tools
 } // namespace registry
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/registry/tools/fileurl.hxx b/registry/tools/fileurl.hxx
index bbaa218..cbbd953 100644
--- a/registry/tools/fileurl.hxx
+++ b/registry/tools/fileurl.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -41,3 +42,5 @@ rtl::OUString convertToFileUrl(char const * filename, size_t length);
 } // namespace registry
 
 #endif /* INCLUDED_REGISTRY_TOOLS_FILEURL_HXX */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/registry/tools/options.cxx b/registry/tools/options.cxx
index d851825..2612b6e 100644
--- a/registry/tools/options.cxx
+++ b/registry/tools/options.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -151,3 +152,5 @@ bool Options::printUsage() const
 
 } // namespace tools
 } // namespace registry
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/registry/tools/options.hxx b/registry/tools/options.hxx
index 8e4c978..c46aa6e 100644
--- a/registry/tools/options.hxx
+++ b/registry/tools/options.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -65,3 +66,5 @@ protected:
 } // namespace registry
 
 #endif /* INCLUDED_REGISTRY_TOOLS_OPTIONS_HXX */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/registry/tools/rdbedit.cxx b/registry/tools/rdbedit.cxx
index 370c82b..ad8e130 100644
--- a/registry/tools/rdbedit.cxx
+++ b/registry/tools/rdbedit.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -316,3 +317,4 @@ int _cdecl main( int argc, char * argv[] )
 }
 
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/inc/pch/precompiled_rptui.cxx b/reportdesign/inc/pch/precompiled_rptui.cxx
index 37cdcd1..c4a61be 100644
--- a/reportdesign/inc/pch/precompiled_rptui.cxx
+++ b/reportdesign/inc/pch/precompiled_rptui.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -27,3 +28,4 @@
 
 #include "precompiled_rptui.hxx"
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/inc/pch/precompiled_rptui.hxx b/reportdesign/inc/pch/precompiled_rptui.hxx
index 6087563..c21c322 100644
--- a/reportdesign/inc/pch/precompiled_rptui.hxx
+++ b/reportdesign/inc/pch/precompiled_rptui.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -72,3 +73,5 @@
 #include "xmloff/xmltkmap.hxx"
 #include "xmloff/xmlnmspe.hxx"
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/inc/pch/precompiled_rptxml.cxx b/reportdesign/inc/pch/precompiled_rptxml.cxx
index b5c8cc4..3aa736b 100644
--- a/reportdesign/inc/pch/precompiled_rptxml.cxx
+++ b/reportdesign/inc/pch/precompiled_rptxml.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -27,3 +28,4 @@
 
 #include "precompiled_rptxml.hxx"
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/reportdesign/inc/pch/precompiled_rptxml.hxx b/reportdesign/inc/pch/precompiled_rptxml.hxx
index 6087563..c21c322 100644
--- a/reportdesign/inc/pch/precompiled_rptxml.hxx
+++ b/reportdesign/inc/pch/precompiled_rptxml.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -72,3 +73,5 @@
 #include "xmloff/xmltkmap.hxx"
 #include "xmloff/xmlnmspe.hxx"
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/cppunittester/protectorfactory.hxx b/sal/inc/cppunittester/protectorfactory.hxx
index 0d730e3..ed9d365 100644
--- a/sal/inc/cppunittester/protectorfactory.hxx
+++ b/sal/inc/cppunittester/protectorfactory.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -50,3 +51,5 @@ namespace cppunittester
 }
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/sal/precppunit.hxx b/sal/inc/sal/precppunit.hxx
index 8e2e3c2..55b0bcc 100644
--- a/sal/inc/sal/precppunit.hxx
+++ b/sal/inc/sal/precppunit.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -48,3 +49,5 @@ SAL_WNODEPRECATED_DECLARATIONS_POP \
 typedef int SalCppUnitDummyTypedefForSemiColonEnding__ \
 
 #endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/osl/all/printtrace.cxx b/sal/osl/all/printtrace.cxx
index 5d79d9b..0ecd6f4 100644
--- a/sal/osl/all/printtrace.cxx
+++ b/sal/osl/all/printtrace.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list