summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basicbox.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-01-02 14:49:02 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-01-02 14:49:02 +0000
commit20a10279ac5caacf019e135c23b2cfc54dc3f172 (patch)
treee9cacd6ee3dcbc94adcbf40358068991c17f478c /basctl/source/basicide/basicbox.hxx
parent9d5e3737d40175c24726eb6b608ee46b5460e681 (diff)
INTEGRATION: CWS ab31 (1.5.106); FILE MERGED
2006/12/14 12:48:52 pb 1.5.106.3: fix: #i72282# more implemented 2006/12/13 16:58:10 pb 1.5.106.2: fix: #i72282# class BasicLanguageBox added 2006/12/07 08:23:30 pb 1.5.106.1: fix: #i72282# new class LangBoxControl
Diffstat (limited to 'basctl/source/basicide/basicbox.hxx')
-rw-r--r--basctl/source/basicide/basicbox.hxx50
1 files changed, 44 insertions, 6 deletions
diff --git a/basctl/source/basicide/basicbox.hxx b/basctl/source/basicide/basicbox.hxx
index cd7c6923758b..417649c64e65 100644
--- a/basctl/source/basicide/basicbox.hxx
+++ b/basctl/source/basicide/basicbox.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: basicbox.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2006-01-10 14:02:19 $
+ * last change: $Author: hr $ $Date: 2007-01-02 15:49:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -77,7 +77,10 @@ private:
void ReleaseFocus();
void InsertEntries( SfxObjectShell* pShell, LibraryLocation eLocation );
- void DeleteEntryData();
+
+ void FillBox( BOOL bSelect = TRUE );
+ void ClearBox();
+ void NotifyIDE();
protected:
virtual void Select();
@@ -92,12 +95,47 @@ public:
const com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame );
~BasicLibBox();
- void FillBox( BOOL bSelect = TRUE );
void Update( const SfxStringItem* pItem );
- void NotifyIDE();
- void Clear();
};
+class LanguageBoxControl: public SfxToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ LanguageBoxControl( USHORT nSlotId, USHORT nId, ToolBox& rTbx );
+ ~LanguageBoxControl();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState );
+ virtual Window* CreateItemWindow( Window *pParent );
+};
+
+class BasicLanguageBox : public ListBox, public SfxListener
+{
+private:
+ String m_sNotLocalizedStr;
+ String m_sDefaultLanguageStr;
+ String m_sCurrentText;
+
+ bool m_bIgnoreSelect;
+
+ void FillBox();
+ void ClearBox();
+ void SetLanguage();
+
+protected:
+ virtual void Select();
+ virtual long PreNotify( NotifyEvent& rNEvt );
+
+ virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
+ const SfxHint& rHint, const TypeId& rHintType );
+
+public:
+ BasicLanguageBox( Window* pParent );
+ ~BasicLanguageBox();
+
+ void Update( const SfxStringItem* pItem );
+};
#endif // _BASICBOX_HXX