diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-06-06 19:48:48 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-06-06 19:49:56 +0200 |
commit | 9eb4e4dc51a4448d59ee80f39144387c7b3cffaf (patch) | |
tree | ca154ba2b8c61f87e7d772a4ed58134f6d73375b /sw/inc/authfld.hxx | |
parent | 44c133ef996e32ebdfc9560bcf14b0cd77196a9e (diff) |
Some more modules at least building with mingw64
Change-Id: I3ea039655aecb7885bb310b1f2c29d66f9f7bb4f
Diffstat (limited to 'sw/inc/authfld.hxx')
-rw-r--r-- | sw/inc/authfld.hxx | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx index 44732969b774..7df89db5f97f 100644 --- a/sw/inc/authfld.hxx +++ b/sw/inc/authfld.hxx @@ -58,16 +58,16 @@ typedef boost::ptr_vector<SwAuthEntry> SwAuthDataArr; class SW_DLLPUBLIC SwAuthorityFieldType : public SwFieldType { - SwDoc* m_pDoc; - SwAuthDataArr m_DataArr; - std::vector<long> m_SequArr; - SortKeyArr m_SortKeyArr; - sal_Unicode m_cPrefix; - sal_Unicode m_cSuffix; - sal_Bool m_bIsSequence :1; - sal_Bool m_bSortByDocument :1; - LanguageType m_eLanguage; - String m_sSortAlgorithm; + SwDoc* m_pDoc; + SwAuthDataArr m_DataArr; + std::vector<sal_IntPtr> m_SequArr; + SortKeyArr m_SortKeyArr; + sal_Unicode m_cPrefix; + sal_Unicode m_cSuffix; + sal_Bool m_bIsSequence :1; + sal_Bool m_bSortByDocument :1; + LanguageType m_eLanguage; + String m_sSortAlgorithm; protected: virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew ); @@ -81,29 +81,29 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhichId ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhichId ); - inline void SetDoc(SwDoc* pNewDoc) { m_pDoc = pNewDoc; } - SwDoc* GetDoc(){ return m_pDoc; } - void RemoveField(long nHandle); - long AddField(const String& rFieldContents); - sal_Bool AddField(long nHandle); + inline void SetDoc(SwDoc* pNewDoc) { m_pDoc = pNewDoc; } + SwDoc* GetDoc(){ return m_pDoc; } + void RemoveField(sal_IntPtr nHandle); + sal_IntPtr AddField(const String& rFieldContents); + sal_Bool AddField(sal_IntPtr nHandle); void DelSequenceArray() { m_SequArr.clear(); } - const SwAuthEntry* GetEntryByHandle(long nHandle) const; + const SwAuthEntry* GetEntryByHandle(sal_IntPtr nHandle) const; void GetAllEntryIdentifiers( std::vector<String>& rToFill )const; const SwAuthEntry* GetEntryByIdentifier(const String& rIdentifier)const; bool ChangeEntryContent(const SwAuthEntry* pNewEntry); // import interface - sal_uInt16 AppendField(const SwAuthEntry& rInsert); - long GetHandle(sal_uInt16 nPos); + sal_uInt16 AppendField(const SwAuthEntry& rInsert); + sal_IntPtr GetHandle(sal_uInt16 nPos); - sal_uInt16 GetSequencePos(long nHandle); + sal_uInt16 GetSequencePos(sal_IntPtr nHandle); - sal_Bool IsSequence() const {return m_bIsSequence;} + sal_Bool IsSequence() const {return m_bIsSequence;} void SetSequence(sal_Bool bSet) { DelSequenceArray(); @@ -118,14 +118,14 @@ public: sal_Unicode GetPrefix() const { return m_cPrefix;} sal_Unicode GetSuffix() const { return m_cSuffix;} - sal_Bool IsSortByDocument() const {return m_bSortByDocument;} + sal_Bool IsSortByDocument() const {return m_bSortByDocument;} void SetSortByDocument(sal_Bool bSet) { DelSequenceArray(); m_bSortByDocument = bSet; } - sal_uInt16 GetSortKeyCount() const ; + sal_uInt16 GetSortKeyCount() const ; const SwTOXSortKey* GetSortKey(sal_uInt16 nIdx) const ; void SetSortKeys(sal_uInt16 nKeyCount, SwTOXSortKey nKeys[]); @@ -143,15 +143,15 @@ public: class SwAuthorityField : public SwField { - long m_nHandle; - mutable long m_nTempSequencePos; + sal_IntPtr m_nHandle; + mutable sal_IntPtr m_nTempSequencePos; virtual String Expand() const; virtual SwField* Copy() const; public: SwAuthorityField(SwAuthorityFieldType* pType, const String& rFieldContents); - SwAuthorityField(SwAuthorityFieldType* pType, long nHandle); + SwAuthorityField(SwAuthorityFieldType* pType, sal_IntPtr nHandle); ~SwAuthorityField(); const String& GetFieldText(ToxAuthorityField eField) const; @@ -162,7 +162,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhichId ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhichId ); - long GetHandle() const { return m_nHandle; } + sal_IntPtr GetHandle() const { return m_nHandle; } virtual String GetDescription() const; }; |