summaryrefslogtreecommitdiff
path: root/svtools/inc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 19:44:28 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 19:44:28 +0000
commit1ac4590906d46c5fa6223025dd5e249c96d5647a (patch)
tree65a21d5c22ab2cb4d4a470cec73a4bea157a22d5 /svtools/inc
parent352b1ab173ca5a9d36461a369ecaa8c6b7f2ac1e (diff)
INTEGRATION: CWS dialogdiet (1.1.2); FILE ADDED
2003/11/28 16:37:23 mba 1.1.2.1: #i22972#: AppearanceConfig moved to svt
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/apearcfg.hxx161
1 files changed, 161 insertions, 0 deletions
diff --git a/svtools/inc/apearcfg.hxx b/svtools/inc/apearcfg.hxx
new file mode 100644
index 000000000000..c14627c4b37a
--- /dev/null
+++ b/svtools/inc/apearcfg.hxx
@@ -0,0 +1,161 @@
+/*************************************************************************
+ *
+ * $RCSfile: apearcfg.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: hr $ $Date: 2004-02-03 20:44:28 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SVT_APEARCFG_HXX
+#define _SVT_APEARCFG_HXX
+
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+#ifndef _UTL_CONFIGITEM_HXX_
+#include <unotools/configitem.hxx>
+#endif
+
+/*--------------------------------------------------------------------
+ Beschreibung:
+ --------------------------------------------------------------------*/
+typedef enum {
+ LookStardivision = 0,
+ LookMotif,
+ LookWindows,
+ LookOSTwo,
+ LookMacintosh
+} SystemLook;
+
+typedef enum {
+ SnapToButton = 0,
+ SnapToMiddle,
+ NoSnap
+} SnapType;
+
+typedef enum { // MUST match the order chosen in ListBox LB_DRAG_MODE in optgdlg.src
+ DragFullWindow,
+ DragFrame,
+ DragSystemDep
+} DragMode;
+
+
+class SvtTabAppearanceCfg : public utl::ConfigItem
+{
+ short nLookNFeel ;
+ short nDragMode ;
+ short nScaleFactor ;
+ short nSnapMode ;
+ short nMiddleMouse;
+#if defined( UNX ) || defined ( FS_PRIV_DEBUG )
+ short nAAMinPixelHeight ;
+#endif
+
+ BOOL bMenuMouseFollow ;
+ BOOL bSingleLineTabCtrl ;
+ BOOL bColoredTabCtrl ;
+#if defined( UNX ) || defined ( FS_PRIV_DEBUG )
+ BOOL bFontAntialiasing ;
+#endif
+
+ static sal_Bool bInitialized ;
+
+ const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
+
+public:
+ SvtTabAppearanceCfg( );
+ ~SvtTabAppearanceCfg( );
+
+ virtual void Commit();
+
+ USHORT GetLookNFeel () const { return nLookNFeel; }
+ void SetLookNFeel ( USHORT nSet );
+
+ USHORT GetDragMode () const { return nDragMode; }
+ void SetDragMode ( USHORT nSet );
+
+ USHORT GetScaleFactor () const { return nScaleFactor; }
+ void SetScaleFactor ( USHORT nSet );
+
+ USHORT GetSnapMode () const { return nSnapMode; }
+ void SetSnapMode ( USHORT nSet );
+
+ USHORT GetMiddleMouseButton () const { return nMiddleMouse; }
+ void SetMiddleMouseButton ( USHORT nSet );
+
+ void SetApplicationDefaults ( Application* pApp );
+
+ void SetMenuMouseFollow(BOOL bSet) {bMenuMouseFollow = bSet; SetModified();}
+ BOOL IsMenuMouseFollow() const{return bMenuMouseFollow;}
+
+ void SetSingleLineTabCtrl(BOOL bSet) {bSingleLineTabCtrl = bSet; SetModified();}
+ BOOL IsSingleLineTabCtrl()const {return bSingleLineTabCtrl;}
+
+#if defined( UNX ) || defined ( FS_PRIV_DEBUG )
+ void SetFontAntiAliasing( BOOL bSet ) { bFontAntialiasing = bSet; SetModified(); }
+ BOOL IsFontAntiAliasing() const { return bFontAntialiasing; }
+
+ USHORT GetFontAntialiasingMinPixelHeight( ) const { return nAAMinPixelHeight; }
+ void SetFontAntialiasingMinPixelHeight( USHORT _nMinHeight ) { nAAMinPixelHeight = _nMinHeight; SetModified(); }
+#endif
+
+ void SetColoredTabCtrl(BOOL bSet) {bColoredTabCtrl = bSet; SetModified();};
+ BOOL IsColoredTabCtrl()const {return bColoredTabCtrl;}
+
+ static sal_Bool IsInitialized() { return bInitialized; }
+ static void SetInitialized() { bInitialized = sal_True; }
+};
+
+#endif // _OFA_APEARCFG_HXX