Kaydet (Commit) de02d221 authored tarafından Oliver Specht's avatar Oliver Specht

printfs in comments

üst d57944d2
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: DomainMapper.cxx,v $ * $RCSfile: DomainMapper.cxx,v $
* *
* $Revision: 1.50 $ * $Revision: 1.51 $
* *
* last change: $Author: fridrich_strba $ $Date: 2007-05-18 15:44:43 $ * last change: $Author: os $ $Date: 2007-05-21 14:20:33 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -178,7 +178,7 @@ void DomainMapper::attribute(doctok::Id nName, doctok::Value & val) ...@@ -178,7 +178,7 @@ void DomainMapper::attribute(doctok::Id nName, doctok::Value & val)
sal_Int32 nIntValue = val.getInt(); sal_Int32 nIntValue = val.getInt();
rtl::OUString sStringValue = val.getString(); rtl::OUString sStringValue = val.getString();
printf ( "DomainMapper::attribute(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)nName, (unsigned int)nIntValue, ::rtl::OUStringToOString(sStringValue, RTL_TEXTENCODING_DONTKNOW).getStr()); //printf ( "DomainMapper::attribute(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)nName, (unsigned int)nIntValue, ::rtl::OUStringToOString(sStringValue, RTL_TEXTENCODING_DONTKNOW).getStr());
if( nName >= NS_rtf::LN_WIDENT && nName <= NS_rtf::LN_LCBSTTBFUSSR ) if( nName >= NS_rtf::LN_WIDENT && nName <= NS_rtf::LN_LCBSTTBFUSSR )
m_pImpl->GetFIB().SetData( nName, nIntValue ); m_pImpl->GetFIB().SetData( nName, nIntValue );
else else
...@@ -1741,7 +1741,7 @@ void DomainMapper::sprm( doctok::Sprm& sprm_, PropertyMapPtr rContext, SprmType ...@@ -1741,7 +1741,7 @@ void DomainMapper::sprm( doctok::Sprm& sprm_, PropertyMapPtr rContext, SprmType
doctok::Value::Pointer_t pValue = sprm_.getValue(); doctok::Value::Pointer_t pValue = sprm_.getValue();
sal_Int32 nIntValue = pValue->getInt(); sal_Int32 nIntValue = pValue->getInt();
rtl::OUString sStringValue = pValue->getString(); rtl::OUString sStringValue = pValue->getString();
printf ( "DomainMapper::sprm(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)nId, (unsigned int)nIntValue, ::rtl::OUStringToOString(sStringValue, RTL_TEXTENCODING_DONTKNOW).getStr()); //printf ( "DomainMapper::sprm(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)nId, (unsigned int)nIntValue, ::rtl::OUStringToOString(sStringValue, RTL_TEXTENCODING_DONTKNOW).getStr());
/* WRITERFILTERSTATUS: table: sprmdata */ /* WRITERFILTERSTATUS: table: sprmdata */
switch(nId) switch(nId)
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: FontTable.cxx,v $ * $RCSfile: FontTable.cxx,v $
* *
* $Revision: 1.4 $ * $Revision: 1.5 $
* *
* last change: $Author: fridrich_strba $ $Date: 2007-05-11 14:52:44 $ * last change: $Author: os $ $Date: 2007-05-21 14:24:10 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -78,7 +78,7 @@ void FontTable::attribute(doctok::Id Name, doctok::Value & val) ...@@ -78,7 +78,7 @@ void FontTable::attribute(doctok::Id Name, doctok::Value & val)
return ; return ;
int nIntValue = val.getInt(); int nIntValue = val.getInt();
::rtl::OUString sValue = val.getString(); ::rtl::OUString sValue = val.getString();
printf ( "FontTable::attribute(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)Name, (unsigned int)nIntValue, ::rtl::OUStringToOString(sValue, RTL_TEXTENCODING_DONTKNOW).getStr()); //printf ( "FontTable::attribute(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)Name, (unsigned int)nIntValue, ::rtl::OUStringToOString(sValue, RTL_TEXTENCODING_DONTKNOW).getStr());
switch(Name) switch(Name)
{ {
// case NS_rtf::LN_ISTD: break; // case NS_rtf::LN_ISTD: break;
...@@ -535,21 +535,23 @@ void FontTable::sprm(doctok::Sprm& sprm_) ...@@ -535,21 +535,23 @@ void FontTable::sprm(doctok::Sprm& sprm_)
if(!m_pImpl->pCurrentEntry) if(!m_pImpl->pCurrentEntry)
return ; return ;
sal_uInt32 nId = sprm_.getId(); sal_uInt32 nId = sprm_.getId();
(void)nId;
doctok::Value::Pointer_t pValue = sprm_.getValue(); doctok::Value::Pointer_t pValue = sprm_.getValue();
sal_Int32 nIntValue = pValue->getInt(); sal_Int32 nIntValue = pValue->getInt();
(void)nIntValue;
rtl::OUString sStringValue = pValue->getString(); rtl::OUString sStringValue = pValue->getString();
printf ( "FontTable::sprm(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)nId, (unsigned int)nIntValue, ::rtl::OUStringToOString(sStringValue, RTL_TEXTENCODING_DONTKNOW).getStr()); //printf ( "FontTable::sprm(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)nId, (unsigned int)nIntValue, ::rtl::OUStringToOString(sStringValue, RTL_TEXTENCODING_DONTKNOW).getStr());
switch(nId) /* switch(nId)
{ {
default: default:
{ {
OSL_ASSERT("FontTable::sprm()"); // OSL_ASSERT("FontTable::sprm()"); //
//doctok::Value::Pointer_t pValue_ = sprm_.getValue(); //doctok::Value::Pointer_t pValue_ = sprm_.getValue();
} }
} }*/
} }
/*-- 19.06.2006 12:04:33--------------------------------------------------- /*-- 19.06.2006 12:04:33---------------------------------------------------
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: StyleSheetTable.cxx,v $ * $RCSfile: StyleSheetTable.cxx,v $
* *
* $Revision: 1.15 $ * $Revision: 1.16 $
* *
* last change: $Author: fridrich_strba $ $Date: 2007-05-16 14:35:30 $ * last change: $Author: os $ $Date: 2007-05-21 14:25:03 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -133,8 +133,9 @@ void StyleSheetTable::attribute(doctok::Id Name, doctok::Value & val) ...@@ -133,8 +133,9 @@ void StyleSheetTable::attribute(doctok::Id Name, doctok::Value & val)
if(!m_pImpl->m_pCurrentEntry) if(!m_pImpl->m_pCurrentEntry)
return ; return ;
int nIntValue = val.getInt(); int nIntValue = val.getInt();
(void)nIntValue;
::rtl::OUString sValue = val.getString(); ::rtl::OUString sValue = val.getString();
printf ( "StyleSheetTable::attribute(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)Name, (unsigned int)nIntValue, ::rtl::OUStringToOString(sValue, RTL_TEXTENCODING_DONTKNOW).getStr()); // printf ( "StyleSheetTable::attribute(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)Name, (unsigned int)nIntValue, ::rtl::OUStringToOString(sValue, RTL_TEXTENCODING_DONTKNOW).getStr());
switch(Name) switch(Name)
{ {
case NS_rtf::LN_ISTD: case NS_rtf::LN_ISTD:
...@@ -594,8 +595,9 @@ void StyleSheetTable::sprm(doctok::Sprm & sprm_) ...@@ -594,8 +595,9 @@ void StyleSheetTable::sprm(doctok::Sprm & sprm_)
sal_uInt32 nId = sprm_.getId(); sal_uInt32 nId = sprm_.getId();
doctok::Value::Pointer_t pValue = sprm_.getValue(); doctok::Value::Pointer_t pValue = sprm_.getValue();
sal_Int32 nIntValue = pValue.get() ? pValue->getInt() : 0; sal_Int32 nIntValue = pValue.get() ? pValue->getInt() : 0;
(void)nIntValue;
rtl::OUString sStringValue = pValue.get() ? pValue->getString() : rtl::OUString(); rtl::OUString sStringValue = pValue.get() ? pValue->getString() : rtl::OUString();
printf ( "StyleSheetTable::sprm(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)nId, (unsigned int)nIntValue, ::rtl::OUStringToOString(sStringValue, RTL_TEXTENCODING_DONTKNOW).getStr()); //printf ( "StyleSheetTable::sprm(0x%.4x, 0x%.4x) [%s]\n", (unsigned int)nId, (unsigned int)nIntValue, ::rtl::OUStringToOString(sStringValue, RTL_TEXTENCODING_DONTKNOW).getStr());
switch(nId) switch(nId)
{ {
...@@ -658,8 +660,8 @@ void StyleSheetTable::sprm(doctok::Sprm & sprm_) ...@@ -658,8 +660,8 @@ void StyleSheetTable::sprm(doctok::Sprm & sprm_)
-----------------------------------------------------------------------*/ -----------------------------------------------------------------------*/
void StyleSheetTable::entry(int /*pos*/, doctok::Reference<Properties>::Pointer_t ref) void StyleSheetTable::entry(int /*pos*/, doctok::Reference<Properties>::Pointer_t ref)
{ {
printf("StyleSheetTable::entry(...)\n"); //create a new style entry
//create a new font entry // printf("StyleSheetTable::entry(...)\n");
OSL_ENSURE( !m_pImpl->m_pCurrentEntry, "current entry has to be NULL here"); OSL_ENSURE( !m_pImpl->m_pCurrentEntry, "current entry has to be NULL here");
m_pImpl->m_pCurrentEntry = new StyleSheetEntry; m_pImpl->m_pCurrentEntry = new StyleSheetEntry;
ref->resolve(*this); ref->resolve(*this);
......
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