summaryrefslogtreecommitdiff
path: root/svx/inc/svx/langbox.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/inc/svx/langbox.hxx')
-rw-r--r--svx/inc/svx/langbox.hxx28
1 files changed, 27 insertions, 1 deletions
diff --git a/svx/inc/svx/langbox.hxx b/svx/inc/svx/langbox.hxx
index 014fe480e4..888640fd6e 100644
--- a/svx/inc/svx/langbox.hxx
+++ b/svx/inc/svx/langbox.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,6 +37,7 @@
#include "svx/svxdllapi.h"
#include <vcl/image.hxx>
#include <tools/solar.h>
+#include <layout/layout.hxx>
class SvtLanguageTable;
@@ -96,5 +97,30 @@ public:
BOOL IsLanguageSelected( const LanguageType eLangType ) const;
};
+#if ENABLE_LAYOUT
+namespace layout
+{
+class SvxLanguageBoxImpl;
+class SVX_DLLPUBLIC SvxLanguageBox : public ListBox
+{
+ /*DECL_GET_IMPL( SvxLanguageBox );
+ DECL_CONSTRUCTORS( SvxLanguageBox, ListBox, WB_BORDER );
+ DECL_GET_WINDOW (SvxLanguageBox);*/
+
+public:
+ SvxLanguageBox( Context*, const char*, BOOL bCheck = FALSE );
+ ~SvxLanguageBox ();
+ void SetLanguageList (sal_Int16 list, bool hasLangNone, bool langNoneIsLangAll=false, bool checkSpellAvailable=false);
+
+ sal_uInt16 InsertLanguage (LanguageType const type, sal_uInt16 pos=LISTBOX_APPEND);
+ sal_uInt16 InsertLanguage (LanguageType const type, bool checkEntry, sal_uInt16 pos=LISTBOX_APPEND);
+ void RemoveLanguage (LanguageType const type);
+ void SelectLanguage (LanguageType const type, bool select=true);
+ LanguageType GetSelectLanguage () const;
+ bool IsLanguageSelected( LanguageType const type) const;
+};
+};
+#endif
+
#endif