コード例 #1
0
  def setWord(self, m_str):
      cursor = self.writer.document.getCurrentController().getViewCursor()

      inp_str = OOoRTC.SetCoding(m_str, self.conf_Code[0])
      cursor.setString(inp_str)
      
      cursor.CharHeight = self.fontSize
      cursor.CharHeightAsian = self.fontSize

      

      if self.bold:
          cursor.CharWeight = BOLD
          cursor.CharWeightAsian = BOLD
      else:
          cursor.CharWeight = FW_NORMAL
          cursor.CharWeightAsian = FW_NORMAL
      if self.italic:
          cursor.CharPosture = ITALIC
          cursor.CharPostureAsian = ITALIC
      else:
          cursor.CharPosture = FS_NONE
          cursor.CharPostureAsian = FS_NONE

      if self.underline:
          cursor.CharUnderline = FU_SINGLE
      else:
          cursor.CharPosture = FU_NONE
          

      if self.strikeout:
          cursor.CharStrikeout = FST_SINGLE
      else:
          cursor.CharStrikeout = FST_NONE

      if self.emphasis:
          cursor.CharEmphasis = 1
      else:
          cursor.CharEmphasis = 0

      cursor.CharShadowed = self.shadow

      cursor.CharContoured = self.contoured
          

        

      #cursor.CharStyleName = self.fontName

      cursor.CharColor = OOoRTC.RGB(self.char_Red,self.char_Green,self.char_Blue)
      cursor.CharBackColor = OOoRTC.RGB(self.back_Red,self.back_Green,self.back_Blue)

      cursor.goRight(len(inp_str),False)

      cursor.collapseToEnd()
コード例 #2
0
ファイル: BlockBall.py プロジェクト: Nobu19800/BlockBallRTC
    def delete(self):

        self.cell2.CellBackColor = OOoRTC.RGB(0, 0, 0)