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