[Libreoffice-commits] core.git: sw/inc sw/source

Alexandre Vicenzi vicenzi.alexandre at gmail.com
Mon Feb 17 11:26:52 CET 2014


 sw/inc/IDocumentLinksAdministration.hxx |    2 --
 sw/inc/IDocumentRedlineAccess.hxx       |   11 -----------
 sw/inc/IDocumentSettingAccess.hxx       |    1 -
 sw/inc/IDocumentState.hxx               |    2 --
 sw/inc/accessibilityoptions.hxx         |    2 --
 sw/inc/authratr.hxx                     |    2 --
 sw/inc/crsskip.hxx                      |    3 +--
 sw/inc/cshtyp.hxx                       |    4 ----
 sw/inc/docfac.hxx                       |    2 --
 sw/inc/format.hxx                       |    3 ---
 sw/inc/hintids.hxx                      |   17 ++++++++++++-----
 sw/inc/index.hxx                        |   11 ++++++++++-
 sw/inc/itabenum.hxx                     |    3 ---
 sw/inc/mdiexp.hxx                       |    1 -
 sw/inc/ndtyp.hxx                        |    4 ----
 sw/inc/pch/precompiled_msword.hxx       |    1 -
 sw/inc/pch/precompiled_sw.hxx           |    1 -
 sw/inc/splargs.hxx                      |   19 +++----------------
 sw/inc/swatrset.hxx                     |    2 +-
 sw/inc/swdbdata.hxx                     |    1 -
 sw/inc/swevent.hxx                      |    2 --
 sw/inc/swtypes.hxx                      |    2 +-
 sw/inc/swunohelper.hxx                  |    1 -
 sw/inc/swwait.hxx                       |    1 -
 sw/inc/tabcol.hxx                       |    2 --
 sw/inc/toxwrap.hxx                      |    2 --
 sw/inc/txatbase.hxx                     |    9 ---------
 sw/inc/txatritr.hxx                     |    5 -----
 sw/inc/unocoll.hxx                      |    9 ++-------
 sw/source/core/bastyp/index.cxx         |    7 -------
 sw/source/core/inc/GetMetricVal.hxx     |    2 --
 sw/source/core/inc/SwPortionHandler.hxx |    1 -
 sw/source/core/inc/drawfont.hxx         |    1 -
 sw/source/core/inc/laycache.hxx         |    7 +++----
 sw/source/core/inc/unofldmid.h          |    2 --
 sw/source/filter/html/htmlfly.hxx       |    2 +-
 sw/source/filter/inc/rtf.hxx            |    2 --
 sw/source/filter/inc/wrtswtbl.hxx       |   19 +------------------
 sw/source/filter/ww8/WW8Sttbf.hxx       |    1 -
 sw/source/filter/xml/xmlexpit.hxx       |    1 -
 sw/source/filter/xml/xmlimpit.hxx       |    2 --
 sw/source/filter/xml/xmlitem.hxx        |    2 --
 sw/source/ui/inc/fldmgr.hxx             |   27 ++++++++++++++-------------
 sw/source/ui/inc/initui.hxx             |    1 -
 sw/source/ui/uiview/viewfunc.hxx        |    1 -
 45 files changed, 49 insertions(+), 154 deletions(-)

New commits:
commit 067d08029384af6e620f0fc48e31ff2a740e1fc8
Author: Alexandre Vicenzi <vicenzi.alexandre at gmail.com>
Date:   Sat Feb 15 01:13:52 2014 -0200

    fdo#63154 Remove unused solar.h reference in sw.
    
    Change-Id: I6e13f3705cb591573693cf60220e32aa823c5886
    Reviewed-on: https://gerrit.libreoffice.org/8067
    Tested-by: LibreOffice gerrit bot <gerrit at libreoffice.org>
    Reviewed-by: Marcos Souza <marcos.souza.org at gmail.com>

diff --git a/sw/inc/IDocumentLinksAdministration.hxx b/sw/inc/IDocumentLinksAdministration.hxx
index a0b3ee6..e72ad04 100644
--- a/sw/inc/IDocumentLinksAdministration.hxx
+++ b/sw/inc/IDocumentLinksAdministration.hxx
@@ -20,8 +20,6 @@
 #ifndef INCLUDED_SW_INC_IDOCUMENTLINKSADMINISTRATION_HXX
 #define INCLUDED_SW_INC_IDOCUMENTLINKSADMINISTRATION_HXX
 
-#include <tools/solar.h>
-
 namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
 namespace sfx2 { class SvLinkSource;  class LinkManager; }
 
diff --git a/sw/inc/IDocumentRedlineAccess.hxx b/sw/inc/IDocumentRedlineAccess.hxx
index 48320be..0385fd2 100644
--- a/sw/inc/IDocumentRedlineAccess.hxx
+++ b/sw/inc/IDocumentRedlineAccess.hxx
@@ -21,10 +21,7 @@
  #define INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX
 
  #include <sal/types.h>
- #include <tools/solar.h>
-
  #include <limits.h>
-
  #include <com/sun/star/uno/Sequence.hxx>
 
  class SwRangeRedline;
@@ -98,10 +95,6 @@ public:
 
 public:
 
-    /*************************************************
-        Query
-    *************************************************/
-
     /** Query the currently set redline mode
 
         @returns
@@ -137,10 +130,6 @@ public:
 
     virtual bool IsInRedlines(const SwNode& rNode) const = 0;
 
-    /***************************************************
-        Manipulation
-     ***************************************************/
-
     /** Append a new redline
 
         @param pPtr
diff --git a/sw/inc/IDocumentSettingAccess.hxx b/sw/inc/IDocumentSettingAccess.hxx
index 6e66fd0..d33695a 100644
--- a/sw/inc/IDocumentSettingAccess.hxx
+++ b/sw/inc/IDocumentSettingAccess.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX
 #define INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX
 
-#include <tools/solar.h>
 #include <rtl/ref.hxx>
 #include <chcmprse.hxx>
 #include <fldupde.hxx>
diff --git a/sw/inc/IDocumentState.hxx b/sw/inc/IDocumentState.hxx
index 9230dd3..e44b09d 100644
--- a/sw/inc/IDocumentState.hxx
+++ b/sw/inc/IDocumentState.hxx
@@ -20,8 +20,6 @@
  #ifndef INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
  #define INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
 
- #include <tools/solar.h>
-
  /** Get information about the current document state
  */
  class IDocumentState
