diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-08-23 09:55:53 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-08-23 09:55:53 +0000 |
commit | 4dfa548d127643036319019920849b6d73f226f0 (patch) | |
tree | 8ae2b4e2b27363d14346f6e80b47c9454d1d750a /sw/inc/fldbas.hxx | |
parent | 4fb15982a3b1ca3f656fb49a7a93ac340d31d32e (diff) |
INTEGRATION: CWS tune03 (1.6.500); FILE MERGED
2004/08/16 19:17:30 mhu 1.6.500.2: #i29979# Finetuned a few more exports for GCC 3.4 and MSVC++.
2004/07/19 19:10:32 mhu 1.6.500.1: #i29979# Added SW_DLLPUBLIC/PRIVATE (see swdllapi.h) to exported symbols/classes.
Diffstat (limited to 'sw/inc/fldbas.hxx')
-rw-r--r-- | sw/inc/fldbas.hxx | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx index 2b650e8562a5..a5ed81f87580 100644 --- a/sw/inc/fldbas.hxx +++ b/sw/inc/fldbas.hxx @@ -2,9 +2,9 @@ * * $RCSfile: fldbas.hxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: obo $ $Date: 2004-08-12 12:02:17 $ + * last change: $Author: rt $ $Date: 2004-08-23 10:55:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -72,6 +72,10 @@ #ifndef _STRING_HXX //autogen #include <tools/string.hxx> #endif + +#ifndef INCLUDED_SWDLLAPI_H +#include "swdllapi.h" +#endif #ifndef _CALBCK_HXX #include <calbck.hxx> #endif @@ -307,7 +311,7 @@ class SwFldNames; DBG_NAMEEX(SwFieldType); -class SwFieldType : public SwModify +class SW_DLLPUBLIC SwFieldType : public SwModify { USHORT nWhich; @@ -315,8 +319,10 @@ class SwFieldType : public SwModify static SvStringsDtor* pFldNames; static void _GetFldName(); // legt die FldNames an, fldmgr.cxx! + protected: - SwFieldType( USHORT nWhichId ); + // single argument ctors shall be explicit. + explicit SwFieldType( USHORT nWhichId ); public: @@ -334,8 +340,6 @@ public: USHORT Which() const { return nWhich; } inline void UpdateFlds() const; - - static inline SvStringsDtor* GetFldNames(); }; inline void SwFieldType::UpdateFlds() const @@ -350,17 +354,19 @@ inline void SwFieldType::UpdateFlds() const des Feldes in Erfahrung gebracht. --------------------------------------------------------------------*/ -class SwField +class SW_DLLPUBLIC SwField { USHORT nLang; // Immer ueber SetLanguage aendern! BOOL bIsAutomaticLanguage; ULONG nFormat; SwFieldType* pType; + protected: void SetFormat(ULONG nSet) {nFormat = nSet;} SwField(SwFieldType* pTyp, ULONG nFmt = 0, USHORT nLang = LANGUAGE_SYSTEM); + public: virtual ~SwField(); @@ -451,7 +457,7 @@ public: void DoubleToString(String &rValue, const double &rVal, ULONG nFmt) const; }; -class SwValueField : public SwField +class SW_DLLPUBLIC SwValueField : public SwField { double fValue; // String sExpand; @@ -496,13 +502,6 @@ public: }; -inline SvStringsDtor* SwFieldType::GetFldNames() -{ - if( !SwFieldType::pFldNames ) - SwFieldType::_GetFldName(); - return SwFieldType::pFldNames; -} - #endif // FIELDIDS_ONLY |