Kaydet (Commit) dbfbfd08 authored tarafından Cao Cuong Ngo's avatar Cao Cuong Ngo Kaydeden (comit) Cédric Bosdonnat

CMIS properties dialog

Fix properties type editing

Change-Id: Ic36f0351ec738e7444508f8326c23e89150c9603
üst ef3007ac
...@@ -594,14 +594,12 @@ public: ...@@ -594,14 +594,12 @@ public:
struct CmisPropertyLine struct CmisPropertyLine
{ {
ComboBox m_aNameBox; SelectableFixedText m_aNameBox;
CmisPropertiesTypeBox m_aTypeBox; CmisPropertiesTypeBox m_aTypeBox;
CmisPropertiesEdit m_aValueEdit; CmisPropertiesEdit m_aValueEdit;
CmisPropertiesDateField m_aDateField; CmisPropertiesDateField m_aDateField;
CmisPropertiesTimeField m_aTimeField; CmisPropertiesTimeField m_aTimeField;
CmisPropertiesEditButton m_aEditButton;
CmisPropertiesYesNoButton m_aYesNoButton; CmisPropertiesYesNoButton m_aYesNoButton;
Point m_aDatePos; Point m_aDatePos;
Point m_aTimePos; Point m_aTimePos;
Size m_aDateTimeSize; Size m_aDateTimeSize;
...@@ -617,12 +615,11 @@ struct CmisPropertyLine ...@@ -617,12 +615,11 @@ struct CmisPropertyLine
class CmisPropertiesWindow : public Window class CmisPropertiesWindow : public Window
{ {
private: private:
ComboBox m_aNameBox; SelectableFixedText m_aNameBox;
ListBox m_aTypeBox; ListBox m_aTypeBox;
Edit m_aValueEdit; Edit m_aValueEdit;
DateField m_aDateField; DateField m_aDateField;
TimeField m_aTimeField; TimeField m_aTimeField;
PushButton m_aEditButton;
CmisPropertiesYesNoButton m_aYesNoButton; CmisPropertiesYesNoButton m_aYesNoButton;
sal_Int32 m_nLineHeight; sal_Int32 m_nLineHeight;
......
This diff is collapsed.
...@@ -31,6 +31,12 @@ ...@@ -31,6 +31,12 @@
#define CUSTOM_TYPE_DURATION 5 #define CUSTOM_TYPE_DURATION 5
#define CUSTOM_TYPE_DATETIME 6 #define CUSTOM_TYPE_DATETIME 6
#define CMIS_TYPE_ANY 0
#define CMIS_TYPE_STRING 1
#define CMIS_TYPE_NUMBER 2
#define CMIS_TYPE_DATETIME 3
#define CMIS_TYPE_BOOLEAN 4
// defines --------------------------------------------------------------- // defines ---------------------------------------------------------------
#define RB_PROPERTY_YES 100 #define RB_PROPERTY_YES 100
......
...@@ -90,6 +90,23 @@ ListBox SFX_LB_PROPERTY_TYPE ...@@ -90,6 +90,23 @@ ListBox SFX_LB_PROPERTY_TYPE
< "Yes or no" ; CUSTOM_TYPE_BOOLEAN ; > ; < "Yes or no" ; CUSTOM_TYPE_BOOLEAN ; > ;
}; };
}; };
ListBox SFX_LB_CMIS_PROPERTY_TYPE
{
Pos = MAP_APPFONT ( 63 , 2 ) ;
Size = MAP_APPFONT ( 60 , 80 ) ;
DropDown = TRUE;
Border = TRUE;
CurPos = 0;
StringList [ en-US ] =
{
< "Text" ; CMIS_TYPE_STRING ; > ;
< "DateTime" ; CMIS_TYPE_DATETIME ; > ;
< "Integer" ; CMIS_TYPE_NUMBER ; > ;
< "Decimal" ; CMIS_TYPE_NUMBER ; > ;
< "Boolean" ; CMIS_TYPE_BOOLEAN ; > ;
};
};
Edit SFX_ED_PROPERTY_VALUE Edit SFX_ED_PROPERTY_VALUE
{ {
Border = TRUE ; Border = TRUE ;
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#define SFX_FLD_TIME (RID_SFX_SFXLOCAL_START + 11) #define SFX_FLD_TIME (RID_SFX_SFXLOCAL_START + 11)
#define SFX_FLD_DURATION (RID_SFX_SFXLOCAL_START + 12) #define SFX_FLD_DURATION (RID_SFX_SFXLOCAL_START + 12)
#define SFX_ST_DURATION_FORMAT (RID_SFX_SFXLOCAL_START + 13) #define SFX_ST_DURATION_FORMAT (RID_SFX_SFXLOCAL_START + 13)
#define SFX_LB_CMIS_PROPERTY_TYPE (RID_SFX_SFXLOCAL_START + 14)
// Images ---------------------------------------------------------------- // Images ----------------------------------------------------------------
......
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