6,817
edits
Changes
From Gramps
m
→מקובל API: translation
מתוך הסוגים שלעיל, רק דוחות מילוליים, דוחות חזותיים ותרשימים משתמשים ב־API דוחות (מסמך), מכיוון שדוחות מרשתת כותבים את הפלט ישירות לקבצים, בעוד שספר דוחות הוא פשוט שילוב של דוחות מילוליים ודוחות חזותיים שמקובצים יחדיו כ{{man label|ספר דוחות}}.
==API מקובל API==At the moment the combination of textual and graphical elements within one document is not supported לעת עתה שילוב רכיבים מילוליים וחזותיים בתוך מסמך אחד לא נתמך (for future plans refer to Report לתוכניות עתידיות נא עיין בעיצוב מחדש של API redesign דוחות), thus Text and Graphical reports are implemented via separate APIsלכן דוחות מילוליים וחזותיים מיושמים באמצעות מנשקי API נפרדים, though they have a common partאם כי יש להם מרכיב משותף.This common part is implemented in the מרכיב משותף זה מיושם באמצעות [http://www.gramps-project.org/docs/gen/gen_plug.html#gen.plug.docgen.basedoc.BaseDoc Class BaseDoc class], which contains among others basic document openingשמכיל בין היתר ראש וסיומת עמוד של מסמכים בסיסיים , closing, and stylesheet handling methodsושיטות טיפול בגיליון סגנונות. It also stores the physical description of a page המנשק מאחסן גם את התיאור הממשי של העמוד (sheet of paper in printגיליון נייר בדפוס). {{man note|הערה!|The <tt>BaseDoc.open</tt> and the <tt>BaseDoc.close</tt> methods have to be implemented by the subclassed document generators.}}
{{man note|הערה!|השיטות <tt>BaseDoc.open</tt> וה-<tt>BaseDoc.close</tt> צריכות להיות מיושמות על ידי מחוללי המסמכים המדורגים משנה.}}
===עמוד===
[[Image:Doc_paper.png|right|thumb|400px]] Description of the paper, which every report will be rendered on, is stored by an instance of the [http://www.gramps-project.org/docs/gen/gen_plug.html#gen.plug.docgen.paperstyle.PaperStyle PaperStyle class]. This instance is available via the <tt>BaseDoc.paper_style</tt> class attribute. The chosen PaperStyle is given to the document generator at initialization, and is handled by the reporting framework.