318 Preferences.getPrinter("TopMargin") * int( |
318 Preferences.getPrinter("TopMargin") * int( |
319 printer.resolution() / 2.54) - marginY |
319 printer.resolution() / 2.54) - marginY |
320 |
320 |
321 width = printer.width() - marginX \ |
321 width = printer.width() - marginX \ |
322 - Preferences.getPrinter("RightMargin") * int( |
322 - Preferences.getPrinter("RightMargin") * int( |
323 printer.resolution() / 2.54) |
323 printer.resolution() / 2.54) |
324 height = printer.height() - fontHeight - 4 - marginY \ |
324 height = printer.height() - fontHeight - 4 - marginY \ |
325 - Preferences.getPrinter("BottomMargin") * int( |
325 - Preferences.getPrinter("BottomMargin") * int( |
326 printer.resolution() / 2.54) |
326 printer.resolution() / 2.54) |
327 |
327 |
328 border = self.border == 0 and 5 or self.border |
328 border = self.border == 0 and 5 or self.border |
329 rect = self._getDiagramRect(border) |
329 rect = self._getDiagramRect(border) |
330 diagram = self.__getDiagram(rect) |
330 diagram = self.__getDiagram(rect) |
331 |
331 |