diff --git a/sw/inc/accessibilityoptions.hxx b/sw/inc/accessibilityoptions.hxx
index e80f268..7361b54 100644
--- a/sw/inc/accessibilityoptions.hxx
+++ b/sw/inc/accessibilityoptions.hxx
@@ -19,8 +19,6 @@
 #ifndef INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX
 #define INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX
 
-#include <tools/solar.h>
-
 struct SwAccessibilityOptions
 {
     sal_Bool bIsAlwaysAutoColor         :1;
diff --git a/sw/inc/authratr.hxx b/sw/inc/authratr.hxx
index 865092a..1b01fb7 100644
--- a/sw/inc/authratr.hxx
+++ b/sw/inc/authratr.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_SW_INC_AUTHRATR_HXX
 #define INCLUDED_SW_INC_AUTHRATR_HXX
 
-#include <tools/solar.h>
 #include <tools/color.hxx>
 #include "swdllapi.h"
 
@@ -42,7 +41,6 @@ public:
     }
 };
 
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/crsskip.hxx b/sw/inc/crsskip.hxx
index 6dae1e2..2294da3 100644
--- a/sw/inc/crsskip.hxx
+++ b/sw/inc/crsskip.hxx
@@ -20,8 +20,7 @@
 #ifndef INCLUDED_SW_INC_CRSSKIP_HXX
 #define INCLUDED_SW_INC_CRSSKIP_HXX
 
-#include <tools/solar.h>
-
+#include <sal/types.h>
 
 // define for cursor travelling normally in western text cells and chars do
 // the same, but in complex text cell skip over legatures and char skip
diff --git a/sw/inc/cshtyp.hxx b/sw/inc/cshtyp.hxx
index c5a1882..ad870d9 100644
--- a/sw/inc/cshtyp.hxx
+++ b/sw/inc/cshtyp.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_INC_CSHTYP_HXX
 #define INCLUDED_SW_INC_CSHTYP_HXX
 
-#include <tools/solar.h>
 #include "swdllapi.h"
 
 class SwPaM;
@@ -30,7 +29,6 @@ class SwLayoutFrm;
 struct SwMoveFnCollection;
 typedef SwMoveFnCollection* SwMoveFn;
 
-
 // Type definition for CrsrShell.
 // Direction-parameter for MovePage (initialized in SwCntntFrm).
 typedef SwLayoutFrm * (*SwWhichPage)( const SwLayoutFrm * );
@@ -68,7 +66,6 @@ typedef sal_Bool (*SwWhichRegion)( SwPaM&, SwPosRegion, sal_Bool bInReadOnly );
 extern SwWhichRegion fnRegionPrev, fnRegionCurr, fnRegionNext, fnRegionCurrAndSkip;
 extern SwPosRegion fnRegionStart, fnRegionEnd;
 
