# Path: src/sii/lib/printing/TemplateElement.py
# class TemplateElement(object):
#     def resources(self):
#     def carta(self) -> str:
#     def oficio(self) -> str:
#     def thermal80mm(self) -> str:


import os.path as path
from .TemplateElement import TemplateElement, Resource
        """
        return tex % (
            self._emitter_name_short,
            self._emitter_activity,
            self._emitter_hq_addr,
            self._emitter_branch_addr,
            self._emitter_phone,
            self._order_number,
            self._emitter_salesman,
            self._licence_plate
        )

    def _logo_template(self):
        if self._logo_path:
            _, ext = path.splitext(self._logo_path)

            height    = '15mm'
            width     = '0.7\\textwidth'
            keepratio = 'true'

            return '\\includegraphics[height={h}, width={w}, keepaspectratio={r}]{{logo{ext}}}'.format(
                h   = height,
                w   = width,
                r   = keepratio,
                ext = ext
            )
        else:
            return ''



# Path: src/sii/lib/printing/TemplateElement.py
# class TemplateElement(object):
#     def resources(self):
#     def carta(self) -> str:
#     def oficio(self) -> str:
#     def thermal80mm(self) -> str:


# Path: src/sii/lib/printing/SectionEmitter.py
import os.path as path
from .TemplateElement import TemplateElement, Resource

        """
        return tex % (
            self._emitter_name_short,
            self._emitter_activity,
            self._emitter_hq_addr,
            self._emitter_branch_addr,
            self._emitter_phone,
            self._order_number,
            self._emitter_salesman,
            self._licence_plate
        )

    def _logo_template(self):
        if self._logo_path:
            _, ext = path.splitext(self._logo_path)

            height    = '15mm'
            width     = '0.7\\textwidth'
            keepratio = 'true'

            return '\\includegraphics[height={h}, width={w}, keepaspectratio={r}]{{logo{ext}}}'.format(
                h   = height,
                w   = width,
                r   = keepratio,
                ext = ext
            )
        else:
            return ''



class SectionEmitterProvider(TemplateElement):