summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2001-07-24 09:44:56 +0000
committerCarsten Driesner <cd@openoffice.org>2001-07-24 09:44:56 +0000
commit004cd84b880909919a1ba2e68eb8fb6587efc4b9 (patch)
tree030801eabd8019165fdced39f89c8d3a96cab5a9 /sfx2
parent378f47a16b6030bc863323206161a896dea8a2f7 (diff)
#88409# new time logging code
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/app.cxx38
-rw-r--r--sfx2/source/appl/appinit.cxx6
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx6
-rw-r--r--sfx2/source/view/frmload.cxx8
4 files changed, 39 insertions, 19 deletions
diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx
index db48d3d3a639..9235ca5f4cb1 100644
--- a/sfx2/source/appl/app.cxx
+++ b/sfx2/source/appl/app.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: app.cxx,v $
*
- * $Revision: 1.50 $
+ * $Revision: 1.51 $
*
- * last change: $Author: cd $ $Date: 2001-07-19 12:31:07 $
+ * last change: $Author: cd $ $Date: 2001-07-24 10:39:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -418,7 +418,7 @@ void SfxApplication::SetApp( SfxApplication* pSfxApp )
::osl::MutexGuard aGuard( aProtector );
#if SUPD>637
- RTL_LOGFILE_CONTEXT( aLog, "SfxApplication::SetApp()" );
+ RTL_LOGFILE_CONTEXT( aLog, "sfx2 (mba) ::SfxApplication::SetApp" );
#endif
DBG_ASSERT( !pApp, "SfxApplication already created!" );
if ( pApp )
@@ -453,11 +453,14 @@ SfxApplication::SfxApplication()
, pImageMgr( 0 )
, nInterfaces( 0 )
{
+#if SUPD>637
+ RTL_LOGFILE_CONTEXT( aLog, "sfx2 (mba) ::SfxApplication::SfxApplication" );
+#endif
+
GetpApp()->SetPropertyHandler( GetOrCreatePropertyHandler() );
#if SUPD>637
- RTL_LOGFILE_CONTEXT( aLog, "SfxApplication::SfxApplication()" );
- RTL_LOGFILE_CONTEXT_TRACE( aLog, "start create svtools option objects" );
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "{ precreate svtools options objects" );
#endif
pSaveOptions = new SvtSaveOptions;
pUndoOptions = new SvtUndoOptions;
@@ -476,12 +479,18 @@ SfxApplication::SfxApplication()
pInternalOptions = new SvtInternalOptions;
pSysLocaleOptions = new SvtSysLocaleOptions;
SvtViewOptions::AcquireOptions();
+#if SUPD>637
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "} precreate svtools options objects" );
+#endif
+#if SUPD>637
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "{ UCB_Helper::Initialize" );
+#endif
UCB_Helper::Initialize();
-
#if SUPD>637
- RTL_LOGFILE_CONTEXT_TRACE( aLog, "end create svtools option objects" );
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "} UCB_Helper::Initialize" );
#endif
+
pImp = new SfxApplication_Impl;
pImp->bConfigLoaded = sal_False;
pImp->pEmptyMenu = 0;
@@ -501,6 +510,10 @@ SfxApplication::SfxApplication()
pImp->pSimpleResManager = 0;
pImp->nWarnLevel = 0;
pImp->pAutoSaveTimer = 0;
+
+#if SUPD>637
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "{ set locale settings" );
+#endif
String sLanguage = SvtPathOptions().SubstituteVariable(String::CreateFromAscii("$(langid)"));
LanguageType eUILanguage = (LanguageType) sLanguage.ToInt32();
LanguageType eLanguage = pSysLocaleOptions->GetLocaleLanguageType();
@@ -511,21 +524,24 @@ SfxApplication::SfxApplication()
// Create instance of SvtSysLocale _after_ setting the locale at the application,
// so that it can initialize itself correctly.
pSysLocale = new SvtSysLocale;
+#if SUPD>637
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "} set locale settings" );
+#endif
pAppData_Impl = new SfxAppData_Impl( this );
pAppData_Impl->UpdateApplicationSettings( SvtMenuOptions().IsEntryHidingEnabled() );
pApp->PreInit();
#if SUPD>637
- RTL_LOGFILE_CONTEXT_TRACE( aLog, "start create SfxConfigManager" );
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "{ create SfxConfigManager" );
#endif
pCfgMgr = new SfxConfigManager;
#if SUPD>637
- RTL_LOGFILE_CONTEXT_TRACE( aLog, "end create SfxConfigManager" );
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "} create SfxConfigManager" );
#endif
#if SUPD>637
- RTL_LOGFILE_CONTEXT_TRACE( aLog, "start InitializeDDE()" );
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "{ initialize DDE" );
#endif
#ifdef DDE_AVAILABLE
#ifdef PRODUCT
@@ -543,7 +559,7 @@ SfxApplication::SfxApplication()
#endif
#endif
#if SUPD>637
- RTL_LOGFILE_CONTEXT_TRACE( aLog, "end InitializeDDE()" );
+ RTL_LOGFILE_CONTEXT_TRACE( aLog, "} initialize DDE" );
#endif
}
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index d2c4cabea148..6ec1ceca1854 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: appinit.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: cd $ $Date: 2001-07-16 12:36:30 $
+ * last change: $Author: cd $ $Date: 2001-07-24 10:40:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -237,7 +237,7 @@ void SAL_CALL SfxTerminateListener_Impl::notifyTermination( const EventObject& a
FASTBOOL SfxApplication::Initialize_Impl()
{
#if SUPD>637
- RTL_LOGFILE_CONTEXT( aLog, "SfxApplication::Initialize_Impl()" );
+ RTL_LOGFILE_CONTEXT( aLog, "sfx2 (mba) ::SfxApplication::Initialize_Impl" );
#endif
#ifdef TLX_VALIDATE
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index 95d3b3690061..b67df4262320 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fltfnc.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: as $ $Date: 2001-07-16 09:41:10 $
+ * last change: $Author: cd $ $Date: 2001-07-24 10:42:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2052,7 +2052,7 @@ const SfxFilter* SfxExecutableFilterContainer::GetChooserFilter()
void SfxFilterContainer::ReadExternalFilters( const String& rDocServiceName )
{
- RTL_LOGFILE_CONTEXT( aMeasure, "SfxFilterContainer::ReadExternalFilters()" );
+ RTL_LOGFILE_CONTEXT( aMeasure, "sfx2 (as) ::SfxFilterContainer::ReadExternalFilters" );
try
{
diff --git a/sfx2/source/view/frmload.cxx b/sfx2/source/view/frmload.cxx
index af293d20e9dc..266781c5d13e 100644
--- a/sfx2/source/view/frmload.cxx
+++ b/sfx2/source/view/frmload.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: frmload.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: as $ $Date: 2001-07-16 09:41:42 $
+ * last change: $Author: cd $ $Date: 2001-07-24 10:44:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -94,6 +94,7 @@
#endif
#include <rtl/ustring.h>
+#include <rtl/logfile.hxx>
#include <svtools/itemset.hxx>
#include <vcl/window.hxx>
#include <svtools/eitem.hxx>
@@ -176,6 +177,8 @@ sal_Bool SAL_CALL SfxFrameLoader::load( const Sequence< PropertyValue >& rArgs,
{
::vos::OGuard aGuard( Application::GetSolarMutex() );
+ RTL_LOGFILE_CONTEXT( aLog, "sfx2 (mba) ::SfxFrameLoader::load" );
+
// Extract URL from given descriptor.
String rURL;
String aTypeName;
@@ -412,6 +415,7 @@ SfxObjectFactory& SfxFrameLoader_Impl::GetFactory()
// It can detect all types for that an internal filter is known, even if the preselected filter is an external one.
// Internal filters may have "old" names that must be retrieved from a table using a static method in class SfxFilterContainer, or it may have
// a "new name that follows the rules for filter names that can be used as configuration keys.
+ RTL_LOGFILE_CONTEXT( aLog, "sfx2 (mba) ::SfxFrameLoader::detect" );
Reference < XInputStream > xStream;
String aURL;