コード例 #1
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def _default_font_size(self) -> Emu:
     return Emu.from_pt(16)
コード例 #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
コード例 #3
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def margin_bottom(self, v: int) -> Emu:
     return Emu(v)
コード例 #4
0
 def children_offset_y(self, v: int) -> Emu:
     return Emu(v)
コード例 #5
0
 def _default_x(self) -> Emu:
     return Emu(0)
コード例 #6
0
 def _default_height(self) -> Emu:
     return Emu(0)
コード例 #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)
コード例 #8
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def _default_margin_left(self) -> Emu:
     return Emu(0)
コード例 #9
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def margin_left(self, v: int) -> Emu:
     return Emu(v)
コード例 #10
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def _default_level_width(self) -> Emu:
     return Emu.from_px(32)
コード例 #11
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def level_width(self, v: int) -> Emu:
     return Emu(v)
コード例 #12
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def line_height(self, v: Union[float, int]) -> Union[float, Emu]:
     if isinstance(v, float):
         return v
     elif isinstance(v, int):
         return Emu(v)
コード例 #13
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def font_size(self, v: int) -> Emu:
     return Emu(v)
コード例 #14
0
 def slide_height(self, v: int) -> Emu:
     return Emu(v)
コード例 #15
0
 def _default_width(self) -> Emu:
     return Emu(0)
コード例 #16
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def _default_margin_top(self) -> Emu:
     return Emu(0)
コード例 #17
0
 def width(self, v: int) -> Emu:
     return Emu(v)
コード例 #18
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def margin_top(self, v: int) -> Emu:
     return Emu(v)
コード例 #19
0
 def height(self, v: int) -> Emu:
     return Emu(v)
コード例 #20
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def _default_margin_right(self) -> Emu:
     return Emu(0)
コード例 #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)
コード例 #22
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def margin_right(self, v: int) -> Emu:
     return Emu(v)
コード例 #23
0
 def _default_y(self) -> Emu:
     if self._placeholder_type_fn() == PlaceholderType.CENTER_TITLE:
         return Emu(0)
     else:
         return super()._default_y
コード例 #24
0
ファイル: text.py プロジェクト: mszbot/gentle-python-pptx
 def _default_margin_bottom(self) -> Emu:
     return Emu(0)
コード例 #25
0
 def x(self, v: int) -> Emu:
     return Emu(v)
コード例 #26
0
 def slide_width(self, v: int) -> Emu:
     return Emu(v)