Kaydet (Commit) 56f84749 authored tarafından Caolán McNamara's avatar Caolán McNamara

de-src CustomPropertiesTypeBox widgetry

Change-Id: If98c76ec38708b73158456f4a2c93b5afbe825cd
üst f8897e4e
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <svl/eitem.hxx> #include <svl/eitem.hxx>
#include <svl/urihelper.hxx> #include <svl/urihelper.hxx>
#include <tools/datetime.hxx> #include <tools/datetime.hxx>
#include <tools/resary.hxx>
#include <tools/urlobj.hxx> #include <tools/urlobj.hxx>
#include <tools/StringListResource.hxx> #include <tools/StringListResource.hxx>
#include <vcl/layout.hxx> #include <vcl/layout.hxx>
...@@ -1421,9 +1422,18 @@ namespace ...@@ -1421,9 +1422,18 @@ namespace
} }
CustomPropertiesTypeBox::CustomPropertiesTypeBox(vcl::Window* pParent, CustomPropertyLine* pLine) CustomPropertiesTypeBox::CustomPropertiesTypeBox(vcl::Window* pParent, CustomPropertyLine* pLine)
: ListBox(pParent, SfxResId(SFX_LB_PROPERTY_TYPE)) : ListBox(pParent, WB_BORDER|WB_DROPDOWN)
, m_pLine(pLine) , 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 --------------------------------------------- // struct CustomPropertyLine ---------------------------------------------
......
...@@ -152,14 +152,9 @@ Resource RID_STR_TYPE_CONST ...@@ -152,14 +152,9 @@ Resource RID_STR_TYPE_CONST
}; };
}; };
ListBox SFX_LB_PROPERTY_TYPE StringArray SFX_LB_PROPERTY_STRINGARRAY
{ {
Pos = MAP_APPFONT ( 63 , 2 ) ; ItemList [ en-US ] =
Size = MAP_APPFONT ( 60 , 80 ) ;
DropDown = TRUE;
Border = TRUE;
CurPos = 0;
StringList [ en-US ] =
{ {
< "Text" ; CUSTOM_TYPE_TEXT ; > ; < "Text" ; CUSTOM_TYPE_TEXT ; > ;
< "DateTime" ; CUSTOM_TYPE_DATETIME ; > ; < "DateTime" ; CUSTOM_TYPE_DATETIME ; > ;
......
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
#define STR_SFX_DOCK (RID_SFX_SFXLOCAL_START + 7) #define STR_SFX_DOCK (RID_SFX_SFXLOCAL_START + 7)
#define STR_SFX_UNDOCK (RID_SFX_SFXLOCAL_START + 8) #define STR_SFX_UNDOCK (RID_SFX_SFXLOCAL_START + 8)
#define STR_SFX_QUERY_WRONG_TYPE (RID_SFX_SFXLOCAL_START + 11) #define STR_SFX_QUERY_WRONG_TYPE (RID_SFX_SFXLOCAL_START + 11)
#define SFX_LB_PROPERTY_STRINGARRAY (RID_SFX_SFXLOCAL_START + 12)
// Controls -------------------------------------------------------------- // Controls --------------------------------------------------------------
#define SFX_LB_PROPERTY_TYPE (RID_SFX_SFXLOCAL_START + 4)
#define SFX_WIN_PROPERTY_YESNO (RID_SFX_SFXLOCAL_START + 6) #define SFX_WIN_PROPERTY_YESNO (RID_SFX_SFXLOCAL_START + 6)
#define SFX_ST_DURATION_FORMAT (RID_SFX_SFXLOCAL_START + 13) #define SFX_ST_DURATION_FORMAT (RID_SFX_SFXLOCAL_START + 13)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment