Commit c030d31c3fcd0ffc32520fbab946da07c534ea30
1 parent
09d758b0
Move `Writer` to `QPDF::Doc` and update references
Relocate `Writer` to `QPDF::Doc` for better encapsulation of writer-related logic. Adjust all references to use the new placement.
Showing
3 changed files
with
4 additions
and
4 deletions
include/qpdf/QPDF.hh
libqpdf/QPDFWriter.cc
| ... | ... | @@ -260,7 +260,7 @@ Pl_stack::Popper::pop() |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | // Writer class is restricted to QPDFWriter so that only it can call certain methods. |
| 263 | -class QPDF::Writer | |
| 263 | +class QPDF::Doc::Writer | |
| 264 | 264 | { |
| 265 | 265 | friend class QPDFWriter; |
| 266 | 266 | Writer(QPDF& pdf) : |
| ... | ... | @@ -328,7 +328,7 @@ class QPDF::Writer |
| 328 | 328 | QPDF& pdf; |
| 329 | 329 | }; |
| 330 | 330 | |
| 331 | -class QPDFWriter::Members: QPDF::Writer | |
| 331 | +class QPDFWriter::Members: QPDF::Doc::Writer | |
| 332 | 332 | { |
| 333 | 333 | friend class QPDFWriter; |
| 334 | 334 | |
| ... | ... | @@ -343,7 +343,7 @@ class QPDFWriter::Members: QPDF::Writer |
| 343 | 343 | enum trailer_e { t_normal, t_lin_first, t_lin_second }; |
| 344 | 344 | |
| 345 | 345 | Members(QPDFWriter& w, QPDF& pdf) : |
| 346 | - QPDF::Writer(pdf), | |
| 346 | + QPDF::Doc::Writer(pdf), | |
| 347 | 347 | w(w), |
| 348 | 348 | root_og( |
| 349 | 349 | pdf.getRoot().getObjGen().isIndirect() ? pdf.getRoot().getObjGen() : QPDFObjGen(-1, 0)), | ... | ... |