This patch removes bogus comments found in the label1.cxx file Signed-off-by: Prashant Shah <pshah.mum...@gmail.com> --- sw/source/ui/envelp/label1.cxx | 121 +--------------------------------------- 1 files changed, 2 insertions(+), 119 deletions(-)
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx index 7e90180..b166abc 100644 --- a/sw/source/ui/envelp/label1.cxx +++ b/sw/source/ui/envelp/label1.cxx @@ -80,7 +80,6 @@ void SwLabRec::FillItem( SwLabItem& rItem ) const rItem.nRows = nRows; } -// -------------------------------------------------------------------------- void SwLabDlg::_ReplaceGroup( const String &rMake ) { //Die alten Eintraege vernichten. @@ -89,10 +88,6 @@ void SwLabDlg::_ReplaceGroup( const String &rMake ) aLstGroup = rMake; } -// -------------------------------------------------------------------------- - - - void SwLabDlg::PageCreated(sal_uInt16 nId, SfxTabPage &rPage) { if (nId == TP_LAB_LAB) @@ -109,10 +104,6 @@ void SwLabDlg::PageCreated(sal_uInt16 nId, SfxTabPage &rPage) pPrtPage = (SwLabPrtPage*)&rPage; } -// -------------------------------------------------------------------------- - - - SwLabDlg::SwLabDlg(Window* pParent, const SfxItemSet& rSet, SwNewDBMgr* pDBMgr, sal_Bool bLabel) : SfxTabDialog( pParent, SW_RES(DLG_LAB), &rSet, sal_False ), @@ -192,13 +183,10 @@ SwLabDlg::SwLabDlg(Window* pParent, const SfxItemSet& rSet, pExampleSet->Put(aItem); } -// -------------------------------------------------------------------------- - SwLabDlg::~SwLabDlg() { delete pRecs; } -// -------------------------------------------------------------------------- void SwLabDlg::GetLabItem(SwLabItem &rItem) { @@ -221,8 +209,6 @@ void SwLabDlg::GetLabItem(SwLabItem &rItem) } } -// -------------------------------------------------------------------------- - SwLabRec* SwLabDlg::GetRecord(const String &rRecName, sal_Bool bCont) { SwLabRec* pRec = NULL; @@ -246,8 +232,6 @@ SwLabRec* SwLabDlg::GetRecord(const String &rRecName, sal_Bool bCont) return(pRec); } -// -------------------------------------------------------------------------- - Printer *SwLabDlg::GetPrt() { if (pPrtPage) @@ -256,7 +240,6 @@ Printer *SwLabDlg::GetPrt() return (NULL); } -// -------------------------------------------------------------------------- SwLabPage::SwLabPage(Window* pParent, const SfxItemSet& rSet) : SfxTabPage(pParent, SW_RES(TP_LAB_LAB), rSet), pNewDBMgr(NULL), @@ -316,16 +299,10 @@ SwLabPage::SwLabPage(Window* pParent, const SfxItemSet& rSet) : aMakeBox.GetSelectHdl().Call( &aMakeBox ); } -// -------------------------------------------------------------------------- - - - SwLabPage::~SwLabPage() { } -/* -----------------29.09.99 09:08------------------- - --------------------------------------------------*/ void lcl_ChgYPos(Window& rWin, long nDiff) { Point aTempPos(rWin.GetPosPixel()); @@ -377,9 +354,6 @@ void SwLabPage::SetToBusinessCard() aTypeBox.SetPosPixel(aLBPos); }; -// -------------------------------------------------------------------------- - - IMPL_LINK( SwLabPage, AddrHdl, Button *, EMPTYARG ) { String aWriting; @@ -390,10 +364,6 @@ IMPL_LINK( SwLabPage, AddrHdl, Button *, EMPTYARG ) return 0; } -// -------------------------------------------------------------------------- - - - IMPL_LINK( SwLabPage, DatabaseHdl, ListBox *, pListBox ) { sActDBName = aDatabaseLB.GetSelectEntry(); @@ -406,8 +376,6 @@ IMPL_LINK( SwLabPage, DatabaseHdl, ListBox *, pListBox ) return 0; } - - IMPL_LINK( SwLabPage, FieldHdl, Button *, EMPTYARG ) { String aStr ( '<' ); @@ -426,10 +394,6 @@ IMPL_LINK( SwLabPage, FieldHdl, Button *, EMPTYARG ) return 0; } -// -------------------------------------------------------------------------- - - - IMPL_LINK_INLINE_START( SwLabPage, PageHdl, Button *, EMPTYARG ) { aMakeBox.GetSelectHdl().Call( &aMakeBox ); @@ -437,10 +401,6 @@ IMPL_LINK_INLINE_START( SwLabPage, PageHdl, Button *, EMPTYARG ) } IMPL_LINK_INLINE_END( SwLabPage, PageHdl, Button *, EMPTYARG ) -// -------------------------------------------------------------------------- - - - IMPL_LINK( SwLabPage, MakeHdl, ListBox *, EMPTYARG ) { WaitObject aWait( GetParent() ); @@ -495,10 +455,6 @@ IMPL_LINK( SwLabPage, MakeHdl, ListBox *, EMPTYARG ) return 0; } -// -------------------------------------------------------------------------- - - - IMPL_LINK_INLINE_START( SwLabPage, TypeHdl, ListBox *, EMPTYARG ) { DisplayFormat(); @@ -507,10 +463,6 @@ IMPL_LINK_INLINE_START( SwLabPage, TypeHdl, ListBox *, EMPTYARG ) } IMPL_LINK_INLINE_END( SwLabPage, TypeHdl, ListBox *, EMPTYARG ) -// -------------------------------------------------------------------------- - - - void SwLabPage::DisplayFormat() { MetricField aField(this, WinBits(0)); @@ -542,8 +494,6 @@ void SwLabPage::DisplayFormat() aFormatInfo.SetText(aText); } -// -------------------------------------------------------------------------- - SwLabRec* SwLabPage::GetSelectedEntryPos() { String sSelEntry(aTypeBox.GetSelectEntry()); @@ -551,10 +501,6 @@ SwLabRec* SwLabPage::GetSelectedEntryPos() return GetParent()->GetRecord(sSelEntry, aContButton.IsChecked()); } -// -------------------------------------------------------------------------- - - - void SwLabPage::InitDatabaseBox() { if( GetNewDBMgr() ) @@ -577,18 +523,16 @@ void SwLabPage::InitDatabaseBox() } } -// -------------------------------------------------------------------------- SfxTabPage* SwLabPage::Create(Window* pParent, const SfxItemSet& rSet) { return new SwLabPage(pParent, rSet); } -// -------------------------------------------------------------------------- void SwLabPage::ActivatePage(const SfxItemSet& rSet) { Reset( rSet ); } -// -------------------------------------------------------------------------- + int SwLabPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) @@ -597,10 +541,6 @@ int SwLabPage::DeactivatePage(SfxItemSet* _pSet) return sal_True; } -// -------------------------------------------------------------------------- - - - void SwLabPage::FillItem(SwLabItem& rItem) { rItem.bAddr = aAddrBox.IsChecked(); @@ -617,10 +557,6 @@ void SwLabPage::FillItem(SwLabItem& rItem) rItem.aLstType = aTypeBox.GetSelectEntry(); } -// -------------------------------------------------------------------------- - - - sal_Bool SwLabPage::FillItemSet(SfxItemSet& rSet) { FillItem( aItem ); @@ -629,8 +565,6 @@ sal_Bool SwLabPage::FillItemSet(SfxItemSet& rSet) return sal_True; } -// -------------------------------------------------------------------------- - void SwLabPage::Reset(const SfxItemSet& rSet) { aItem = (const SwLabItem&) rSet.Get(FN_LABEL); @@ -675,10 +609,6 @@ void SwLabPage::Reset(const SfxItemSet& rSet) aSheetButton.Check(); } -/*-- 08.07.99 14:00:02--------------------------------------------------- - - -----------------------------------------------------------------------*/ -//----------------------------------------------------------------------------- void SwVisitingCardPage::ClearUserData() { SvLBoxEntry* pEntry = aAutoTextLB.First(); @@ -689,8 +619,6 @@ void SwVisitingCardPage::ClearUserData() } } -//----------------------------------------------------------------------------- - void SwVisitingCardPage::SetUserData( sal_uInt32 nCnt, const rtl::OUString* pNames, const rtl::OUString* pValues ) { @@ -701,8 +629,6 @@ void SwVisitingCardPage::SetUserData( sal_uInt32 nCnt, } } -//----------------------------------------------------------------------------- - SwVisitingCardPage::SwVisitingCardPage(Window* pParent, const SfxItemSet& rSet) : SfxTabPage(pParent, SW_RES(TP_VISITING_CARDS), rSet), aAutoTextLB(this, SW_RES( LB_AUTO_TEXT )), @@ -730,9 +656,7 @@ SwVisitingCardPage::SwVisitingCardPage(Window* pParent, const SfxItemSet& rSet) aAutoTextGroupLB.Show(); InitFrameControl(); } -/*-- 08.07.99 14:00:03--------------------------------------------------- - -----------------------------------------------------------------------*/ SwVisitingCardPage::~SwVisitingCardPage() { for(sal_uInt16 i = 0; i < aAutoTextGroupLB.GetEntryCount(); i++) @@ -742,33 +666,25 @@ SwVisitingCardPage::~SwVisitingCardPage() ClearUserData(); delete pExampleFrame; } -/*-- 08.07.99 14:00:03--------------------------------------------------- - -----------------------------------------------------------------------*/ SfxTabPage* SwVisitingCardPage::Create(Window* pParent, const SfxItemSet& rSet) { return new SwVisitingCardPage(pParent, rSet); } -/*-- 08.07.99 14:00:03--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwVisitingCardPage::ActivatePage(const SfxItemSet& rSet) { Reset( rSet ); UpdateFields(); } -/*-- 08.07.99 14:00:04--------------------------------------------------- - -----------------------------------------------------------------------*/ int SwVisitingCardPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) FillItemSet(*_pSet); return LEAVE_PAGE; } -/*-- 08.07.99 14:00:04--------------------------------------------------- - -----------------------------------------------------------------------*/ sal_Bool SwVisitingCardPage::FillItemSet(SfxItemSet& rSet) { String* pGroup = (String*)aAutoTextGroupLB.GetEntryData( @@ -783,9 +699,7 @@ sal_Bool SwVisitingCardPage::FillItemSet(SfxItemSet& rSet) rSet.Put(aLabItem); return sal_True; } -/*-- 08.07.99 14:00:05--------------------------------------------------- - -----------------------------------------------------------------------*/ void lcl_SelectBlock(SvTreeListBox& rAutoTextLB, const String& rBlockName) { SvLBoxEntry* pEntry = rAutoTextLB.First(); @@ -800,7 +714,7 @@ void lcl_SelectBlock(SvTreeListBox& rAutoTextLB, const String& rBlockName) pEntry = rAutoTextLB.Next(pEntry); } } -//----------------------------------------------------------------------------- + sal_Bool lcl_FindBlock(SvTreeListBox& rAutoTextLB, const String& rBlockName) { SvLBoxEntry* pEntry = rAutoTextLB.First(); @@ -816,7 +730,6 @@ sal_Bool lcl_FindBlock(SvTreeListBox& rAutoTextLB, const String& rBlockName) return sal_False; } -//----------------------------------------------------------------------------- void SwVisitingCardPage::Reset(const SfxItemSet& rSet) { aLabItem = (const SwLabItem&) rSet.Get(FN_LABEL); @@ -862,9 +775,6 @@ void SwVisitingCardPage::Reset(const SfxItemSet& rSet) } } -/* -----------------29.09.99 08:55------------------- - - --------------------------------------------------*/ SwPrivateDataPage::SwPrivateDataPage(Window* pParent, const SfxItemSet& rSet) : SfxTabPage(pParent, SW_RES(TP_PRIVATE_DATA), rSet), aDataFL (this, SW_RES( FL_DATA )), @@ -903,38 +813,27 @@ SwPrivateDataPage::SwPrivateDataPage(Window* pParent, const SfxItemSet& rSet) : SetExchangeSupport(); } -/*-- 29.09.99 08:55:57--------------------------------------------------- - - -----------------------------------------------------------------------*/ SwPrivateDataPage::~SwPrivateDataPage() { } -/*-- 29.09.99 08:55:57--------------------------------------------------- - -----------------------------------------------------------------------*/ SfxTabPage* SwPrivateDataPage::Create(Window* pParent, const SfxItemSet& rSet) { return new SwPrivateDataPage(pParent, rSet); } -/*-- 29.09.99 08:55:57--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwPrivateDataPage::ActivatePage(const SfxItemSet& rSet) { Reset(rSet); } -/*-- 29.09.99 08:55:58--------------------------------------------------- - -----------------------------------------------------------------------*/ int SwPrivateDataPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) FillItemSet(*_pSet); return LEAVE_PAGE; } -/*-- 29.09.99 08:55:58--------------------------------------------------- - -----------------------------------------------------------------------*/ sal_Bool SwPrivateDataPage::FillItemSet(SfxItemSet& rSet) { @@ -961,9 +860,7 @@ sal_Bool SwPrivateDataPage::FillItemSet(SfxItemSet& rSet) rSet.Put(aItem); return sal_True; } -/*-- 29.09.99 08:55:59--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwPrivateDataPage::Reset(const SfxItemSet& rSet) { const SwLabItem& aItem = (const SwLabItem&) rSet.Get(FN_LABEL); @@ -986,9 +883,7 @@ void SwPrivateDataPage::Reset(const SfxItemSet& rSet) aHomePageED .SetText(aItem.aPrivWWW); aMailED .SetText(aItem.aPrivMail); } -/* -----------------29.09.99 08:56------------------- - --------------------------------------------------*/ SwBusinessDataPage::SwBusinessDataPage(Window* pParent, const SfxItemSet& rSet) : SfxTabPage(pParent, SW_RES(TP_BUSINESS_DATA), rSet), aDataFL (this, SW_RES( FL_DATA )), @@ -1021,38 +916,28 @@ SwBusinessDataPage::SwBusinessDataPage(Window* pParent, const SfxItemSet& rSet) SetExchangeSupport(); } -/*-- 29.09.99 08:56:06--------------------------------------------------- - -----------------------------------------------------------------------*/ SwBusinessDataPage::~SwBusinessDataPage() { } -/*-- 29.09.99 08:56:06--------------------------------------------------- - -----------------------------------------------------------------------*/ SfxTabPage* SwBusinessDataPage::Create(Window* pParent, const SfxItemSet& rSet) { return new SwBusinessDataPage(pParent, rSet); } -/*-- 29.09.99 08:56:06--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwBusinessDataPage::ActivatePage(const SfxItemSet& rSet) { Reset(rSet); } -/*-- 29.09.99 08:56:06--------------------------------------------------- - -----------------------------------------------------------------------*/ int SwBusinessDataPage::DeactivatePage(SfxItemSet* _pSet) { if (_pSet) FillItemSet(*_pSet); return LEAVE_PAGE; } -/*-- 29.09.99 08:56:06--------------------------------------------------- - -----------------------------------------------------------------------*/ sal_Bool SwBusinessDataPage::FillItemSet(SfxItemSet& rSet) { SwLabItem aItem = (const SwLabItem&) GetTabDialog()->GetExampleSet()->Get(FN_LABEL); @@ -1075,9 +960,7 @@ sal_Bool SwBusinessDataPage::FillItemSet(SfxItemSet& rSet) rSet.Put(aItem); return sal_True; } -/*-- 29.09.99 08:56:07--------------------------------------------------- - -----------------------------------------------------------------------*/ void SwBusinessDataPage::Reset(const SfxItemSet& rSet) { const SwLabItem& aItem = (const SwLabItem&) rSet.Get(FN_LABEL);
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice