diff --git a/misc/schema/xrc_schema.rnc b/misc/schema/xrc_schema.rnc index 06b1a111f2..d1720552bc 100644 --- a/misc/schema/xrc_schema.rnc +++ b/misc/schema/xrc_schema.rnc @@ -461,6 +461,8 @@ t_imagelist = ( t_list_of_numbers = xsd:string { pattern = "\d+(,\d+)*" } +t_list_of_numbers_with_weights = xsd:string { pattern = "\d+(:\d+)?(,\d+(:\d+)?)*" } + # # Handlers for non- content: @@ -1589,8 +1591,8 @@ wxFlexGridSizer = [xrc:p="o"] element nonflexiblegrowmode {_, ("wxFLEX_GROWMODE_NONE" | "wxFLEX_GROWMODE_SPECIFIED" | "wxFLEX_GROWMODE_ALL") }* & - [xrc:p="o"] element growablerows {_, t_list_of_numbers }* & - [xrc:p="o"] element growablecols {_, t_list_of_numbers }* & + [xrc:p="o"] element growablerows {_, t_list_of_numbers_with_weights }* & + [xrc:p="o"] element growablecols {_, t_list_of_numbers_with_weights }* & (wxSizer_item | objectRef)* } @@ -1605,8 +1607,8 @@ wxGridBagSizer = [xrc:p="o"] element nonflexiblegrowmode {_, ("wxFLEX_GROWMODE_NONE" | "wxFLEX_GROWMODE_SPECIFIED" | "wxFLEX_GROWMODE_ALL") }* & - [xrc:p="o"] element growablerows {_, t_list_of_numbers }* & - [xrc:p="o"] element growablecols {_, t_list_of_numbers }* & + [xrc:p="o"] element growablerows {_, t_list_of_numbers_with_weights }* & + [xrc:p="o"] element growablecols {_, t_list_of_numbers_with_weights }* & (wxSizer_item | objectRef)* }