summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc
diff options
context:
space:
mode:
authorChris Laplante <mostthingsweb@gmail.com>2014-05-25 21:26:51 -0400
committerNoel Grandin <noelgrandin@gmail.com>2014-05-27 01:46:44 -0500
commit0a3fe4c281be942e75b498073378b39a6e1a8ba7 (patch)
treefbab34cecc00bb6c2a0d7b74df79aecc7823591e /sw/source/ui/misc
parent0f2824b117b65bd9c9db2870edc159419ae0c1d9 (diff)
Remove ASCII art and useless comments from sw module
Change-Id: I3ba4ac78fd4810e006b1034bbe7c28b1803895d2 Reviewed-on: https://gerrit.libreoffice.org/9494 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r--sw/source/ui/misc/bookmark.cxx15
-rw-r--r--sw/source/ui/misc/docfnote.cxx22
-rw-r--r--sw/source/ui/misc/glossary.cxx33
-rw-r--r--sw/source/ui/misc/insfnote.cxx6
-rw-r--r--sw/source/ui/misc/linenum.cxx8
-rw-r--r--sw/source/ui/misc/pgfnote.cxx14
-rw-r--r--sw/source/ui/misc/srtdlg.cxx12
7 files changed, 28 insertions, 82 deletions
diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx
index 8405492215f5..86507168f199 100644
--- a/sw/source/ui/misc/bookmark.cxx
+++ b/sw/source/ui/misc/bookmark.cxx
@@ -63,9 +63,7 @@ IMPL_LINK( SwInsertBookmarkDlg, ModifyHdl, BookmarkCombo *, pBox )
return 0;
}
-/*------------------------------------------------------------------------
- Description: callback to delete a text mark
- -----------------------------------------------------------------------*/
+// callback to delete a text mark
IMPL_LINK_NOARG(SwInsertBookmarkDlg, DeleteHdl)
{
// remove text marks from the ComboBox
@@ -80,10 +78,8 @@ IMPL_LINK_NOARG(SwInsertBookmarkDlg, DeleteHdl)
return 0;
}
-/*------------------------------------------------------------------------
- Description: callback for OKButton. Inserts a new text mark to the
- current position. Deleted text marks are also deleted in the model.
- -----------------------------------------------------------------------*/
+// callback for OKButton. Inserts a new text mark to the current position.
+// Deleted text marks are also deleted in the model.
void SwInsertBookmarkDlg::Apply()
{
//at first remove deleted bookmarks to prevent multiple bookmarks with the same
@@ -198,14 +194,11 @@ sal_Int32 BookmarkCombo::GetSelectEntryCount() const
return nCnt;
}
-/*------------------------------------------------------------------------
- Description: position inside of the listbox (the ComboBox)
- -----------------------------------------------------------------------*/
+// position inside of the listbox (the ComboBox)
sal_Int32 BookmarkCombo::GetSelectEntryPos( sal_Int32 nSelIndex ) const
{
sal_Int32 nCnt = 0;
sal_Int32 nPos = GetFirstSelEntryPos();
-
while (nPos != COMBOBOX_ENTRY_NOTFOUND)
{
if (nSelIndex == nCnt)
diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx
index 04d223afa9c2..1f5c0f9d2174 100644
--- a/sw/source/ui/misc/docfnote.cxx
+++ b/sw/source/ui/misc/docfnote.cxx
@@ -228,11 +228,8 @@ SfxTabPage *SwEndNoteOptionPage::Create( Window *pParent, const SfxItemSet &rSet
return new SwEndNoteOptionPage( pParent, true, rSet );
}
-/*------------------------------------------------------------------------
- Description: Different kinds of numbering; because the Listbox has
- varying numbers of entries, here are functions to
- set and query the intended kind of numbering.
-------------------------------------------------------------------------*/
+// Different kinds of numbering; because the Listbox has varying numbers of
+// entries, here are functions to set and query the intended kind of numbering.
void SwEndNoteOptionPage::SelectNumbering(int eNum)
{
OUString sSelect;
@@ -275,11 +272,8 @@ void SwEndNoteOptionPage::SetShell( SwWrtShell &rShell )
pSh->GetView().GetDocShell());
}
-/*------------------------------------------------------------------------
- Description: Handler behind the button to collect the footnote at the
- page. In this case all kinds of numbering can be used.
-------------------------------------------------------------------------*/
-
+// Handler behind the button to collect the footnote at the page. In this case
+// all kinds of numbering can be used.
IMPL_LINK_NOARG(SwEndNoteOptionPage, PosPageHdl)
{
const SwFtnNum eNum = (const SwFtnNum)GetNumbering();
@@ -309,12 +303,8 @@ IMPL_LINK_NOARG(SwEndNoteOptionPage, NumCountHdl)
return 0;
}
-/*------------------------------------------------------------------------
- Description: Handler behind the button to collect the footnote at the
- chapter or end of the document. In this case no pagewise
- numbering can be used.
-------------------------------------------------------------------------*/
-
+// Handler behind the button to collect the footnote at the chapter or end of
+// the document. In this case no pagewise numbering can be used.
IMPL_LINK_NOARG_INLINE_START(SwEndNoteOptionPage, PosChapterHdl)
{
if ( !bPosDoc )
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index f794f537897f..e989d124cd9f 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -112,9 +112,7 @@ struct GroupUserData
bReadonly(false) {}
};
-/*------------------------------------------------------------------------
- Description: dialog for new block name
-------------------------------------------------------------------------*/
+// dialog for new block name
class SwNewGlosNameDlg : public ModalDialog
{
Edit* m_pNewName;
@@ -156,9 +154,7 @@ SwNewGlosNameDlg::SwNewGlosNameDlg(Window* pParent,
m_pNewName->GrabFocus();
}
-/*------------------------------------------------------------------------
- Description: query / set currently set group
-------------------------------------------------------------------------*/
+// query / set currently set group
OUString SwGlossaryDlg::GetCurrGroup()
{
if( !::GetCurrGlosGroup().isEmpty() )
@@ -237,9 +233,7 @@ SwGlossaryDlg::~SwGlossaryDlg()
delete pExampleFrame;
}
-/*------------------------------------------------------------------------
- Description: select new group
-------------------------------------------------------------------------*/
+// select new group
IMPL_LINK( SwGlossaryDlg, GrpSelect, SvTreeListBox *, pBox )
{
SvTreeListEntry* pEntry = pBox->FirstSelected();
@@ -312,9 +306,7 @@ void SwGlossaryDlg::EnableShortName(bool bOn)
m_pShortNameEdit->Enable(bOn);
}
-/* --------------------------------------------------
- * does the title exist in the selected group?
- * --------------------------------------------------*/
+// does the title exist in the selected group?
SvTreeListEntry* SwGlossaryDlg::DoesBlockExist(const OUString& rBlock,
const OUString& rShort)
{
@@ -586,9 +578,7 @@ IMPL_LINK( SwGlossaryDlg, MenuHdl, Menu *, pMn )
return 1;
}
-/*--------------------------------------------------------------------
- Description: dialog manage regions
- --------------------------------------------------------------------*/
+// dialog manage regions
IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl)
{
SwGlossaries* pGloss = ::GetGlossaries();
@@ -664,9 +654,7 @@ IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl)
return 0;
}
-/*------------------------------------------------------------------------
- Description: initialisation; from Ctor and after editing regions
-------------------------------------------------------------------------*/
+// initialisation; from Ctor and after editing regions
void SwGlossaryDlg::Init()
{
m_pCategoryBox->SetUpdateMode( false );
@@ -775,14 +763,11 @@ IMPL_LINK_NOARG_INLINE_START(SwGlossaryDlg, EditHdl)
}
IMPL_LINK_NOARG_INLINE_END(SwGlossaryDlg, EditHdl)
-/*------------------------------------------------------------------------
- Description: KeyInput for ShortName - Edits without Spaces
-------------------------------------------------------------------------*/
+// KeyInput for ShortName - Edits without Spaces
IMPL_LINK( SwNewGlosNameDlg, Modify, Edit *, pBox )
{
OUString aName(m_pNewName->GetText());
SwGlossaryDlg* pDlg = (SwGlossaryDlg*)GetParent();
-
if (pBox == m_pNewName)
m_pNewShort->SetText( lcl_GetValidShortCut( aName ) );
@@ -821,9 +806,7 @@ IMPL_LINK( SwGlossaryDlg, CheckBoxHdl, CheckBox *, pBox )
return 0;
}
-/* --------------------------------------------------
- * TreeListBox for groups and blocks
- * --------------------------------------------------*/
+// TreeListBox for groups and blocks
SwGlTreeListBox::SwGlTreeListBox(Window* pParent, WinBits nBits)
: SvTreeListBox(pParent, nBits)
, sReadonly(SW_RESSTR(SW_STR_READONLY)),
diff --git a/sw/source/ui/misc/insfnote.cxx b/sw/source/ui/misc/insfnote.cxx
index cacc4eb4ff84..93ac3107d689 100644
--- a/sw/source/ui/misc/insfnote.cxx
+++ b/sw/source/ui/misc/insfnote.cxx
@@ -42,14 +42,10 @@
static bool bFootnote = true;
-/*------------------------------------------------------------------------
- Description: inserting a footnote with OK
-------------------------------------------------------------------------*/
-
+// inserting a footnote with OK
void SwInsFootNoteDlg::Apply()
{
OUString aStr;
-
if ( m_pNumberCharBtn->IsChecked() )
aStr = m_pNumberCharEdit->GetText();
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index d37c1d66ebbd..3fdff721ad21 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -186,9 +186,7 @@ IMPL_LINK_NOARG(SwLineNumberingDlg, OKHdl)
return 0;
}
-/*--------------------------------------------------------------------
- Description: modify
- --------------------------------------------------------------------*/
+// modify
IMPL_LINK_NOARG(SwLineNumberingDlg, ModifyHdl)
{
bool bEnable = m_pNumberingOnCB->IsChecked() && !m_pDivisorED->GetText().isEmpty();
@@ -200,9 +198,7 @@ IMPL_LINK_NOARG(SwLineNumberingDlg, ModifyHdl)
return 0;
}
-/*--------------------------------------------------------------------
- Description: On/Off
- --------------------------------------------------------------------*/
+// On/Off
IMPL_LINK_NOARG(SwLineNumberingDlg, LineOnOffHdl)
{
bool bEnable = m_pNumberingOnCB->IsChecked();
diff --git a/sw/source/ui/misc/pgfnote.cxx b/sw/source/ui/misc/pgfnote.cxx
index bea294d65fa4..5b710792451d 100644
--- a/sw/source/ui/misc/pgfnote.cxx
+++ b/sw/source/ui/misc/pgfnote.cxx
@@ -48,10 +48,8 @@ static const sal_uInt16 aPageRg[] = {
0
};
-/*------------------------------------------------------------------------
- Description: handler to switch between the different possibilities
- how the footnote region's height can be set.
-------------------------------------------------------------------------*/
+// handler to switch between the different possibilities how the footnote
+// region's height can be set.
IMPL_LINK_NOARG_INLINE_START(SwFootNotePage, HeightPage)
{
m_pMaxHeightEdit->Enable(false);
@@ -67,9 +65,7 @@ IMPL_LINK_NOARG_INLINE_START(SwFootNotePage, HeightMetric)
}
IMPL_LINK_NOARG_INLINE_END(SwFootNotePage, HeightMetric)
-/*------------------------------------------------------------------------
- Description: handler limit values
-------------------------------------------------------------------------*/
+// handler limit values
IMPL_LINK_NOARG(SwFootNotePage, HeightModify)
{
m_pMaxHeightEdit->SetMax(m_pMaxHeightEdit->Normalize(lMaxHeight -
@@ -257,9 +253,7 @@ void SwFootNotePage::Reset(const SfxItemSet &rSet)
delete pDefFtnInfo;
}
-/*--------------------------------------------------------------------
- Description: stuff attributes into the set, when OK
- --------------------------------------------------------------------*/
+// stuff attributes into the set, when OK
bool SwFootNotePage::FillItemSet(SfxItemSet &rSet)
{
SwPageFtnInfoItem aItem((const SwPageFtnInfoItem&)GetItemSet().Get(FN_PARAM_FTN_INFO));
diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx
index a4e78417e704..53dcebb77344 100644
--- a/sw/source/ui/misc/srtdlg.cxx
+++ b/sw/source/ui/misc/srtdlg.cxx
@@ -76,9 +76,7 @@ static void lcl_ClearLstBoxAndDelUserData( ListBox& rLstBox )
rLstBox.Clear();
}
-/*--------------------------------------------------------------------
- Description: determine lines and columns for table selection
- --------------------------------------------------------------------*/
+// determine lines and columns for table selection
static bool lcl_GetSelTbl( SwWrtShell &rSh, sal_uInt16& rX, sal_uInt16& rY )
{
const SwTableNode* pTblNd = rSh.IsCrsrInTbl();
@@ -103,9 +101,7 @@ static bool lcl_GetSelTbl( SwWrtShell &rSh, sal_uInt16& rX, sal_uInt16& rY )
return true;
}
-/*--------------------------------------------------------------------
- Description: init list
- --------------------------------------------------------------------*/
+// init list
SwSortDlg::SwSortDlg(Window* pParent, SwWrtShell &rShell)
: SvxStandardDialog(pParent, "SortDialog", "modules/swriter/ui/sortdialog.ui")
, aColTxt(SW_RES(STR_COL))
@@ -270,9 +266,7 @@ sal_Unicode SwSortDlg::GetDelimChar() const
return cRet;
}
-/*--------------------------------------------------------------------
- Description: pass on to the Core
- --------------------------------------------------------------------*/
+// pass on to the Core
void SwSortDlg::Apply()
{
// save all settings