Displaying 13 results from an estimated 13 matches for "right_margin".
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...+351,46 @@
</span><span class="cx">
</span><span class="cx"> dc.draw_text("Some test text", 200, 300 )
</span><span class="cx">
</span><del>- # TESTING
</del><ins>+ left_margin = 20
+ right_margin = 20
+ top_margin = 20
+ bottom_margin = 20
</ins><span class="cx">
</span><del>- leftMargin = 20
- rightMargin = 20
- topMargin = 20
- bottomMargin = 20
</del><ins>+ page_width_mm, page_height_mm = get_page_size_mm
</ins><...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...out = layout.layout = pango_cairo_create_layout (cr);
-
- // set rendering position
- layout.render_offset_x = block->left_margin + block->block_indent;
- width = SWFDEC_GRAPHIC (text)->extents.x1 -
- SWFDEC_GRAPHIC (text)->extents.x0 - block->left_margin -
- block->right_margin - block->block_indent;
-
- if (block->index_ == 0 && paragraphs[i].indent < 0) {
- // limit negative indent to not go over leftMargin + blockIndent
- int indent = MAX (paragraphs[i].indent / PANGO_SCALE,
- -(block->left_margin + block->block_indent));
- layout.render...
2007 Oct 14
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h
...text->font != NULL) {
+ text->format_new->font =
+ swfdec_as_context_get_string (cx, text->text->font);
+ }
text->format_new->size = text->text->size / 20;
text->format_new->left_margin = text->text->left_margin / 20;
text->format_new->right_margin = text->text->right_margin / 20;
commit eecddf540e4e6cc66af293061e2f1d58fa9e0843
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sun Oct 14 14:11:42 2007 +0300
Make swfdec_xml_unescape output different based on the version
diff --git a/libswfdec/swfdec_html_pars...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...n FALSE;
+ if (set & (1 << PROP_LEFT_MARGIN) && a->left_margin != b->left_margin)
+ return FALSE;
+ if (set & (1 << PROP_LETTER_SPACING) &&
+ a->letter_spacing != b->letter_spacing) {
+ return FALSE;
+ }
+ if (set & (1 << PROP_RIGHT_MARGIN) && a->right_margin != b->right_margin)
+ return FALSE;
+ if (set & (1 << PROP_SIZE) && a->size != b->size)
+ return FALSE;
+ if (set & (1 << PROP_TAB_STOPS) && a->tab_stops != b->tab_stops)
+ return FALSE;
+ if (set & (1...
2007 Dec 05
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_policy_loader.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...ec_text_field_movie.c
index db37d98..3dba372 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -110,13 +110,17 @@ swfdec_text_paragraph_add_block (SwfdecParagraph *paragraph, int index_,
block->left_margin = format->left_margin * 20;
block->right_margin = format->right_margin * 20;
- length = swfdec_as_array_get_length (format->tab_stops);
- block->tab_stops = pango_tab_array_new (length, TRUE);
- for (i = 0; i < length; i++) {
- swfdec_as_array_get_value (format->tab_stops, i, &val);
- g_assert (SWFDEC_AS_VALUE_IS_NU...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...gt;formats; iter->next != NULL &&
+ ((SwfdecFormatIndex *)(iter->next->data))->index <= start_index;
+ iter = iter->next);
+
+ index_ = start_index;
+ format = ((SwfdecFormatIndex *)(iter->data))->format;
+
+ if (format->left_margin != 0 || format->right_margin != 0 ||
+ format->indent != 0 || format->leading != 0 ||
+ format->block_indent != 0 ||
+ swfdec_as_array_get_length (format->tab_stops) > 0)
+ {
+ string = g_string_append (string, "<TEXTFORMAT");
+ if (format->left_margin) {
+ g_string_app...
2007 Nov 04
0
7 commits - libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_field_movie_html.c
..., int *num,
cairo_t *cr, const SwfdecParagraph *paragraphs,
@@ -559,43 +621,21 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num,
pango_layout_get_pixel_size (playout, &layout.width, &layout.height);
layout.width += layout.offset_x + block->right_margin;
+ layout.last_line_offset_y = 0;
// figure out if we need to add extra height because of the size of the
// line break character
if (pango_layout_get_text (playout)[strlen (pango_layout_get_text (playout)) - 1] == '\n')
{
- PangoAttrIterator *attr_iter;
-...
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...cTextFieldClass))
-typedef struct {
- PangoLayout * layout;
- int render_offset_x;
- int height;
- int width;
-} SwfdecLayout;
-
-typedef struct {
- guint index_;
-
- PangoAlignment align;
- gboolean justify;
- int leading;
- int block_indent;
- int left_margin;
- int right_margin;
- PangoTabArray * tab_stops;
-} SwfdecBlock;
-
-typedef struct {
- const char *text;
- guint text_length;
-
- gboolean bullet;
- int indent;
-
- GList * blocks; // SwfdecBlock
-
- GList * attrs; // PangoAttribute
- PangoAttrList * attrs_list;
-} SwfdecParagraph;
-
typedef enum {...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...et_x = block->left_margin + block->block_indent;
if (paragraphs[i].bullet)
- layout.offset_x += 36 * 20;
+ layout.offset_x += SWFDEC_DOUBLE_TO_TWIPS (BULLET_MARGIN);
width = SWFDEC_MOVIE (text)->original_extents.x1 -
SWFDEC_MOVIE (text)->original_extents.x0 - block->right_margin -
@@ -569,9 +570,10 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num,
// set paragraph styles
if (block->index_ == 0) {
pango_layout_set_indent (playout, paragraphs[i].indent);
- // TODO: bullet
+ layout.bullet = paragraphs[i].bullet;
} else {...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...t;formats; iter->next != NULL &&
- ((SwfdecFormatIndex *)(iter->next->data))->index_ <= start_index;
- iter = iter->next);
-
- index_ = start_index;
- format = ((SwfdecFormatIndex *)(iter->data))->format;
-
- if (format->left_margin != 0 || format->right_margin != 0 ||
- format->indent != 0 || format->leading != 0 ||
- format->block_indent != 0 ||
- swfdec_as_array_get_length (format->tab_stops) > 0)
- {
- string = g_string_append (string, "<TEXTFORMAT");
- if (format->left_margin) {
- g_string_app...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
.../* first line indentation */
int spacing; /* spacing between lines */
/* visual info */
SwfdecColor color; /* text color */
gboolean selectable;
gboolean border; /* draw a border around the text field */
- unsigned int height;
- unsigned int left_margin;
- unsigned int right_margin;
+ guint height;
+ guint left_margin;
+ guint right_margin;
gboolean autosize; /* FIXME: implement */
/* variable info */
diff --git a/libswfdec/swfdec_event.c b/libswfdec/swfdec_event.c
index 66d6aa7..af41b9e 100644
--- a/libswfdec/swfdec_event.c
+++ b/libswfdec/swfdec_event.c
@@ -3...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
.../* first line indentation */
int spacing; /* spacing between lines */
/* visual info */
SwfdecColor color; /* text color */
gboolean selectable;
gboolean border; /* draw a border around the text field */
- unsigned int height;
- unsigned int left_margin;
- unsigned int right_margin;
+ guint height;
+ guint left_margin;
+ guint right_margin;
gboolean autosize; /* FIXME: implement */
/* variable info */
diff --git a/libswfdec/swfdec_event.c b/libswfdec/swfdec_event.c
index 66d6aa7..af41b9e 100644
--- a/libswfdec/swfdec_event.c
+++ b/libswfdec/swfdec_event.c
@@ -3...
2007 Oct 18
0
14 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_format.c
...set &= ~(1 << PROP_LEFT_MARGIN);
}
if (set & (1 << PROP_LETTER_SPACING) &&
format->letter_spacing != from->letter_spacing) {
- set &= ~PROP_LETTER_SPACING;
+ set &= ~(1 << PROP_LETTER_SPACING);
}
if (set & (1 << PROP_RIGHT_MARGIN) &&
format->right_margin != from->right_margin) {
- set &= ~PROP_RIGHT_MARGIN;
+ set &= ~(1 << PROP_RIGHT_MARGIN);
}
if (set & (1 << PROP_SIZE) && format->size != from->size)
- set &= ~PROP_SIZE;
+ set &= ~(1 <&...