-
 /*
  * The following combinations are allowed:
  *  - find one in body                      -> FND_IN_BODY
@@ -86,7 +83,6 @@ enum FindRanges
     FND_IN_SELALL   = 0x01      ///< All (only in non-body and selections).
 };
 
-
 enum SwDocPositions
 {
     DOCPOS_START,
diff --git a/sw/inc/docfac.hxx b/sw/inc/docfac.hxx
index 35827e0..d7bd90c 100644
--- a/sw/inc/docfac.hxx
+++ b/sw/inc/docfac.hxx
@@ -19,8 +19,6 @@
 #ifndef INCLUDED_SW_INC_DOCFAC_HXX
 #define INCLUDED_SW_INC_DOCFAC_HXX
 
-#include <tools/solar.h>
-
 class SwDoc;
 
 class SW_DLLPUBLIC SwDocFac
diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx
index cb79ce4..da93962 100644
--- a/sw/inc/format.hxx
+++ b/sw/inc/format.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_INC_FORMAT_HXX
 #define INCLUDED_SW_INC_FORMAT_HXX
 
-#include <tools/solar.h>
 #include "swdllapi.h"
 #include <swatrset.hxx>
 #include <calbck.hxx>
@@ -322,8 +321,6 @@ public:
     virtual bool IsShadowTransparent() const;
 };
 
-// --------------- inline Implementations ------------------------
-
 inline const SfxPoolItem& SwFmt::GetFmtAttr( sal_uInt16 nWhich,
                                              sal_Bool bInParents ) const
 {
diff --git a/sw/inc/hintids.hxx b/sw/inc/hintids.hxx
index cf911ab..344d67d 100644
--- a/sw/inc/hintids.hxx
+++ b/sw/inc/hintids.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_INC_HINTIDS_HXX
 #define INCLUDED_SW_INC_HINTIDS_HXX
 
-#include <tools/solar.h>
 #include <sal/types.h>
 #include "swdllapi.h"
 
@@ -277,8 +276,6 @@ RES_UNKNOWNATR_BEGIN = RES_BOXATR_END,
 RES_UNKNOWNATR_END
 };
 
-
-
 // Format IDs
 enum RES_FMT
 {
@@ -378,49 +375,59 @@ inline bool isATR(const sal_uInt16 nWhich)
 {
     return (RES_CHRATR_BEGIN <= nWhich) && (RES_UNKNOWNATR_END > nWhich);
 }
+
 inline bool isCHRATR(const sal_uInt16 nWhich)
 {
     return (RES_CHRATR_BEGIN <= nWhich) && (RES_CHRATR_END > nWhich);
 }
+
 inline bool isTXTATR_WITHEND(const sal_uInt16 nWhich)
 {
     return (RES_TXTATR_WITHEND_BEGIN <= nWhich)
         && (RES_TXTATR_WITHEND_END > nWhich);
 }
+
 inline bool isTXTATR_NOEND(const sal_uInt16 nWhich)
 {
     return (RES_TXTATR_NOEND_BEGIN <= nWhich)
         && (RES_TXTATR_NOEND_END > nWhich);
 }
+
 inline bool isTXTATR(const sal_uInt16 nWhich)
 {
     return (RES_TXTATR_BEGIN <= nWhich) && (RES_TXTATR_END > nWhich);
 }
+
 inline bool isPARATR(const sal_uInt16 nWhich)
 {
     return (RES_PARATR_BEGIN <= nWhich) && (RES_PARATR_END > nWhich);
 }
+
 inline bool isPARATR_LIST(const sal_uInt16 nWhich)
 {
-    return (RES_PARATR_LIST_BEGIN <= nWhich) && (RES_PARATR_LIST_END > nWhich); }
+    return (RES_PARATR_LIST_BEGIN <= nWhich) && (RES_PARATR_LIST_END > nWhich);
+}
+
 inline bool isFRMATR(const sal_uInt16 nWhich)
 {
     return (RES_FRMATR_BEGIN <= nWhich) && (RES_FRMATR_END > nWhich);
 }
+
 inline bool isGRFATR(const sal_uInt16 nWhich)
 {
     return (RES_GRFATR_BEGIN <= nWhich) && (RES_GRFATR_END > nWhich);
 }
+
 inline bool isBOXATR(const sal_uInt16 nWhich)
 {
     return (RES_BOXATR_BEGIN <= nWhich) && (RES_BOXATR_END > nWhich);
 }
+
 inline bool isUNKNOWNATR(const sal_uInt16 nWhich)
 {
     return (RES_UNKNOWNATR_BEGIN <= nWhich) && (RES_UNKNOWNATR_END > nWhich);
 }
 
-
 // Take the respective default attribute from the statistical default
 // attributes table over the Which-value.
 // If none exists, return a 0 pointer!!!
diff --git a/sw/inc/index.hxx b/sw/inc/index.hxx
index fc2caa5..bd8d94b 100644
--- a/sw/inc/index.hxx
+++ b/sw/inc/index.hxx
@@ -22,7 +22,6 @@
 #include <limits.h>
 
 #include "rtl/instance.hxx"
-#include <tools/solar.h>
 #include <tools/rtti.hxx>
 #include <swdllapi.h>
 
@@ -140,16 +139,19 @@ inline sal_Int32 SwIndex::operator++()
 {
     return ChgValue( *this, m_nIndex+1 ).m_nIndex;
 }
+
 inline sal_Int32 SwIndex::operator--()
 {
     return ChgValue( *this, m_nIndex-1 ).m_nIndex;
 }
+
 inline sal_Int32 SwIndex::operator++(int)
 {
     sal_Int32 const nOldIndex = m_nIndex;
     ChgValue( *this, m_nIndex+1 );
     return nOldIndex;
 }
+
 inline sal_Int32 SwIndex::operator--(int)
 {
     sal_Int32 const nOldIndex = m_nIndex;
@@ -161,14 +163,17 @@ inline sal_Int32 SwIndex::operator+=( sal_Int32 const nVal )
 {
     return ChgValue( *this, m_nIndex + nVal ).m_nIndex;
 }
+
 inline sal_Int32 SwIndex::operator-=( sal_Int32 const nVal )
 {
     return ChgValue( *this, m_nIndex - nVal ).m_nIndex;
 }
+
 inline sal_Int32 SwIndex::operator+=( const SwIndex& rIndex )
 {
     return ChgValue( *this, m_nIndex + rIndex.m_nIndex ).m_nIndex;
 }
+
 inline sal_Int32 SwIndex::operator-=( const SwIndex& rIndex )
 {
     return ChgValue( *this, m_nIndex - rIndex.m_nIndex ).m_nIndex;
@@ -178,18 +183,22 @@ inline bool SwIndex::operator< ( const SwIndex& rIndex ) const
 {
     return m_nIndex <  rIndex.m_nIndex;
 }
+
 inline bool SwIndex::operator<=( const SwIndex& rIndex ) const
 {
     return m_nIndex <= rIndex.m_nIndex;
 }
+
 inline bool SwIndex::operator> ( const SwIndex& rIndex ) const
 {
     return m_nIndex >  rIndex.m_nIndex;
 }
+
 inline bool SwIndex::operator>=( const SwIndex& rIndex ) const
 {
     return m_nIndex >= rIndex.m_nIndex;
 }
+
 inline SwIndex& SwIndex::operator= ( sal_Int32 const nVal )
 {
     if (m_nIndex != nVal)
diff --git a/sw/inc/itabenum.hxx b/sw/inc/itabenum.hxx
index c21ed1d..22a7b38 100644
--- a/sw/inc/itabenum.hxx
+++ b/sw/inc/itabenum.hxx
@@ -19,8 +19,6 @@
 #ifndef INCLUDED_SW_INC_ITABENUM_HXX
 #define INCLUDED_SW_INC_ITABENUM_HXX
 
-#include <tools/solar.h>
-
 namespace tabopts
 {
     const sal_uInt16 DEFAULT_BORDER     = 0x01;
@@ -39,7 +37,6 @@ struct SwInsertTableOptions
         mnInsMode( nInsMode ), mnRowsToRepeat( nRowsToRepeat ) {};
 };
 
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/mdiexp.hxx b/sw/inc/mdiexp.hxx
index 4c715c7..69fcf55 100644
--- a/sw/inc/mdiexp.hxx
+++ b/sw/inc/mdiexp.hxx
@@ -20,7 +20,6 @@
 #define INCLUDED_SW_INC_MDIEXP_HXX
 
 #include <rtl/ustring.hxx>
-#include <tools/solar.h>
 #include <tblenum.hxx>
 #include <swdllapi.h>
 
diff --git a/sw/inc/ndtyp.hxx b/sw/inc/ndtyp.hxx
index 9ea9325..c79bd80 100644
--- a/sw/inc/ndtyp.hxx
+++ b/sw/inc/ndtyp.hxx
@@ -20,8 +20,6 @@
 #ifndef INCLUDED_SW_INC_NDTYP_HXX
 #define INCLUDED_SW_INC_NDTYP_HXX
 
-#include <tools/solar.h>
-
 // IDs for different nodes. The member indicating the type of node is
 // in base class.
 const sal_uInt8 ND_ENDNODE      = 0x01;
@@ -58,8 +56,6 @@ enum SwStartNodeType
 const sal_uInt8 ND_HAS_PREV_LAYNODE = 0x01;
 const sal_uInt8 ND_HAS_NEXT_LAYNODE = 0x02;
 
-
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/pch/precompiled_msword.hxx b/sw/inc/pch/precompiled_msword.hxx
index aac38b4..e08a2b2 100644
--- a/sw/inc/pch/precompiled_msword.hxx
+++ b/sw/inc/pch/precompiled_msword.hxx
@@ -254,7 +254,6 @@
 #include <svx/xfltrit.hxx>
 #include <svx/xlineit.hxx>
 #include <toolkit/helper/vclunohelper.hxx>
-#include <tools/solar.h>
 #include <tools/stream.hxx>
 #include <tools/tenccvt.hxx>
 #include <tools/urlobj.hxx>
diff --git a/sw/inc/pch/precompiled_sw.hxx b/sw/inc/pch/precompiled_sw.hxx
index a90133e..341b256 100644
--- a/sw/inc/pch/precompiled_sw.hxx
+++ b/sw/inc/pch/precompiled_sw.hxx
@@ -990,7 +990,6 @@
 #include <tools/resmgr.hxx>
 #include <tools/rtti.hxx>
 #include <tools/shl.hxx>
-#include <tools/solar.h>
 #include <tools/stream.hxx>
 #include <tools/time.hxx>
 #include <tools/urlobj.hxx>
diff --git a/sw/inc/splargs.hxx b/sw/inc/splargs.hxx
index 03938d2..75c8224 100644
--- a/sw/inc/splargs.hxx
+++ b/sw/inc/splargs.hxx
@@ -20,21 +20,17 @@
 #define INCLUDED_SW_INC_SPLARGS_HXX
 
 #include <i18nlangtag/lang.h>
-#include <tools/solar.h>
 #include <tools/gen.hxx>
 #include <limits.h>
 
 class SwTxtNode;
 class SwIndex;
 class Font;
+
 #include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
 #include <com/sun/star/linguistic2/XSpellChecker1.hpp>
 #include <com/sun/star/linguistic2/XHyphenatedWord.hpp>
 
-/*************************************************************************
- *                      struct SwArgsBase
- *************************************************************************/
-
 
 struct SwArgsBase     // used for text conversion (Hangul/Hanja, ...)
 {
@@ -61,10 +57,9 @@ struct SwArgsBase     // used for text conversion (Hangul/Hanja, ...)
     }
 };
 
