Kaydet (Commit) 4137f39d authored tarafından Michael Stahl's avatar Michael Stahl

Revert "fdo#63154 Remove unused solar.h reference in sw."

sal_uIntPtr should only be used to represent pointers cast to integers.

This reverts commit 067d0802.
üst 2044aef1
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#ifndef INCLUDED_SW_INC_IDOCUMENTLINKSADMINISTRATION_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTLINKSADMINISTRATION_HXX
#define 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 com { namespace sun { namespace star { namespace uno { class Any; } } } }
namespace sfx2 { class SvLinkSource; class LinkManager; } namespace sfx2 { class SvLinkSource; class LinkManager; }
......
...@@ -21,7 +21,10 @@ ...@@ -21,7 +21,10 @@
#define INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX #define INCLUDED_SW_INC_IDOCUMENTREDLINEACCESS_HXX
#include <sal/types.h> #include <sal/types.h>
#include <tools/solar.h>
#include <limits.h> #include <limits.h>
#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Sequence.hxx>
class SwRangeRedline; class SwRangeRedline;
...@@ -95,6 +98,10 @@ public: ...@@ -95,6 +98,10 @@ public:
public: public:
/*************************************************
Query
*************************************************/
/** Query the currently set redline mode /** Query the currently set redline mode
@returns @returns
...@@ -130,6 +137,10 @@ public: ...@@ -130,6 +137,10 @@ public:
virtual bool IsInRedlines(const SwNode& rNode) const = 0; virtual bool IsInRedlines(const SwNode& rNode) const = 0;
/***************************************************
Manipulation
***************************************************/
/** Append a new redline /** Append a new redline
@param pPtr @param pPtr
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX
#define INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX #define INCLUDED_SW_INC_IDOCUMENTSETTINGACCESS_HXX
#include <tools/solar.h>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <chcmprse.hxx> #include <chcmprse.hxx>
#include <fldupde.hxx> #include <fldupde.hxx>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#ifndef INCLUDED_SW_INC_IDOCUMENTSTATE_HXX #ifndef INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
#define INCLUDED_SW_INC_IDOCUMENTSTATE_HXX #define INCLUDED_SW_INC_IDOCUMENTSTATE_HXX
#include <tools/solar.h>
/** Get information about the current document state /** Get information about the current document state
*/ */
class IDocumentState class IDocumentState
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#ifndef INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX #ifndef INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX
#define INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX #define INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX
#include <tools/solar.h>
struct SwAccessibilityOptions struct SwAccessibilityOptions
{ {
sal_Bool bIsAlwaysAutoColor :1; sal_Bool bIsAlwaysAutoColor :1;
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef INCLUDED_SW_INC_AUTHRATR_HXX #ifndef INCLUDED_SW_INC_AUTHRATR_HXX
#define INCLUDED_SW_INC_AUTHRATR_HXX #define INCLUDED_SW_INC_AUTHRATR_HXX
#include <tools/solar.h>
#include <tools/color.hxx> #include <tools/color.hxx>
#include "swdllapi.h" #include "swdllapi.h"
...@@ -41,6 +42,7 @@ public: ...@@ -41,6 +42,7 @@ public:
} }
}; };
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
#ifndef INCLUDED_SW_INC_CRSSKIP_HXX #ifndef INCLUDED_SW_INC_CRSSKIP_HXX
#define INCLUDED_SW_INC_CRSSKIP_HXX #define INCLUDED_SW_INC_CRSSKIP_HXX
#include <sal/types.h> #include <tools/solar.h>
// define for cursor travelling normally in western text cells and chars do // 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 // the same, but in complex text cell skip over legatures and char skip
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_INC_CSHTYP_HXX #ifndef INCLUDED_SW_INC_CSHTYP_HXX
#define INCLUDED_SW_INC_CSHTYP_HXX #define INCLUDED_SW_INC_CSHTYP_HXX
#include <tools/solar.h>
#include "swdllapi.h" #include "swdllapi.h"
class SwPaM; class SwPaM;
...@@ -29,6 +30,7 @@ class SwLayoutFrm; ...@@ -29,6 +30,7 @@ class SwLayoutFrm;
struct SwMoveFnCollection; struct SwMoveFnCollection;
typedef SwMoveFnCollection* SwMoveFn; typedef SwMoveFnCollection* SwMoveFn;
// Type definition for CrsrShell. // Type definition for CrsrShell.
// Direction-parameter for MovePage (initialized in SwCntntFrm). // Direction-parameter for MovePage (initialized in SwCntntFrm).
typedef SwLayoutFrm * (*SwWhichPage)( const SwLayoutFrm * ); typedef SwLayoutFrm * (*SwWhichPage)( const SwLayoutFrm * );
...@@ -66,6 +68,7 @@ typedef sal_Bool (*SwWhichRegion)( SwPaM&, SwPosRegion, sal_Bool bInReadOnly ); ...@@ -66,6 +68,7 @@ typedef sal_Bool (*SwWhichRegion)( SwPaM&, SwPosRegion, sal_Bool bInReadOnly );
extern SwWhichRegion fnRegionPrev, fnRegionCurr, fnRegionNext, fnRegionCurrAndSkip; extern SwWhichRegion fnRegionPrev, fnRegionCurr, fnRegionNext, fnRegionCurrAndSkip;
extern SwPosRegion fnRegionStart, fnRegionEnd; extern SwPosRegion fnRegionStart, fnRegionEnd;
/* /*
* The following combinations are allowed: * The following combinations are allowed:
* - find one in body -> FND_IN_BODY * - find one in body -> FND_IN_BODY
...@@ -83,6 +86,7 @@ enum FindRanges ...@@ -83,6 +86,7 @@ enum FindRanges
FND_IN_SELALL = 0x01 ///< All (only in non-body and selections). FND_IN_SELALL = 0x01 ///< All (only in non-body and selections).
}; };
enum SwDocPositions enum SwDocPositions
{ {
DOCPOS_START, DOCPOS_START,
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#ifndef INCLUDED_SW_INC_DOCFAC_HXX #ifndef INCLUDED_SW_INC_DOCFAC_HXX
#define INCLUDED_SW_INC_DOCFAC_HXX #define INCLUDED_SW_INC_DOCFAC_HXX
#include <tools/solar.h>
class SwDoc; class SwDoc;
class SW_DLLPUBLIC SwDocFac class SW_DLLPUBLIC SwDocFac
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_INC_FORMAT_HXX #ifndef INCLUDED_SW_INC_FORMAT_HXX
#define INCLUDED_SW_INC_FORMAT_HXX #define INCLUDED_SW_INC_FORMAT_HXX
#include <tools/solar.h>
#include "swdllapi.h" #include "swdllapi.h"
#include <swatrset.hxx> #include <swatrset.hxx>
#include <calbck.hxx> #include <calbck.hxx>
...@@ -321,6 +322,8 @@ public: ...@@ -321,6 +322,8 @@ public:
virtual bool IsShadowTransparent() const; virtual bool IsShadowTransparent() const;
}; };
// --------------- inline Implementations ------------------------
inline const SfxPoolItem& SwFmt::GetFmtAttr( sal_uInt16 nWhich, inline const SfxPoolItem& SwFmt::GetFmtAttr( sal_uInt16 nWhich,
sal_Bool bInParents ) const sal_Bool bInParents ) const
{ {
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_INC_HINTIDS_HXX #ifndef INCLUDED_SW_INC_HINTIDS_HXX
#define INCLUDED_SW_INC_HINTIDS_HXX #define INCLUDED_SW_INC_HINTIDS_HXX
#include <tools/solar.h>
#include <sal/types.h> #include <sal/types.h>
#include "swdllapi.h" #include "swdllapi.h"
...@@ -276,6 +277,8 @@ RES_UNKNOWNATR_BEGIN = RES_BOXATR_END, ...@@ -276,6 +277,8 @@ RES_UNKNOWNATR_BEGIN = RES_BOXATR_END,
RES_UNKNOWNATR_END RES_UNKNOWNATR_END
}; };
// Format IDs // Format IDs
enum RES_FMT enum RES_FMT
{ {
...@@ -375,59 +378,49 @@ inline bool isATR(const sal_uInt16 nWhich) ...@@ -375,59 +378,49 @@ inline bool isATR(const sal_uInt16 nWhich)
{ {
return (RES_CHRATR_BEGIN <= nWhich) && (RES_UNKNOWNATR_END > nWhich); return (RES_CHRATR_BEGIN <= nWhich) && (RES_UNKNOWNATR_END > nWhich);
} }
inline bool isCHRATR(const sal_uInt16 nWhich) inline bool isCHRATR(const sal_uInt16 nWhich)
{ {
return (RES_CHRATR_BEGIN <= nWhich) && (RES_CHRATR_END > nWhich); return (RES_CHRATR_BEGIN <= nWhich) && (RES_CHRATR_END > nWhich);
} }
inline bool isTXTATR_WITHEND(const sal_uInt16 nWhich) inline bool isTXTATR_WITHEND(const sal_uInt16 nWhich)
{ {
return (RES_TXTATR_WITHEND_BEGIN <= nWhich) return (RES_TXTATR_WITHEND_BEGIN <= nWhich)
&& (RES_TXTATR_WITHEND_END > nWhich); && (RES_TXTATR_WITHEND_END > nWhich);
} }
inline bool isTXTATR_NOEND(const sal_uInt16 nWhich) inline bool isTXTATR_NOEND(const sal_uInt16 nWhich)
{ {
return (RES_TXTATR_NOEND_BEGIN <= nWhich) return (RES_TXTATR_NOEND_BEGIN <= nWhich)
&& (RES_TXTATR_NOEND_END > nWhich); && (RES_TXTATR_NOEND_END > nWhich);
} }
inline bool isTXTATR(const sal_uInt16 nWhich) inline bool isTXTATR(const sal_uInt16 nWhich)
{ {
return (RES_TXTATR_BEGIN <= nWhich) && (RES_TXTATR_END > nWhich); return (RES_TXTATR_BEGIN <= nWhich) && (RES_TXTATR_END > nWhich);
} }
inline bool isPARATR(const sal_uInt16 nWhich) inline bool isPARATR(const sal_uInt16 nWhich)
{ {
return (RES_PARATR_BEGIN <= nWhich) && (RES_PARATR_END > nWhich); return (RES_PARATR_BEGIN <= nWhich) && (RES_PARATR_END > nWhich);
} }
inline bool isPARATR_LIST(const sal_uInt16 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) inline bool isFRMATR(const sal_uInt16 nWhich)
{ {
return (RES_FRMATR_BEGIN <= nWhich) && (RES_FRMATR_END > nWhich); return (RES_FRMATR_BEGIN <= nWhich) && (RES_FRMATR_END > nWhich);
} }
inline bool isGRFATR(const sal_uInt16 nWhich) inline bool isGRFATR(const sal_uInt16 nWhich)
{ {
return (RES_GRFATR_BEGIN <= nWhich) && (RES_GRFATR_END > nWhich); return (RES_GRFATR_BEGIN <= nWhich) && (RES_GRFATR_END > nWhich);
} }
inline bool isBOXATR(const sal_uInt16 nWhich) inline bool isBOXATR(const sal_uInt16 nWhich)
{ {
return (RES_BOXATR_BEGIN <= nWhich) && (RES_BOXATR_END > nWhich); return (RES_BOXATR_BEGIN <= nWhich) && (RES_BOXATR_END > nWhich);
} }
inline bool isUNKNOWNATR(const sal_uInt16 nWhich) inline bool isUNKNOWNATR(const sal_uInt16 nWhich)
{ {
return (RES_UNKNOWNATR_BEGIN <= nWhich) && (RES_UNKNOWNATR_END > nWhich); return (RES_UNKNOWNATR_BEGIN <= nWhich) && (RES_UNKNOWNATR_END > nWhich);
} }
// Take the respective default attribute from the statistical default // Take the respective default attribute from the statistical default
// attributes table over the Which-value. // attributes table over the Which-value.
// If none exists, return a 0 pointer!!! // If none exists, return a 0 pointer!!!
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <limits.h> #include <limits.h>
#include "rtl/instance.hxx" #include "rtl/instance.hxx"
#include <tools/solar.h>
#include <tools/rtti.hxx> #include <tools/rtti.hxx>
#include <swdllapi.h> #include <swdllapi.h>
...@@ -139,19 +140,16 @@ inline sal_Int32 SwIndex::operator++() ...@@ -139,19 +140,16 @@ inline sal_Int32 SwIndex::operator++()
{ {
return ChgValue( *this, m_nIndex+1 ).m_nIndex; return ChgValue( *this, m_nIndex+1 ).m_nIndex;
} }
inline sal_Int32 SwIndex::operator--() inline sal_Int32 SwIndex::operator--()
{ {
return ChgValue( *this, m_nIndex-1 ).m_nIndex; return ChgValue( *this, m_nIndex-1 ).m_nIndex;
} }
inline sal_Int32 SwIndex::operator++(int) inline sal_Int32 SwIndex::operator++(int)
{ {
sal_Int32 const nOldIndex = m_nIndex; sal_Int32 const nOldIndex = m_nIndex;
ChgValue( *this, m_nIndex+1 ); ChgValue( *this, m_nIndex+1 );
return nOldIndex; return nOldIndex;
} }
inline sal_Int32 SwIndex::operator--(int) inline sal_Int32 SwIndex::operator--(int)
{ {
sal_Int32 const nOldIndex = m_nIndex; sal_Int32 const nOldIndex = m_nIndex;
...@@ -163,17 +161,14 @@ inline sal_Int32 SwIndex::operator+=( sal_Int32 const nVal ) ...@@ -163,17 +161,14 @@ inline sal_Int32 SwIndex::operator+=( sal_Int32 const nVal )
{ {
return ChgValue( *this, m_nIndex + nVal ).m_nIndex; return ChgValue( *this, m_nIndex + nVal ).m_nIndex;
} }
inline sal_Int32 SwIndex::operator-=( sal_Int32 const nVal ) inline sal_Int32 SwIndex::operator-=( sal_Int32 const nVal )
{ {
return ChgValue( *this, m_nIndex - nVal ).m_nIndex; return ChgValue( *this, m_nIndex - nVal ).m_nIndex;
} }
inline sal_Int32 SwIndex::operator+=( const SwIndex& rIndex ) inline sal_Int32 SwIndex::operator+=( const SwIndex& rIndex )
{ {
return ChgValue( *this, m_nIndex + rIndex.m_nIndex ).m_nIndex; return ChgValue( *this, m_nIndex + rIndex.m_nIndex ).m_nIndex;
} }
inline sal_Int32 SwIndex::operator-=( const SwIndex& rIndex ) inline sal_Int32 SwIndex::operator-=( const SwIndex& rIndex )
{ {
return ChgValue( *this, m_nIndex - rIndex.m_nIndex ).m_nIndex; return ChgValue( *this, m_nIndex - rIndex.m_nIndex ).m_nIndex;
...@@ -183,22 +178,18 @@ inline bool SwIndex::operator< ( const SwIndex& rIndex ) const ...@@ -183,22 +178,18 @@ inline bool SwIndex::operator< ( const SwIndex& rIndex ) const
{ {
return m_nIndex < rIndex.m_nIndex; return m_nIndex < rIndex.m_nIndex;
} }
inline bool SwIndex::operator<=( const SwIndex& rIndex ) const inline bool SwIndex::operator<=( const SwIndex& rIndex ) const
{ {
return m_nIndex <= rIndex.m_nIndex; return m_nIndex <= rIndex.m_nIndex;
} }
inline bool SwIndex::operator> ( const SwIndex& rIndex ) const inline bool SwIndex::operator> ( const SwIndex& rIndex ) const
{ {
return m_nIndex > rIndex.m_nIndex; return m_nIndex > rIndex.m_nIndex;
} }
inline bool SwIndex::operator>=( const SwIndex& rIndex ) const inline bool SwIndex::operator>=( const SwIndex& rIndex ) const
{ {
return m_nIndex >= rIndex.m_nIndex; return m_nIndex >= rIndex.m_nIndex;
} }
inline SwIndex& SwIndex::operator= ( sal_Int32 const nVal ) inline SwIndex& SwIndex::operator= ( sal_Int32 const nVal )
{ {
if (m_nIndex != nVal) if (m_nIndex != nVal)
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#ifndef INCLUDED_SW_INC_ITABENUM_HXX #ifndef INCLUDED_SW_INC_ITABENUM_HXX
#define INCLUDED_SW_INC_ITABENUM_HXX #define INCLUDED_SW_INC_ITABENUM_HXX
#include <tools/solar.h>
namespace tabopts namespace tabopts
{ {
const sal_uInt16 DEFAULT_BORDER = 0x01; const sal_uInt16 DEFAULT_BORDER = 0x01;
...@@ -37,6 +39,7 @@ struct SwInsertTableOptions ...@@ -37,6 +39,7 @@ struct SwInsertTableOptions
mnInsMode( nInsMode ), mnRowsToRepeat( nRowsToRepeat ) {}; mnInsMode( nInsMode ), mnRowsToRepeat( nRowsToRepeat ) {};
}; };
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#define INCLUDED_SW_INC_MDIEXP_HXX #define INCLUDED_SW_INC_MDIEXP_HXX
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <tools/solar.h>
#include <tblenum.hxx> #include <tblenum.hxx>
#include <swdllapi.h> #include <swdllapi.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#ifndef INCLUDED_SW_INC_NDTYP_HXX #ifndef INCLUDED_SW_INC_NDTYP_HXX
#define 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 // IDs for different nodes. The member indicating the type of node is
// in base class. // in base class.
const sal_uInt8 ND_ENDNODE = 0x01; const sal_uInt8 ND_ENDNODE = 0x01;
...@@ -56,6 +58,8 @@ enum SwStartNodeType ...@@ -56,6 +58,8 @@ enum SwStartNodeType
const sal_uInt8 ND_HAS_PREV_LAYNODE = 0x01; const sal_uInt8 ND_HAS_PREV_LAYNODE = 0x01;
const sal_uInt8 ND_HAS_NEXT_LAYNODE = 0x02; const sal_uInt8 ND_HAS_NEXT_LAYNODE = 0x02;
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -254,6 +254,7 @@ ...@@ -254,6 +254,7 @@
#include <svx/xfltrit.hxx> #include <svx/xfltrit.hxx>
#include <svx/xlineit.hxx> #include <svx/xlineit.hxx>
#include <toolkit/helper/vclunohelper.hxx> #include <toolkit/helper/vclunohelper.hxx>
#include <tools/solar.h>
#include <tools/stream.hxx> #include <tools/stream.hxx>
#include <tools/tenccvt.hxx> #include <tools/tenccvt.hxx>
#include <tools/urlobj.hxx> #include <tools/urlobj.hxx>
......
...@@ -990,6 +990,7 @@ ...@@ -990,6 +990,7 @@
#include <tools/resmgr.hxx> #include <tools/resmgr.hxx>
#include <tools/rtti.hxx> #include <tools/rtti.hxx>
#include <tools/shl.hxx> #include <tools/shl.hxx>
#include <tools/solar.h>
#include <tools/stream.hxx> #include <tools/stream.hxx>
#include <tools/time.hxx> #include <tools/time.hxx>
#include <tools/urlobj.hxx> #include <tools/urlobj.hxx>
......
...@@ -20,17 +20,21 @@ ...@@ -20,17 +20,21 @@
#define INCLUDED_SW_INC_SPLARGS_HXX #define INCLUDED_SW_INC_SPLARGS_HXX
#include <i18nlangtag/lang.h> #include <i18nlangtag/lang.h>
#include <tools/solar.h>
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <limits.h> #include <limits.h>
class SwTxtNode; class SwTxtNode;
class SwIndex; class SwIndex;
class Font; class Font;
#include <com/sun/star/linguistic2/XSpellAlternatives.hpp> #include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
#include <com/sun/star/linguistic2/XSpellChecker1.hpp> #include <com/sun/star/linguistic2/XSpellChecker1.hpp>
#include <com/sun/star/linguistic2/XHyphenatedWord.hpp> #include <com/sun/star/linguistic2/XHyphenatedWord.hpp>
/*************************************************************************
* struct SwArgsBase
*************************************************************************/
struct SwArgsBase // used for text conversion (Hangul/Hanja, ...) struct SwArgsBase // used for text conversion (Hangul/Hanja, ...)
{ {
...@@ -57,9 +61,10 @@ struct SwArgsBase // used for text conversion (Hangul/Hanja, ...) ...@@ -57,9 +61,10 @@ struct SwArgsBase // used for text conversion (Hangul/Hanja, ...)
} }
}; };
/* /*************************************************************************
* struct SwConversionArgs
* used for text conversion (Hangul/Hanja, Simplified/Traditional Chinese, ...) * used for text conversion (Hangul/Hanja, Simplified/Traditional Chinese, ...)
*/ *************************************************************************/
struct SwConversionArgs : SwArgsBase struct SwConversionArgs : SwArgsBase
{ {
...@@ -85,6 +90,10 @@ struct SwConversionArgs : SwArgsBase ...@@ -85,6 +90,10 @@ struct SwConversionArgs : SwArgsBase
{} {}
}; };
/*************************************************************************
* struct SwSpellArgs
*************************************************************************/
struct SwSpellArgs : SwArgsBase struct SwSpellArgs : SwArgsBase
{ {
::com::sun::star::uno::Reference< ::com::sun::star::uno::Reference<
...@@ -106,6 +115,10 @@ struct SwSpellArgs : SwArgsBase ...@@ -106,6 +115,10 @@ struct SwSpellArgs : SwArgsBase
{} {}
}; };
/*************************************************************************
* class SwInterHyphInfo
*************************************************************************/
// Parameter-class for Hyphenate. // Parameter-class for Hyphenate.
// docedt.cxx: SwDoc::Hyphenate() // docedt.cxx: SwDoc::Hyphenate()
// txtedt.cxx: SwTxtNode::Hyphenate() // txtedt.cxx: SwTxtNode::Hyphenate()
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#ifndef INCLUDED_SW_INC_SWATRSET_HXX #ifndef INCLUDED_SW_INC_SWATRSET_HXX
#define INCLUDED_SW_INC_SWATRSET_HXX #define INCLUDED_SW_INC_SWATRSET_HXX
#include <tools/solar.h>
#include <tools/mempool.hxx> #include <tools/mempool.hxx>
#include <svl/itemset.hxx> #include <svl/itemset.hxx>
#include <svl/itempool.hxx> #include <svl/itempool.hxx>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_INC_SWDBDATA_HXX #ifndef INCLUDED_SW_INC_SWDBDATA_HXX
#define INCLUDED_SW_INC_SWDBDATA_HXX #define INCLUDED_SW_INC_SWDBDATA_HXX
#include <tools/solar.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
// contains the description of a data source // contains the description of a data source
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef INCLUDED_SW_INC_SWEVENT_HXX #ifndef INCLUDED_SW_INC_SWEVENT_HXX
#define INCLUDED_SW_INC_SWEVENT_HXX #define INCLUDED_SW_INC_SWEVENT_HXX
#include <tools/solar.h>
#include <sfx2/sfx.hrc> #include <sfx2/sfx.hrc>
#define SW_EVENT_OBJECT_SELECT ( EVENT_APP_START + 0 ) #define SW_EVENT_OBJECT_SELECT ( EVENT_APP_START + 0 )
...@@ -113,6 +114,7 @@ struct SwCallMouseEvent ...@@ -113,6 +114,7 @@ struct SwCallMouseEvent
sal_Bool HasEvent() const { return EVENT_OBJECT_NONE != eType; } sal_Bool HasEvent() const { return EVENT_OBJECT_NONE != eType; }
}; };
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
*/ */
#ifndef INCLUDED_SW_INC_SWTYPES_HXX #ifndef INCLUDED_SW_INC_SWTYPES_HXX
#define INCLUDED_SW_INC_SWTYPES_HXX #define INCLUDED_SW_INC_SWTYPES_HXX
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <tools/solar.h>
#include <SwGetPoolIdFromName.hxx> #include <SwGetPoolIdFromName.hxx>
#include <limits.h> #include <limits.h>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_INC_SWUNOHELPER_HXX #ifndef INCLUDED_SW_INC_SWUNOHELPER_HXX
#define INCLUDED_SW_INC_SWUNOHELPER_HXX #define INCLUDED_SW_INC_SWUNOHELPER_HXX
#include <tools/solar.h>
#include <sal/types.h> #include <sal/types.h>
#include "swdllapi.h" #include "swdllapi.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_INC_SWWAIT_HXX #ifndef INCLUDED_SW_INC_SWWAIT_HXX
#define INCLUDED_SW_INC_SWWAIT_HXX #define INCLUDED_SW_INC_SWWAIT_HXX
#include <tools/solar.h>
#include "swdllapi.h" #include "swdllapi.h"
#include <boost/unordered_set.hpp> #include <boost/unordered_set.hpp>
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#ifndef INCLUDED_SW_INC_TABCOL_HXX #ifndef INCLUDED_SW_INC_TABCOL_HXX
#define INCLUDED_SW_INC_TABCOL_HXX #define INCLUDED_SW_INC_TABCOL_HXX
#include <tools/solar.h>
#include <vector> #include <vector>
#include "swdllapi.h" #include "swdllapi.h"
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef INCLUDED_SW_INC_TOXWRAP_HXX #ifndef INCLUDED_SW_INC_TOXWRAP_HXX
#define 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/lang/Locale.hpp>
#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Reference.hxx>
#include "swdllapi.h" #include "swdllapi.h"
...@@ -33,6 +34,7 @@ namespace lang { ...@@ -33,6 +34,7 @@ namespace lang {
} }
}}} }}}
class SW_DLLPUBLIC IndexEntrySupplierWrapper class SW_DLLPUBLIC IndexEntrySupplierWrapper
{ {
::com::sun::star::lang::Locale aLcl; ::com::sun::star::lang::Locale aLcl;
......
...@@ -19,10 +19,13 @@ ...@@ -19,10 +19,13 @@
#ifndef INCLUDED_SW_INC_TXATBASE_HXX #ifndef INCLUDED_SW_INC_TXATBASE_HXX
#define INCLUDED_SW_INC_TXATBASE_HXX #define INCLUDED_SW_INC_TXATBASE_HXX
#include <tools/solar.h>
#include <svl/poolitem.hxx> #include <svl/poolitem.hxx>
#include <hintids.hxx> #include <hintids.hxx>
#include <boost/utility.hpp> #include <boost/utility.hpp>
class SfxItemPool; class SfxItemPool;
class SvXMLAttrContainerItem; class SvXMLAttrContainerItem;
class SwFmtRuby; class SwFmtRuby;
...@@ -36,6 +39,7 @@ class SwTOXMark; ...@@ -36,6 +39,7 @@ class SwTOXMark;
class SwFmtRefMark; class SwFmtRefMark;
class SwFmtMeta; class SwFmtMeta;
class SwTxtAttr : private boost::noncopyable class SwTxtAttr : private boost::noncopyable
{ {
private: private:
...@@ -130,6 +134,9 @@ public: ...@@ -130,6 +134,9 @@ public:
virtual sal_Int32* GetEnd(); virtual sal_Int32* GetEnd();
}; };
// --------------- Inline Implementations ------------------------
inline const sal_Int32* SwTxtAttr::End() const inline const sal_Int32* SwTxtAttr::End() const
{ {
return const_cast<SwTxtAttr * >(this)->GetEnd(); return const_cast<SwTxtAttr * >(this)->GetEnd();
...@@ -161,6 +168,8 @@ inline void SwTxtAttr::SetDontExpand( bool bDontExpand ) ...@@ -161,6 +168,8 @@ inline void SwTxtAttr::SetDontExpand( bool bDontExpand )
} }
} }
//------------------------------------------------------------------------
inline const SwFmtCharFmt& SwTxtAttr::GetCharFmt() const inline const SwFmtCharFmt& SwTxtAttr::GetCharFmt() const
{ {
assert( m_pAttr && m_pAttr->Which() == RES_TXTATR_CHARFMT ); assert( m_pAttr && m_pAttr->Which() == RES_TXTATR_CHARFMT );
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_INC_TXATRITR_HXX #ifndef INCLUDED_SW_INC_TXATRITR_HXX
#define INCLUDED_SW_INC_TXATRITR_HXX #define INCLUDED_SW_INC_TXATRITR_HXX
#include <tools/solar.h>
#include <sal/types.h> #include <sal/types.h>
#include <editeng/langitem.hxx> #include <editeng/langitem.hxx>
#include <hintids.hxx> #include <hintids.hxx>
...@@ -29,6 +30,7 @@ class SwTxtNode; ...@@ -29,6 +30,7 @@ class SwTxtNode;
class SwTxtAttr; class SwTxtAttr;
class SfxPoolItem; class SfxPoolItem;
class SwScriptIterator class SwScriptIterator
{ {
const OUString& m_rText; const OUString& m_rText;
...@@ -47,6 +49,7 @@ public: ...@@ -47,6 +49,7 @@ public:
const OUString& GetText() const { return m_rText; } const OUString& GetText() const { return m_rText; }
}; };
class SwTxtAttrIterator class SwTxtAttrIterator
{ {
SwScriptIterator aSIter; SwScriptIterator aSIter;
...@@ -70,6 +73,7 @@ public: ...@@ -70,6 +73,7 @@ public:
sal_Int32 GetChgPos() const { return nChgPos; } sal_Int32 GetChgPos() const { return nChgPos; }
}; };
class SwLanguageIterator : public SwTxtAttrIterator class SwLanguageIterator : public SwTxtAttrIterator
{ {
public: public:
...@@ -83,6 +87,7 @@ public: ...@@ -83,6 +87,7 @@ public:
{ return ((SvxLanguageItem&)GetAttr()).GetValue(); } { return ((SvxLanguageItem&)GetAttr()).GetValue(); }
}; };
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#ifndef INCLUDED_SW_INC_UNOCOLL_HXX #ifndef INCLUDED_SW_INC_UNOCOLL_HXX
#define INCLUDED_SW_INC_UNOCOLL_HXX #define INCLUDED_SW_INC_UNOCOLL_HXX
#include <tools/solar.h>
#include <flyenum.hxx> #include <flyenum.hxx>
#include <vcl/timer.hxx> #include <vcl/timer.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
...@@ -189,8 +189,9 @@ class SwUnoCollection ...@@ -189,8 +189,9 @@ class SwUnoCollection
#define SW_SERVICE_INVALID USHRT_MAX #define SW_SERVICE_INVALID USHRT_MAX
//
// case-corrected versions of service-names (see #i67811) // case-corrected versions of service-names (see #i67811)
//
#define CSS_TEXT_TEXTFIELD_DATE_TIME "com.sun.star.text.textfield.DateTime" #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_USER "com.sun.star.text.textfield.User"
#define CSS_TEXT_TEXTFIELD_SET_EXPRESSION "com.sun.star.text.textfield.SetExpression" #define CSS_TEXT_TEXTFIELD_SET_EXPRESSION "com.sun.star.text.textfield.SetExpression"
...@@ -533,4 +534,8 @@ public: ...@@ -533,4 +534,8 @@ public:
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -22,10 +22,13 @@ ...@@ -22,10 +22,13 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <tools/solar.h>
TYPEINIT0(SwIndexReg); TYPEINIT0(SwIndexReg);
// -------
// SwIndex // SwIndex
// -------
SwIndex::SwIndex(SwIndexReg *const pReg, sal_Int32 const nIdx) SwIndex::SwIndex(SwIndexReg *const pReg, sal_Int32 const nIdx)
: m_nIndex( nIdx ) : m_nIndex( nIdx )
...@@ -210,7 +213,9 @@ SwIndex& SwIndex::Assign( SwIndexReg* pArr, sal_Int32 nIdx ) ...@@ -210,7 +213,9 @@ SwIndex& SwIndex::Assign( SwIndexReg* pArr, sal_Int32 nIdx )
return *this; return *this;
} }
// ----------
// SwIndexReg // SwIndexReg
// ----------
SwIndexReg::SwIndexReg() SwIndexReg::SwIndexReg()
: m_pFirst( 0 ), m_pLast( 0 ) : m_pFirst( 0 ), m_pLast( 0 )
...@@ -282,7 +287,9 @@ void SwIndexReg::MoveTo( SwIndexReg& rArr ) ...@@ -282,7 +287,9 @@ void SwIndexReg::MoveTo( SwIndexReg& rArr )
#ifdef DBG_UTIL #ifdef DBG_UTIL
// -------
// SwIndex // SwIndex
// -------
sal_Int32 SwIndex::operator++(int) sal_Int32 SwIndex::operator++(int)
{ {
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_GETMETRICVAL_HXX #ifndef INCLUDED_SW_SOURCE_CORE_INC_GETMETRICVAL_HXX
#define 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_1 0 // 1 centimeter or 1/2 inch
#define CM_05 1 // 0.5 centimeter or 1/4 inch #define CM_05 1 // 0.5 centimeter or 1/4 inch
#define CM_01 2 // 0.1 centimeter or 1/20 inch #define CM_01 2 // 0.1 centimeter or 1/20 inch
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_SWPORTIONHANDLER_HXX #ifndef INCLUDED_SW_SOURCE_CORE_INC_SWPORTIONHANDLER_HXX
#define INCLUDED_SW_SOURCE_CORE_INC_SWPORTIONHANDLER_HXX #define INCLUDED_SW_SOURCE_CORE_INC_SWPORTIONHANDLER_HXX
#include <tools/solar.h>
#include <txttypes.hxx> #include <txttypes.hxx>
/** The SwPortionHandler interface implements a visitor for the layout /** The SwPortionHandler interface implements a visitor for the layout
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX #ifndef INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
#define INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX #define INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
#include <tools/solar.h>
#include <tools/debug.hxx> #include <tools/debug.hxx>
class SwTxtFrm; class SwTxtFrm;
......
...@@ -20,11 +20,13 @@ ...@@ -20,11 +20,13 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_LAYCACHE_HXX #ifndef INCLUDED_SW_SOURCE_CORE_INC_LAYCACHE_HXX
#define INCLUDED_SW_SOURCE_CORE_INC_LAYCACHE_HXX #define INCLUDED_SW_SOURCE_CORE_INC_LAYCACHE_HXX
#include <tools/solar.h>
class SwDoc; class SwDoc;
class SwLayCacheImpl; class SwLayCacheImpl;
class SvStream; class SvStream;
/* /*************************************************************************
* class SwLayoutCache * class SwLayoutCache
* *
* This class allows to save layout information in the file and it contains * This class allows to save layout information in the file and it contains
...@@ -37,8 +39,7 @@ class SvStream; ...@@ -37,8 +39,7 @@ class SvStream;
* if somebody reads the information, he increments the lock count by 1, * if somebody reads the information, he increments the lock count by 1,
* during the Read(..) function the lock count will set to $8000. * during the Read(..) function the lock count will set to $8000.
* *
*/ **************************************************************************/
class SwLayoutCache class SwLayoutCache
{ {
SwLayCacheImpl *pImpl; SwLayCacheImpl *pImpl;
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOFLDMID_H #ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOFLDMID_H
#define 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 { namespace com { namespace sun { namespace star { namespace uno {
class Any; class Any;
} } } } } } } }
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#ifndef INCLUDED_SW_SOURCE_FILTER_HTML_HTMLFLY_HXX #ifndef INCLUDED_SW_SOURCE_FILTER_HTML_HTMLFLY_HXX
#define 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 <o3tl/sorted_vector.hxx>
#include <sal/types.h>
class SdrObject; class SdrObject;
class SwFrmFmt; class SwFrmFmt;
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#ifndef INCLUDED_SW_SOURCE_FILTER_INC_RTF_HXX #ifndef INCLUDED_SW_SOURCE_FILTER_INC_RTF_HXX
#define INCLUDED_SW_SOURCE_FILTER_INC_RTF_HXX #define INCLUDED_SW_SOURCE_FILTER_INC_RTF_HXX
#include <tools/solar.h>
class RTFSurround class RTFSurround
{ {
union { union {
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_SOURCE_FILTER_INC_WRTSWTBL_HXX #ifndef INCLUDED_SW_SOURCE_FILTER_INC_WRTSWTBL_HXX
#define INCLUDED_SW_SOURCE_FILTER_INC_WRTSWTBL_HXX #define INCLUDED_SW_SOURCE_FILTER_INC_WRTSWTBL_HXX
#include <tools/solar.h>
#include <tools/color.hxx> #include <tools/color.hxx>
#include <boost/ptr_container/ptr_vector.hpp> #include <boost/ptr_container/ptr_vector.hpp>
#include <o3tl/sorted_vector.hxx> #include <o3tl/sorted_vector.hxx>
...@@ -33,13 +34,18 @@ class SvxBrushItem; ...@@ -33,13 +34,18 @@ class SvxBrushItem;
namespace editeng { class SvxBorderLine; } 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 COLFUZZY 20
#define ROWFUZZY 20 #define ROWFUZZY 20
#define COL_DFLT_WIDTH ((2*COLFUZZY)+1) #define COL_DFLT_WIDTH ((2*COLFUZZY)+1)
#define ROW_DFLT_HEIGHT (2*ROWFUZZY)+1 #define ROW_DFLT_HEIGHT (2*ROWFUZZY)+1
//-----------------------------------------------------------------------
class SW_DLLPUBLIC SwWriteTableCell class SW_DLLPUBLIC SwWriteTableCell
{ {
const SwTableBox *pBox; // SwTableBox der Zelle const SwTableBox *pBox; // SwTableBox der Zelle
...@@ -91,6 +97,9 @@ public: ...@@ -91,6 +97,9 @@ public:
typedef boost::ptr_vector<SwWriteTableCell> SwWriteTableCells; typedef boost::ptr_vector<SwWriteTableCell> SwWriteTableCells;
//-----------------------------------------------------------------------
class SW_DLLPUBLIC SwWriteTableRow class SW_DLLPUBLIC SwWriteTableRow
{ {
SwWriteTableCells aCells; // Alle Zellen der Rows SwWriteTableCells aCells; // Alle Zellen der Rows
...@@ -159,6 +168,9 @@ public: ...@@ -159,6 +168,9 @@ public:
~SwWriteTableRows() { DeleteAndDestroyAll(); } ~SwWriteTableRows() { DeleteAndDestroyAll(); }
}; };
//-----------------------------------------------------------------------
class SW_DLLPUBLIC SwWriteTableCol class SW_DLLPUBLIC SwWriteTableCol
{ {
sal_uInt32 nPos; // End Position der Spalte sal_uInt32 nPos; // End Position der Spalte
...@@ -218,6 +230,8 @@ public: ...@@ -218,6 +230,8 @@ public:
~SwWriteTableCols() { DeleteAndDestroyAll(); } ~SwWriteTableCols() { DeleteAndDestroyAll(); }
}; };
//-----------------------------------------------------------------------
class SW_DLLPUBLIC SwWriteTable class SW_DLLPUBLIC SwWriteTable
{ {
protected: protected:
...@@ -310,6 +324,9 @@ public: ...@@ -310,6 +324,9 @@ public:
const SwWriteTableRows& GetRows() const { return aRows; } const SwWriteTableRows& GetRows() const { return aRows; }
}; };
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <vector> #include <vector>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <boost/shared_array.hpp> #include <boost/shared_array.hpp>
#include <tools/solar.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <tools/stream.hxx> #include <tools/stream.hxx>
#include <IDocumentExternalData.hxx> #include <IDocumentExternalData.hxx>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef INCLUDED_SW_SOURCE_FILTER_XML_XMLEXPIT_HXX #ifndef INCLUDED_SW_SOURCE_FILTER_XML_XMLEXPIT_HXX
#define INCLUDED_SW_SOURCE_FILTER_XML_XMLEXPIT_HXX #define INCLUDED_SW_SOURCE_FILTER_XML_XMLEXPIT_HXX
#include <tools/solar.h>
#include "xmlitmap.hxx" #include "xmlitmap.hxx"
#include <vector> #include <vector>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#define INCLUDED_SW_SOURCE_FILTER_XML_XMLIMPIT_HXX #define INCLUDED_SW_SOURCE_FILTER_XML_XMLIMPIT_HXX
#include <limits.h> #include <limits.h>
#include <tools/solar.h>
#include <com/sun/star/xml/sax/XAttributeList.hpp> #include <com/sun/star/xml/sax/XAttributeList.hpp>
#include "xmlitmap.hxx" #include "xmlitmap.hxx"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define INCLUDED_SW_SOURCE_FILTER_XML_XMLITEM_HXX #define INCLUDED_SW_SOURCE_FILTER_XML_XMLITEM_HXX
#include <com/sun/star/xml/sax/XAttributeList.hpp> #include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <tools/solar.h>
#include <limits.h> #include <limits.h>
#include <xmloff/xmlictxt.hxx> #include <xmloff/xmlictxt.hxx>
...@@ -62,6 +63,7 @@ public: ...@@ -62,6 +63,7 @@ public:
const SvXMLItemMapEntry& rEntry, const SvXMLItemMapEntry& rEntry,
const SvXMLUnitConverter& rUnitConv ); const SvXMLUnitConverter& rUnitConv );
}; };
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#ifndef INCLUDED_SW_SOURCE_UI_INC_FLDMGR_HXX #ifndef INCLUDED_SW_SOURCE_UI_INC_FLDMGR_HXX
#define INCLUDED_SW_SOURCE_UI_INC_FLDMGR_HXX #define INCLUDED_SW_SOURCE_UI_INC_FLDMGR_HXX
#include <sal/types.h>
#include "swdllapi.h" #include "swdllapi.h"
#include "swtypes.hxx" #include "swtypes.hxx"
#include <com/sun/star/uno/Reference.h> #include <com/sun/star/uno/Reference.h>
...@@ -44,9 +43,9 @@ class SvxMacroItem; ...@@ -44,9 +43,9 @@ class SvxMacroItem;
class SvNumberFormatter; class SvNumberFormatter;
class Window; class Window;
/* /*--------------------------------------------------------------------
Description: the groups of fields Description: the groups of fields
*/ --------------------------------------------------------------------*/
enum SwFldGroups enum SwFldGroups
{ {
GRP_DOC, GRP_DOC,
...@@ -63,17 +62,17 @@ struct SwFldGroupRgn ...@@ -63,17 +62,17 @@ struct SwFldGroupRgn
sal_uInt16 nEnd; sal_uInt16 nEnd;
}; };
/* /*--------------------------------------------------------------------
Description: the field manager handles the insertation of fields Description: the field manager handles the insertation of fields
with command strings with command strings
*/ --------------------------------------------------------------------*/
struct SwInsertFld_Data struct SwInsertFld_Data
{ {
sal_uInt16 nTypeId; sal_uInt16 nTypeId;
sal_uInt16 nSubType; sal_uInt16 nSubType;
const OUString sPar1; const OUString sPar1;
const OUString sPar2; const OUString sPar2;
sal_uIntPtr nFormatId; sal_uLong nFormatId;
SwWrtShell* pSh; SwWrtShell* pSh;
sal_Unicode cSeparator; sal_Unicode cSeparator;
sal_Bool bIsAutomaticLanguage; sal_Bool bIsAutomaticLanguage;
...@@ -83,7 +82,7 @@ struct SwInsertFld_Data ...@@ -83,7 +82,7 @@ struct SwInsertFld_Data
Window* pParent; // parent dialog used for SwWrtShell::StartInputFldDlg() Window* pParent; // parent dialog used for SwWrtShell::StartInputFldDlg()
SwInsertFld_Data(sal_uInt16 nType, sal_uInt16 nSub, const OUString& rPar1, const OUString& rPar2, SwInsertFld_Data(sal_uInt16 nType, sal_uInt16 nSub, const OUString& rPar1, const OUString& rPar2,
sal_uIntPtr nFmtId, SwWrtShell* pShell = NULL, sal_Unicode cSep = ' ', sal_Bool bIsAutoLanguage = sal_True) : sal_uLong nFmtId, SwWrtShell* pShell = NULL, sal_Unicode cSep = ' ', sal_Bool bIsAutoLanguage = sal_True) :
nTypeId(nType), nTypeId(nType),
nSubType(nSub), nSubType(nSub),
sPar1(rPar1), sPar1(rPar1),
...@@ -115,7 +114,7 @@ private: ...@@ -115,7 +114,7 @@ private:
OUString sMacroPath; OUString sMacroPath;
OUString sMacroName; OUString sMacroName;
sal_uIntPtr nCurFmt; sal_uLong nCurFmt;
sal_Bool bEvalExp; sal_Bool bEvalExp;
SAL_DLLPRIVATE sal_uInt16 GetCurrLanguage() const; SAL_DLLPRIVATE sal_uInt16 GetCurrLanguage() const;
...@@ -135,14 +134,14 @@ public: ...@@ -135,14 +134,14 @@ public:
sal_Bool InsertFld( const SwInsertFld_Data& rData ); sal_Bool InsertFld( const SwInsertFld_Data& rData );
// change the current field directly // change the current field directly
void UpdateCurFld(sal_uIntPtr nFormat, void UpdateCurFld(sal_uLong nFormat,
const OUString& rPar1, const OUString& rPar1,
const OUString& rPar2, const OUString& rPar2,
SwField * _pField = 0); // #111840# SwField * _pField = 0); // #111840#
OUString GetCurFldPar1() const { return aCurPar1; } OUString GetCurFldPar1() const { return aCurPar1; }
OUString GetCurFldPar2() const { return aCurPar2; } OUString GetCurFldPar2() const { return aCurPar2; }
inline sal_uIntPtr GetCurFldFmt() const; inline sal_uLong GetCurFldFmt() const;
// determine a field // determine a field
SwField* GetCurFld(); SwField* GetCurFld();
...@@ -197,9 +196,9 @@ public: ...@@ -197,9 +196,9 @@ public:
// format to a type // format to a type
sal_uInt16 GetFormatCount(sal_uInt16 nTypeId, bool bIsText, sal_Bool bHtmlMode = sal_False) const; sal_uInt16 GetFormatCount(sal_uInt16 nTypeId, bool bIsText, sal_Bool bHtmlMode = sal_False) const;
OUString GetFormatStr(sal_uInt16 nTypeId, sal_uIntPtr nFormatId) const; OUString GetFormatStr(sal_uInt16 nTypeId, sal_uLong nFormatId) const;
sal_uInt16 GetFormatId(sal_uInt16 nTypeId, sal_uIntPtr nFormatId) const; sal_uInt16 GetFormatId(sal_uInt16 nTypeId, sal_uLong nFormatId) const;
sal_uIntPtr GetDefaultFormat(sal_uInt16 nTypeId, bool bIsText, SvNumberFormatter* pFormatter, double* pVal = 0L); sal_uLong GetDefaultFormat(sal_uInt16 nTypeId, bool bIsText, SvNumberFormatter* pFormatter, double* pVal = 0L);
// turn off evaluation of expression fields for insertation // turn off evaluation of expression fields for insertation
// of many expressino fields (see labels) // of many expressino fields (see labels)
...@@ -211,7 +210,7 @@ public: ...@@ -211,7 +210,7 @@ public:
inline void SwFldMgr::SetEvalExpFlds(sal_Bool bEval) inline void SwFldMgr::SetEvalExpFlds(sal_Bool bEval)
{ bEvalExp = bEval; } { bEvalExp = bEval; }
inline sal_uIntPtr SwFldMgr::GetCurFldFmt() const inline sal_uLong SwFldMgr::GetCurFldFmt() const
{ return nCurFmt; } { return nCurFmt; }
#endif #endif
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_SOURCE_UI_INC_INITUI_HXX #ifndef INCLUDED_SW_SOURCE_UI_INC_INITUI_HXX
#define INCLUDED_SW_SOURCE_UI_INC_INITUI_HXX #define INCLUDED_SW_SOURCE_UI_INC_INITUI_HXX
#include "tools/solar.h"
#include "swdllapi.h" #include "swdllapi.h"
#include "rtl/ustring.hxx" #include "rtl/ustring.hxx"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#ifndef INCLUDED_SW_SOURCE_UI_UIVIEW_VIEWFUNC_HXX #ifndef INCLUDED_SW_SOURCE_UI_UIVIEW_VIEWFUNC_HXX
#define INCLUDED_SW_SOURCE_UI_UIVIEW_VIEWFUNC_HXX #define INCLUDED_SW_SOURCE_UI_UIVIEW_VIEWFUNC_HXX
#include <tools/solar.h>
class ImageButton; class ImageButton;
class Point; class Point;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment