summaryrefslogtreecommitdiff
path: root/svl/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-12-06 20:28:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-12-06 20:28:57 +0100
commitf141ea7d74eaef051a40ab366c2bd287d234539b (patch)
treeb195de3f5c24c005d95ee6206a09286c4d1a42b4 /svl/inc
parent2a9c1d1a75b7d4e79dfbc6be3dada1a1e959e58e (diff)
Use configmgr directly in SvxAsianConfig.
Diffstat (limited to 'svl/inc')
-rw-r--r--svl/inc/svl/asiancfg.hxx68
1 files changed, 38 insertions, 30 deletions
diff --git a/svl/inc/svl/asiancfg.hxx b/svl/inc/svl/asiancfg.hxx
index a646b26733b3..733aea6a3bc0 100644
--- a/svl/inc/svl/asiancfg.hxx
+++ b/svl/inc/svl/asiancfg.hxx
@@ -25,46 +25,54 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-#ifndef _SVX_ASIANCFG_HXX
-#define _SVX_ASIANCFG_HXX
-#include <unotools/configitem.hxx>
-#include <com/sun/star/uno/Sequence.h>
-#include <svl/svldllapi.h>
+#ifndef INCLUDED_SVL_ASIANCFG_HXX
+#define INCLUDED_SVL_ASIANCFG_HXX
-namespace com{namespace sun{namespace star{
-namespace lang{
+#include "sal/config.h"
+
+#include "boost/noncopyable.hpp"
+#include "boost/scoped_ptr.hpp"
+#include "com/sun/star/uno/Sequence.hxx"
+#include "sal/types.h"
+#include "svl/svldllapi.h"
+
+namespace com { namespace sun { namespace star { namespace lang {
struct Locale;
-}}}}
-//-----------------------------------------------------------------------------
-struct SvxAsianConfig_Impl;
-class SVL_DLLPUBLIC SvxAsianConfig : public utl::ConfigItem
-{
- SvxAsianConfig_Impl* pImpl;
+} } } }
+namespace rtl { class OUString; }
+class SVL_DLLPUBLIC SvxAsianConfig: private boost::noncopyable {
public:
- SvxAsianConfig(sal_Bool bEnableNotify = sal_True);
- virtual ~SvxAsianConfig();
+ SvxAsianConfig();
+
+ ~SvxAsianConfig();
+
+ void Commit();
+
+ bool IsKerningWesternTextOnly() const;
+
+ void SetKerningWesternTextOnly(bool value);
+
+ sal_Int16 GetCharDistanceCompression() const;
+
+ void SetCharDistanceCompression(sal_Int16 value);
- void Load();
- virtual void Commit();
- virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
+ com::sun::star::uno::Sequence< com::sun::star::lang::Locale >
+ GetStartEndCharLocales() const;
- sal_Bool IsKerningWesternTextOnly() const;
- void SetKerningWesternTextOnly(sal_Bool bSet);
+ bool GetStartEndChars(
+ com::sun::star::lang::Locale const & locale, rtl::OUString & startChars,
+ rtl::OUString & endChars) const;
- sal_Int16 GetCharDistanceCompression() const;
- void SetCharDistanceCompression(sal_Int16 nSet);
+ void SetStartEndChars(
+ com::sun::star::lang::Locale const & locale,
+ rtl::OUString const * startChars, rtl::OUString const * endChars);
- com::sun::star::uno::Sequence<com::sun::star::lang::Locale>
- GetStartEndCharLocales();
+private:
+ class Impl;
- sal_Bool GetStartEndChars( const com::sun::star::lang::Locale& rLocale,
- rtl::OUString& rStartChars,
- rtl::OUString& rEndChars );
- void SetStartEndChars( const com::sun::star::lang::Locale& rLocale,
- const rtl::OUString* pStartChars,
- const rtl::OUString* pEndChars );
+ boost::scoped_ptr< Impl > impl_;
};
#endif