Exemplo n.º 1
0
 def _default_font_size(self) -> Emu:
     return Emu.from_pt(16)
Exemplo n.º 2
0
 def slide_height(self) -> Optional[Emu]:
     if self._sld_sz is not None:
         return Emu(self._sld_sz.get('cy'))
     if self.do_use_defaults_when_null:
         return self._default_slide_height
     return None
Exemplo n.º 3
0
 def margin_bottom(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 4
0
 def children_offset_y(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 5
0
 def _default_x(self) -> Emu:
     return Emu(0)
Exemplo n.º 6
0
 def _default_height(self) -> Emu:
     return Emu(0)
Exemplo n.º 7
0
 def children_offset_x(self) -> Emu:
     if self._xfrm_ch_off is not None:
         x_str = self._xfrm_ch_off.get('x')
         if x_str is not None:
             return Emu(x_str)
     return Emu(0)
Exemplo n.º 8
0
 def _default_margin_left(self) -> Emu:
     return Emu(0)
Exemplo n.º 9
0
 def margin_left(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 10
0
 def _default_level_width(self) -> Emu:
     return Emu.from_px(32)
Exemplo n.º 11
0
 def level_width(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 12
0
 def line_height(self, v: Union[float, int]) -> Union[float, Emu]:
     if isinstance(v, float):
         return v
     elif isinstance(v, int):
         return Emu(v)
Exemplo n.º 13
0
 def font_size(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 14
0
 def slide_height(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 15
0
 def _default_width(self) -> Emu:
     return Emu(0)
Exemplo n.º 16
0
 def _default_margin_top(self) -> Emu:
     return Emu(0)
Exemplo n.º 17
0
 def width(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 18
0
 def margin_top(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 19
0
 def height(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 20
0
 def _default_margin_right(self) -> Emu:
     return Emu(0)
Exemplo n.º 21
0
 def children_offset_y(self) -> Emu:
     if self._xfrm_ch_off is not None:
         y_str = self._xfrm_ch_off.get('y')
         if y_str is not None:
             return Emu(y_str)
     return Emu(0)
Exemplo n.º 22
0
 def margin_right(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 23
0
 def _default_y(self) -> Emu:
     if self._placeholder_type_fn() == PlaceholderType.CENTER_TITLE:
         return Emu(0)
     else:
         return super()._default_y
Exemplo n.º 24
0
 def _default_margin_bottom(self) -> Emu:
     return Emu(0)
Exemplo n.º 25
0
 def x(self, v: int) -> Emu:
     return Emu(v)
Exemplo n.º 26
0
 def slide_width(self, v: int) -> Emu:
     return Emu(v)