summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-09 16:06:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-09 16:54:15 +0000
commitf5a8fa8b54e0a4a70d7439a054868d5bbdfd593b (patch)
treeead83453fbe4d17a0b54f41d652b711061871f33 /sw/source/ui/dbui
parentb6fbc8642928893ca608a35b802032cfe42e40bb (diff)
adapt code to Exchange Databases dialog
Change-Id: Ife2d92131f7cd758628ae686cde734dab56e4499
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r--sw/source/ui/dbui/dbtree.cxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/sw/source/ui/dbui/dbtree.cxx b/sw/source/ui/dbui/dbtree.cxx
index 34803ac0e13b..fe695aaed2c2 100644
--- a/sw/source/ui/dbui/dbtree.cxx
+++ b/sw/source/ui/dbui/dbtree.cxx
@@ -42,6 +42,7 @@
#include <wrtsh.hxx>
#include <dbtree.hxx>
#include <osl/mutex.hxx>
+#include <vcl/builder.hxx>
#include <vcl/svapp.hxx>
#include "svtools/treelistentry.hxx"
@@ -189,6 +190,31 @@ SwDBTreeList::SwDBTreeList(Window *pParent, const ResId& rResId,
InitTreeList();
}
+SwDBTreeList::SwDBTreeList(Window *pParent)
+ : SvTreeListBox(pParent, WB_TABSTOP)
+ , aImageList(SW_RES(ILIST_DB_DLG))
+ , bInitialized(false)
+ , bShowColumns(false)
+ , pImpl(new SwDBTreeList_Impl(NULL))
+{
+ SetHelpId(HID_DB_SELECTION_TLB);
+
+ if (IsVisible())
+ InitTreeList();
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwDBTreeList(Window *pParent, VclBuilder::stringmap &)
+{
+ return new SwDBTreeList(pParent);
+}
+
+Size SwDBTreeList::GetOptimalSize(WindowSizeType eType) const
+{
+ if (eType == WINDOWSIZE_PREFERRED)
+ return LogicToPixel(Size(100, 62), MapMode(MAP_APPFONT));
+ return SvTreeListBox::GetOptimalSize(eType);
+}
+
SwDBTreeList::~SwDBTreeList()
{
delete pImpl;