summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/dinfdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/dinfdlg.cxx')
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 1d3a2f01fab1..23d7a92a3f0e 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -20,6 +20,7 @@
#include <svl/eitem.hxx>
#include <svl/urihelper.hxx>
#include <tools/datetime.hxx>
+#include <tools/resary.hxx>
#include <tools/urlobj.hxx>
#include <tools/StringListResource.hxx>
#include <vcl/layout.hxx>
@@ -1421,9 +1422,18 @@ namespace
}
CustomPropertiesTypeBox::CustomPropertiesTypeBox(vcl::Window* pParent, CustomPropertyLine* pLine)
- : ListBox(pParent, SfxResId(SFX_LB_PROPERTY_TYPE))
+ : ListBox(pParent, WB_BORDER|WB_DROPDOWN)
, m_pLine(pLine)
{
+ SetPosSizePixel(LogicToPixel(Point(63, 2), MapUnit::MapAppFont),
+ LogicToPixel(Size(60, 80), MapUnit::MapAppFont));
+ ResStringArray aStrArr(SfxResId(SFX_LB_PROPERTY_STRINGARRAY));
+ for (sal_uInt32 i = 0; i < aStrArr.Count(); ++i)
+ {
+ InsertEntry(aStrArr.GetString(i));
+ SetEntryData(i, reinterpret_cast<void*>(aStrArr.GetValue(i)));
+ }
+ SelectEntryPos(0);
}
// struct CustomPropertyLine ---------------------------------------------