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


Next part

2010/10/13 Arnaud VERSINI <arnaud.versini@gmail.com>

Hi

This patch removes some useless comments. To be continued

Thanks

From 2d26d75ed11c81625e47025c7e118da6ad18eca6 Mon Sep 17 00:00:00 2001
From: Arnaud Versini <arnaud.versini@gmail.com>
Date: Wed, 13 Oct 2010 21:51:46 +0200
Subject: [PATCH 1/2] Removing commented source in macassgn.cxx.

---
 sw/source/ui/dialog/macassgn.cxx |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/sw/source/ui/dialog/macassgn.cxx b/sw/source/ui/dialog/macassgn.cxx
index 9bbe10d..8d2a9b9 100644
--- a/sw/source/ui/dialog/macassgn.cxx
+++ b/sw/source/ui/dialog/macassgn.cxx
@@ -162,33 +162,3 @@ BOOL SwMacroAssignDlg::INetFmtDlg( Window* pParent, SwWrtShell& rSh,
     return bRet;
 }
 
-/*
-SvStringsDtor* __EXPORT _GetRangeHdl( _SfxMacroTabPage* , const String& rLanguage )
-{
-    SvStringsDtor* pNew = new SvStringsDtor;
-
-    SfxApplication* pSfxApp = SFX_APP();
-    if ( !rLanguage.EqualsAscii(SVX_MACRO_LANGUAGE_JAVASCRIPT) )
-    {
-        pSfxApp->EnterBasicCall();
-
-        String* pNewEntry = new String( pSfxApp->GetName() );
-        pNew->Insert( pNewEntry, pNew->Count() );
-
-        TypeId aType( TYPE( SwDocShell ));
-        SfxObjectShell* pDoc = SfxObjectShell::GetFirst( &aType );
-        while( pDoc )
-        {
-            pNewEntry = new String( pDoc->GetTitle() );
-            pNew->Insert( pNewEntry, pNew->Count() );
-            pDoc = SfxObjectShell::GetNext( *pDoc, &aType );
-        }
-        pSfxApp->LeaveBasicCall();
-    }
-
-    return pNew;
-}
-*/
-
-
-
-- 
1.7.1

From 502831ce8a581c30083655578004e0a0b4bb805a Mon Sep 17 00:00:00 2001
From: Arnaud Versini <arnaud.versini@gmail.com>
Date: Wed, 13 Oct 2010 21:58:42 +0200
Subject: [PATCH 2/2] Removing some useeless comments.

---
 sw/source/ui/dialog/SwSpellDialogChildWindow.cxx |   40 +--------------------
 sw/source/ui/dialog/regionsw.cxx                 |    9 -----
 2 files changed, 2 insertions(+), 47 deletions(-)

diff --git a/sw/source/ui/dialog/SwSpellDialogChildWindow.cxx 
b/sw/source/ui/dialog/SwSpellDialogChildWindow.cxx
index 892bf51..0987465 100644
--- a/sw/source/ui/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/ui/dialog/SwSpellDialogChildWindow.cxx
@@ -144,9 +144,7 @@ struct SpellState
                 pOtherCursor = 0;
             }
 };
-/*-- 30.10.2003 14:33:26---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 void lcl_LeaveDrawText(SwWrtShell& rSh)
 {
     if(rSh.GetDrawView())
@@ -159,9 +157,7 @@ void lcl_LeaveDrawText(SwWrtShell& rSh)
         rSh.GetView().AttrChangedNotify(&rSh);
     }
 }
-/*-- 09.09.2003 10:39:22---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 SwSpellDialogChildWindow::SwSpellDialogChildWindow (
             Window* _pParent,
             USHORT nId,
@@ -175,9 +171,7 @@ SwSpellDialogChildWindow::SwSpellDialogChildWindow (
     String aPropName( String::CreateFromAscii(UPN_IS_GRAMMAR_INTERACTIVE ) );
     SvtLinguConfig().GetProperty( aPropName ) >>= m_bIsGrammarCheckingOn;
 }
-/*-- 09.09.2003 10:39:22---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 SwSpellDialogChildWindow::~SwSpellDialogChildWindow ()
 {
     SwWrtShell* pWrtShell = GetWrtShell_Impl();
@@ -186,9 +180,7 @@ SwSpellDialogChildWindow::~SwSpellDialogChildWindow ()
     delete m_pSpellState;
 }
 
-/*-- 09.09.2003 12:40:07---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 SfxChildWinInfo SwSpellDialogChildWindow::GetInfo (void) const
 {
     SfxChildWinInfo aInfo = svx::SpellDialogChildWindow::GetInfo();
@@ -196,10 +188,7 @@ SfxChildWinInfo SwSpellDialogChildWindow::GetInfo (void) const
     return aInfo;
 }
 
-/*-- 09.09.2003 10:39:40---------------------------------------------------
-
 
-  -----------------------------------------------------------------------*/
 svx::SpellPortions SwSpellDialogChildWindow::GetNextWrongSentence(bool bRecheck)
 {
     svx::SpellPortions aRet;
@@ -457,9 +446,7 @@ The code below would only be part of the solution.
     return aRet;
 
 }
