diff options
author | Chris Laplante <mostthingsweb@gmail.com> | 2014-08-18 16:57:11 -0400 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-08-19 01:28:24 -0500 |
commit | 7b33dbb25394a88b8eb2c826d951ce578605e895 (patch) | |
tree | d99485092601a2f21a143049569daee0fd4e8a76 /svx/source/items | |
parent | 23b49f2390b3d551a52caf06496d8aadf1920bf8 (diff) |
svx: Cleanup ASCII art and useless comments
Change-Id: I5399362056276f324fd43eda05d3f606dc6f8c71
Reviewed-on: https://gerrit.libreoffice.org/11011
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/items')
-rw-r--r-- | svx/source/items/SmartTagItem.cxx | 2 | ||||
-rw-r--r-- | svx/source/items/algitem.cxx | 4 | ||||
-rw-r--r-- | svx/source/items/chrtitem.cxx | 50 | ||||
-rw-r--r-- | svx/source/items/drawitem.cxx | 37 | ||||
-rw-r--r-- | svx/source/items/e3ditem.cxx | 5 | ||||
-rw-r--r-- | svx/source/items/grfitem.cxx | 4 | ||||
-rw-r--r-- | svx/source/items/hlnkitem.cxx | 2 | ||||
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 154 | ||||
-rw-r--r-- | svx/source/items/numinf.cxx | 2 | ||||
-rw-r--r-- | svx/source/items/pageitem.cxx | 27 | ||||
-rw-r--r-- | svx/source/items/postattr.cxx | 6 | ||||
-rw-r--r-- | svx/source/items/rotmodit.cxx | 2 |
12 files changed, 47 insertions, 248 deletions
diff --git a/svx/source/items/SmartTagItem.cxx b/svx/source/items/SmartTagItem.cxx index e6fa0bc8edae..72c732e254f9 100644 --- a/svx/source/items/SmartTagItem.cxx +++ b/svx/source/items/SmartTagItem.cxx @@ -27,8 +27,6 @@ using namespace ::com::sun::star; TYPEINIT1(SvxSmartTagItem, SfxPoolItem); -// class SvxFontItem ----------------------------------------------------- - SvxSmartTagItem::SvxSmartTagItem( const sal_uInt16 nId, const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > > >& rActionComponentsSequence, const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< sal_Int32 > >& rActionIndicesSequence, diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx index 7615aa8c8cc6..0c9f16d27fb7 100644 --- a/svx/source/items/algitem.cxx +++ b/svx/source/items/algitem.cxx @@ -44,8 +44,6 @@ using namespace ::com::sun::star; TYPEINIT1_FACTORY( SvxOrientationItem, SfxEnumItem, new SvxOrientationItem(SVX_ORIENTATION_STANDARD, 0) ); TYPEINIT1_FACTORY( SvxMarginItem, SfxPoolItem, new SvxMarginItem(0) ); -// class SvxOrientationItem ---------------------------------------------- - SvxOrientationItem::SvxOrientationItem( const SvxCellOrientation eOrientation, const sal_uInt16 nId): SfxEnumItem( nId, (sal_uInt16)eOrientation ) @@ -174,8 +172,6 @@ void SvxOrientationItem::SetFromRotation( sal_Int32 nRotation, bool bStacked ) } } -// class SvxMarginItem --------------------------------------------------- - SvxMarginItem::SvxMarginItem( const sal_uInt16 nId ) : SfxPoolItem( nId ), diff --git a/svx/source/items/chrtitem.cxx b/svx/source/items/chrtitem.cxx index 128df692105a..01aceb34554d 100644 --- a/svx/source/items/chrtitem.cxx +++ b/svx/source/items/chrtitem.cxx @@ -41,12 +41,6 @@ TYPEINIT1(SvxChartKindErrorItem, SfxEnumItem); TYPEINIT1(SvxChartRegressItem, SfxEnumItem); TYPEINIT1_FACTORY(SvxDoubleItem, SfxPoolItem, new SvxDoubleItem(0.0, 0)); -/************************************************************************* -|* -|* SvxChartStyleItem -|* -*************************************************************************/ - SvxChartStyleItem::SvxChartStyleItem(SvxChartStyle eStyle, sal_uInt16 nId) : SfxEnumItem(nId, (sal_uInt16)eStyle) { @@ -73,12 +67,6 @@ SfxPoolItem* SvxChartStyleItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const return new SvxChartStyleItem(rIn, Which()); } -/************************************************************************* -|* -|* SvxChartDataDescrItem -|* -*************************************************************************/ - SvxChartDataDescrItem::SvxChartDataDescrItem(SvStream& rIn, sal_uInt16 nId) : SfxEnumItem(nId, rIn) { @@ -98,12 +86,6 @@ SfxPoolItem* SvxChartDataDescrItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) c return new SvxChartDataDescrItem(rIn, Which()); } -/************************************************************************* -|* -|* SvxChartTextOrderItem -|* -*************************************************************************/ - SvxChartTextOrderItem::SvxChartTextOrderItem(SvxChartTextOrder eOrder, sal_uInt16 nId) : SfxEnumItem(nId, (sal_uInt16)eOrder) @@ -192,12 +174,6 @@ bool SvxChartTextOrderItem::PutValue( const ::com::sun::star::uno::Any& rVal, sa return true; } -/************************************************************************* -|* -|* SvxChartTextOrientItem -|* -*************************************************************************/ - SvxChartTextOrientItem::SvxChartTextOrientItem(SvStream& rIn, sal_uInt16 nId) : SfxEnumItem(nId, rIn) { @@ -217,12 +193,6 @@ SfxPoolItem* SvxChartTextOrientItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) return new SvxChartTextOrientItem(rIn, Which()); } -/************************************************************************* -|* -|* SvxDoubleItem -|* -*************************************************************************/ - SvxDoubleItem::SvxDoubleItem(double fValue, sal_uInt16 nId) : SfxPoolItem(nId), fVal(fValue) @@ -330,14 +300,6 @@ bool SvxDoubleItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) return rVal >>= fVal; } - - -/************************************************************************* -|* -|* SvxChartKindErrorItem -|* -*************************************************************************/ - SvxChartKindErrorItem::SvxChartKindErrorItem(SvxChartKindError eOrient, sal_uInt16 nId) : SfxEnumItem(nId, (sal_uInt16)eOrient) @@ -374,12 +336,6 @@ sal_uInt16 SvxChartKindErrorItem::GetVersion (sal_uInt16 nFileFormatVersion) con : 0; } -/************************************************************************* -|* -|* SvxChartIndicateItem -|* -*************************************************************************/ - SvxChartIndicateItem::SvxChartIndicateItem(SvxChartIndicate eOrient, sal_uInt16 nId) : SfxEnumItem(nId, (sal_uInt16)eOrient) @@ -416,12 +372,6 @@ sal_uInt16 SvxChartIndicateItem::GetVersion (sal_uInt16 nFileFormatVersion) cons : 0; } -/************************************************************************* -|* -|* SvxChartRegressItem -|* -*************************************************************************/ - SvxChartRegressItem::SvxChartRegressItem(SvxChartRegress eOrient, sal_uInt16 nId) : SfxEnumItem(nId, (sal_uInt16)eOrient) diff --git a/svx/source/items/drawitem.cxx b/svx/source/items/drawitem.cxx index 93a981918639..89710db5431b 100644 --- a/svx/source/items/drawitem.cxx +++ b/svx/source/items/drawitem.cxx @@ -30,12 +30,6 @@ TYPEINIT1_FACTORY( SvxBitmapListItem, SfxPoolItem , new SvxBitmapListItem ); TYPEINIT1_FACTORY( SvxDashListItem, SfxPoolItem , new SvxDashListItem ); TYPEINIT1_FACTORY( SvxLineEndListItem, SfxPoolItem , new SvxLineEndListItem ); - - -// SvxColorListItem - - - SvxColorListItem::SvxColorListItem() { } @@ -98,12 +92,6 @@ bool svtype::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 ) \ QUERY_PUT_IMPL( SvxColorListItem, ColorList ) - - -// SvxGradientListItem - - - SvxGradientListItem::SvxGradientListItem() { } @@ -151,12 +139,6 @@ SfxPoolItem* SvxGradientListItem::Clone( SfxItemPool * ) const QUERY_PUT_IMPL( SvxGradientListItem, GradientList ) - - -// SvxHatchListItem - - - SvxHatchListItem::SvxHatchListItem() { } @@ -204,13 +186,6 @@ SfxPoolItem* SvxHatchListItem::Clone( SfxItemPool * ) const QUERY_PUT_IMPL( SvxHatchListItem, HatchList ) - - - -// SvxBitmapListItem - - - SvxBitmapListItem::SvxBitmapListItem() { } @@ -252,12 +227,6 @@ SfxPoolItem* SvxBitmapListItem::Clone( SfxItemPool * ) const QUERY_PUT_IMPL( SvxBitmapListItem, BitmapList ) - - -// SvxDashListItem - - - SvxDashListItem::SvxDashListItem() : pDashList( 0 ) { @@ -300,12 +269,6 @@ SfxPoolItem* SvxDashListItem::Clone( SfxItemPool * ) const QUERY_PUT_IMPL( SvxDashListItem, DashList ) - - -// SvxLineEndListItem - - - SvxLineEndListItem::SvxLineEndListItem() { } diff --git a/svx/source/items/e3ditem.cxx b/svx/source/items/e3ditem.cxx index caf73ff9a630..8dd3500dc858 100644 --- a/svx/source/items/e3ditem.cxx +++ b/svx/source/items/e3ditem.cxx @@ -25,11 +25,6 @@ using namespace ::rtl; using namespace ::com::sun::star; -// STATIC DATA ----------------------------------------------------------- - - - - TYPEINIT1_FACTORY(SvxB3DVectorItem, SfxPoolItem, new SvxB3DVectorItem); diff --git a/svx/source/items/grfitem.cxx b/svx/source/items/grfitem.cxx index 3158b83853b1..f06abd1d74ea 100644 --- a/svx/source/items/grfitem.cxx +++ b/svx/source/items/grfitem.cxx @@ -25,10 +25,6 @@ using namespace ::com::sun::star; -/****************************************************************************** - * Implementierung class SwCropGrf - ******************************************************************************/ - SvxGrfCrop::SvxGrfCrop( sal_uInt16 nItemId ) : SfxPoolItem( nItemId ), nLeft( 0 ), nRight( 0 ), nTop( 0 ), nBottom( 0 ) diff --git a/svx/source/items/hlnkitem.cxx b/svx/source/items/hlnkitem.cxx index f5d76c327c1b..2f9573f3319a 100644 --- a/svx/source/items/hlnkitem.cxx +++ b/svx/source/items/hlnkitem.cxx @@ -28,8 +28,6 @@ TYPEINIT1_FACTORY(SvxHyperlinkItem, SfxPoolItem, new SvxHyperlinkItem(0)); -// class SvxHyperlinkItem ------------------------------------------------ - #define HYPERLINKFF_MARKER 0x599401FE SvStream& SvxHyperlinkItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) const diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index c5876b47fada..138d1050b13f 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -34,8 +34,6 @@ #include <limits> -// class SvxNumberFormatShell -------------------------------------------- - const double SvxNumberFormatShell::DEFAULT_NUMVALUE = 1234.56789; @@ -1198,22 +1196,12 @@ void SvxNumberFormatShell::CategoryToPos_Impl( short nCategory, sal_uInt16& rPos } } - -/************************************************************************* -#* Member: MakePrevStringFromVal Datum:19.09.97 -#*------------------------------------------------------------------------ -#* -#* Klasse: SvxNumberFormatShell -#* -#* Funktion: Formatiert die Zahl nValue abhaengig von rFormatStr -#* und speichert das Ergebnis in rPreviewStr. -#* -#* Input: FormatString, Farbe, zu formatierende Zahl -#* -#* Output: Ausgabestring rPreviewStr -#* -#************************************************************************/ - +/* + * Funktion: Formatiert die Zahl nValue abhaengig von rFormatStr + * und speichert das Ergebnis in rPreviewStr. + * Input: FormatString, Farbe, zu formatierende Zahl + * Output: Ausgabestring rPreviewStr + */ void SvxNumberFormatShell::MakePrevStringFromVal( const OUString& rFormatStr, OUString& rPreviewStr, @@ -1224,21 +1212,12 @@ void SvxNumberFormatShell::MakePrevStringFromVal( pFormatter->GetPreviewString( rFormatStr, nValue, rPreviewStr, &rpFontColor, eCurLanguage ); } -/************************************************************************* -#* Member: GetComment4Entry Datum:30.10.97 -#*------------------------------------------------------------------------ -#* -#* Klasse: SvxNumberFormatShell -#* -#* Funktion: Liefert den Kommentar fuer einen gegebenen -#* Eintrag zurueck. -#* -#* Input: Nummer des Eintrags -#* -#* Output: Kommentar-String -#* -#************************************************************************/ - +/* + * Funktion: Liefert den Kommentar fuer einen gegebenen + * Eintrag zurueck. + * Input: Nummer des Eintrags + * Output: Kommentar-String + */ void SvxNumberFormatShell::SetComment4Entry(short nEntry, const OUString& aEntStr) { SvNumberformat *pNumEntry; @@ -1248,21 +1227,12 @@ void SvxNumberFormatShell::SetComment4Entry(short nEntry, const OUString& aEntSt if(pNumEntry!=NULL) pNumEntry->SetComment(aEntStr); } -/************************************************************************* -#* Member: GetComment4Entry Datum:30.10.97 -#*------------------------------------------------------------------------ -#* -#* Klasse: SvxNumberFormatShell -#* -#* Funktion: Liefert den Kommentar fuer einen gegebenen -#* Eintrag zurueck. -#* -#* Input: Nummer des Eintrags -#* -#* Output: Kommentar-String -#* -#************************************************************************/ - +/* + * Funktion: Liefert den Kommentar fuer einen gegebenen + * Eintrag zurueck. + * Input: Nummer des Eintrags + * Output: Kommentar-String + */ OUString SvxNumberFormatShell::GetComment4Entry(short nEntry) { if(nEntry < 0) @@ -1279,25 +1249,15 @@ OUString SvxNumberFormatShell::GetComment4Entry(short nEntry) return OUString(); } -/************************************************************************* -#* Member: GetCategory4Entry Datum:30.10.97 -#*------------------------------------------------------------------------ -#* -#* Klasse: SvxNumberFormatShell -#* -#* Funktion: Liefert die Kategorie- Nummer fuer einen gegebenen -#* Eintrag zurueck. -#* -#* Input: Nummer des Eintrags -#* -#* Output: Kategorie- Nummer -#* -#************************************************************************/ - +/* + * Funktion: Liefert die Kategorie- Nummer fuer einen gegebenen + * Eintrag zurueck. + * Input: Nummer des Eintrags + * Output: Kategorie- Nummer + */ short SvxNumberFormatShell::GetCategory4Entry(short nEntry) { if(nEntry<0) return 0; - if( static_cast<size_t>(nEntry) < aCurEntryList.size() ) { sal_uInt32 nMyNfEntry=aCurEntryList[nEntry]; @@ -1324,25 +1284,15 @@ short SvxNumberFormatShell::GetCategory4Entry(short nEntry) } -/************************************************************************* -#* Member: GetUserDefined4Entry Datum:31.10.97 -#*------------------------------------------------------------------------ -#* -#* Klasse: SvxNumberFormatShell -#* -#* Funktion: Liefert die Information, ob ein Eintrag -#* benutzerspezifisch ist zurueck. -#* -#* Input: Nummer des Eintrags -#* -#* Output: Benutzerspezifisch? -#* -#************************************************************************/ - +/* + * Funktion: Liefert die Information, ob ein Eintrag + * benutzerspezifisch ist zurueck. + * Input: Nummer des Eintrags + * Output: Benutzerspezifisch? + */ bool SvxNumberFormatShell::GetUserDefined4Entry(short nEntry) { if(nEntry<0) return false; - if( static_cast<size_t>(nEntry) < aCurEntryList.size()) { sal_uInt32 nMyNfEntry=aCurEntryList[nEntry]; @@ -1359,22 +1309,12 @@ bool SvxNumberFormatShell::GetUserDefined4Entry(short nEntry) return false; } - -/************************************************************************* -#* Member: GetFormat4Entry Datum:30.10.97 -#*------------------------------------------------------------------------ -#* -#* Klasse: SvxNumberFormatShell -#* -#* Funktion: Liefert den Format- String fuer einen gegebenen -#* Eintrag zurueck. -#* -#* Input: Nummer des Eintrags -#* -#* Output: Format- String -#* -#************************************************************************/ - +/* + * Funktion: Liefert den Format- String fuer einen gegebenen + * Eintrag zurueck. + * Input: Nummer des Eintrags + * Output: Format- String + */ OUString SvxNumberFormatShell::GetFormat4Entry(short nEntry) { if(nEntry < 0) @@ -1396,25 +1336,15 @@ OUString SvxNumberFormatShell::GetFormat4Entry(short nEntry) return OUString(); } -/************************************************************************* -#* Member: GetListPos4Entry Datum:31.10.97 -#*------------------------------------------------------------------------ -#* -#* Klasse: SvxNumberFormatShell -#* -#* Funktion: Liefert die Listen- Nummer fuer einen gegebenen -#* Formatindex zurueck. -#* -#* Input: Nummer des Eintrags -#* -#* Output: Kategorie- Nummer -#* -#************************************************************************/ - +/* + * Funktion: Liefert die Listen- Nummer fuer einen gegebenen + * Formatindex zurueck. + * Input: Nummer des Eintrags + * Output: Kategorie- Nummer + */ short SvxNumberFormatShell::GetListPos4Entry(sal_uInt32 nIdx) { short nSelP=SELPOS_NONE; - // Check list size against return type limit. if( aCurEntryList.size() <= static_cast<size_t>(::std::numeric_limits< short >::max()) ) { diff --git a/svx/source/items/numinf.cxx b/svx/source/items/numinf.cxx index 6aabe79d4063..d9847b84487e 100644 --- a/svx/source/items/numinf.cxx +++ b/svx/source/items/numinf.cxx @@ -23,8 +23,6 @@ TYPEINIT1(SvxNumberInfoItem, SfxPoolItem); -// class SvxNumberInfoItem ----------------------------------------------- - #define INIT(pNum,eVal,nDouble,rStr) \ SfxPoolItem ( nId ), \ \ diff --git a/svx/source/items/pageitem.cxx b/svx/source/items/pageitem.cxx index 9968429eb8e7..45cb60b6cc41 100644 --- a/svx/source/items/pageitem.cxx +++ b/svx/source/items/pageitem.cxx @@ -32,14 +32,9 @@ using namespace ::rtl; using namespace ::com::sun::star; -// STATIC DATA ----------------------------------------------------------- - TYPEINIT1_FACTORY( SvxPageItem, SfxPoolItem , new SvxPageItem(0)); -/*-------------------------------------------------------------------- - Beschreibung: Konstruktor - --------------------------------------------------------------------*/ - +// Konstruktor SvxPageItem::SvxPageItem( const sal_uInt16 nId ) : SfxPoolItem( nId ), eNumType ( SVX_ARABIC ), @@ -48,10 +43,7 @@ SvxPageItem::SvxPageItem( const sal_uInt16 nId ) : SfxPoolItem( nId ), { } -/*-------------------------------------------------------------------- - Beschreibung: Copy-Konstruktor - --------------------------------------------------------------------*/ - +// Copy-Konstruktor SvxPageItem::SvxPageItem( const SvxPageItem& rItem ) : SfxPoolItem( rItem ) { @@ -60,19 +52,13 @@ SvxPageItem::SvxPageItem( const SvxPageItem& rItem ) eUse = rItem.eUse; } -/*-------------------------------------------------------------------- - Beschreibung: Clonen - --------------------------------------------------------------------*/ - +// Clonen SfxPoolItem* SvxPageItem::Clone( SfxItemPool * ) const { return new SvxPageItem( *this ); } -/*-------------------------------------------------------------------- - Beschreibung: Abfrage auf Gleichheit - --------------------------------------------------------------------*/ - +// Abfrage auf Gleichheit bool SvxPageItem::operator==( const SfxPoolItem& rAttr ) const { DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" ); @@ -266,10 +252,7 @@ SvStream& SvxPageItem::Store( SvStream &rStrm, sal_uInt16 /*nItemVersion*/ ) con return rStrm; } -/*-------------------------------------------------------------------- - Beschreibung: HeaderFooterSet - --------------------------------------------------------------------*/ - +// HeaderFooterSet SvxSetItem::SvxSetItem( const sal_uInt16 nId, const SfxItemSet& rSet ) : SfxSetItem( nId, rSet ) diff --git a/svx/source/items/postattr.cxx b/svx/source/items/postattr.cxx index 6a6b68a63f69..8139f0fce2ae 100644 --- a/svx/source/items/postattr.cxx +++ b/svx/source/items/postattr.cxx @@ -28,8 +28,6 @@ TYPEINIT1_FACTORY(SvxPostItAuthorItem, SfxStringItem, new SvxPostItAuthorItem(0) TYPEINIT1_FACTORY(SvxPostItDateItem, SfxStringItem, new SvxPostItDateItem(0)); TYPEINIT1_FACTORY(SvxPostItTextItem, SfxStringItem, new SvxPostItTextItem(0)); -// class SvxPostItAuthorItem --------------------------------------------- - SvxPostItAuthorItem::SvxPostItAuthorItem( sal_uInt16 _nWhich ) { SetWhich( _nWhich ); @@ -73,8 +71,6 @@ SfxPoolItem* SvxPostItAuthorItem::Clone( SfxItemPool * ) const return new SvxPostItAuthorItem( *this ); } -// class SvxPostItDateItem ----------------------------------------------- - SvxPostItDateItem::SvxPostItDateItem( sal_uInt16 _nWhich ) { SetWhich( _nWhich ); @@ -118,8 +114,6 @@ SfxPoolItem* SvxPostItDateItem::Clone( SfxItemPool * ) const return new SvxPostItDateItem( *this ); } -// class SvxPostItTextItem ----------------------------------------------- - SvxPostItTextItem::SvxPostItTextItem( sal_uInt16 _nWhich ) { SetWhich( _nWhich ); diff --git a/svx/source/items/rotmodit.cxx b/svx/source/items/rotmodit.cxx index abf7296632ba..c80589ae4dea 100644 --- a/svx/source/items/rotmodit.cxx +++ b/svx/source/items/rotmodit.cxx @@ -36,8 +36,6 @@ using namespace ::rtl; using namespace ::com::sun::star; -// STATIC DATA ----------------------------------------------------------- - TYPEINIT1_FACTORY(SvxRotateModeItem, SfxEnumItem, new SvxRotateModeItem(SVX_ROTATE_MODE_STANDARD, 0)); |