Kaydet (Commit) e61521f6 authored tarafından Noel Grandin's avatar Noel Grandin

OSL_TRACE -> SAL in sw..ucb

Change-Id: I18f5511f70232d91095ac8527a6c5883c36294f5
Reviewed-on: https://gerrit.libreoffice.org/31762Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 82282271
......@@ -412,6 +412,10 @@ certain functionality.
@li @c stoc.corerefl - CoreReflection
@section testtools
@li @c testtools
@section VCL
@li @c vcl
......
......@@ -284,7 +284,7 @@ SfxPrinter& DocumentDeviceManager::CreatePrinter_() const
OSL_ENSURE( ! mpPrt, "Do not call CreatePrinter_(), call getPrinter() instead" );
#if OSL_DEBUG_LEVEL > 1
OSL_TRACE( "Printer will be created!" );
SAL_INFO("sw", "Printer will be created!" );
#endif
// We create a default SfxPrinter.
......
......@@ -117,8 +117,7 @@ bool SwDoc::ExecMacro( const SvxMacro& rMacro, OUString* pRet, SbxArray* pArgs )
Sequence< sal_Int16 > aOutArgsIndex;
Sequence< Any > aOutArgs;
OSL_TRACE( "SwDoc::ExecMacro URL is %s", OUStringToOString( rMacro.GetMacName(),
RTL_TEXTENCODING_UTF8).getStr() );
SAL_INFO("sw", "SwDoc::ExecMacro URL is " << rMacro.GetMacName() );
eErr = mpDocShell->CallXScript(
rMacro.GetMacName(), *pUnoArgs, aRet, aOutArgsIndex, aOutArgs);
......@@ -218,8 +217,7 @@ sal_uInt16 SwDoc::CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEve
Sequence< sal_Int16 > aOutArgsIndex;
Sequence< Any > aOutArgs;
OSL_TRACE( "SwDoc::CallEvent URL is %s", OUStringToOString(
rMacro.GetMacName(), RTL_TEXTENCODING_UTF8).getStr() );
SAL_INFO("sw", "SwDoc::CallEvent URL is " << rMacro.GetMacName() );
nRet += 0 == mpDocShell->CallXScript(
rMacro.GetMacName(), *pUnoArgs,aRet, aOutArgsIndex, aOutArgs) ? 1 : 0;
......
......@@ -220,8 +220,6 @@ namespace
{
if(ppCurrentMark->get() == rpMarkToFind.get())
{
//OSL_TRACE("found mark named '%s'",
// OUStringToOString(ppCurrentMark->get()->GetName(), RTL_TEXTENCODING_UTF8).getStr());
return ppCurrentMark;
}
++ppCurrentMark;
......@@ -249,8 +247,6 @@ namespace
break;
if(IDocumentMarkAccess::GetType(**ppCurrentMark) == eType)
{
//OSL_TRACE("found mark named '%s'",
// OUStringToOString(ppCurrentMark->get()->GetName(), RTL_TEXTENCODING_UTF8).getStr());
return ppCurrentMark;
}
}
......
......@@ -1143,10 +1143,10 @@ void SwTextPaintInfo::DrawBackBrush( const SwLinePortion &rPor ) const
}
bool bIsStartMark=(1==GetLen() && CH_TXT_ATR_FIELDSTART==GetText()[GetIdx()]);
if(pFieldmark) {
OSL_TRACE("Found Fieldmark");
SAL_INFO("sw.core", pFieldmark->ToString() << "\n");
SAL_INFO("sw.core", "Found Fieldmark " << pFieldmark->ToString());
}
if(bIsStartMark) OSL_TRACE("Found StartMark");
if(bIsStartMark)
SAL_INFO("sw.core", "Found StartMark");
if (OnWin() && (pFieldmark!=nullptr || bIsStartMark) &&
SwViewOption::IsFieldShadings() &&
!GetOpt().IsPagePreview())
......
......@@ -1539,7 +1539,7 @@ lcl_getPrefixOrSuffix(
uno::UNO_QUERY);
if (!xObject.is()) continue;
if (xEnum->hasMoreElements()) {
OSL_TRACE("ignoring other odf:Prefix/odf:Suffix statements");
SAL_INFO("sw", "ignoring other odf:Prefix/odf:Suffix statements");
}
return xObject->getValue();
}
......
......@@ -2195,7 +2195,7 @@ void DocxAttributeOutput::RunText( const OUString& rText, rtl_TextEncoding /*eCh
if ( *pIt < 0x0020 ) // filter out the control codes
{
impl_WriteRunText( m_pSerializer, nTextToken, pBegin, pIt );
OSL_TRACE( "Ignored control code %x in a text run.", *pIt );
SAL_INFO("sw", "Ignored control code in a text run: " << *pIt );
}
prevUnicode = *pIt;
break;
......@@ -2207,12 +2207,12 @@ void DocxAttributeOutput::RunText( const OUString& rText, rtl_TextEncoding /*eCh
void DocxAttributeOutput::RawText(const OUString& /*rText*/, rtl_TextEncoding /*eCharSet*/)
{
OSL_TRACE("TODO DocxAttributeOutput::RawText( const String& rText, bool bForceUnicode, rtl_TextEncoding eCharSet )" );
SAL_INFO("sw", "TODO DocxAttributeOutput::RawText( const String& rText, bool bForceUnicode, rtl_TextEncoding eCharSet )" );
}
void DocxAttributeOutput::StartRuby( const SwTextNode& rNode, sal_Int32 nPos, const SwFormatRuby& rRuby )
{
OSL_TRACE("TODO DocxAttributeOutput::StartRuby( const SwTextNode& rNode, const SwFormatRuby& rRuby )" );
SAL_INFO("sw", "TODO DocxAttributeOutput::StartRuby( const SwTextNode& rNode, const SwFormatRuby& rRuby )" );
EndRun(); // end run before starting ruby to avoid nested runs, and overlap
assert(!m_closeHyperlinkInThisRun); // check that no hyperlink overlaps ruby
assert(!m_closeHyperlinkInPreviousRun);
......@@ -2276,7 +2276,7 @@ void DocxAttributeOutput::StartRuby( const SwTextNode& rNode, sal_Int32 nPos, co
void DocxAttributeOutput::EndRuby()
{
OSL_TRACE( "TODO DocxAttributeOutput::EndRuby()" );
SAL_INFO("sw", "TODO DocxAttributeOutput::EndRuby()" );
EndRun( );
m_pSerializer->endElementNS( XML_w, XML_rubyBase );
m_pSerializer->endElementNS( XML_w, XML_ruby );
......@@ -2558,7 +2558,7 @@ void DocxAttributeOutput::StartRedline( const SwRedlineData * pRedlineData )
break;
case nsRedlineType_t::REDLINE_FORMAT:
OSL_TRACE( "TODO DocxAttributeOutput::StartRedline()" );
SAL_INFO("sw", "TODO DocxAttributeOutput::StartRedline()" );
break;
default:
break;
......@@ -2581,7 +2581,7 @@ void DocxAttributeOutput::EndRedline( const SwRedlineData * pRedlineData )
break;
case nsRedlineType_t::REDLINE_FORMAT:
OSL_TRACE( "TODO DocxAttributeOutput::EndRedline()" );
SAL_INFO("sw", "TODO DocxAttributeOutput::EndRedline()" );
break;
default:
break;
......@@ -2590,7 +2590,7 @@ void DocxAttributeOutput::EndRedline( const SwRedlineData * pRedlineData )
void DocxAttributeOutput::FormatDrop( const SwTextNode& /*rNode*/, const SwFormatDrop& /*rSwFormatDrop*/, sal_uInt16 /*nStyle*/, ww8::WW8TableNodeInfo::Pointer_t /*pTextNodeInfo*/, ww8::WW8TableNodeInfoInner::Pointer_t )
{
OSL_TRACE( "TODO DocxAttributeOutput::FormatDrop( const SwTextNode& rNode, const SwFormatDrop& rSwFormatDrop, sal_uInt16 nStyle )" );
SAL_INFO("sw", "TODO DocxAttributeOutput::FormatDrop( const SwTextNode& rNode, const SwFormatDrop& rSwFormatDrop, sal_uInt16 nStyle )" );
}
void DocxAttributeOutput::ParagraphStyle( sal_uInt16 nStyle )
......@@ -3758,17 +3758,17 @@ void DocxAttributeOutput::TableNodeInfoInner( ww8::WW8TableNodeInfoInner::Pointe
void DocxAttributeOutput::TableOrientation( ww8::WW8TableNodeInfoInner::Pointer_t /*pTableTextNodeInfoInner*/ )
{
OSL_TRACE( "TODO: DocxAttributeOutput::TableOrientation( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner )" );
SAL_INFO("sw", "TODO: DocxAttributeOutput::TableOrientation( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner )" );
}
void DocxAttributeOutput::TableSpacing( ww8::WW8TableNodeInfoInner::Pointer_t /*pTableTextNodeInfoInner*/ )
{
OSL_TRACE( "TODO: DocxAttributeOutput::TableSpacing( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner )\n" );
SAL_INFO("sw", "TODO: DocxAttributeOutput::TableSpacing( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner )\n" );
}
void DocxAttributeOutput::TableRowEnd( sal_uInt32 /*nDepth*/ )
{
OSL_TRACE( "TODO: DocxAttributeOutput::TableRowEnd( sal_uInt32 nDepth = 1 )" );
SAL_INFO("sw", "TODO: DocxAttributeOutput::TableRowEnd( sal_uInt32 nDepth = 1 )" );
}
void DocxAttributeOutput::StartStyles()
......@@ -4116,7 +4116,7 @@ void DocxAttributeOutput::EndStyles( sal_uInt16 nNumberOfStyles )
void DocxAttributeOutput::DefaultStyle()
{
// are these the values of enum ww::sti (see ../inc/wwstyles.hxx)?
OSL_TRACE("TODO DocxAttributeOutput::DefaultStyle()");
SAL_INFO("sw", "TODO DocxAttributeOutput::DefaultStyle()");
}
/* Writes <a:srcRect> tag back to document.xml if a file conatins a cropped image.
......@@ -4209,7 +4209,7 @@ void DocxAttributeOutput::CacheRelId(BitmapChecksum nChecksum, const OUString& r
void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode* pGrfNode, const Size& rSize, const SwFlyFrameFormat* pOLEFrameFormat, SwOLENode* pOLENode, const SdrObject* pSdrObj )
{
OSL_TRACE( "TODO DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode* pGrfNode, const Size& rSize, const SwFlyFrameFormat* pOLEFrameFormat, SwOLENode* pOLENode, const SdrObject* pSdrObj ) - some stuff still missing" );
SAL_INFO("sw", "TODO DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode* pGrfNode, const Size& rSize, const SwFlyFrameFormat* pOLEFrameFormat, SwOLENode* pOLENode, const SdrObject* pSdrObj ) - some stuff still missing" );
GetSdtEndBefore(pSdrObj);
......@@ -4472,7 +4472,7 @@ void DocxAttributeOutput::WritePostponedChart()
if( xChartDoc.is() )
{
OSL_TRACE("DocxAttributeOutput::WriteOLE2Obj: export chart ");
SAL_INFO("sw", "DocxAttributeOutput::WriteOLE2Obj: export chart ");
m_pSerializer->startElementNS( XML_w, XML_drawing,
FSEND );
m_pSerializer->startElementNS( XML_wp, XML_inline,
......@@ -5044,9 +5044,9 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame &rFrame, const P
}
break;
default:
OSL_TRACE( "TODO DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame& rFrame, const Point& rNdTopLeft ) - frame type '%s'\n",
rFrame.GetWriterType() == ww8::Frame::eTextBox? "eTextBox":
( rFrame.GetWriterType() == ww8::Frame::eOle? "eOle": "???" ) );
SAL_INFO("sw", "TODO DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame& rFrame, const Point& rNdTopLeft ) - frame type " <<
( rFrame.GetWriterType() == ww8::Frame::eTextBox ? "eTextBox":
( rFrame.GetWriterType() == ww8::Frame::eOle ? "eOle": "???" ) ) );
break;
}
......@@ -5460,7 +5460,7 @@ void DocxAttributeOutput::SectionBreak( sal_uInt8 nC, const WW8_SepInfo* pSectio
break;
default:
OSL_TRACE( "Unknown section break to write: %d", nC );
SAL_INFO("sw", "Unknown section break to write: " << nC );
break;
}
}
......@@ -5755,7 +5755,7 @@ void DocxAttributeOutput::SectionPageNumbering( sal_uInt16 nNumType, const ::boo
m_pSerializer->singleElementNS( XML_w, XML_pgNumType, xAttrs );
// see 2.6.12 pgNumType (Page Numbering Settings)
OSL_TRACE( "TODO DocxAttributeOutput::SectionPageNumbering()" );
SAL_INFO("sw", "TODO DocxAttributeOutput::SectionPageNumbering()" );
}
void DocxAttributeOutput::SectionType( sal_uInt8 nBreakCode )
......@@ -6009,7 +6009,7 @@ void DocxAttributeOutput::NumberingDefinition( sal_uInt16 nId, const SwNumRule &
#if OSL_DEBUG_LEVEL > 1
// TODO ww8 version writes this, anything to do about it here?
if ( rRule.IsContinusNum() )
OSL_TRACE( "TODO DocxAttributeOutput::NumberingDefinition()" );
SAL_INFO("sw", "TODO DocxAttributeOutput::NumberingDefinition()" );
#else
(void) rRule; // to quiet the warning...
#endif
......@@ -6418,7 +6418,7 @@ void DocxAttributeOutput::CharWeight( const SvxWeightItem& rWeight )
void DocxAttributeOutput::CharAutoKern( const SvxAutoKernItem& )
{
OSL_TRACE( "TODO DocxAttributeOutput::CharAutoKern()" );
SAL_INFO("sw", "TODO DocxAttributeOutput::CharAutoKern()" );
}
void DocxAttributeOutput::CharAnimatedText( const SvxBlinkItem& rBlink )
......@@ -6643,7 +6643,7 @@ void DocxAttributeOutput::RefField( const SwField& rField, const OUString& rRef
void DocxAttributeOutput::HiddenField( const SwField& /*rField*/ )
{
OSL_TRACE( "TODO DocxAttributeOutput::HiddenField()" );
SAL_INFO("sw", "TODO DocxAttributeOutput::HiddenField()" );
}
void DocxAttributeOutput::PostitField( const SwField* pField )
......@@ -7292,7 +7292,7 @@ void DocxAttributeOutput::FormatFrameSize( const SwFormatFrameSize& rSize )
void DocxAttributeOutput::FormatPaperBin( const SvxPaperBinItem& )
{
OSL_TRACE( "TODO DocxAttributeOutput::FormatPaperBin()" );
SAL_INFO("sw", "TODO DocxAttributeOutput::FormatPaperBin()" );
}
void DocxAttributeOutput::FormatLRSpace( const SvxLRSpaceItem& rLRSpace )
......
......@@ -348,7 +348,7 @@ void DocxExport::DoComboBox(const OUString& rName,
void DocxExport::DoFormText(const SwInputField* /*pField*/)
{
OSL_TRACE( "TODO DocxExport::ForFormText()" );
SAL_INFO("sw", "TODO DocxExport::ForFormText()" );
}
OString DocxExport::OutputChart( uno::Reference< frame::XModel >& xModel, sal_Int32 nCount, ::sax_fastparser::FSHelperPtr const & m_pSerializer )
......@@ -521,12 +521,12 @@ void DocxExport::OutputEndNode( const SwEndNode& rEndNode )
void DocxExport::OutputGrfNode( const SwGrfNode& )
{
OSL_TRACE( "TODO DocxExport::OutputGrfNode( const SwGrfNode& )" );
SAL_INFO("sw", "TODO DocxExport::OutputGrfNode( const SwGrfNode& )" );
}
void DocxExport::OutputOLENode( const SwOLENode& )
{
OSL_TRACE( "TODO DocxExport::OutputOLENode( const SwOLENode& )" );
SAL_INFO("sw", "TODO DocxExport::OutputOLENode( const SwOLENode& )" );
}
void DocxExport::OutputLinkedOLE( const OUString& )
......
......@@ -39,8 +39,6 @@ DocxExportFilter::DocxExportFilter( const uno::Reference< uno::XComponentContext
bool DocxExportFilter::exportDocument()
{
OSL_TRACE( "DocxExportFilter::exportDocument()\n" ); // DEBUG remove me
// get SwDoc*
uno::Reference< uno::XInterface > xIfc( getModel(), uno::UNO_QUERY );
SwXTextDocument *pTextDoc = dynamic_cast< SwXTextDocument * >( xIfc.get() );
......
......@@ -3108,7 +3108,7 @@ void MSWordExportBase::OutputContentNode( const SwContentNode& rNode )
OutputOLENode( *rNode.GetOLENode() );
break;
default:
OSL_TRACE("Unhandled node, type == %d", (int)rNode.GetNodeType() );
SAL_WARN("sw", "Unhandled node, type == " << (int)rNode.GetNodeType() );
break;
}
}
......
......@@ -79,7 +79,7 @@ using namespace ::com::sun::star;
void WW8Export::OutputGrfNode( const SwGrfNode& /*rNode*/ )
{
OSL_TRACE("WW8Export::OutputGrfNode( const SwGrfNode& )" );
SAL_INFO("sw", "WW8Export::OutputGrfNode( const SwGrfNode& )" );
OSL_ENSURE( m_pParentFrame, "frame not set!" );
if ( m_pParentFrame )
{
......@@ -194,7 +194,7 @@ bool WW8Export::TestOleNeedsGraphic(const SwAttrSet& rSet,
void WW8Export::OutputOLENode( const SwOLENode& rOLENode )
{
OSL_TRACE("WW8Export::OutputOLENode( const SwOLENode& rOLENode )" );
SAL_INFO("sw", "WW8Export::OutputOLENode( const SwOLENode& rOLENode )" );
sal_uInt8 *pSpecOLE;
sal_uInt8 *pDataAdr;
short nSize;
......
......@@ -4755,7 +4755,7 @@ void SwWW8ImplReader::ReadDocInfo()
Sttb aSttb;
m_pTableStream->Seek( m_pWwFib->m_fcSttbfAssoc ); // point at tgc record
if (!aSttb.Read( *m_pTableStream ) )
OSL_TRACE("** Read of SttbAssoc data failed!!!! ");
SAL_WARN("sw", "** Read of SttbAssoc data failed!!!! ");
m_pTableStream->Seek( nCur ); // return to previous position, is that necessary?
#if OSL_DEBUG_LEVEL > 1
aSttb.Print( stderr );
......
......@@ -134,7 +134,7 @@ void XTextRangeOrNodeIndexPosition::SetAsNodeIndex(
if (!pDoc)
{
OSL_TRACE("SetAsNodeIndex: no SwDoc");
SAL_WARN("sw", "no SwDoc");
return;
}
......@@ -454,8 +454,7 @@ Reference<XTextCursor> XMLRedlineImportHelper::CreateRedlineTextSection(
if (!pDoc)
{
OSL_TRACE("XMLRedlineImportHelper::CreateRedlineTextSection: "
"no SwDoc => cannot create section.");
SAL_WARN("sw", "no SwDoc => cannot create section.");
return nullptr;
}
......@@ -592,8 +591,7 @@ void XMLRedlineImportHelper::InsertIntoDocument(RedlineInfo* pRedlineInfo)
if (!pDoc)
{
OSL_TRACE("XMLRedlineImportHelper::InsertIntoDocument: "
"no SwDoc => cannot insert redline.");
SAL_WARN("sw", "no SwDoc => cannot insert redline.");
return;
}
......
......@@ -55,7 +55,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaswobj_component_getFactory(
void* pRet = sdecl::component_getFactoryHelper(pImplName,
{&globals::serviceDecl, &::document::serviceDecl,
&wrapformat::serviceDecl, &vbaeventshelper::serviceDecl} );
OSL_TRACE("Ret is 0x%p", pRet);
SAL_INFO("sw", "Ret is " << pRet);
return pRet;
}
......
......@@ -36,7 +36,7 @@ static uno::Reference< container::XIndexAccess > lcl_getAddinCollection( const u
SvtPathOptions aPathOpt;
// FIXME: temporary the STARTUP path is located in $OO/basic3.1/program/addin
OUString aAddinPath = aPathOpt.GetAddinPath();
OSL_TRACE("lcl_getAddinCollection: %s", OUStringToOString( aAddinPath, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_INFO("sw", "lcl_getAddinCollection: " << aAddinPath );
if( xSFA->isFolder( aAddinPath ) )
{
uno::Sequence< OUString > sEntries = xSFA->getFolderContents( aAddinPath, false );
......
......@@ -443,9 +443,7 @@ SwVbaDocument::getIntrospection( ) throw (uno::RuntimeException, std::exception
uno::Any SAL_CALL
SwVbaDocument::invoke( const OUString& aFunctionName, const uno::Sequence< uno::Any >& /*aParams*/, uno::Sequence< ::sal_Int16 >& /*aOutParamIndex*/, uno::Sequence< uno::Any >& /*aOutParam*/ ) throw (lang::IllegalArgumentException, script::CannotConvertException, reflection::InvocationTargetException, uno::RuntimeException, std::exception)
{
OSL_TRACE("** SwVbaDocument::invoke( %s ), will barf",
OUStringToOString( aFunctionName, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_INFO("sw", "** will barf " << aFunctionName );
throw uno::RuntimeException(); // unsupported operation
}
......
......@@ -299,7 +299,7 @@ public:
}
catch (const uno::Exception&)
{
OSL_TRACE("Got exception");
SAL_WARN("sw", "Got exception");
}
uno::Any aReturn;
if ( rPropName == "LineCount" ) // special processing needed
......@@ -836,7 +836,7 @@ public:
virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (uno::RuntimeException, std::exception) override
{
OSL_TRACE("hasByName(%s) returns %d", OUStringToOString( aName, RTL_TEXTENCODING_UTF8 ).getStr(), mxUserDefinedProp->getPropertySetInfo()->hasPropertyByName( aName ) );
SAL_INFO("sw", "hasByName(" << aName << ") returns " << mxUserDefinedProp->getPropertySetInfo()->hasPropertyByName( aName ) );
return mxUserDefinedProp->getPropertySetInfo()->hasPropertyByName( aName );
}
......@@ -854,13 +854,13 @@ public:
virtual uno::Reference< container::XEnumeration > SAL_CALL createEnumeration( ) throw (uno::RuntimeException, std::exception) override
{
// create a map of properties ( the key doesn't matter )
OSL_TRACE("Creating an enumeration");
SAL_INFO("sw", "Creating an enumeration");
sal_Int32 key = 0;
sal_Int32 nElem = getCount();
DocProps simpleDocPropSnapShot;
for ( ; key < nElem; ++key )
simpleDocPropSnapShot[ key ].set( getByIndex( key ), uno::UNO_QUERY_THROW );
OSL_TRACE("After creating the enumeration");
SAL_INFO("sw", "After creating the enumeration");
return new DocPropEnumeration( simpleDocPropSnapShot );
}
......
......@@ -322,7 +322,7 @@ SwVbaFields::Add( const css::uno::Reference< ::ooo::vba::word::XRange >& Range,
{
SwVbaReadFieldParams aReadParam(sText);
sFieldName = aReadParam.GetFieldName();
OSL_TRACE("SwVbaFields::Add, the field name is %s ",OUStringToOString( sFieldName, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_INFO("sw", "the field name is " << sFieldName );
}
uno::Reference< text::XTextContent > xTextField;
......@@ -436,7 +436,7 @@ uno::Reference< text::XTextField > SwVbaFields::Create_Field_DocProperty( const
}
}
aDocProperty = aDocProperty.replaceAll("\"", "");
OSL_TRACE("SwVbaFields::Create_Field_DocProperty, the document property name is %s ",OUStringToOString( aDocProperty, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_INFO("sw", "SwVbaFields::Create_Field_DocProperty, the document property name is " << aDocProperty );
if( aDocProperty.isEmpty() )
{
throw uno::RuntimeException();
......
......@@ -35,19 +35,19 @@ using namespace ::ooo::vba;
SwVbaGlobals::SwVbaGlobals( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& rxContext ) : SwVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext, "WordDocumentContext" )
{
OSL_TRACE("SwVbaGlobals::SwVbaGlobals()");
uno::Sequence< beans::PropertyValue > aInitArgs( 2 );
aInitArgs[ 0 ].Name = "Application";
aInitArgs[ 0 ].Value = uno::makeAny( getApplication() );
aInitArgs[ 1 ].Name = "WordDocumentContext";
aInitArgs[ 1 ].Value = uno::makeAny( getXSomethingFromArgs< frame::XModel >( aArgs, 0 ) );
SAL_INFO("sw", "SwVbaGlobals::SwVbaGlobals()");
uno::Sequence< beans::PropertyValue > aInitArgs( 2 );
aInitArgs[ 0 ].Name = "Application";
aInitArgs[ 0 ].Value = uno::makeAny( getApplication() );
aInitArgs[ 1 ].Name = "WordDocumentContext";
aInitArgs[ 1 ].Value = uno::makeAny( getXSomethingFromArgs< frame::XModel >( aArgs, 0 ) );
init( aInitArgs );
init( aInitArgs );
}
SwVbaGlobals::~SwVbaGlobals()
{
OSL_TRACE("SwVbaGlobals::~SwVbaGlobals");
SAL_INFO("sw", "SwVbaGlobals::~SwVbaGlobals");
}
// XGlobals
......@@ -55,7 +55,7 @@ SwVbaGlobals::~SwVbaGlobals()
uno::Reference<word::XApplication > const &
SwVbaGlobals::getApplication() throw (uno::RuntimeException)
{
OSL_TRACE("In SwVbaGlobals::getApplication");
SAL_INFO("sw", "In SwVbaGlobals::getApplication");
if ( !mxApplication.is() )
mxApplication.set( new SwVbaApplication( mxContext) );
......
......@@ -81,7 +81,7 @@ void SwVbaListHelper::Init() throw( css::uno::RuntimeException )
// get the numbering style
uno::Reference< style::XStyleFamiliesSupplier > xStyleSupplier( mxTextDocument, uno::UNO_QUERY_THROW );
mxStyleFamily.set( xStyleSupplier->getStyleFamilies()->getByName("NumberingStyles"), uno::UNO_QUERY_THROW );
OSL_TRACE("SwVbaListHelper::Init: numbering style name: %s", OUStringToOString( msStyleName, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_INFO("sw", "numbering style name: " << msStyleName );
if( mxStyleFamily->hasByName( msStyleName ) )
{
mxStyleProps.set( mxStyleFamily->getByName( msStyleName ), uno::UNO_QUERY_THROW );
......
......@@ -342,7 +342,7 @@ SwVbaStyles::Item( const uno::Any& Index1, const uno::Any& Index2 )
}
else
{
OSL_TRACE("SwVbaStyles::Item: the builtin style type is not implemented");
SAL_WARN("sw", "the builtin style type is not implemented");
throw uno::RuntimeException("Not implemented" );
}
}
......
......@@ -153,7 +153,7 @@ public:
{}
virtual ~Test_Impl() override
{
OSL_TRACE( "> scalar Test_Impl dtor <" );
SAL_INFO("testtools", "> scalar Test_Impl dtor <" );
}
void SAL_CALL acquire() throw () override
......@@ -683,9 +683,7 @@ void dothrow(const RuntimeException& e)
Any a( getCaughtException() );
RuntimeException exc;
OSL_VERIFY( a >>= exc );
OSL_TRACE(
OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_INFO("testtools", exc.Message );
}
catch (...) // never throws anything
{
......
......@@ -51,7 +51,7 @@ VCLXTabPageContainer::VCLXTabPageContainer() :
VCLXTabPageContainer::~VCLXTabPageContainer()
{
OSL_TRACE ("%s", __FUNCTION__);
SAL_INFO("toolkit", __FUNCTION__);
}
void SAL_CALL VCLXTabPageContainer::draw( sal_Int32 nX, sal_Int32 nY ) throw(RuntimeException, std::exception)
......
......@@ -1413,10 +1413,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::createSystemChild( con
catch ( const css::uno::RuntimeException & rEx )
{
// system child window could not be created
OSL_TRACE(
"VCLXToolkit::createSystemChild: caught %s\n",
OUStringToOString(
rEx.Message, RTL_TEXTENCODING_UTF8).getStr());
SAL_WARN("toolkit", "caught " << rEx.Message);
pChildWindow.clear();
}
}
......@@ -1821,10 +1818,7 @@ void VCLXToolkit::callTopWindowListeners(
}
catch (const css::uno::RuntimeException & rEx)
{
OSL_TRACE(
"VCLXToolkit::callTopWindowListeners: caught %s\n",
OUStringToOString(
rEx.Message, RTL_TEXTENCODING_UTF8).getStr());
SAL_WARN("toolkit", "caught " << rEx.Message);
}
}
}
......@@ -1869,10 +1863,7 @@ bool VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent,
}
catch (const css::uno::RuntimeException & rEx)
{
OSL_TRACE(
"VCLXToolkit::callKeyHandlers: caught %s\n",
OUStringToOString(
rEx.Message, RTL_TEXTENCODING_UTF8).getStr());
SAL_WARN("toolkit", "caught " << rEx.Message);
}
}
}
......@@ -1918,10 +1909,7 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent,
}
catch (const css::uno::RuntimeException & rEx)
{
OSL_TRACE(
"VCLXToolkit::callFocusListeners: caught %s\n",
OUStringToOString(
rEx.Message, RTL_TEXTENCODING_UTF8).getStr());
SAL_WARN("toolkit", "caught " << rEx.Message);
}
}
}
......
......@@ -2243,12 +2243,12 @@ void VCLXDialog::GetPropertyIds( std::vector< sal_uInt16 > &rIds )
VCLXDialog::VCLXDialog()
{
OSL_TRACE("XDialog created");
SAL_INFO("toolkit", "XDialog created");
}
VCLXDialog::~VCLXDialog()
{
OSL_TRACE ("%s", __FUNCTION__);
SAL_INFO("toolkit", __FUNCTION__);
}
// css::uno::XInterface
......@@ -2418,7 +2418,7 @@ throw(css::uno::RuntimeException, std::exception)
VCLXMultiPage::VCLXMultiPage() : maTabListeners( *this ), mTabId( 1 )
{
OSL_TRACE("VCLXMultiPage::VCLXMultiPage()" );
SAL_INFO("toolkit", "VCLXMultiPage::VCLXMultiPage()" );
}
void VCLXMultiPage::ImplGetPropertyIds( std::vector< sal_uInt16 > &rIds )
......@@ -2498,10 +2498,8 @@ throw(css::uno::RuntimeException, std::exception)
uno::Any SAL_CALL VCLXMultiPage::getProperty( const OUString& PropertyName ) throw(css::uno::RuntimeException, std::exception)
{
SAL_INFO("toolkit", " **** VCLXMultiPage::getProperty " << PropertyName );
SolarMutexGuard aGuard;
OSL_TRACE(" **** VCLXMultiPage::getProperty( %s )",
OUStringToOString( PropertyName,
RTL_TEXTENCODING_UTF8 ).getStr() );
css::uno::Any aProp;
sal_uInt16 nPropType = GetPropertyId( PropertyName );
switch ( nPropType )
......@@ -2523,8 +2521,8 @@ void SAL_CALL VCLXMultiPage::setProperty(
const css::uno::Any& Value )
throw(css::uno::RuntimeException, std::exception)
{
SAL_INFO("toolkit", " **** VCLXMultiPage::setProperty " << PropertyName );
SolarMutexGuard aGuard;
OSL_TRACE(" **** VCLXMultiPage::setProperty( %s )", OUStringToOString( PropertyName, RTL_TEXTENCODING_UTF8 ).getStr() );
VclPtr< TabControl > pTabControl = GetAs< TabControl >();
if ( pTabControl )
......@@ -2536,7 +2534,7 @@ throw(css::uno::RuntimeException, std::exception)
{
case BASEPROPERTY_MULTIPAGEVALUE:
{
OSL_TRACE("***MULTIPAGE VALUE");
SAL_INFO("toolkit", "***MULTIPAGE VALUE");
sal_Int32 nId(0);
Value >>= nId;
// when the multipage is created we attempt to set the activepage
......@@ -4153,7 +4151,7 @@ VCLXComboBox::VCLXComboBox()
VCLXComboBox::~VCLXComboBox()
{
OSL_TRACE ("%s", __FUNCTION__);
SAL_INFO("toolkit", __FUNCTION__);
}
css::uno::Reference< css::accessibility::XAccessibleContext > VCLXComboBox::CreateAccessibleContext()
......
......@@ -113,7 +113,7 @@ struct DisposeControlModel : public ::std::unary_function< Reference< XControlMo
}
catch (const Exception&)
{
OSL_TRACE( "DisposeControlModel::(): caught an exception while disposing a component!" );
SAL_WARN("toolkit", "caught an exception while disposing a component!" );
}
}
};
......@@ -667,7 +667,7 @@ sal_Bool SAL_CALL ControlModelContainerBase::getGroupControl( ) throw (RuntimeE
void SAL_CALL ControlModelContainerBase::setGroupControl( sal_Bool ) throw (RuntimeException, std::exception)
{
OSL_TRACE( "ControlModelContainerBase::setGroupControl: explicit grouping not supported" );
SAL_WARN("toolkit", "explicit grouping not supported" );
}
......@@ -763,7 +763,7 @@ void SAL_CALL ControlModelContainerBase::setGroup( const Sequence< Reference< XC
// We only have a sequence of control models, and we _know_ (yes, that's a HACK relying on
// implementation details) that VCL does grouping according to the order of controls automatically
// At least VCL does this for all we're interested in: Radio buttons.
OSL_TRACE( "ControlModelContainerBase::setGroup: grouping not supported" );
SAL_WARN("toolkit", "grouping not supported" );
}
////----- XInitialization -------------------------------------------------------------------
......@@ -842,7 +842,7 @@ namespace
}
catch (const Exception&)
{
OSL_TRACE( "lcl_getDialogStep: caught an exception while determining the dialog page!" );
SAL_WARN("toolkit", "caught an exception while determining the dialog page!" );
}
return nStep;
}
......@@ -867,7 +867,7 @@ void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence<
if ( ( _nGroup < 0 ) || ( _nGroup >= (sal_Int32)maGroups.size() ) )
{
OSL_TRACE( "ControlModelContainerBase::getGroup: invalid argument and I am not allowed to throw an exception!" );
SAL_WARN("toolkit", "invalid argument and I am not allowed to throw an exception!" );
_rGroup.realloc( 0 );
_rName.clear();
}
......
......@@ -125,7 +125,7 @@ bool StdTabController::ImplCreateComponentSequence(
}
else
{
OSL_TRACE( "ImplCreateComponentSequence: Control not found" );
SAL_WARN("toolkit", "Control not found" );
bOK = false;
}
}
......
......@@ -661,15 +661,14 @@ Config::Config( const OUString& rFileName )