-/*************************************************************************
- *                      struct SwConversionArgs
+/*
  * used for text conversion (Hangul/Hanja, Simplified/Traditional Chinese, ...)
- *************************************************************************/
+ */
 
 struct SwConversionArgs : SwArgsBase
 {
@@ -90,10 +85,6 @@ struct SwConversionArgs : SwArgsBase
         {}
 };
 
-/*************************************************************************
- *                      struct SwSpellArgs
- *************************************************************************/
-
 struct SwSpellArgs : SwArgsBase
 {
     ::com::sun::star::uno::Reference<
@@ -115,10 +106,6 @@ struct SwSpellArgs : SwArgsBase
         {}
 };
 
-/*************************************************************************
- *                      class SwInterHyphInfo
- *************************************************************************/
-
 // Parameter-class for Hyphenate.
 // docedt.cxx:  SwDoc::Hyphenate()
 // txtedt.cxx:  SwTxtNode::Hyphenate()
diff --git a/sw/inc/swatrset.hxx b/sw/inc/swatrset.hxx
index edad754..3437236 100644
--- a/sw/inc/swatrset.hxx
+++ b/sw/inc/swatrset.hxx
@@ -18,7 +18,7 @@
  */
 #ifndef INCLUDED_SW_INC_SWATRSET_HXX
 #define INCLUDED_SW_INC_SWATRSET_HXX
-#include <tools/solar.h>
+
 #include <tools/mempool.hxx>
 #include <svl/itemset.hxx>
 #include <svl/itempool.hxx>
diff --git a/sw/inc/swdbdata.hxx b/sw/inc/swdbdata.hxx
index 7d73861..4967cf9 100644
--- a/sw/inc/swdbdata.hxx
+++ b/sw/inc/swdbdata.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_INC_SWDBDATA_HXX
 #define INCLUDED_SW_INC_SWDBDATA_HXX
 
-#include <tools/solar.h>
 #include <rtl/ustring.hxx>
 
 // contains the description of a data source
diff --git a/sw/inc/swevent.hxx b/sw/inc/swevent.hxx
index e89c89e..5c046b2 100644
--- a/sw/inc/swevent.hxx
+++ b/sw/inc/swevent.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_SW_INC_SWEVENT_HXX
 #define INCLUDED_SW_INC_SWEVENT_HXX
 
-#include <tools/solar.h>
 #include <sfx2/sfx.hrc>
 
 #define     SW_EVENT_OBJECT_SELECT        ( EVENT_APP_START + 0 )
@@ -114,7 +113,6 @@ struct SwCallMouseEvent
     sal_Bool HasEvent() const { return EVENT_OBJECT_NONE != eType; }
 };
 
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/swtypes.hxx b/sw/inc/swtypes.hxx
index 2c943b1..5ac3ea0 100644
--- a/sw/inc/swtypes.hxx
+++ b/sw/inc/swtypes.hxx
@@ -18,8 +18,8 @@
  */
 #ifndef INCLUDED_SW_INC_SWTYPES_HXX
 #define INCLUDED_SW_INC_SWTYPES_HXX
