From 8792ec7b2129650777b7b4bfacaa7c13d923279b Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Tue, 25 Feb 2014 19:06:16 +0100 Subject: Remove visual noise from include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Conflicts: include/framework/preventduplicateinteraction.hxx include/sfx2/sfxbasecontroller.hxx include/sfx2/sfxbasemodel.hxx include/toolkit/awt/vclxtabpagemodel.hxx include/vcl/field.hxx include/vcl/settings.hxx Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2 Reviewed-on: https://gerrit.libreoffice.org/8272 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/oox/dump/dffdumper.hxx | 4 +- include/oox/dump/dumperbase.hxx | 150 ++++++++++++++++++++-------------------- include/oox/dump/oledumper.hxx | 116 +++++++++++++++---------------- include/oox/dump/pptxdumper.hxx | 6 +- include/oox/dump/xlsbdumper.hxx | 16 ++--- 5 files changed, 146 insertions(+), 146 deletions(-) (limited to 'include/oox/dump') diff --git a/include/oox/dump/dffdumper.hxx b/include/oox/dump/dffdumper.hxx index 1a269553c50a..5c500e847161 100644 --- a/include/oox/dump/dffdumper.hxx +++ b/include/oox/dump/dffdumper.hxx @@ -27,7 +27,7 @@ namespace oox { namespace dump { -// ============================================================================ + class DffStreamObject : public SequenceRecordObjectBase { @@ -59,7 +59,7 @@ private: sal_Int32 mnRealSize; }; -// ============================================================================ + } // namespace dump } // namespace oox diff --git a/include/oox/dump/dumperbase.hxx b/include/oox/dump/dumperbase.hxx index ae879556e6ab..7cca4b4490f9 100644 --- a/include/oox/dump/dumperbase.hxx +++ b/include/oox/dump/dumperbase.hxx @@ -61,7 +61,7 @@ namespace oox { namespace core { namespace oox { namespace dump { -// ============================================================================ + #define OOX_DUMP_UNUSED "unused" #define OOX_DUMP_UNKNOWN "?unknown" @@ -97,8 +97,8 @@ typedef ::std::pair< sal_Int64, sal_Int64 > Int64Pair; typedef ::std::vector< OUString > OUStringVector; typedef ::std::vector< sal_Int64 > Int64Vector; -// ============================================================================ -// ============================================================================ + + /** Static helper functions for system file and stream access. */ class InputOutputHelper @@ -137,7 +137,7 @@ public: rtl_TextEncoding eTextEnc ); }; -// ============================================================================ + class BinaryInputStreamRef : public ::oox::BinaryInputStreamRef { @@ -155,8 +155,8 @@ public: ::oox::BinaryInputStreamRef( rxInStrm ) {} }; -// ============================================================================ -// ============================================================================ + + /** Specifiers for atomic data types. */ enum DataType @@ -174,7 +174,7 @@ enum DataType DATATYPE_DOUBLE ///< Floating-point, double precision. }; -// ---------------------------------------------------------------------------- + /** Specifiers for the output format of values. */ enum FormatType @@ -188,7 +188,7 @@ enum FormatType FORMATTYPE_BOOL ///< Boolean ('true' or 'false'). }; -// ---------------------------------------------------------------------------- + /** Describes the output format of a data item. @@ -249,8 +249,8 @@ struct ItemFormat OUStringVector parse( const OUString& rFormatStr ); }; -// ============================================================================ -// ============================================================================ + + struct Address { @@ -260,7 +260,7 @@ struct Address explicit Address( sal_Int32 nCol, sal_Int32 nRow ) : mnCol( nCol ), mnRow( nRow ) {} }; -// ---------------------------------------------------------------------------- + struct Range { @@ -269,11 +269,11 @@ struct Range Range() {} }; -// ---------------------------------------------------------------------------- + typedef ::std::vector< Range > RangeList; -// ============================================================================ + struct TokenAddress : public Address { @@ -282,7 +282,7 @@ struct TokenAddress : public Address TokenAddress() : mbRelCol( false ), mbRelRow( false ) {} }; -// ---------------------------------------------------------------------------- + struct TokenRange { @@ -291,8 +291,8 @@ struct TokenRange TokenRange() {} }; -// ============================================================================ -// ============================================================================ + + /** Static helper functions for formatted output to strings. */ class StringHelper @@ -404,7 +404,7 @@ public: static void convertStringToIntList( Int64Vector& orVec, const OUString& rData, bool bIgnoreEmpty ); }; -// ---------------------------------------------------------------------------- + template< typename Type > void StringHelper::appendFix( OUStringBuffer& rStr, Type nData, sal_Int32 nWidth ) @@ -427,7 +427,7 @@ void StringHelper::appendValue( OUStringBuffer& rStr, Type nData, FormatType eFm } } -// ============================================================================ + class String : public OUString { @@ -443,8 +443,8 @@ public: static const String EMPTY_STRING; -// ============================================================================ -// ============================================================================ + + class Base; typedef ::boost::shared_ptr< Base > BaseRef; @@ -512,8 +512,8 @@ protected: virtual bool implIsValid() const = 0; }; -// ============================================================================ -// ============================================================================ + + class ConfigItemBase { @@ -551,7 +551,7 @@ private: const OUString& rData ); }; -// ============================================================================ + class SharedConfigData; class Config; @@ -641,7 +641,7 @@ private: const SharedConfigData& mrCfgData; }; -// ============================================================================ + class ConstList : public NameListBase { @@ -673,7 +673,7 @@ private: bool mbQuoteNames; }; -// ============================================================================ + class MultiList : public ConstList { @@ -697,7 +697,7 @@ private: bool mbIgnoreEmpty; }; -// ============================================================================ + class FlagsList : public NameListBase { @@ -728,7 +728,7 @@ private: sal_Int64 mnIgnore; }; -// ============================================================================ + class CombiList : public FlagsList { @@ -761,7 +761,7 @@ private: ExtItemFormatMap maFmtMap; }; -// ============================================================================ + class UnitConverter : public NameListBase { @@ -786,7 +786,7 @@ private: double mfFactor; }; -// ============================================================================ + class NameListWrapper { @@ -806,7 +806,7 @@ private: static const NameListWrapper NO_LIST; -// ============================================================================ + class ItemFormatMap : public ::std::map< sal_Int64, ItemFormat > { @@ -817,8 +817,8 @@ public: void insertFormats( const NameListRef& rxNameList ); }; -// ============================================================================ -// ============================================================================ + + class SharedConfigData : public Base, public ConfigItemBase { @@ -876,7 +876,7 @@ private: bool mbPwCancelled; }; -// ---------------------------------------------------------------------------- + template< typename ListType > ::boost::shared_ptr< ListType > SharedConfigData::createNameList( const OUString& rListName ) @@ -898,7 +898,7 @@ void SharedConfigData::readNameList( TextInputStream& rStrm, const OUString& rLi xList->readConfigBlock( rStrm ); } -// ============================================================================ + class Config : public Base { @@ -964,7 +964,7 @@ private: typedef ::boost::shared_ptr< Config > ConfigRef; -// ---------------------------------------------------------------------------- + template< typename Type > Type Config::getIntOption( const String& rKey, Type nDefault ) const @@ -995,8 +995,8 @@ bool Config::hasName( const NameListWrapper& rListWrp, Type nKey ) const return xList.get() && xList->hasName( nKey ); } -// ============================================================================ -// ============================================================================ + + class Output : public Base { @@ -1005,7 +1005,7 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const OUString& rFileName ); - // ------------------------------------------------------------------------ + void newLine(); void emptyLine( size_t nCount = 1 ); @@ -1031,7 +1031,7 @@ public: void startMultiItems(); void endMultiItems(); - // ------------------------------------------------------------------------ + void writeChar( sal_Unicode cChar, sal_Int32 nCount = 1 ); void writeAscii( const sal_Char* pcStr ); @@ -1062,7 +1062,7 @@ public: void writeName( const Config& rCfg, Type nData, const NameListWrapper& rListWrp ) { writeString( rCfg.getName( rListWrp, nData ) ); } - // ------------------------------------------------------------------------ + protected: virtual bool implIsValid() const; @@ -1086,7 +1086,7 @@ private: typedef ::boost::shared_ptr< Output > OutputRef; -// ============================================================================ + class IndentGuard { @@ -1100,7 +1100,7 @@ private: Output& mrOut; }; -// ---------------------------------------------------------------------------- + class TableGuard { @@ -1124,7 +1124,7 @@ private: Output& mrOut; }; -// ---------------------------------------------------------------------------- + class ItemGuard { @@ -1140,7 +1140,7 @@ private: Output& mrOut; }; -// ---------------------------------------------------------------------------- + class MultiItemsGuard { @@ -1154,7 +1154,7 @@ private: Output& mrOut; }; -// ============================================================================ + class StorageIterator : public Base { @@ -1177,8 +1177,8 @@ private: OUStringVector::const_iterator maIt; }; -// ============================================================================ -// ============================================================================ + + class ObjectBase : public Base { @@ -1190,7 +1190,7 @@ public: void dump(); - // ------------------------------------------------------------------------ + protected: ObjectBase() {} @@ -1200,7 +1200,7 @@ protected: virtual bool implIsValid() const; virtual void implDump(); - // ------------------------------------------------------------------------ + Config& cfg() const { return *mxConfig; } @@ -1210,8 +1210,8 @@ private: typedef ::boost::shared_ptr< ObjectBase > ObjectRef; -// ============================================================================ -// ============================================================================ + + class StorageObjectBase : public ObjectBase { @@ -1284,15 +1284,15 @@ private: typedef ::boost::shared_ptr< StorageObjectBase > StorageObjectRef; -// ============================================================================ -// ============================================================================ + + class OutputObjectBase : public ObjectBase { public: virtual ~OutputObjectBase(); - // ------------------------------------------------------------------------ + protected: OutputObjectBase() {} @@ -1302,7 +1302,7 @@ protected: virtual bool implIsValid() const; - // ------------------------------------------------------------------------ + void writeEmptyItem( const String& rName ); void writeInfoItem( const String& rName, const String& rData ); @@ -1347,7 +1347,7 @@ protected: typedef ::boost::shared_ptr< OutputObjectBase > OutputObjectRef; -// ---------------------------------------------------------------------------- + template< typename Type > void OutputObjectBase::addNameToItem( Type nData, const NameListWrapper& rListWrp ) @@ -1454,15 +1454,15 @@ void OutputObjectBase::writeHexPairItem( const String& rName, Type nData1, Type mxOut->writeHex( nData2 ); } -// ============================================================================ -// ============================================================================ + + class InputObjectBase : public OutputObjectBase { public: virtual ~InputObjectBase(); - // ------------------------------------------------------------------------ + protected: InputObjectBase() {} @@ -1473,12 +1473,12 @@ protected: virtual bool implIsValid() const; - // ------------------------------------------------------------------------ + ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > getXInputStream() const; - // ------------------------------------------------------------------------ + void skipBlock( sal_Int64 nBytes, bool bShowSize = true ); void dumpRawBinary( sal_Int64 nBytes, bool bShowOffset = true, bool bStream = false ); @@ -1543,7 +1543,7 @@ protected: typedef ::boost::shared_ptr< InputObjectBase > InputObjectRef; -// ---------------------------------------------------------------------------- + template< typename Type > Type InputObjectBase::dumpName( const String& rName, const NameListWrapper& rListWrp ) @@ -1666,8 +1666,8 @@ void InputObjectBase::dumpHexPair( const String& rName, sal_Unicode cSep ) writeHexPairItem( rName, nData1, nData2, cSep ); } -// ============================================================================ -// ============================================================================ + + class BinaryStreamObject : public InputObjectBase { @@ -1683,8 +1683,8 @@ protected: virtual void implDump(); }; -// ============================================================================ -// ============================================================================ + + class TextStreamObjectBase : public InputObjectBase { @@ -1714,7 +1714,7 @@ protected: ::boost::shared_ptr< TextInputStream > mxTextStrm; }; -// ============================================================================ + class TextLineStreamObject : public TextStreamObjectBase { @@ -1735,7 +1735,7 @@ protected: virtual void implDumpLine( const OUString& rLine, sal_uInt32 nLine ); }; -// ============================================================================ + class XmlStreamObject : public TextStreamObjectBase { @@ -1749,8 +1749,8 @@ protected: virtual void implDumpText( TextInputStream& rTextStrm ); }; -// ============================================================================ -// ============================================================================ + + class RecordObjectBase : public InputObjectBase { @@ -1800,7 +1800,7 @@ private: bool mbBinaryOnly; }; -// ============================================================================ + class SequenceRecordObjectBase : public RecordObjectBase { @@ -1825,8 +1825,8 @@ private: StreamDataSeqRef mxRecData; }; -// ============================================================================ -// ============================================================================ + + /** Base class for a file dumper. Derived classes implement the implDump() function to add functionality. @@ -1846,8 +1846,8 @@ protected: void construct( const ConfigRef& rxConfig ); }; -// ============================================================================ -// ============================================================================ + + } // namespace dump } // namespace oox diff --git a/include/oox/dump/oledumper.hxx b/include/oox/dump/oledumper.hxx index b9cac39f7adb..014bdeb2974b 100644 --- a/include/oox/dump/oledumper.hxx +++ b/include/oox/dump/oledumper.hxx @@ -32,8 +32,8 @@ namespace com { namespace sun { namespace star { namespace oox { namespace dump { -// ============================================================================ -// ============================================================================ + + class OleInputObjectBase : public InputObjectBase { @@ -51,8 +51,8 @@ protected: sal_uInt32 dumpOleColor( const String& rName ); }; -// ============================================================================ -// ============================================================================ + + class StdFontObject : public OleInputObjectBase { @@ -63,7 +63,7 @@ protected: virtual void implDump(); }; -// ============================================================================ + class StdPicObject : public OleInputObjectBase { @@ -74,8 +74,8 @@ protected: virtual void implDump(); }; -// ============================================================================ -// ============================================================================ + + class OleStreamObject : public OleInputObjectBase { @@ -83,7 +83,7 @@ public: explicit OleStreamObject( const ObjectBase& rParent, const BinaryInputStreamRef& rxStrm, const OUString& rSysFileName ); }; -// ============================================================================ + class OleCompObjObject : public OleStreamObject { @@ -94,8 +94,8 @@ protected: virtual void implDump(); }; -// ============================================================================ -// ============================================================================ + + class OlePropertyStreamObject : public InputObjectBase { @@ -136,7 +136,7 @@ private: bool mbIsUnicode; }; -// ============================================================================ + class OleStorageObject : public StorageObjectBase { @@ -156,8 +156,8 @@ protected: const OUString& rSysFileName ); }; -// ============================================================================ -// ============================================================================ + + class ComCtlObjectBase : public OleInputObjectBase { @@ -187,7 +187,7 @@ protected: bool mbComplexPart; }; -// ============================================================================ + class ComCtlScrollBarObject : public ComCtlObjectBase { @@ -198,7 +198,7 @@ protected: virtual void implDumpProperties(); }; -// ============================================================================ + class ComCtlProgressBarObject : public ComCtlObjectBase { @@ -209,7 +209,7 @@ protected: virtual void implDumpProperties(); }; -// ============================================================================ + class ComCtlSliderObject : public ComCtlObjectBase { @@ -220,7 +220,7 @@ protected: virtual void implDumpProperties(); }; -// ============================================================================ + class ComCtlUpDownObject : public ComCtlObjectBase { @@ -231,7 +231,7 @@ protected: virtual void implDumpProperties(); }; -// ============================================================================ + class ComCtlImageListObject : public ComCtlObjectBase { @@ -244,7 +244,7 @@ protected: virtual void implDumpCommonTrailing(); }; -// ============================================================================ + class ComCtlTabStripObject : public ComCtlObjectBase { @@ -256,7 +256,7 @@ protected: virtual void implDumpCommonExtra( sal_Int64 nEndPos ); }; -// ============================================================================ + class ComCtlTreeViewObject : public ComCtlObjectBase { @@ -271,7 +271,7 @@ private: sal_uInt32 mnStringFlags; }; -// ============================================================================ + class ComCtlStatusBarObject : public ComCtlObjectBase { @@ -284,8 +284,8 @@ protected: virtual void implDumpCommonTrailing(); }; -// ============================================================================ -// ============================================================================ + + class AxPropertyObjectBase : public OleInputObjectBase { @@ -395,7 +395,7 @@ private: bool mbValid; }; -// ---------------------------------------------------------------------------- + template< typename Type > void AxPropertyObjectBase::alignInput() @@ -425,7 +425,7 @@ Type AxPropertyObjectBase::dumpHexProperty( Type nDefault, const NameListWrapper return nDefault; } -// ============================================================================ + class AxCFontNewObject : public AxPropertyObjectBase { @@ -436,7 +436,7 @@ protected: virtual void implDumpShortProperties(); }; -// ============================================================================ + class AxColumnInfoObject : public AxPropertyObjectBase { @@ -447,7 +447,7 @@ protected: virtual void implDumpShortProperties(); }; -// ============================================================================ + class AxCommandButtonObject : public AxPropertyObjectBase { @@ -459,7 +459,7 @@ protected: virtual void implDumpExtended(); }; -// ============================================================================ + class AxMorphControlObject : public AxPropertyObjectBase { @@ -478,7 +478,7 @@ private: sal_uInt8 mnCtrlType; }; -// ============================================================================ + class AxLabelObject : public AxPropertyObjectBase { @@ -490,7 +490,7 @@ protected: virtual void implDumpExtended(); }; -// ============================================================================ + class AxImageObject : public AxPropertyObjectBase { @@ -501,7 +501,7 @@ protected: virtual void implDumpShortProperties(); }; -// ============================================================================ + class AxScrollBarObject : public AxPropertyObjectBase { @@ -512,7 +512,7 @@ protected: virtual void implDumpShortProperties(); }; -// ============================================================================ + class AxSpinButtonObject : public AxPropertyObjectBase { @@ -523,7 +523,7 @@ protected: virtual void implDumpShortProperties(); }; -// ============================================================================ + class AxTabStripObject : public AxPropertyObjectBase { @@ -538,8 +538,8 @@ private: sal_Int32 mnTabFlagCount; }; -// ============================================================================ -// ============================================================================ + + class FormControlStreamObject : public OleInputObjectBase { @@ -565,8 +565,8 @@ private: bool mbReadGuid; }; -// ============================================================================ -// ============================================================================ + + struct VbaFormSiteInfo { @@ -580,7 +580,7 @@ struct VbaFormSiteInfo typedef ::std::vector< VbaFormSiteInfo > VbaFormSiteInfoVector; -// ============================================================================ + struct VbaFormSharedData { @@ -588,7 +588,7 @@ struct VbaFormSharedData VbaFormSiteInfoVector maSiteInfos; }; -// ============================================================================ + class VbaFormClassInfoObject : public AxPropertyObjectBase { @@ -602,7 +602,7 @@ private: VbaFormSharedData& mrFormData; }; -// ============================================================================ + class VbaFormSiteObject : public AxPropertyObjectBase { @@ -616,7 +616,7 @@ private: VbaFormSharedData& mrFormData; }; -// ============================================================================ + class VbaFormDesignExtObject : public AxPropertyObjectBase { @@ -627,7 +627,7 @@ protected: virtual void implDumpShortProperties(); }; -// ============================================================================ + class VbaFStreamObject : public AxPropertyObjectBase { @@ -653,7 +653,7 @@ private: sal_uInt32 mnFlags; }; -// ============================================================================ + class VbaOStreamObject : public OleInputObjectBase { @@ -671,7 +671,7 @@ private: VbaFormSharedData& mrFormData; }; -// ============================================================================ + class VbaPageObject : public AxPropertyObjectBase { @@ -682,7 +682,7 @@ protected: virtual void implDumpShortProperties(); }; -// ============================================================================ + class VbaMultiPageObject : public AxPropertyObjectBase { @@ -697,7 +697,7 @@ private: sal_Int32 mnPageCount; }; -// ============================================================================ + class VbaXStreamObject : public InputObjectBase { @@ -715,7 +715,7 @@ private: VbaFormSharedData& mrFormData; }; -// ============================================================================ + class VbaContainerStorageObject : public OleStorageObject { @@ -744,8 +744,8 @@ private: VbaFormSharedData maFormData; }; -// ============================================================================ -// ============================================================================ + + struct VbaSharedData { @@ -760,7 +760,7 @@ struct VbaSharedData sal_Int32 getStreamOffset( const OUString& rStrmName ) const; }; -// ============================================================================ + class VbaDirStreamObject : public SequenceRecordObjectBase { @@ -789,7 +789,7 @@ private: sal_Int32 mnCurrOffset; }; -// ============================================================================ + class VbaModuleStreamObject : public InputObjectBase { @@ -809,7 +809,7 @@ private: sal_Int32 mnStrmOffset; }; -// ============================================================================ + class VbaStorageObject : public OleStorageObject { @@ -831,7 +831,7 @@ private: VbaSharedData& mrVbaData; }; -// ============================================================================ + class VbaFormStorageObject : public VbaContainerStorageObject { @@ -853,7 +853,7 @@ private: VbaSharedData& mrVbaData; }; -// ============================================================================ + class VbaProjectStorageObject : public OleStorageObject { @@ -876,8 +876,8 @@ private: VbaSharedData maVbaData; }; -// ============================================================================ -// ============================================================================ + + class ActiveXStorageObject : public VbaContainerStorageObject { @@ -893,8 +893,8 @@ protected: const OUString& rSysFileName ); }; -// ============================================================================ -// ============================================================================ + + } // namespace dump } // namespace oox diff --git a/include/oox/dump/pptxdumper.hxx b/include/oox/dump/pptxdumper.hxx index 05f9dc61200f..cdcf7e52dcfc 100644 --- a/include/oox/dump/pptxdumper.hxx +++ b/include/oox/dump/pptxdumper.hxx @@ -28,7 +28,7 @@ namespace oox { namespace dump { namespace pptx { -// ============================================================================ + class RootStorageObject : public StorageObjectBase { @@ -43,7 +43,7 @@ protected: const OUString& rSysFileName ); }; -// ============================================================================ + class Dumper : public DumperBase { @@ -59,7 +59,7 @@ protected: virtual void implDump(); }; -// ============================================================================ + } // namespace pptx } // namespace dump diff --git a/include/oox/dump/xlsbdumper.hxx b/include/oox/dump/xlsbdumper.hxx index 72b57d20cdfe..8f0845738d44 100644 --- a/include/oox/dump/xlsbdumper.hxx +++ b/include/oox/dump/xlsbdumper.hxx @@ -35,7 +35,7 @@ namespace oox { namespace dump { namespace xlsb { -// ============================================================================ + class RecordObjectBase : public SequenceRecordObjectBase { @@ -51,13 +51,13 @@ protected: OUString getErrorName( sal_uInt8 nErrCode ) const; - // ------------------------------------------------------------------------ + void readAddress( Address& orAddress ); void readRange( Range& orRange ); void readRangeList( RangeList& orRanges ); - // ------------------------------------------------------------------------ + void writeBooleanItem( const String& rName, sal_uInt8 nBool ); void writeErrorCodeItem( const String& rName, sal_uInt8 nErrCode ); @@ -65,7 +65,7 @@ protected: void writeFontPortions( const ::oox::xls::FontPortionModelList& rPortions ); void writePhoneticPortions( const ::oox::xls::PhoneticPortionModelList& rPhonetics ); - // ------------------------------------------------------------------------ + sal_uInt8 dumpBoolean( const String& rName = EMPTY_STRING ); sal_uInt8 dumpErrorCode( const String& rName = EMPTY_STRING ); @@ -82,7 +82,7 @@ protected: Range dumpRange( const String& rName = EMPTY_STRING ); void dumpRangeList( const String& rName = EMPTY_STRING ); - // ------------------------------------------------------------------------ + private: bool readCompressedInt( BinaryInputStream& rStrm, sal_Int32& ornValue ); @@ -93,7 +93,7 @@ private: NameListRef mxErrCodes; }; -// ============================================================================ + class RootStorageObject : public StorageObjectBase { @@ -108,7 +108,7 @@ protected: const OUString& rSysFileName ); }; -// ============================================================================ + class Dumper : public DumperBase { @@ -124,7 +124,7 @@ protected: virtual void implDump(); }; -// ============================================================================ + } // namespace xlsb } // namespace dump -- cgit