Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hello
This is my first patch for removal of bogus comments from the writer module.

Thanks
-- 
Anurag Jain
Final yr B.Tech CSE
SASTRA University
Thanjavur(T.N.)-613402
From d819cb4cbf68347c2f47c477ef10a2091e72e2e5 Mon Sep 17 00:00:00 2001
From: ANURAG JAIN <anuragjainfzd@gmail.com>
Date: Sun, 3 Apr 2011 18:01:38 +0530
Subject: [PATCH] removal of bogus comment

---
 sw/source/core/access/acccontext.cxx |    2 +-
 sw/source/core/access/acccontext.hxx |   13 ++++-----
 sw/source/core/doc/docdesc.cxx       |   45 ++++++++++++++-------------------
 3 files changed, 26 insertions(+), 34 deletions(-)

diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index 78f18fa..f5d7bf9 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -398,7 +398,7 @@ void SwAccessibleContext::ScrolledOut( const SwRect& rOldVisArea )
     Dispose( sal_True );
 }
 
-// #i27301# - use new type definition for <_nStates>
+// #i27301# use new type definition for <_nStates>
 void SwAccessibleContext::InvalidateChildrenStates( const SwFrm* _pFrm,
                                                     tAccessibleStates _nStates )
 {
diff --git a/sw/source/core/access/acccontext.hxx b/sw/source/core/access/acccontext.hxx
index 8a35344..06fb5a3 100644
--- a/sw/source/core/access/acccontext.hxx
+++ b/sw/source/core/access/acccontext.hxx
@@ -153,7 +153,7 @@ protected:
 
     // Invalidate the states of all children of the specified SwFrm. The
     // SwFrm might belong the the current object or to any child or grandchild!
-    // #i27301# - use new type definition for <_nStates>
+    // use new type definition for <_nStates>
     void InvalidateChildrenStates( const SwFrm* _pFrm,
                                    tAccessibleStates _nStates );
     // <--
@@ -196,7 +196,6 @@ protected:
         getBoundsImpl(sal_Bool bRelative)
         throw (::com::sun::star::uno::RuntimeException);
 
-    // #i85634#
     inline void NotRegisteredAtAccessibleMap()
     {
         bRegisteredAtAccessibleMap = false;
@@ -362,21 +361,21 @@ public:
     void InvalidateFocus();
 
     // Check states
-    // #i27301# - use new type definition for <_nStates>
+    // use new type definition for <_nStates>
     void InvalidateStates( tAccessibleStates _nStates );
 
     // the XAccessibleRelationSet may have changed
     void InvalidateRelation( sal_uInt16 nType );
 
-    void InvalidateTextSelection(); // #i27301# - text selection has changed
-    void InvalidateAttr(); // #i88069# - attributes has changed
+    void InvalidateTextSelection(); // text selection has changed
+    void InvalidateAttr(); // attributes has changed
 
     bool HasAdditionalAccessibleChildren();
 
-    // #i88070# - get additional child by index
+    // get additional child by index
     Window* GetAdditionalAccessibleChild( const sal_Int32 nIndex ); 
 
-    // #i88070# - get all additional accessible children
+    // get all additional accessible children
     void GetAdditionalAccessibleChildren( std::vector< Window* >* pChildren );
 
     const ::rtl::OUString& GetName() const { return sName; }
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index 0269d6b..53c00c6 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.cxx
@@ -83,11 +83,10 @@ static void lcl_DefaultPageFmt( sal_uInt16 nPoolFmtId,
                                 SwFrmFmt &rFmt1,
                                 SwFrmFmt &rFmt2 )
 {
-    // --> FME 2005-01-21 #i41075# Printer on demand
+    // Printer on demand
     // This function does not require a printer anymore.
     // The default page size is obtained from the application
     //locale
-    // <--
 
     SwFmtFrmSize aFrmSize( ATT_FIX_SIZE );
     const Size aPhysSize = SvxPaperInfo::GetDefaultPaperSize();
@@ -157,10 +156,8 @@ void lcl_DescSetAttr( const SwFrmFmt &rSource, SwFrmFmt &rDest,
                                         RES_COL, RES_COL,
                                         RES_FRAMEDIR, RES_FRAMEDIR,
                                         RES_TEXTGRID, RES_TEXTGRID,
-                                        // --> FME 2005-04-18 #i45539#
                                         RES_HEADER_FOOTER_EAT_SPACING,
                                         RES_HEADER_FOOTER_EAT_SPACING,
-                                        // <--
                                         RES_UNKNOWNATR_CONTAINER,
                                         RES_UNKNOWNATR_CONTAINER,
                                         0 };
@@ -170,12 +167,11 @@ void lcl_DescSetAttr( const SwFrmFmt &rSource, SwFrmFmt &rDest,
     {
         for( sal_uInt16 nId = aIdArr[ n ]; nId <= aIdArr[ n+1]; ++nId )
         {
-            // --> FME 2005-04-18 #i45539#
             // bPage == true:
             // All in aIdArr except from RES_HEADER_FOOTER_EAT_SPACING
             // bPage == false:
             // All in aIdArr except from RES_COL and RES_PAPER_BIN:
-            // <--
+
             if( (  bPage && RES_HEADER_FOOTER_EAT_SPACING != nId ) ||
                 ( !bPage && RES_COL != nId && RES_PAPER_BIN != nId ))
             {
@@ -199,7 +195,7 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
     OSL_ENSURE( i < aPageDescs.Count(), "PageDescs ueberindiziert." );
 
     SwPageDesc *pDesc = aPageDescs[i];
-    SwRootFrm* pTmpRoot = GetCurrentLayout();//swmod 080219
+    SwRootFrm* pTmpRoot = GetCurrentLayout();
 
     if (GetIDocumentUndoRedo().DoesUndo())
     {
@@ -240,14 +236,14 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
     //Orientierung uebernehmen
     pDesc->SetLandscape( rChged.GetLandscape() );
 
-    // #i46909# no undo if header or footer changed
+    //no undo if header or footer changed
     bool bHeaderFooterChanged = false;
 
     //Header abgleichen.
     const SwFmtHeader &rHead = rChged.GetMaster().GetHeader();
     if (undoGuard.UndoWasEnabled())
     {
-        // #i46909# no undo if header or footer changed
+        // no undo if header or footer changed
         // hat sich an den Nodes etwas veraendert ?
         const SwFmtHeader &rOldHead = pDesc->GetMaster().GetHeader();
         bHeaderFooterChanged |=
@@ -311,7 +307,7 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
     const SwFmtFooter &rFoot = rChged.GetMaster().GetFooter();
     if (undoGuard.UndoWasEnabled())
     {
-        // #i46909# no undo if header or footer changed
+        //no undo if header or footer changed
         // hat sich an den Nodes etwas veraendert ?
         const SwFmtFooter &rOldFoot = pDesc->GetMaster().GetFooter();
         bHeaderFooterChanged |=
@@ -421,7 +417,7 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
     }
     SetModified();
 
-    // #i46909# no undo if header or footer changed
+    // no undo if header or footer changed
     if( bHeaderFooterChanged )
     {
         GetIDocumentUndoRedo().DelAllUndoObj();
@@ -437,7 +433,6 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
 |*
 |*************************************************************************/
 
-// #i7983#
 void SwDoc::PreDelPageDesc(SwPageDesc * pDel)
 {
     if (0 == pDel)
@@ -475,7 +470,7 @@ void SwDoc::PreDelPageDesc(SwPageDesc * pDel)
             if( bHasLayout )
             {
                 std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-                std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::AllCheckPageDescs));//swmod 080228
+                std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::AllCheckPageDescs));
             }
         }
     }
@@ -518,7 +513,7 @@ void SwDoc::DelPageDesc( sal_uInt16 i, sal_Bool bBroadcast )
         GetIDocumentUndoRedo().AppendUndo(pUndo);
     }
 
-    PreDelPageDesc(pDel); // #i7983#
+    PreDelPageDesc(pDel);
 
     aPageDescs.Remove( i );
     delete pDel;
@@ -534,7 +529,7 @@ void SwDoc::DelPageDesc( sal_uInt16 i, sal_Bool bBroadcast )
 |*************************************************************************/
 
 sal_uInt16 SwDoc::MakePageDesc( const String &rName, const SwPageDesc *pCpy,
-                            sal_Bool bRegardLanguage, sal_Bool bBroadcast) // #116530#
+                            sal_Bool bRegardLanguage, sal_Bool bBroadcast)
 {
     SwPageDesc *pNew;
     if( pCpy )
@@ -569,7 +564,6 @@ sal_uInt16 SwDoc::MakePageDesc( const String &rName, const SwPageDesc *pCpy,
 
     if (GetIDocumentUndoRedo().DoesUndo())
     {
-        // #116530#
         GetIDocumentUndoRedo().AppendUndo(new SwUndoPageDescCreate(pNew, this));
     }
 
@@ -602,10 +596,9 @@ void SwDoc::PrtDataChanged()
 {
 //!!!!!!!! Bei Aenderungen hier bitte ggf. InJobSetup im Sw3io mitpflegen
 
-    // --> FME 2005-01-21 #i41075#
     OSL_ENSURE( get(IDocumentSettingAccess::USE_VIRTUAL_DEVICE) ||
             0 != getPrinter( sal_False ), "PrtDataChanged will be called recursive!" );
-    // <--
+
     SwRootFrm* pTmpRoot = GetCurrentLayout();//swmod 080219
     SwWait *pWait = 0;
     sal_Bool bEndAction = sal_False;
@@ -636,7 +629,7 @@ void SwDoc::PrtDataChanged()
             pFntCache->Flush();
             
             std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-            std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::InvalidateAllCntnt), INV_SIZE));//swmod 
080304
+            std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::InvalidateAllCntnt), INV_SIZE));
 
             if ( pSh )
             {
@@ -649,7 +642,7 @@ void SwDoc::PrtDataChanged()
             }
 
         }