-/*-- 09.09.2003 10:39:40---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 void SwSpellDialogChildWindow::ApplyChangedSentence(const svx::SpellPortions& rChanged, bool 
bRecheck)
 {
     SwWrtShell* pWrtShell = GetWrtShell_Impl();
@@ -489,39 +476,29 @@ void SwSpellDialogChildWindow::ApplyChangedSentence(const svx::SpellPortions& 
rC
         }
     }
 }
-/*-- 21.10.2003 09:33:57---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 void SwSpellDialogChildWindow::AddAutoCorrection(
         const String& rOld, const String& rNew, LanguageType eLanguage)
 {
     SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get()->GetAutoCorrect();
     pACorr->PutText( rOld, rNew, eLanguage );
 }
-/*-- 21.10.2003 09:33:59---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 bool SwSpellDialogChildWindow::HasAutoCorrection()
 {
     return true;
 }
-/*-- 16.06.2008 11:59:17---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 bool SwSpellDialogChildWindow::HasGrammarChecking()
 {
     return SvtLinguConfig().HasGrammarChecker();
 }
-/*-- 18.06.2008 12:27:11---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 bool SwSpellDialogChildWindow::IsGrammarChecking()
 {
     return m_bIsGrammarCheckingOn;
 }
-/*-- 18.06.2008 12:27:11---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 void SwSpellDialogChildWindow::SetGrammarChecking(bool bOn)
 {
     uno::Any aVal;
@@ -555,9 +532,7 @@ void SwSpellDialogChildWindow::SetGrammarChecking(bool bOn)
         }
     }
 }
-/*-- 28.10.2003 08:41:09---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 void SwSpellDialogChildWindow::GetFocus()
 {
     if(m_pSpellState->m_bLockFocus)
@@ -616,9 +591,7 @@ void SwSpellDialogChildWindow::GetFocus()
     if(bInvalidate)
         InvalidateSpellDialog();
 }
-/*-- 28.10.2003 08:41:09---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 void SwSpellDialogChildWindow::LoseFocus()
 {
     //prevent initial invalidation
@@ -668,9 +641,7 @@ void SwSpellDialogChildWindow::LoseFocus()
     else
         m_pSpellState->m_eSelMode = SHELL_MODE_OBJECT;
 }
-/*-- 18.09.2003 12:50:18---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 void SwSpellDialogChildWindow::InvalidateSpellDialog()
 {
     SwWrtShell* pWrtShell = GetWrtShell_Impl();
@@ -680,9 +651,6 @@ void SwSpellDialogChildWindow::InvalidateSpellDialog()
     svx::SpellDialogChildWindow::InvalidateSpellDialog();
 }
 
-/*-- 18.09.2003 12:54:59---------------------------------------------------
-
-  -----------------------------------------------------------------------*/
 SwWrtShell* SwSpellDialogChildWindow::GetWrtShell_Impl()
 {
     SfxDispatcher* pDispatch = GetBindings().GetDispatcher();
@@ -701,7 +669,7 @@ SwWrtShell* SwSpellDialogChildWindow::GetWrtShell_Impl()
     return pView ? pView->GetWrtShellPtr(): 0;
 }
 
-/*-- 13.10.2003 15:19:04---------------------------------------------------
+/*-------------------------------------------------------------------------
     set the cursor into the body text - necessary if any object is selected
     on start of the spelling dialog
   -----------------------------------------------------------------------*/
@@ -770,7 +738,7 @@ bool SwSpellDialogChildWindow::MakeTextSelection_Impl(SwWrtShell& rShell, ShellM
     }
     return true;
 }
-/*-- 13.10.2003 15:20:09---------------------------------------------------
+/*-------------------------------------------------------------------------
     select the next draw text object that has a spelling error
   -----------------------------------------------------------------------*/
 bool SwSpellDialogChildWindow::FindNextDrawTextError_Impl(SwWrtShell& rSh)
@@ -893,9 +861,7 @@ bool SwSpellDialogChildWindow::FindNextDrawTextError_Impl(SwWrtShell& rSh)
     return bNextDoc;
 }
 
-/*-- 13.10.2003 15:24:27---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 bool SwSpellDialogChildWindow::SpellDrawText_Impl(SwWrtShell& rSh, ::svx::SpellPortions& rPortions)
 {
     bool bRet = false;
@@ -922,9 +888,7 @@ bool SwSpellDialogChildWindow::SpellDrawText_Impl(SwWrtShell& rSh, ::svx::SpellP
     }
     return bRet;
 }
-/*-- 30.10.2003 14:54:59---------------------------------------------------
 
-  -----------------------------------------------------------------------*/
 void SwSpellDialogChildWindow::LockFocusNotification(bool bLock)
 {
     OSL_ENSURE(m_pSpellState->m_bLockFocus != bLock, "invalid locking - no change of state");
diff --git a/sw/source/ui/dialog/regionsw.cxx b/sw/source/ui/dialog/regionsw.cxx
index b9ebb07..ab1a0ad 100644
--- a/sw/source/ui/dialog/regionsw.cxx
+++ b/sw/source/ui/dialog/regionsw.cxx
@@ -67,11 +67,6 @@
 #include <svx/dlgutil.hxx>
 #include "swabstdlg.hxx"
 
-/*--------------------------------------------------------------------
-    Beschreibung:      Bereiche einfuegen
- --------------------------------------------------------------------*/
-
-
 void SwBaseShell::InsertRegionDialog(SfxRequest& rReq)
 {
     SwWrtShell& rSh = GetShell();
@@ -223,10 +218,6 @@ IMPL_STATIC_LINK( SwWrtShell, InsertRegionDialog, SwSectionData*, pSect )
     return 0;
 }
 
-/*--------------------------------------------------------------------
-    Beschreibung:      Bereich bearbeiten
- --------------------------------------------------------------------*/
-
 void SwBaseShell::EditRegionDialog(SfxRequest& rReq)
 {
     const SfxItemSet* pArgs = rReq.GetArgs();
-- 
1.7.1


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.