+
 #include <rtl/ustring.hxx>
-#include <tools/solar.h>
 #include <SwGetPoolIdFromName.hxx>
 
 #include <limits.h>
diff --git a/sw/inc/swunohelper.hxx b/sw/inc/swunohelper.hxx
index f942b14..c0e0669 100644
--- a/sw/inc/swunohelper.hxx
+++ b/sw/inc/swunohelper.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_INC_SWUNOHELPER_HXX
 #define INCLUDED_SW_INC_SWUNOHELPER_HXX
 
-#include <tools/solar.h>
 #include <sal/types.h>
 #include "swdllapi.h"
 
diff --git a/sw/inc/swwait.hxx b/sw/inc/swwait.hxx
index 089f185..6e4f422 100644
--- a/sw/inc/swwait.hxx
+++ b/sw/inc/swwait.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_INC_SWWAIT_HXX
 #define INCLUDED_SW_INC_SWWAIT_HXX
 
-#include <tools/solar.h>
 #include "swdllapi.h"
 
 class SwDocShell;
diff --git a/sw/inc/tabcol.hxx b/sw/inc/tabcol.hxx
index 270a834..1f986f4 100644
--- a/sw/inc/tabcol.hxx
+++ b/sw/inc/tabcol.hxx
@@ -19,8 +19,6 @@
 #ifndef INCLUDED_SW_INC_TABCOL_HXX
 #define INCLUDED_SW_INC_TABCOL_HXX
 
-#include <tools/solar.h>
-
 #include <vector>
 #include "swdllapi.h"
 
diff --git a/sw/inc/toxwrap.hxx b/sw/inc/toxwrap.hxx
index 4f50f32..42d780f 100644
--- a/sw/inc/toxwrap.hxx
+++ b/sw/inc/toxwrap.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_SW_INC_TOXWRAP_HXX
 #define INCLUDED_SW_INC_TOXWRAP_HXX
 
-#include <tools/solar.h>
 #include <com/sun/star/lang/Locale.hpp>
 #include <com/sun/star/uno/Reference.hxx>
 #include "swdllapi.h"
@@ -34,7 +33,6 @@ namespace lang {
 }
 }}}
 
-
 class SW_DLLPUBLIC IndexEntrySupplierWrapper
 {
     ::com::sun::star::lang::Locale aLcl;
diff --git a/sw/inc/txatbase.hxx b/sw/inc/txatbase.hxx
index 603b456..e982f63 100644
--- a/sw/inc/txatbase.hxx
+++ b/sw/inc/txatbase.hxx
@@ -19,13 +19,10 @@
 #ifndef INCLUDED_SW_INC_TXATBASE_HXX
 #define INCLUDED_SW_INC_TXATBASE_HXX
 
-#include <tools/solar.h>
 #include <svl/poolitem.hxx>
 #include <hintids.hxx>
-
 #include <boost/utility.hpp>
 
-
 class SfxItemPool;
 class SvXMLAttrContainerItem;
 class SwFmtRuby;
@@ -39,7 +36,6 @@ class SwTOXMark;
 class SwFmtRefMark;
 class SwFmtMeta;
 
-
 class SwTxtAttr : private boost::noncopyable
 {
 private:
@@ -134,9 +130,6 @@ public:
     virtual sal_Int32* GetEnd();
 };
 
-
-// --------------- Inline Implementations ------------------------
-
 inline const sal_Int32* SwTxtAttr::End() const
 {
     return const_cast<SwTxtAttr * >(this)->GetEnd();
@@ -168,8 +161,6 @@ inline void SwTxtAttr::SetDontExpand( bool bDontExpand )
     }
 }
 
-//------------------------------------------------------------------------
-
 inline const SwFmtCharFmt& SwTxtAttr::GetCharFmt() const
 {
     assert( m_pAttr && m_pAttr->Which() == RES_TXTATR_CHARFMT );
diff --git a/sw/inc/txatritr.hxx b/sw/inc/txatritr.hxx
index 5ee6d11..6a542eb 100644
--- a/sw/inc/txatritr.hxx
+++ b/sw/inc/txatritr.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_INC_TXATRITR_HXX
 #define INCLUDED_SW_INC_TXATRITR_HXX
 
-#include <tools/solar.h>
 #include <sal/types.h>
 #include <editeng/langitem.hxx>
 #include <hintids.hxx>
@@ -30,7 +29,6 @@ class SwTxtNode;
 class SwTxtAttr;
 class SfxPoolItem;
 
-
 class SwScriptIterator
 {
     const OUString& m_rText;
@@ -49,7 +47,6 @@ public:
     const OUString& GetText() const { return m_rText; }
 };
 
-
 class SwTxtAttrIterator
 {
     SwScriptIterator aSIter;
@@ -73,7 +70,6 @@ public:
     sal_Int32 GetChgPos() const        { return nChgPos; }
 };
 
-
 class SwLanguageIterator : public SwTxtAttrIterator
 {
 public:
@@ -87,7 +83,6 @@ public:
         { return ((SvxLanguageItem&)GetAttr()).GetValue(); }
 };
 
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/inc/unocoll.hxx b/sw/inc/unocoll.hxx
index 29a95bd..6480b62 100644
--- a/sw/inc/unocoll.hxx
+++ b/sw/inc/unocoll.hxx
@@ -18,7 +18,7 @@
  */
 #ifndef INCLUDED_SW_INC_UNOCOLL_HXX
 #define INCLUDED_SW_INC_UNOCOLL_HXX
-#include <tools/solar.h>
+
 #include <flyenum.hxx>
 #include <vcl/timer.hxx>
 #include <com/sun/star/lang/XServiceInfo.hpp>
@@ -189,9 +189,8 @@ class SwUnoCollection
 
 #define SW_SERVICE_INVALID          USHRT_MAX
 
-//
 // case-corrected versions of service-names (see #i67811)
-//
+
 #define CSS_TEXT_TEXTFIELD_DATE_TIME                    "com.sun.star.text.textfield.DateTime"
 #define CSS_TEXT_TEXTFIELD_USER                         "com.sun.star.text.textfield.User"
 #define CSS_TEXT_TEXTFIELD_SET_EXPRESSION               "com.sun.star.text.textfield.SetExpression"
@@ -534,8 +533,4 @@ public:
 #endif
 
 
-
-
-
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/bastyp/index.cxx b/sw/source/core/bastyp/index.cxx
index f3c0cc6..a346cef 100644
--- a/sw/source/core/bastyp/index.cxx
+++ b/sw/source/core/bastyp/index.cxx
@@ -22,13 +22,10 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <rtl/ustring.hxx>
-#include <tools/solar.h>
 
 TYPEINIT0(SwIndexReg);
 
-// -------
 // SwIndex
-// -------
 
 SwIndex::SwIndex(SwIndexReg *const pReg, sal_Int32 const nIdx)
     : m_nIndex( nIdx )
@@ -213,9 +210,7 @@ SwIndex& SwIndex::Assign( SwIndexReg* pArr, sal_Int32 nIdx )
     return *this;
 }
 