-    }  //swmod 080218
+    }
     if ( bDraw && pDrawModel )
     {
         const sal_Bool bTmpAddExtLeading = get(IDocumentSettingAccess::ADD_EXT_LEADING);
@@ -664,7 +657,7 @@ void SwDoc::PrtDataChanged()
     PrtOLENotify( sal_True );
 
     if ( bEndAction )
-        pTmpRoot->EndAllAction();      //swmod 080218
+        pTmpRoot->EndAllAction();
     delete pWait;
 }
 
@@ -689,7 +682,7 @@ void SwDoc::PrtOLENotify( sal_Bool bAll )
 
         if ( pSh->ISA(SwFEShell) )
             pShell = (SwFEShell*)pSh;
-    }  //swmod 071107//swmod 071225
+    }
     if ( !pShell )
     {
         //Das hat ohne Shell und damit ohne Client keinen Sinn, weil nur darueber
@@ -713,7 +706,7 @@ void SwDoc::PrtOLENotify( sal_Bool bAll )
         {
             ::StartProgress( STR_STATSTR_SWGPRTOLENOTIFY,
                              0, pNodes->Count(), GetDocShell());
-            GetCurrentLayout()->StartAllAction();      //swmod 080218
+            GetCurrentLayout()->StartAllAction();
 
             for( sal_uInt16 i = 0; i < pNodes->Count(); ++i )
             {
@@ -756,7 +749,7 @@ void SwDoc::PrtOLENotify( sal_Bool bAll )
                 }
             }
             delete pNodes;
-            GetCurrentLayout()->EndAllAction();        //swmod 080218
+            GetCurrentLayout()->EndAllAction();
             ::EndProgress( GetDocShell() );
         }
     }
@@ -774,7 +767,7 @@ IMPL_LINK( SwDoc, DoUpdateModifiedOLE, Timer *, )
         {
             ::StartProgress( STR_STATSTR_SWGPRTOLENOTIFY,
                              0, pNodes->Count(), GetDocShell());
-            GetCurrentLayout()->StartAllAction();      //swmod 080218
+            GetCurrentLayout()->StartAllAction();
             SwMsgPoolItem aMsgHint( RES_UPDATE_ATTR );
 
             for( sal_uInt16 i = 0; i < pNodes->Count(); ++i )
@@ -791,7 +784,7 @@ IMPL_LINK( SwDoc, DoUpdateModifiedOLE, Timer *, )
                     pOLENd->ModifyNotification( &aMsgHint, &aMsgHint );
                 }
             }
-            GetCurrentLayout()->EndAllAction();        //swmod 080218
+            GetCurrentLayout()->EndAllAction();
             ::EndProgress( GetDocShell() );
             delete pNodes;
         }
-- 
1.7.0.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.