From a300ba9e131be1758aa0163a6d9a9322bfedb096 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 22 May 2007 16:52:57 +0000 Subject: INTEGRATION: CWS chart2mst3 (1.2.12); FILE MERGED 2005/11/29 18:03:38 bm 1.2.12.1: ConfigurationAccess is a singleton now (ViewSingletons no longer needed) --- chart2/source/controller/inc/ConfigurationAccess.hxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'chart2/source/controller/inc/ConfigurationAccess.hxx') diff --git a/chart2/source/controller/inc/ConfigurationAccess.hxx b/chart2/source/controller/inc/ConfigurationAccess.hxx index 839a008c5a60..baa7595475f8 100644 --- a/chart2/source/controller/inc/ConfigurationAccess.hxx +++ b/chart2/source/controller/inc/ConfigurationAccess.hxx @@ -4,9 +4,9 @@ * * $RCSfile: ConfigurationAccess.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2005-09-08 00:21:55 $ + * last change: $Author: vg $ $Date: 2007-05-22 17:52:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -54,8 +54,10 @@ class CalcConfigItem; class ConfigurationAccess { public: - ConfigurationAccess(); - virtual ~ConfigurationAccess(); + // use this to get the singleton ConfigurationAccess (CTOR is private) + static ConfigurationAccess * getConfigurationAccess(); + + ~ConfigurationAccess(); /** @descr Retrieve the FieldUnit to be used for the UI. This unit is retrieved from the registry settings of the Calc application. @@ -68,6 +70,9 @@ public: FieldUnit getFieldUnit(); private: + ConfigurationAccess(); + + static ConfigurationAccess * m_pThis; CalcConfigItem* m_pCalcConfigItem; }; -- cgit