Kaydet (Commit) 42def53f authored tarafından Caolán McNamara's avatar Caolán McNamara

remove unnecessary tools/string.hxx includes

Change-Id: I8ed341aeef90584dfc545a794f999e3adc08dd72
üst 91e181ea
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
#ifndef _MyEDITDATA_HXX #ifndef _MyEDITDATA_HXX
#define _MyEDITDATA_HXX #define _MyEDITDATA_HXX
#include <tools/string.hxx> #include <rtl/ustring.hxx>
#include <tools/solar.h>
#include "editeng/editengdllapi.h" #include "editeng/editengdllapi.h"
class SfxItemSet; class SfxItemSet;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <i18nlangtag/lang.h> #include <i18nlangtag/lang.h>
#include "editeng/editengdllapi.h" #include "editeng/editengdllapi.h"
#include <tools/lineend.hxx>
#include <tools/rtti.hxx> // due to typedef TypeId #include <tools/rtti.hxx> // due to typedef TypeId
#include <editeng/eedata.hxx> #include <editeng/eedata.hxx>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <i18nlangtag/languagetag.hxx> #include <i18nlangtag/languagetag.hxx>
#include <tools/time.hxx> #include <tools/time.hxx>
#include <tools/date.hxx> #include <tools/date.hxx>
#include <tools/string.hxx>
#include <editeng/swafopt.hxx> #include <editeng/swafopt.hxx>
#include "editeng/editengdllapi.h" #include "editeng/editengdllapi.h"
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "formula/grammar.hxx" #include "formula/grammar.hxx"
#include "formula/token.hxx" #include "formula/token.hxx"
#include "formula/ExternalReferenceHelper.hxx" #include "formula/ExternalReferenceHelper.hxx"
#include <tools/string.hxx>
#define FORMULA_MAXJUMPCOUNT 32 /* maximum number of jumps (ocChose) */ #define FORMULA_MAXJUMPCOUNT 32 /* maximum number of jumps (ocChose) */
#define FORMULA_MAXTOKENS 8192 /* maximum number of tokens in formula */ #define FORMULA_MAXTOKENS 8192 /* maximum number of tokens in formula */
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define _GALLERY_HXX_ #define _GALLERY_HXX_
#include <tools/solar.h> #include <tools/solar.h>
#include <tools/string.hxx>
#include <tools/urlobj.hxx> #include <tools/urlobj.hxx>
#include <vector> #include <vector>
#include "svx/svxdllapi.h" #include "svx/svxdllapi.h"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <vector> #include <vector>
#include <editeng/numitem.hxx> #include <editeng/numitem.hxx>
#include <tools/string.hxx>
#include <vcl/font.hxx> #include <vcl/font.hxx>
namespace svx { namespace sidebar { namespace svx { namespace sidebar {
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#ifndef _SVX_NUMFMTSH_HXX #ifndef _SVX_NUMFMTSH_HXX
#define _SVX_NUMFMTSH_HXX #define _SVX_NUMFMTSH_HXX
#include <tools/string.hxx>
#include <i18nlangtag/lang.h> #include <i18nlangtag/lang.h>
#include "svx/svxdllapi.h" #include "svx/svxdllapi.h"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define SC_USERLIST_HXX #define SC_USERLIST_HXX
#include <tools/stream.hxx> #include <tools/stream.hxx>
#include <tools/string.hxx>
#include "scdllapi.h" #include "scdllapi.h"
#include <boost/ptr_container/ptr_vector.hpp> #include <boost/ptr_container/ptr_vector.hpp>
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <com/sun/star/sheet/ExternalLinkType.hpp> #include <com/sun/star/sheet/ExternalLinkType.hpp>
#include <comphelper/string.hxx> #include <comphelper/string.hxx>
#include <sfx2/objsh.hxx> #include <sfx2/objsh.hxx>
#include <tools/string.hxx>
#include <tools/urlobj.hxx> #include <tools/urlobj.hxx>
using namespace ::com::sun::star; using namespace ::com::sun::star;
......
...@@ -362,13 +362,13 @@ sal_Bool ScAutoFormatDataField::Load( SvStream& rStream, const ScAfVersions& rVe ...@@ -362,13 +362,13 @@ sal_Bool ScAutoFormatDataField::Load( SvStream& rStream, const ScAfVersions& rVe
if( 0 == rVersions.nNumFmtVersion ) if( 0 == rVersions.nNumFmtVersion )
{ {
// --- from 680/dr25 on: store strings as UTF-8 // --- from 680/dr25 on: store strings as UTF-8
CharSet eCharSet = (nVer >= AUTOFORMAT_ID_680DR25) ? RTL_TEXTENCODING_UTF8 : rStream.GetStreamCharSet(); rtl_TextEncoding eCharSet = (nVer >= AUTOFORMAT_ID_680DR25) ? RTL_TEXTENCODING_UTF8 : rStream.GetStreamCharSet();
aNumFormat.Load( rStream, eCharSet ); aNumFormat.Load( rStream, eCharSet );
} }
// adjust charset in font // adjust charset in font
CharSet eSysSet = osl_getThreadTextEncoding(); rtl_TextEncoding eSysSet = osl_getThreadTextEncoding();
CharSet eSrcSet = rStream.GetStreamCharSet(); rtl_TextEncoding eSrcSet = rStream.GetStreamCharSet();
if( eSrcSet != eSysSet && aFont.GetCharSet() == eSrcSet ) if( eSrcSet != eSysSet && aFont.GetCharSet() == eSrcSet )
aFont.SetCharSet(eSysSet); aFont.SetCharSet(eSysSet);
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include "ftools.hxx" #include "ftools.hxx"
#include <osl/thread.h>
#include <rtl/strbuf.hxx> #include <rtl/strbuf.hxx>
#include <tools/color.hxx> #include <tools/color.hxx>
#include <unotools/charclass.hxx> #include <unotools/charclass.hxx>
......
...@@ -260,7 +260,7 @@ sal_uLong SwASCIIParser::ReadChars() ...@@ -260,7 +260,7 @@ sal_uLong SwASCIIParser::ReadChars()
{ {
sal_uLong nLen, nOrig; sal_uLong nLen, nOrig;
nOrig = nLen = rInput.Read(pArr, ASC_BUFFLEN); nOrig = nLen = rInput.Read(pArr, ASC_BUFFLEN);
CharSet eCharSet; rtl_TextEncoding eCharSet;
bool bRet = SwIoSystem::IsDetectableText(pArr, nLen, &eCharSet, &bSwapUnicode); bool bRet = SwIoSystem::IsDetectableText(pArr, nLen, &eCharSet, &bSwapUnicode);
OSL_ENSURE(bRet, "Autodetect of text import without nag dialog must " OSL_ENSURE(bRet, "Autodetect of text import without nag dialog must "
"have failed"); "have failed");
...@@ -276,7 +276,7 @@ sal_uLong SwASCIIParser::ReadChars() ...@@ -276,7 +276,7 @@ sal_uLong SwASCIIParser::ReadChars()
rtl_TextToUnicodeConverter hConverter=0; rtl_TextToUnicodeConverter hConverter=0;
rtl_TextToUnicodeContext hContext=0; rtl_TextToUnicodeContext hContext=0;
CharSet currentCharSet = pUseMe->GetCharSet(); rtl_TextEncoding currentCharSet = pUseMe->GetCharSet();
if (RTL_TEXTENCODING_UCS2 != currentCharSet) if (RTL_TEXTENCODING_UCS2 != currentCharSet)
{ {
if( currentCharSet == RTL_TEXTENCODING_DONTKNOW ) if( currentCharSet == RTL_TEXTENCODING_DONTKNOW )
......
...@@ -529,7 +529,7 @@ class SwFltShell ...@@ -529,7 +529,7 @@ class SwFltShell
// //
OUString sBaseURL; OUString sBaseURL;
sal_uInt16 nPageDescOffset; // fuers update der pagedescs sal_uInt16 nPageDescOffset; // fuers update der pagedescs
CharSet eSrcCharSet; // charset der quelle rtl_TextEncoding eSrcCharSet; // charset der quelle
friend class SwFltControlStack; friend class SwFltControlStack;
sal_Bool bNewDoc; sal_Bool bNewDoc;
sal_Bool bStdPD; sal_Bool bStdPD;
...@@ -541,7 +541,7 @@ public: ...@@ -541,7 +541,7 @@ public:
SwDoc& GetDoc() { return *aStack.pDoc; } SwDoc& GetDoc() { return *aStack.pDoc; }
CharSet SetCharSet(CharSet eNew) { CharSet eOld = eSrcCharSet; rtl_TextEncoding SetCharSet(rtl_TextEncoding eNew) { rtl_TextEncoding eOld = eSrcCharSet;
eSrcCharSet = eNew; eSrcCharSet = eNew;
return eOld; return eOld;
} }
......
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