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

CMIS properties: make multiple values

Change-Id: I0d5ed8fbfd113940aadc117bcc7cf751be246071
üst ac11dee3
...@@ -514,6 +514,29 @@ public: ...@@ -514,6 +514,29 @@ public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& ); static SfxTabPage* Create( Window* pParent, const SfxItemSet& );
}; };
struct CmisValue : public VclBuilderContainer
{
Edit* m_aValueEdit;
CmisValue( Window* pParent, const OUString& aStr );
};
struct CmisDateTime : public VclBuilderContainer
{
DateField* m_aDateField;
TimeField* m_aTimeField;
CmisDateTime( Window* pParent, const ::com::sun::star::util::DateTime& aDateTime );
};
struct CmisYesNo : public VclBuilderContainer
{
RadioButton* m_aYesButton;
RadioButton* m_aNoButton;
CmisYesNo( Window* pParent, bool bValue);
};
// struct CmisPropertyLine --------------------------------------------- // struct CmisPropertyLine ---------------------------------------------
struct CmisPropertyLine : public VclBuilderContainer struct CmisPropertyLine : public VclBuilderContainer
...@@ -527,14 +550,13 @@ struct CmisPropertyLine : public VclBuilderContainer ...@@ -527,14 +550,13 @@ struct CmisPropertyLine : public VclBuilderContainer
bool m_bOpenChoice; bool m_bOpenChoice;
FixedText* m_aName; FixedText* m_aName;
FixedText* m_aType; FixedText* m_aType;
Edit* m_aValueEdit; std::vector< CmisValue* > m_aValues;
DateField* m_aDateField; std::vector< CmisDateTime* > m_aDateTimes;
TimeField* m_aTimeField; std::vector< CmisYesNo* > m_aYesNos;
RadioButton* m_aYesButton; sal_Int32 m_nNumValue;
RadioButton* m_aNoButton;
long getItemHeight() const; long getItemHeight() const;
CmisPropertyLine( Window* pParent ); CmisPropertyLine( Window* pParent );
~CmisPropertyLine();
}; };
// class CmisPropertiesWindow ------------------------------------------ // class CmisPropertiesWindow ------------------------------------------
......
This diff is collapsed.
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
<property name="label_xalign">0</property> <property name="label_xalign">0</property>
<property name="label_yalign">0</property>
<property name="shadow_type">none</property> <property name="shadow_type">none</property>
<child> <child>
<object class="GtkAlignment" id="alignment1"> <object class="GtkAlignment" id="alignment1">
...@@ -23,9 +24,9 @@ ...@@ -23,9 +24,9 @@
<object class="GtkLabel" id="name"> <object class="GtkLabel" id="name">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xpad">95</property> <property name="xalign">0</property>
<property name="label" translatable="yes">Name</property> <property name="yalign">0</property>
<property name="width_chars">26</property> <property name="width_chars">30</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
</attributes> </attributes>
...@@ -39,9 +40,9 @@ ...@@ -39,9 +40,9 @@
</child> </child>
<child> <child>
<object class="GtkLabel" id="type"> <object class="GtkLabel" id="type">
<property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xpad">47</property> <property name="xalign">0</property>
<property name="yalign">0</property>
<property name="label" translatable="yes">Type</property> <property name="label" translatable="yes">Type</property>
<property name="width_chars">8</property> <property name="width_chars">8</property>
<attributes> <attributes>
...@@ -59,12 +60,12 @@ ...@@ -59,12 +60,12 @@
<object class="GtkRadioButton" id="yes"> <object class="GtkRadioButton" id="yes">
<property name="label" translatable="yes">Yes</property> <property name="label" translatable="yes">Yes</property>
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="yalign">0</property>
<property name="active">True</property> <property name="active">True</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
<property name="group">no</property> <property name="group">no</property>
...@@ -80,12 +81,12 @@ ...@@ -80,12 +81,12 @@
<object class="GtkRadioButton" id="no"> <object class="GtkRadioButton" id="no">
<property name="label" translatable="yes">No</property> <property name="label" translatable="yes">No</property>
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="yalign">0</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
<property name="group">yes</property> <property name="group">yes</property>
</object> </object>
...@@ -98,9 +99,8 @@ ...@@ -98,9 +99,8 @@
</child> </child>
<child> <child>
<object class="GtkEntry" id="value"> <object class="GtkEntry" id="value">
<property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="max_length">80</property> <property name="max_length">300</property>
<property name="width_chars">55</property> <property name="width_chars">55</property>
</object> </object>
<packing> <packing>
......
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