-// ----------
 // SwIndexReg
-// ----------
 
 SwIndexReg::SwIndexReg()
     : m_pFirst( 0 ), m_pLast( 0 )
@@ -287,9 +282,7 @@ void SwIndexReg::MoveTo( SwIndexReg& rArr )
 
 #ifdef DBG_UTIL
 
-// -------
 // SwIndex
-// -------
 
 sal_Int32 SwIndex::operator++(int)
 {
diff --git a/sw/source/core/inc/GetMetricVal.hxx b/sw/source/core/inc/GetMetricVal.hxx
index eca6b9e..e78507f 100644
--- a/sw/source/core/inc/GetMetricVal.hxx
+++ b/sw/source/core/inc/GetMetricVal.hxx
@@ -20,8 +20,6 @@
 #ifndef INCLUDED_SW_SOURCE_CORE_INC_GETMETRICVAL_HXX
 #define INCLUDED_SW_SOURCE_CORE_INC_GETMETRICVAL_HXX
 
-#include <tools/solar.h>
-
 #define CM_1  0         // 1 centimeter     or 1/2 inch
 #define CM_05 1         // 0.5 centimeter   or 1/4 inch
 #define CM_01 2         // 0.1 centimeter   or 1/20 inch
diff --git a/sw/source/core/inc/SwPortionHandler.hxx b/sw/source/core/inc/SwPortionHandler.hxx
index c30498c..6807e99 100644
--- a/sw/source/core/inc/SwPortionHandler.hxx
+++ b/sw/source/core/inc/SwPortionHandler.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_SW_SOURCE_CORE_INC_SWPORTIONHANDLER_HXX
 #define INCLUDED_SW_SOURCE_CORE_INC_SWPORTIONHANDLER_HXX
 
-#include <tools/solar.h>
 #include <txttypes.hxx>
 
 /** The SwPortionHandler interface implements a visitor for the layout
diff --git a/sw/source/core/inc/drawfont.hxx b/sw/source/core/inc/drawfont.hxx
index 7859097..78ccefb 100644
--- a/sw/source/core/inc/drawfont.hxx
+++ b/sw/source/core/inc/drawfont.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
 #define INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
 
-#include <tools/solar.h>
 #include <tools/debug.hxx>
 
 class SwTxtFrm;
diff --git a/sw/source/core/inc/laycache.hxx b/sw/source/core/inc/laycache.hxx
index b9a0a40..5a03471 100644
--- a/sw/source/core/inc/laycache.hxx
+++ b/sw/source/core/inc/laycache.hxx
@@ -20,13 +20,11 @@
 #ifndef INCLUDED_SW_SOURCE_CORE_INC_LAYCACHE_HXX
 #define INCLUDED_SW_SOURCE_CORE_INC_LAYCACHE_HXX
 
-#include <tools/solar.h>
-
 class SwDoc;
 class SwLayCacheImpl;
 class SvStream;
 
-/*************************************************************************
+/*
  *                      class SwLayoutCache
  *
  * This class allows to save layout information in the file and it contains
@@ -39,7 +37,8 @@ class SvStream;
  * if somebody reads the information, he increments the lock count by 1,
  * during the Read(..) function the lock count will set to $8000.
  *
- **************************************************************************/
+ */
+
 class SwLayoutCache
 {
     SwLayCacheImpl *pImpl;
diff --git a/sw/source/core/inc/unofldmid.h b/sw/source/core/inc/unofldmid.h
index 4652871..3cbd3fc 100644
--- a/sw/source/core/inc/unofldmid.h
+++ b/sw/source/core/inc/unofldmid.h
@@ -19,8 +19,6 @@
 #ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOFLDMID_H
 #define INCLUDED_SW_SOURCE_CORE_INC_UNOFLDMID_H
 
-#include <tools/solar.h>
-
 namespace com { namespace sun { namespace star { namespace uno {
     class Any;
 } } } }
diff --git a/sw/source/filter/html/htmlfly.hxx b/sw/source/filter/html/htmlfly.hxx
index 371824c..f4a1f3f 100644
--- a/sw/source/filter/html/htmlfly.hxx
+++ b/sw/source/filter/html/htmlfly.hxx
@@ -20,8 +20,8 @@
 #ifndef INCLUDED_SW_SOURCE_FILTER_HTML_HTMLFLY_HXX
 #define INCLUDED_SW_SOURCE_FILTER_HTML_HTMLFLY_HXX
 
-#include <tools/solar.h>
 #include <o3tl/sorted_vector.hxx>
+#include <sal/types.h>
 
 class SdrObject;
 class SwFrmFmt;
diff --git a/sw/source/filter/inc/rtf.hxx b/sw/source/filter/inc/rtf.hxx
index 301b8ff..c2af10a 100644
--- a/sw/source/filter/inc/rtf.hxx
+++ b/sw/source/filter/inc/rtf.hxx
@@ -19,8 +19,6 @@
 #ifndef INCLUDED_SW_SOURCE_FILTER_INC_RTF_HXX
 #define INCLUDED_SW_SOURCE_FILTER_INC_RTF_HXX
 
-#include <tools/solar.h>
-
 class RTFSurround
 {
     union {
diff --git a/sw/source/filter/inc/wrtswtbl.hxx b/sw/source/filter/inc/wrtswtbl.hxx
index de63e3e..83c10a8 100644
--- a/sw/source/filter/inc/wrtswtbl.hxx
+++ b/sw/source/filter/inc/wrtswtbl.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_SOURCE_FILTER_INC_WRTSWTBL_HXX
 #define INCLUDED_SW_SOURCE_FILTER_INC_WRTSWTBL_HXX
 
-#include <tools/solar.h>
 #include <tools/color.hxx>
 #include <boost/ptr_container/ptr_vector.hpp>
 #include <o3tl/sorted_vector.hxx>
@@ -34,18 +33,13 @@ class SvxBrushItem;
 
 namespace editeng { class SvxBorderLine; }
 
-//---------------------------------------------------------------------------
-//       Code aus dem HTML-Filter fuers schreiben von Tabellen
-//---------------------------------------------------------------------------
+// Code aus dem HTML-Filter fuers schreiben von Tabellen
 
 #define COLFUZZY 20
 #define ROWFUZZY 20
 #define COL_DFLT_WIDTH ((2*COLFUZZY)+1)
 #define ROW_DFLT_HEIGHT (2*ROWFUZZY)+1
 
-
-//-----------------------------------------------------------------------
-
 class SW_DLLPUBLIC SwWriteTableCell
 {
     const SwTableBox *pBox;     // SwTableBox der Zelle
@@ -97,9 +91,6 @@ public:
 
 typedef boost::ptr_vector<SwWriteTableCell> SwWriteTableCells;
 
-
-//-----------------------------------------------------------------------
-
 class SW_DLLPUBLIC SwWriteTableRow
 {
     SwWriteTableCells aCells;       // Alle Zellen der Rows
@@ -168,9 +159,6 @@ public:
     ~SwWriteTableRows() { DeleteAndDestroyAll(); }
 };
 
-
-//-----------------------------------------------------------------------
-
 class SW_DLLPUBLIC SwWriteTableCol
 {
     sal_uInt32 nPos;                        // End Position der Spalte
@@ -230,8 +218,6 @@ public:
     ~SwWriteTableCols() { DeleteAndDestroyAll(); }
 };
 
-//-----------------------------------------------------------------------
-
 class SW_DLLPUBLIC SwWriteTable
 {
 protected:
@@ -324,9 +310,6 @@ public:
     const SwWriteTableRows& GetRows() const { return aRows; }
 };
 
-
-
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/filter/ww8/WW8Sttbf.hxx b/sw/source/filter/ww8/WW8Sttbf.hxx
index b718754..580e554 100644
--- a/sw/source/filter/ww8/WW8Sttbf.hxx
+++ b/sw/source/filter/ww8/WW8Sttbf.hxx
@@ -20,7 +20,6 @@
 #include <vector>
 #include <boost/shared_ptr.hpp>
 #include <boost/shared_array.hpp>
-#include <tools/solar.h>
 #include <rtl/ustring.hxx>
 #include <tools/stream.hxx>
 #include <IDocumentExternalData.hxx>
diff --git a/sw/source/filter/xml/xmlexpit.hxx b/sw/source/filter/xml/xmlexpit.hxx
index 16ff828..3e46973 100644
--- a/sw/source/filter/xml/xmlexpit.hxx
+++ b/sw/source/filter/xml/xmlexpit.hxx
@@ -20,7 +20,6 @@
 #ifndef INCLUDED_SW_SOURCE_FILTER_XML_XMLEXPIT_HXX
 #define INCLUDED_SW_SOURCE_FILTER_XML_XMLEXPIT_HXX
 
-#include <tools/solar.h>
 #include "xmlitmap.hxx"
 #include <vector>
 
diff --git a/sw/source/filter/xml/xmlimpit.hxx b/sw/source/filter/xml/xmlimpit.hxx
index 219ae8d..5739724 100644
--- a/sw/source/filter/xml/xmlimpit.hxx
+++ b/sw/source/filter/xml/xmlimpit.hxx
@@ -20,8 +20,6 @@
 #define INCLUDED_SW_SOURCE_FILTER_XML_XMLIMPIT_HXX
 
 #include <limits.h>
-#include <tools/solar.h>
-
 
 #include <com/sun/star/xml/sax/XAttributeList.hpp>
 #include "xmlitmap.hxx"
diff --git a/sw/source/filter/xml/xmlitem.hxx b/sw/source/filter/xml/xmlitem.hxx
index 2573ce8..0c80718 100644
--- a/sw/source/filter/xml/xmlitem.hxx
+++ b/sw/source/filter/xml/xmlitem.hxx
@@ -21,7 +21,6 @@
 #define INCLUDED_SW_SOURCE_FILTER_XML_XMLITEM_HXX
 
 #include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <tools/solar.h>
 #include <limits.h>
 #include <xmloff/xmlictxt.hxx>
 
@@ -63,7 +62,6 @@ public:
                                    const SvXMLItemMapEntry& rEntry,
                                    const SvXMLUnitConverter& rUnitConv );
 
-
 };
 
 
diff --git a/sw/source/ui/inc/fldmgr.hxx b/sw/source/ui/inc/fldmgr.hxx
index da04b91..454424c 100644
--- a/sw/source/ui/inc/fldmgr.hxx
+++ b/sw/source/ui/inc/fldmgr.hxx
@@ -19,6 +19,7 @@
 #ifndef INCLUDED_SW_SOURCE_UI_INC_FLDMGR_HXX
 #define INCLUDED_SW_SOURCE_UI_INC_FLDMGR_HXX
 
+#include <sal/types.h>
 #include "swdllapi.h"
 #include "swtypes.hxx"
 #include <com/sun/star/uno/Reference.h>
@@ -43,9 +44,9 @@ class SvxMacroItem;
 class SvNumberFormatter;
 class Window;
 
-/*--------------------------------------------------------------------
+/*
     Description: the groups of fields
- --------------------------------------------------------------------*/
+*/
 enum SwFldGroups
 {
     GRP_DOC,
@@ -62,17 +63,17 @@ struct SwFldGroupRgn
     sal_uInt16 nEnd;
 };
 
-/*--------------------------------------------------------------------
+/*
     Description:  the field manager handles the insertation of fields
                   with command strings
- --------------------------------------------------------------------*/
+*/
 struct SwInsertFld_Data
 {
     sal_uInt16 nTypeId;
     sal_uInt16 nSubType;
     const OUString sPar1;
     const OUString sPar2;
-    sal_uLong nFormatId;
+    sal_uIntPtr nFormatId;
     SwWrtShell* pSh;
     sal_Unicode cSeparator;
     sal_Bool bIsAutomaticLanguage;
@@ -82,7 +83,7 @@ struct SwInsertFld_Data
     Window* pParent; // parent dialog used for SwWrtShell::StartInputFldDlg()
 
     SwInsertFld_Data(sal_uInt16 nType, sal_uInt16 nSub, const OUString& rPar1, const OUString& rPar2,
-                    sal_uLong nFmtId, SwWrtShell* pShell = NULL, sal_Unicode cSep = ' ', sal_Bool bIsAutoLanguage = sal_True) :
+                    sal_uIntPtr nFmtId, SwWrtShell* pShell = NULL, sal_Unicode cSep = ' ', sal_Bool bIsAutoLanguage = sal_True) :
         nTypeId(nType),
         nSubType(nSub),
         sPar1(rPar1),
@@ -114,7 +115,7 @@ private:
     OUString          sMacroPath;
     OUString          sMacroName;
 
-    sal_uLong           nCurFmt;
+    sal_uIntPtr           nCurFmt;
     sal_Bool            bEvalExp;
 
     SAL_DLLPRIVATE sal_uInt16            GetCurrLanguage() const;
@@ -134,14 +135,14 @@ public:
     sal_Bool InsertFld( const SwInsertFld_Data& rData );
 
     // change the current field directly
-    void            UpdateCurFld(sal_uLong nFormat,
+    void            UpdateCurFld(sal_uIntPtr nFormat,
                                  const OUString& rPar1,
                                  const OUString& rPar2,
                                  SwField * _pField = 0); // #111840#
 
     OUString        GetCurFldPar1() const { return aCurPar1; }
     OUString        GetCurFldPar2() const { return aCurPar2; }
-    inline sal_uLong   GetCurFldFmt() const;
+    inline sal_uIntPtr   GetCurFldFmt() const;
 
     // determine a field
     SwField*        GetCurFld();
@@ -196,9 +197,9 @@ public:
 
     // format to a type
     sal_uInt16          GetFormatCount(sal_uInt16 nTypeId, bool bIsText, sal_Bool bHtmlMode = sal_False) const;
-    OUString            GetFormatStr(sal_uInt16 nTypeId, sal_uLong nFormatId) const;
-    sal_uInt16          GetFormatId(sal_uInt16 nTypeId, sal_uLong nFormatId) const;
-    sal_uLong           GetDefaultFormat(sal_uInt16 nTypeId, bool bIsText, SvNumberFormatter* pFormatter, double* pVal = 0L);
+    OUString            GetFormatStr(sal_uInt16 nTypeId, sal_uIntPtr nFormatId) const;
+    sal_uInt16          GetFormatId(sal_uInt16 nTypeId, sal_uIntPtr nFormatId) const;
+    sal_uIntPtr           GetDefaultFormat(sal_uInt16 nTypeId, bool bIsText, SvNumberFormatter* pFormatter, double* pVal = 0L);
 
     // turn off evaluation of expression fields for insertation
     // of many expressino fields (see labels)
@@ -210,7 +211,7 @@ public:
 inline void SwFldMgr::SetEvalExpFlds(sal_Bool bEval)
     { bEvalExp = bEval; }
 
-inline sal_uLong SwFldMgr::GetCurFldFmt() const
+inline sal_uIntPtr SwFldMgr::GetCurFldFmt() const
     { return nCurFmt; }
 
 #endif
diff --git a/sw/source/ui/inc/initui.hxx b/sw/source/ui/inc/initui.hxx
index 7b39f2b..cb4a406 100644
--- a/sw/source/ui/inc/initui.hxx
+++ b/sw/source/ui/inc/initui.hxx
@@ -19,7 +19,6 @@
 #ifndef INCLUDED_SW_SOURCE_UI_INC_INITUI_HXX
 #define INCLUDED_SW_SOURCE_UI_INC_INITUI_HXX
 
-#include "tools/solar.h"
 #include "swdllapi.h"
 #include "rtl/ustring.hxx"
 
diff --git a/sw/source/ui/uiview/viewfunc.hxx b/sw/source/ui/uiview/viewfunc.hxx
index e2eb9c3..e8c26e8 100644
--- a/sw/source/ui/uiview/viewfunc.hxx
+++ b/sw/source/ui/uiview/viewfunc.hxx
@@ -18,7 +18,6 @@
  */
 #ifndef INCLUDED_SW_SOURCE_UI_UIVIEW_VIEWFUNC_HXX
 #define INCLUDED_SW_SOURCE_UI_UIVIEW_VIEWFUNC_HXX
-#include <tools/solar.h>
 
 class ImageButton;
 class Point;


More information about the Libreoffice-commits mailing list