Beispiel #1
0
/// draw-line-attlist
void draw_line_attlist::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"svg:x1", svg_x1_);
    CP_APPLY_ATTR(L"svg:x2", svg_x2_);
    CP_APPLY_ATTR(L"svg:y1", svg_y1_);
    CP_APPLY_ATTR(L"svg:y2", svg_y2_);
}
void style_drop_cap::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"style:length", style_length_, drop_cap_length());
    CP_APPLY_ATTR(L"style:lines", style_lines_, (unsigned int)1);
    CP_APPLY_ATTR(L"style:distance", style_distance_);
    CP_APPLY_ATTR(L"style:style-name", style_style_name_);
}
void presentation_placeholder::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
	CP_APPLY_ATTR(L"presentation:object", presentation_object_);
	
	CP_APPLY_ATTR(L"svg:height", svg_height_);
	CP_APPLY_ATTR(L"svg:width", svg_width_);
	CP_APPLY_ATTR(L"svg:x", svg_x_);
	CP_APPLY_ATTR(L"svg:y", svg_y_);

}
Beispiel #4
0
void draw_a::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
	common_xlink_attlist_.add_attributes(Attributes);

    CP_APPLY_ATTR(L"office:name"				, office_name_				, std::wstring(L""));
    CP_APPLY_ATTR(L"office:target-frame-name"	, office_target_frame_name_);
    CP_APPLY_ATTR(L"text:style-name"			, text_style_name_			, std::wstring(L""));
    CP_APPLY_ATTR(L"text:visited-style-name"	, text_visited_style_name_	, std::wstring(L""));

}
void style_background_image::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"style:repeat", style_repeat_);
    CP_APPLY_ATTR(L"style:position", style_position_);
    CP_APPLY_ATTR(L"filter:name", filter_name_);
    CP_APPLY_ATTR(L"draw:opacity", draw_opacity_);

    common_xlink_attlist tmp;
    if (tmp.add_attributes(Attributes))
    {
        common_xlink_attlist_ = _CP_OPT(common_xlink_attlist)(tmp);
    }
}
void style_tab_stop::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"style:position", style_position_, length());
    CP_APPLY_ATTR(L"style:type", style_type_);
    CP_APPLY_ATTR(L"style:char", style_char_);
    
    CP_APPLY_ATTR(L"style:leader-type", style_leader_style_);
    CP_APPLY_ATTR(L"style:leader-style", style_leader_style_);
    CP_APPLY_ATTR(L"style:leader-width", style_leader_width_);
    CP_APPLY_ATTR(L"style:leader-color", style_leader_color_);
    CP_APPLY_ATTR(L"style:leader-text", style_leader_text_);
    CP_APPLY_ATTR(L"style:leader-text-style", style_leader_text_style_);  

}
void drawing_page_properties::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
	common_draw_fill_attlist_.add_attributes(Attributes);
	anim_transition_filter_attlist_.add_attributes(Attributes);

	CP_APPLY_ATTR(L"draw:fill-image-height",	draw_fill_image_height_);
	CP_APPLY_ATTR(L"draw:fill-image-width",		draw_fill_image_width_);
	CP_APPLY_ATTR(L"draw:background-size",		draw_background_size_);

	CP_APPLY_ATTR(L"presentation:transition-type",		presentation_transition_type_);
	CP_APPLY_ATTR(L"presentation:transition-style",		presentation_transition_style_);
	CP_APPLY_ATTR(L"presentation:transition-speed",		presentation_transition_speed_);

	CP_APPLY_ATTR(L"presentation:display-footer",		presentation_display_footer_);
	CP_APPLY_ATTR(L"presentation:display-page-number",	presentation_display_page_number_);
	CP_APPLY_ATTR(L"presentation:display-date-time",	presentation_display_date_time_);
	CP_APPLY_ATTR(L"presentation:display-header",		presentation_display_header_);
}
Beispiel #8
0
void draw_handle_attlist::add_attributes( const xml::attributes_wc_ptr & Attributes )
{	
	CP_APPLY_ATTR(L"draw:handle-position", draw_handle_position_);

	CP_APPLY_ATTR(L"draw:handle-range-y-maximum", draw_handle_range_y_maximum_);
	CP_APPLY_ATTR(L"draw:handle-range-y-minimum", draw_handle_range_y_minimum_);

	CP_APPLY_ATTR(L"draw:handle-range-x-maximum", draw_handle_range_x_maximum_);
	CP_APPLY_ATTR(L"draw:handle-range-x-minimum", draw_handle_range_x_minimum_);
	
	CP_APPLY_ATTR(L"draw:handle-radius-range-maximum", draw_handle_radius_range_maximum_);
	CP_APPLY_ATTR(L"draw:handle-radius-range-minimum", draw_handle_radius_range_minimum_);
	
	CP_APPLY_ATTR(L"draw:handle-polar", draw_handle_polar_);
}
void graphic_format_properties::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
	common_draw_fill_attlist_.add_attributes(Attributes);

	CP_APPLY_ATTR(L"draw:wrap-influence-on-position",	draw_wrap_influence_on_position_);
	CP_APPLY_ATTR(L"draw:textarea-horizontal-align",	draw_textarea_horizontal_align_);
	CP_APPLY_ATTR(L"draw:textarea-vertical-align",		draw_textarea_vertical_align_);
	CP_APPLY_ATTR(L"draw:auto-grow-height",				draw_auto_grow_height_);
	CP_APPLY_ATTR(L"draw:auto-grow-width",				draw_auto_grow_width_);
	CP_APPLY_ATTR(L"draw:fit-to-size",					draw_fit_to_size_);
	CP_APPLY_ATTR(L"draw:fit-to-contour",				draw_fit_to_contour_);

	CP_APPLY_ATTR(L"draw:stroke",						draw_stroke_); 
	CP_APPLY_ATTR(L"draw:stroke-dash",					draw_stroke_dash_); 
	CP_APPLY_ATTR(L"draw:marker-start",					draw_marker_start_); 
	CP_APPLY_ATTR(L"draw:marker-end",					draw_marker_end_); 

	CP_APPLY_ATTR(L"svg:stroke-color",					svg_stroke_color_); 
	CP_APPLY_ATTR(L"svg:stroke-width",					svg_stroke_width_);	
	CP_APPLY_ATTR(L"svg:stroke-opacity",				svg_stroke_opacity_); 

	CP_APPLY_ATTR(L"fo:min-width",						fo_min_width_);
    CP_APPLY_ATTR(L"fo:min-height",						fo_min_height_);
    CP_APPLY_ATTR(L"fo:max-width",						fo_max_width_);
    CP_APPLY_ATTR(L"fo:max-height",						fo_max_height_);
    CP_APPLY_ATTR(L"fo:clip",							fo_clip_);
	 CP_APPLY_ATTR(L"fo:wrap-option",					fo_wrap_option_);
   
	CP_APPLY_ATTR(L"style:print-content",				style_print_content_);
    CP_APPLY_ATTR(L"style:protect",						style_protect_);
 	CP_APPLY_ATTR(L"style:editable",					style_editable_);
    CP_APPLY_ATTR(L"style:wrap",						style_wrap_);
    CP_APPLY_ATTR(L"style:wrap-dynamic-treshold",		style_wrap_dynamic_treshold_);
    CP_APPLY_ATTR(L"style:number-wrapped-paragraphs",	style_number_wrapped_paragraphs_);
    CP_APPLY_ATTR(L"style:wrap-contour",				style_wrap_contour_);
    CP_APPLY_ATTR(L"style:wrap-contour-mode",			style_wrap_contour_mode_);
    CP_APPLY_ATTR(L"style:run-through",					style_run_through_); 
    CP_APPLY_ATTR(L"style:flow-with-text",				style_flow_with_text_);
    CP_APPLY_ATTR(L"style:overflow-behavior",			style_overflow_behavior_);
    CP_APPLY_ATTR(L"style:mirror",						style_mirror_);
	
	common_draw_rel_size_attlist_.add_attributes(Attributes);
	common_horizontal_margin_attlist_.add_attributes(Attributes);
    common_vertical_margin_attlist_.add_attributes(Attributes);
    common_margin_attlist_.add_attributes(Attributes);
    common_horizontal_pos_attlist_.add_attributes(Attributes);
    common_horizontal_rel_attlist_.add_attributes(Attributes);    
    common_vertical_pos_attlist_.add_attributes(Attributes);
    common_vertical_rel_attlist_.add_attributes(Attributes);
    common_text_anchor_attlist_.add_attributes(Attributes);
    common_border_attlist_.add_attributes(Attributes);
    common_border_line_width_attlist_.add_attributes(Attributes);
    common_padding_attlist_.add_attributes(Attributes);
    common_shadow_attlist_.add_attributes(Attributes);
    common_background_color_attlist_.add_attributes(Attributes);
    
}
Beispiel #10
0
void draw_rect_attlist::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"draw:filter-name", draw_filter_name_);
	CP_APPLY_ATTR(L"draw:corner-radius",draw_corner_radius_);
}
Beispiel #11
0
//-------------------------------------------------------------------------------------------
void draw_equation_attlist::add_attributes( const xml::attributes_wc_ptr & Attributes )
{	
	CP_APPLY_ATTR(L"draw:name", draw_name_);
	CP_APPLY_ATTR(L"draw:formula", draw_formula_);
}
Beispiel #12
0
void draw_polyline_attlist::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"draw:points", draw_points_);
    CP_APPLY_ATTR(L"svg:viewBox", svg_viewbox_);

}
void table_iteration::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"table:status", table_status_);
    CP_APPLY_ATTR(L"table:steps", table_steps_);
    CP_APPLY_ATTR(L"table:maximum-difference", table_maximum_difference_);
}
Beispiel #14
0
void draw_ellipse_attlist::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"draw:filter-name", draw_filter_name_);
}
void paragraph_format_properties::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    // 15.5.1 
    CP_APPLY_ATTR(L"fo:line-height", fo_line_height_);
    
    // 15.5.2 
    CP_APPLY_ATTR(L"style:line-height-at-least", style_line_height_at_least_);

    // 15.5.3 
    CP_APPLY_ATTR(L"style:line-spacing", style_line_spacing_);

    // 15.5.4 
    CP_APPLY_ATTR(L"style:font-independent-line-spacing", style_font_independent_line_spacing_);

    // 15.5.5 
    CP_APPLY_ATTR(L"fo:text-align", fo_text_align_);

    // 15.5.6 
    CP_APPLY_ATTR(L"fo:text-align-last", fo_text_align_last_);

    // 15.5.7 
    CP_APPLY_ATTR(L"style:justify-single-word", style_justify_single_word_);

    // 15.5.8 
    CP_APPLY_ATTR(L"fo:keep-together", fo_keep_together_);
    
    // 15.5.9 
    CP_APPLY_ATTR(L"fo:widows", fo_widows_);

    // 15.5.10 
    CP_APPLY_ATTR(L"fo:orphans", fo_orphans_);

    // 15.5.11 - Element
   
    // 15.5.12 
    CP_APPLY_ATTR(L"style:tab-stop-distance", style_tab_stop_distance_);

    // 15.5.13 
    CP_APPLY_ATTR(L"fo:hyphenation-keep", fo_hyphenation_keep_);

    // 15.5.14 
    CP_APPLY_ATTR(L"fo:hyphenation-ladder-count", fo_hyphenation_ladder_count_);
    
    // 15.5.15  - Element
      
    // 15.5.16 
    CP_APPLY_ATTR(L"style:register-true", style_register_true_);

    // 15.5.17 
    CP_APPLY_ATTR(L"fo:margin-left", fo_margin_left_);

    // 
    CP_APPLY_ATTR(L"fo:margin-right", fo_margin_right_);

    // 15.5.18 
    CP_APPLY_ATTR(L"fo:text-indent", fo_text_indent_);

    // 15.5.19 
    CP_APPLY_ATTR(L"style:auto-text-indent", style_auto_text_indent_);

    // 15.5.20 
    CP_APPLY_ATTR(L"fo:margin-top", fo_margin_top_);
    
    // 
    CP_APPLY_ATTR(L"fo:margin-bottom", fo_margin_bottom_);

    // 15.5.21 
    CP_APPLY_ATTR(L"fo:margin", fo_margin_);
    
    // 15.5.22 
    CP_APPLY_ATTR(L"fo:break-before", fo_break_before_);

    // 
    CP_APPLY_ATTR(L"fo:break-after", fo_break_after_);

    // 15.5.23 
    CP_APPLY_ATTR(L"fo:background-color", fo_background_color_);

    // 15.5.24 - Element

    // 15.5.25 
    CP_APPLY_ATTR(L"fo:border", fo_border_);

    // 
    CP_APPLY_ATTR(L"fo:border-top", fo_border_top_);

    // 
    CP_APPLY_ATTR(L"fo:border-bottom", fo_border_bottom_);

    // 
    CP_APPLY_ATTR(L"fo:border-left", fo_border_left_);

    // 
    CP_APPLY_ATTR(L"fo:border-right", fo_border_right_);

    // 15.5.26
    // 
    CP_APPLY_ATTR(L"style:border-line-width", style_border_line_width_);
    
    // 
    CP_APPLY_ATTR(L"style:border-line-width-top", style_border_line_width_top_);
    // 
    CP_APPLY_ATTR(L"style:border-line-width-bottom", style_border_line_width_bottom_);
    // 
    CP_APPLY_ATTR(L"style:border-line-width-left", style_border_line_width_left_);
    //
    CP_APPLY_ATTR(L"style:border-line-width-right", style_border_line_width_right_);

    // 15.5.27
    // 
    CP_APPLY_ATTR(L"fo:padding", fo_padding_);
    
    // 
    CP_APPLY_ATTR(L"fo:padding-top", fo_padding_top_);
    
    // 
    CP_APPLY_ATTR(L"fo:padding-bottom", fo_padding_bottom_);
    
    // 
    CP_APPLY_ATTR(L"fo:padding-left", fo_padding_left_);
    
    // 
    CP_APPLY_ATTR(L"fo:padding-right", fo_padding_right_);

    // 15.5.28 
    CP_APPLY_ATTR(L"style:shadow", style_shadow_);

    // 15.5.29 
    CP_APPLY_ATTR(L"fo:keep-with-next", fo_keep_with_next_);

    // 15.5.30 
    CP_APPLY_ATTR(L"text:number-lines", text_number_lines_);

    // 15.5.31 
    CP_APPLY_ATTR(L"text:line-number", text_line_number_);

    // 15.5.32 
    CP_APPLY_ATTR(L"style:text-autospace", style_text_autospace_);

    // 15.5.33 
    CP_APPLY_ATTR(L"style:punctuation-wrap", style_punctuation_wrap_);

    // 15.5.34 
    CP_APPLY_ATTR(L"style:line-break", style_line_break_);

    // 15.5.35 
    CP_APPLY_ATTR(L"style:vertical-align", style_vertical_align_);

    // 15.5.36 
    CP_APPLY_ATTR(L"style:writing-mode", style_writing_mode_);

    // 15.5.37 
    CP_APPLY_ATTR(L"style:writing-mode-automatic", style_writing_mode_automatic_);

    // 15.5.38 
    CP_APPLY_ATTR(L"style:snap-to-layout-grid", style_snap_to_layout_grid_);
    
    // 15.5.39 
	_CP_OPT(std::wstring) style_page_number_str_;
    CP_APPLY_ATTR(L"style:page-number", style_page_number_str_);

	if (style_page_number_str_)
	{
		int res =0;
		if ((res=style_page_number_str_.get().find(L"auto"))<0)
			style_page_number_=  boost::lexical_cast<int>(style_page_number_str_.get());
	}

    // 15.5.40 
    CP_APPLY_ATTR(L"style:background-transparency", style_background_transparency_);

    CP_APPLY_ATTR(L"style:join_border", style_join_border_);
}
Beispiel #16
0
////////////////////////////////////////////////////////////////////////////////////////////////////
/// draw-path-attlist
void draw_path_attlist::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"svg:d", svg_d_);
    CP_APPLY_ATTR(L"svg:viewBox", svg_viewbox_);

}
void table_null_date::add_attributes( const xml::attributes_wc_ptr & Attributes )
{
    CP_APPLY_ATTR(L"table:value-type", table_value_type_);
    CP_APPLY_ATTR(L"table:date-value-type", table_date_value_type_);
}