Kaydet (Commit) 10e4396d authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

com::sun::star->css in sal,sax

Change-Id: I24e202b1f8071fe918e4e164b5fa1c08a561cb24
Reviewed-on: https://gerrit.libreoffice.org/19626Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst d95a27f9
...@@ -70,8 +70,8 @@ public: ...@@ -70,8 +70,8 @@ public:
private: private:
LONG m_nRefCnt; LONG m_nRefCnt;
//CWinClipboard& m_rCWinClipboard; //CWinClipboard& m_rCWinClipboard;
//const const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& m_rXClipboardOwner; //const const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner >& m_rXClipboardOwner;
//const const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& m_rXTDataSource; //const const css::uno::Reference< css::datatransfer::XTransferable >& m_rXTDataSource;
//friend class CWinClipboard; //friend class CWinClipboard;
friend class CEnumFormatEtc; friend class CEnumFormatEtc;
......
...@@ -31,18 +31,18 @@ public: ...@@ -31,18 +31,18 @@ public:
Text2UnicodeConverter( const OString & sEncoding ); Text2UnicodeConverter( const OString & sEncoding );
~Text2UnicodeConverter(); ~Text2UnicodeConverter();
::com::sun::star::uno::Sequence < sal_Unicode > convert( const ::com::sun::star::uno::Sequence<sal_Int8> & ); css::uno::Sequence < sal_Unicode > convert( const css::uno::Sequence<sal_Int8> & );
bool canContinue() { return m_bCanContinue; } bool canContinue() { return m_bCanContinue; }
private: private:
void init( rtl_TextEncoding encoding ); void init( rtl_TextEncoding encoding );
rtl_TextToUnicodeConverter m_convText2Unicode; rtl_TextToUnicodeConverter m_convText2Unicode;
rtl_TextToUnicodeContext m_contextText2Unicode; rtl_TextToUnicodeContext m_contextText2Unicode;
bool m_bCanContinue; bool m_bCanContinue;
bool m_bInitialized; bool m_bInitialized;
rtl_TextEncoding m_rtlEncoding; rtl_TextEncoding m_rtlEncoding;
::com::sun::star::uno::Sequence<sal_Int8> m_seqSource; css::uno::Sequence<sal_Int8> m_seqSource;
}; };
/*---------------------------------------- /*----------------------------------------
...@@ -56,18 +56,18 @@ public: ...@@ -56,18 +56,18 @@ public:
Unicode2TextConverter( rtl_TextEncoding encoding ); Unicode2TextConverter( rtl_TextEncoding encoding );
~Unicode2TextConverter(); ~Unicode2TextConverter();
::com::sun::star::uno::Sequence<sal_Int8> convert( const sal_Unicode * , sal_Int32 nLength ); css::uno::Sequence<sal_Int8> convert( const sal_Unicode * , sal_Int32 nLength );
bool canContinue() { return m_bCanContinue; } bool canContinue() { return m_bCanContinue; }
private: private:
void init( rtl_TextEncoding encoding ); void init( rtl_TextEncoding encoding );
rtl_UnicodeToTextConverter m_convUnicode2Text; rtl_UnicodeToTextConverter m_convUnicode2Text;
rtl_UnicodeToTextContext m_contextUnicode2Text; rtl_UnicodeToTextContext m_contextUnicode2Text;
bool m_bCanContinue; bool m_bCanContinue;
bool m_bInitialized; bool m_bInitialized;
rtl_TextEncoding m_rtlEncoding; rtl_TextEncoding m_rtlEncoding;
::com::sun::star::uno::Sequence<sal_Unicode> m_seqSource; css::uno::Sequence<sal_Unicode> m_seqSource;
}; };
...@@ -88,39 +88,39 @@ public: ...@@ -88,39 +88,39 @@ public:
~XMLFile2UTFConverter(); ~XMLFile2UTFConverter();
void setInputStream( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > &r ) { m_in = r; } void setInputStream( css::uno::Reference< css::io::XInputStream > &r ) { m_in = r; }
void setEncoding( const OString &s ) { m_sEncoding = s; } void setEncoding( const OString &s ) { m_sEncoding = s; }
// @param nMaxToRead The number of chars, that should be read. Note that this is no exact number. There // @param nMaxToRead The number of chars, that should be read. Note that this is no exact number. There
// may be returned less or more bytes than ordered. // may be returned less or more bytes than ordered.
sal_Int32 readAndConvert( ::com::sun::star::uno::Sequence<sal_Int8> &seq , sal_Int32 nMaxToRead ) sal_Int32 readAndConvert( css::uno::Sequence<sal_Int8> &seq , sal_Int32 nMaxToRead )
throw ( ::com::sun::star::io::IOException, throw ( css::io::IOException,
::com::sun::star::io::NotConnectedException , css::io::NotConnectedException ,
::com::sun::star::io::BufferSizeExceededException , css::io::BufferSizeExceededException ,
::com::sun::star::uno::RuntimeException ); css::uno::RuntimeException );
private: private:
// Called only on first Sequence of bytes. Tries to figure out file format and encoding information. // Called only on first Sequence of bytes. Tries to figure out file format and encoding information.
// @return TRUE, when encoding information could be retrieved // @return TRUE, when encoding information could be retrieved
// @return FALSE, when no encoding information was found in file // @return FALSE, when no encoding information was found in file
bool scanForEncoding( ::com::sun::star::uno::Sequence<sal_Int8> &seq ); bool scanForEncoding( css::uno::Sequence<sal_Int8> &seq );
// Called only on first Sequence of bytes. Tries to figure out // Called only on first Sequence of bytes. Tries to figure out
// if enough data is available to scan encoding // if enough data is available to scan encoding
// @return TRUE, when encoding is retrievable // @return TRUE, when encoding is retrievable
// @return FALSE, when more data is needed // @return FALSE, when more data is needed
static bool isEncodingRecognizable( const ::com::sun::star::uno::Sequence< sal_Int8 > & seq ); static bool isEncodingRecognizable( const css::uno::Sequence< sal_Int8 > & seq );
// When encoding attribute is within the text (in the first line), it is removed. // When encoding attribute is within the text (in the first line), it is removed.
static void removeEncoding( ::com::sun::star::uno::Sequence<sal_Int8> &seq ); static void removeEncoding( css::uno::Sequence<sal_Int8> &seq );
// Initializes decoding depending on m_sEncoding setting // Initializes decoding depending on m_sEncoding setting
void initializeDecoding(); void initializeDecoding();
private: private:
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_in; css::uno::Reference< css::io::XInputStream > m_in;
bool m_bStarted; bool m_bStarted;
OString m_sEncoding; OString m_sEncoding;
......
...@@ -34,8 +34,8 @@ struct AttributeList_impl; ...@@ -34,8 +34,8 @@ struct AttributeList_impl;
//FIXME //FIXME
class AttributeList : class AttributeList :
public ::cppu::WeakImplHelper< public ::cppu::WeakImplHelper<
::com::sun::star::xml::sax::XAttributeList, css::xml::sax::XAttributeList,
::com::sun::star::util::XCloneable > css::util::XCloneable >
{ {
public: public:
AttributeList(); AttributeList();
...@@ -48,21 +48,21 @@ public: ...@@ -48,21 +48,21 @@ public:
public: public:
// XAttributeList // XAttributeList
virtual sal_Int16 SAL_CALL getLength() virtual sal_Int16 SAL_CALL getLength()
throw(::com::sun::star::uno::RuntimeException, std::exception) override; throw(css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getNameByIndex(sal_Int16 i) virtual OUString SAL_CALL getNameByIndex(sal_Int16 i)
throw(::com::sun::star::uno::RuntimeException, std::exception) override; throw(css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getTypeByIndex(sal_Int16 i) virtual OUString SAL_CALL getTypeByIndex(sal_Int16 i)
throw(::com::sun::star::uno::RuntimeException, std::exception) override; throw(css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getTypeByName(const OUString& aName) virtual OUString SAL_CALL getTypeByName(const OUString& aName)
throw(::com::sun::star::uno::RuntimeException, std::exception) override; throw(css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getValueByIndex(sal_Int16 i) virtual OUString SAL_CALL getValueByIndex(sal_Int16 i)
throw(::com::sun::star::uno::RuntimeException, std::exception) override; throw(css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL getValueByName(const OUString& aName) virtual OUString SAL_CALL getValueByName(const OUString& aName)
throw( ::com::sun::star::uno::RuntimeException, std::exception) override; throw( css::uno::RuntimeException, std::exception) override;
// XCloneable // XCloneable
virtual ::com::sun::star::uno::Reference< XCloneable > SAL_CALL virtual css::uno::Reference< XCloneable > SAL_CALL
createClone() throw(::com::sun::star::uno::RuntimeException, std::exception) override; createClone() throw(css::uno::RuntimeException, std::exception) override;
private: private:
struct AttributeList_impl *m_pImpl; struct AttributeList_impl *m_pImpl;
......
...@@ -80,12 +80,12 @@ namespace { ...@@ -80,12 +80,12 @@ namespace {
pThis->rDocumentLocator->getColumnNumber()\ pThis->rDocumentLocator->getColumnNumber()\
) );\ ) );\
}\ }\
catch( const com::sun::star::uno::RuntimeException &e ) {\ catch( const css::uno::RuntimeException &e ) {\
pThis->bExceptionWasThrown = true; \ pThis->bExceptionWasThrown = true; \
pThis->bRTExceptionWasThrown = true; \ pThis->bRTExceptionWasThrown = true; \
pImpl->rtexception = e; \ pImpl->rtexception = e; \
}\ }\
catch( const com::sun::star::uno::Exception &e ) {\ catch( const css::uno::Exception &e ) {\
pThis->bExceptionWasThrown = true; \ pThis->bExceptionWasThrown = true; \
pThis->bRTExceptionWasThrown = true; \ pThis->bRTExceptionWasThrown = true; \
pImpl->rtexception = WrappedTargetRuntimeException("Non-runtime UNO exception caught during parse", e.Context, makeAny(e)); \ pImpl->rtexception = WrappedTargetRuntimeException("Non-runtime UNO exception caught during parse", e.Context, makeAny(e)); \
...@@ -107,7 +107,7 @@ public: ...@@ -107,7 +107,7 @@ public:
SaxExpatParser(); SaxExpatParser();
virtual ~SaxExpatParser(); virtual ~SaxExpatParser();
// ::com::sun::star::lang::XInitialization: // css::lang::XInitialization:
virtual void SAL_CALL initialize(css::uno::Sequence<css::uno::Any> const& rArguments) virtual void SAL_CALL initialize(css::uno::Sequence<css::uno::Any> const& rArguments)
throw (css::uno::RuntimeException, css::uno::Exception, std::exception) override; throw (css::uno::RuntimeException, css::uno::Exception, std::exception) override;
...@@ -317,7 +317,7 @@ extern "C" ...@@ -317,7 +317,7 @@ extern "C"
// LocatorImpl // LocatorImpl
class LocatorImpl : class LocatorImpl :
public WeakImplHelper< XLocator, com::sun::star::io::XSeekable > public WeakImplHelper< XLocator, css::io::XSeekable >
// should use a different interface for stream positions! // should use a different interface for stream positions!
{ {
public: public:
...@@ -386,7 +386,7 @@ SaxExpatParser::~SaxExpatParser() ...@@ -386,7 +386,7 @@ SaxExpatParser::~SaxExpatParser()
delete m_pImpl; delete m_pImpl;
} }
// ::com::sun::star::lang::XInitialization: // css::lang::XInitialization:
void SAL_CALL void SAL_CALL
SaxExpatParser::initialize(css::uno::Sequence< css::uno::Any > const& rArguments) SaxExpatParser::initialize(css::uno::Sequence< css::uno::Any > const& rArguments)
throw (css::uno::RuntimeException, css::uno::Exception, std::exception) throw (css::uno::RuntimeException, css::uno::Exception, std::exception)
......
...@@ -116,12 +116,12 @@ struct SaxContext ...@@ -116,12 +116,12 @@ struct SaxContext
struct ParserData struct ParserData
{ {
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastDocumentHandler > mxDocumentHandler; css::uno::Reference< css::xml::sax::XFastDocumentHandler > mxDocumentHandler;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler > mxTokenHandler; css::uno::Reference< css::xml::sax::XFastTokenHandler > mxTokenHandler;
FastTokenHandlerBase *mpTokenHandler; FastTokenHandlerBase* mpTokenHandler;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XErrorHandler > mxErrorHandler; css::uno::Reference< css::xml::sax::XErrorHandler > mxErrorHandler;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XEntityResolver > mxEntityResolver; css::uno::Reference< css::xml::sax::XEntityResolver > mxEntityResolver;
::com::sun::star::lang::Locale maLocale; css::lang::Locale maLocale;
ParserData(); ParserData();
~ParserData(); ~ParserData();
...@@ -162,14 +162,14 @@ struct Entity : public ParserData ...@@ -162,14 +162,14 @@ struct Entity : public ParserData
// Allow to disable threading for small documents: // Allow to disable threading for small documents:
bool mbEnableThreads; bool mbEnableThreads;
::com::sun::star::xml::sax::InputSource maStructSource; css::xml::sax::InputSource maStructSource;
xmlParserCtxtPtr mpParser; xmlParserCtxtPtr mpParser;
::sax_expatwrap::XMLFile2UTFConverter maConverter; ::sax_expatwrap::XMLFile2UTFConverter maConverter;
// Exceptions cannot be thrown through the C-XmlParser (possible // Exceptions cannot be thrown through the C-XmlParser (possible
// resource leaks), therefore any exception thrown by a UNO callback // resource leaks), therefore any exception thrown by a UNO callback
// must be saved somewhere until the C-XmlParser is stopped. // must be saved somewhere until the C-XmlParser is stopped.
::com::sun::star::uno::Any maSavedException; css::uno::Any maSavedException;
void saveException( const Any & e ); void saveException( const Any & e );
void throwException( const ::rtl::Reference< FastLocatorImpl > &xDocumentLocator, void throwException( const ::rtl::Reference< FastLocatorImpl > &xDocumentLocator,
bool mbDuringParse ); bool mbDuringParse );
...@@ -204,14 +204,14 @@ public: ...@@ -204,14 +204,14 @@ public:
~FastSaxParserImpl(); ~FastSaxParserImpl();
// XFastParser // XFastParser
void parseStream( const ::com::sun::star::xml::sax::InputSource& aInputSource ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception); void parseStream( const css::xml::sax::InputSource& aInputSource ) throw (css::xml::sax::SAXException, css::io::IOException, css::uno::RuntimeException, std::exception);
void setFastDocumentHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastDocumentHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException); void setFastDocumentHandler( const css::uno::Reference< css::xml::sax::XFastDocumentHandler >& Handler ) throw (css::uno::RuntimeException);
void setTokenHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException); void setTokenHandler( const css::uno::Reference< css::xml::sax::XFastTokenHandler >& Handler ) throw (css::uno::RuntimeException);
void registerNamespace( const OUString& NamespaceURL, sal_Int32 NamespaceToken ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); void registerNamespace( const OUString& NamespaceURL, sal_Int32 NamespaceToken ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
OUString getNamespaceURL( const OUString& rPrefix ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); OUString getNamespaceURL( const OUString& rPrefix ) throw(css::lang::IllegalArgumentException, css::uno::RuntimeException);
void setErrorHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XErrorHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException); void setErrorHandler( const css::uno::Reference< css::xml::sax::XErrorHandler >& Handler ) throw (css::uno::RuntimeException);
void setEntityResolver( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XEntityResolver >& Resolver ) throw (::com::sun::star::uno::RuntimeException); void setEntityResolver( const css::uno::Reference< css::xml::sax::XEntityResolver >& Resolver ) throw (css::uno::RuntimeException);
void setLocale( const ::com::sun::star::lang::Locale& rLocale ) throw (::com::sun::star::uno::RuntimeException); void setLocale( const css::lang::Locale& rLocale ) throw (css::uno::RuntimeException);
// called by the C callbacks of the expat parser // called by the C callbacks of the expat parser
void callbackStartElement( const xmlChar *localName , const xmlChar* prefix, const xmlChar* URI, void callbackStartElement( const xmlChar *localName , const xmlChar* prefix, const xmlChar* URI,
...@@ -241,8 +241,8 @@ private: ...@@ -241,8 +241,8 @@ private:
void sendPendingCharacters(); void sendPendingCharacters();
sal_Int32 GetToken( const xmlChar* pName, sal_Int32 nameLen ); sal_Int32 GetToken( const xmlChar* pName, sal_Int32 nameLen );
sal_Int32 GetTokenWithPrefix( const xmlChar* pPrefix, int prefixLen, const xmlChar* pName, int nameLen ) throw (::com::sun::star::xml::sax::SAXException); sal_Int32 GetTokenWithPrefix( const xmlChar* pPrefix, int prefixLen, const xmlChar* pName, int nameLen ) throw (css::xml::sax::SAXException);
OUString GetNamespaceURL( const OString& rPrefix ) throw (::com::sun::star::xml::sax::SAXException); OUString GetNamespaceURL( const OString& rPrefix ) throw (css::xml::sax::SAXException);
sal_Int32 GetNamespaceToken( const OUString& rNamespaceURL ); sal_Int32 GetNamespaceToken( const OUString& rNamespaceURL );
sal_Int32 GetTokenWithContextNamespace( sal_Int32 nNamespaceToken, const xmlChar* pName, int nNameLen ); sal_Int32 GetTokenWithContextNamespace( sal_Int32 nNamespaceToken, const xmlChar* pName, int nNameLen );
void DefineNamespace( const OString& rPrefix, const OUString& namespaceURL ); void DefineNamespace( const OString& rPrefix, const OUString& namespaceURL );
......
...@@ -1297,7 +1297,7 @@ void Converter::convertDate( ...@@ -1297,7 +1297,7 @@ void Converter::convertDate(
static void convertTime( static void convertTime(
OUStringBuffer& i_rBuffer, OUStringBuffer& i_rBuffer,
const com::sun::star::util::DateTime& i_rDateTime) const css::util::DateTime& i_rDateTime)
{ {
if (i_rDateTime.Hours < 10) { if (i_rDateTime.Hours < 10) {
i_rBuffer.append('0'); i_rBuffer.append('0');
...@@ -1326,7 +1326,7 @@ static void convertTime( ...@@ -1326,7 +1326,7 @@ static void convertTime(
static void convertTimeZone( static void convertTimeZone(
OUStringBuffer& i_rBuffer, OUStringBuffer& i_rBuffer,
const com::sun::star::util::DateTime& i_rDateTime, const css::util::DateTime& i_rDateTime,
sal_Int16 const* pTimeZoneOffset) sal_Int16 const* pTimeZoneOffset)
{ {
if (pTimeZoneOffset) if (pTimeZoneOffset)
...@@ -1342,7 +1342,7 @@ static void convertTimeZone( ...@@ -1342,7 +1342,7 @@ static void convertTimeZone(
/** convert util::DateTime to ISO "time" or "dateTime" string */ /** convert util::DateTime to ISO "time" or "dateTime" string */
void Converter::convertTimeOrDateTime( void Converter::convertTimeOrDateTime(
OUStringBuffer& i_rBuffer, OUStringBuffer& i_rBuffer,
const com::sun::star::util::DateTime& i_rDateTime, const css::util::DateTime& i_rDateTime,
sal_Int16 const* pTimeZoneOffset) sal_Int16 const* pTimeZoneOffset)
{ {
if (i_rDateTime.Year == 0 || if (i_rDateTime.Year == 0 ||
...@@ -1361,7 +1361,7 @@ void Converter::convertTimeOrDateTime( ...@@ -1361,7 +1361,7 @@ void Converter::convertTimeOrDateTime(
/** convert util::DateTime to ISO "date" or "dateTime" string */ /** convert util::DateTime to ISO "date" or "dateTime" string */
void Converter::convertDateTime( void Converter::convertDateTime(
OUStringBuffer& i_rBuffer, OUStringBuffer& i_rBuffer,
const com::sun::star::util::DateTime& i_rDateTime, const css::util::DateTime& i_rDateTime,
sal_Int16 const*const pTimeZoneOffset, sal_Int16 const*const pTimeZoneOffset,
bool i_bAddTimeIf0AM ) bool i_bAddTimeIf0AM )
{ {
...@@ -2530,7 +2530,7 @@ sal_Int16 Converter::GetUnitFromString(const OUString& rString, sal_Int16 nDefau ...@@ -2530,7 +2530,7 @@ sal_Int16 Converter::GetUnitFromString(const OUString& rString, sal_Int16 nDefau
bool Converter::convertAny(OUStringBuffer& rsValue, bool Converter::convertAny(OUStringBuffer& rsValue,
OUStringBuffer& rsType , OUStringBuffer& rsType ,
const com::sun::star::uno::Any& rValue) const css::uno::Any& rValue)
{ {
bool bConverted = false; bool bConverted = false;
...@@ -2539,11 +2539,11 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2539,11 +2539,11 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
switch (rValue.getValueTypeClass()) switch (rValue.getValueTypeClass())
{ {
case com::sun::star::uno::TypeClass_BYTE : case css::uno::TypeClass_BYTE :
case com::sun::star::uno::TypeClass_SHORT : case css::uno::TypeClass_SHORT :
case com::sun::star::uno::TypeClass_UNSIGNED_SHORT : case css::uno::TypeClass_UNSIGNED_SHORT :
case com::sun::star::uno::TypeClass_LONG : case css::uno::TypeClass_LONG :
case com::sun::star::uno::TypeClass_UNSIGNED_LONG : case css::uno::TypeClass_UNSIGNED_LONG :
{ {
sal_Int32 nTempValue = 0; sal_Int32 nTempValue = 0;
if (rValue >>= nTempValue) if (rValue >>= nTempValue)
...@@ -2555,7 +2555,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2555,7 +2555,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
} }
break; break;
case com::sun::star::uno::TypeClass_BOOLEAN : case css::uno::TypeClass_BOOLEAN :
{ {
bool bTempValue = false; bool bTempValue = false;
if (rValue >>= bTempValue) if (rValue >>= bTempValue)
...@@ -2567,8 +2567,8 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2567,8 +2567,8 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
} }
break; break;
case com::sun::star::uno::TypeClass_FLOAT : case css::uno::TypeClass_FLOAT :
case com::sun::star::uno::TypeClass_DOUBLE : case css::uno::TypeClass_DOUBLE :
{ {
double fTempValue = 0.0; double fTempValue = 0.0;
if (rValue >>= fTempValue) if (rValue >>= fTempValue)
...@@ -2580,7 +2580,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2580,7 +2580,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
} }
break; break;
case com::sun::star::uno::TypeClass_STRING : case css::uno::TypeClass_STRING :
{ {
OUString sTempValue; OUString sTempValue;
if (rValue >>= sTempValue) if (rValue >>= sTempValue)
...@@ -2592,17 +2592,17 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2592,17 +2592,17 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
} }
break; break;
case com::sun::star::uno::TypeClass_STRUCT : case css::uno::TypeClass_STRUCT :
{ {
com::sun::star::util::Date aDate ; css::util::Date aDate ;
com::sun::star::util::Time aTime ; css::util::Time aTime ;
com::sun::star::util::DateTime aDateTime; css::util::DateTime aDateTime;
if (rValue >>= aDate) if (rValue >>= aDate)
{ {
rsType.append("date"); rsType.append("date");
bConverted = true; bConverted = true;
com::sun::star::util::DateTime aTempValue; css::util::DateTime aTempValue;
aTempValue.Day = aDate.Day; aTempValue.Day = aDate.Day;
aTempValue.Month = aDate.Month; aTempValue.Month = aDate.Month;
aTempValue.Year = aDate.Year; aTempValue.Year = aDate.Year;
...@@ -2617,7 +2617,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue, ...@@ -2617,7 +2617,7 @@ bool Converter::convertAny(OUStringBuffer& rsValue,
{ {
rsType.append("time"); rsType.append("time");
bConverted = true; bConverted = true;
com::sun::star::util::Duration aTempValue; css::util::Duration aTempValue;
aTempValue.Days = 0; aTempValue.Days = 0;
aTempValue.Months = 0; aTempValue.Months = 0;
aTempValue.Years = 0; aTempValue.Years = 0;
......
...@@ -52,7 +52,7 @@ void UnknownAttribute::FillAttribute( Attribute* pAttrib ) const ...@@ -52,7 +52,7 @@ void UnknownAttribute::FillAttribute( Attribute* pAttrib ) const
} }
} }
FastAttributeList::FastAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler >& xTokenHandler, FastAttributeList::FastAttributeList( const css::uno::Reference< css::xml::sax::XFastTokenHandler >& xTokenHandler,
sax_fastparser::FastTokenHandlerBase *pTokenHandler) sax_fastparser::FastTokenHandlerBase *pTokenHandler)
: mxTokenHandler( xTokenHandler ), : mxTokenHandler( xTokenHandler ),
mpTokenHandler( pTokenHandler ) mpTokenHandler( pTokenHandler )
......
...@@ -268,7 +268,7 @@ namespace sax_fastparser { ...@@ -268,7 +268,7 @@ namespace sax_fastparser {
writeBytes(sSlashAndClosingBracket, N_CHARS(sSlashAndClosingBracket)); writeBytes(sSlashAndClosingBracket, N_CHARS(sSlashAndClosingBracket));
} }
::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > FastSaxSerializer::getOutputStream() css::uno::Reference< css::io::XOutputStream > FastSaxSerializer::getOutputStream()
{ {
return maCachedOutputStream.getOutputStream(); return maCachedOutputStream.getOutputStream();
} }
......
...@@ -44,14 +44,14 @@ typedef std::vector<TokenValue> TokenValueList; ...@@ -44,14 +44,14 @@ typedef std::vector<TokenValue> TokenValueList;
/// Receives notification of sax document events to write into an XOutputStream. /// Receives notification of sax document events to write into an XOutputStream.
class FastSaxSerializer class FastSaxSerializer
{ {
typedef ::com::sun::star::uno::Sequence< ::sal_Int8 > Int8Sequence; typedef css::uno::Sequence< ::sal_Int8 > Int8Sequence;
typedef ::com::sun::star::uno::Sequence< ::sal_Int32 > Int32Sequence; typedef css::uno::Sequence< ::sal_Int32 > Int32Sequence;
public: public:
FastSaxSerializer( const css::uno::Reference< css::io::XOutputStream >& xOutputStream ); FastSaxSerializer( const css::uno::Reference< css::io::XOutputStream >& xOutputStream );
~FastSaxSerializer(); ~FastSaxSerializer();
::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > getOutputStream(); css::uno::Reference< css::io::XOutputStream > getOutputStream();
/// called by FSHelper to put data in for writeTokenValueList /// called by FSHelper to put data in for writeTokenValueList
TokenValueList& getTokenValueList() { return maTokenValues; } TokenValueList& getTokenValueList() { return maTokenValues; }
...@@ -158,7 +158,7 @@ private: ...@@ -158,7 +158,7 @@ private:
* to ensure correct order of ForSort methods. * to ensure correct order of ForSort methods.
*/ */
CachedOutputStream maCachedOutputStream; CachedOutputStream maCachedOutputStream;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler > mxFastTokenHandler; css::uno::Reference< css::xml::sax::XFastTokenHandler > mxFastTokenHandler;
class ForMerge : public ForMergeBase class ForMerge : public ForMergeBase
{ {
...@@ -241,7 +241,7 @@ private: ...@@ -241,7 +241,7 @@ private:
The latter in the case that we are inside a mark(). The latter in the case that we are inside a mark().
*/ */
void writeBytes( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& aData ); void writeBytes( const css::uno::Sequence< ::sal_Int8 >& aData );
void writeBytes( const char* pStr, size_t nLen ); void writeBytes( const char* pStr, size_t nLen );
}; };
......
...@@ -148,7 +148,7 @@ FastSerializerHelper* FastSerializerHelper::writeId(sal_Int32 tokenId) ...@@ -148,7 +148,7 @@ FastSerializerHelper* FastSerializerHelper::writeId(sal_Int32 tokenId)
return this; return this;
} }
::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > FastSerializerHelper::getOutputStream() css::uno::Reference< css::io::XOutputStream > FastSerializerHelper::getOutputStream()
{ {
return mpSerializer->getOutputStream(); return mpSerializer->getOutputStream();
} }
......
...@@ -76,7 +76,7 @@ public: ...@@ -76,7 +76,7 @@ public:
return nBytesToRead; return nBytesToRead;
} }
virtual sal_Int32 SAL_CALL readSomeBytes( virtual sal_Int32 SAL_CALL readSomeBytes(
::com::sun::star::uno::Sequence< sal_Int8 >& aData, css::uno::Sequence< sal_Int8 >& aData,
sal_Int32 nMaxBytesToRead ) sal_Int32 nMaxBytesToRead )
throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
{ {
......
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