Commit 98f25fdfa17ec4c4878fb7d1cb38955af9853d71
1 parent
cf6c56a4
QPDFJob: make easy things private
Showing
1 changed file
with
8 additions
and
3 deletions
include/qpdf/QPDFJob.hh
| @@ -321,11 +321,12 @@ class QPDFJob | @@ -321,11 +321,12 @@ class QPDFJob | ||
| 321 | std::function<void(std::ostream&, std::string const& prefix)> fn); | 321 | std::function<void(std::ostream&, std::string const& prefix)> fn); |
| 322 | 322 | ||
| 323 | 323 | ||
| 324 | - // QXXXQ From here to END-PUBLIC should all be private or | ||
| 325 | - // different somehow | ||
| 326 | - public: | 324 | + private: |
| 325 | + public: // QXXXQ | ||
| 327 | QPDF_DLL | 326 | QPDF_DLL |
| 328 | static JSON json_schema(std::set<std::string>* keys = 0); | 327 | static JSON json_schema(std::set<std::string>* keys = 0); |
| 328 | + | ||
| 329 | + private: // QXXXQ | ||
| 329 | QPDF_DLL | 330 | QPDF_DLL |
| 330 | static void parse_object_id( | 331 | static void parse_object_id( |
| 331 | std::string const& objspec, bool& trailer, int& obj, int& gen); | 332 | std::string const& objspec, bool& trailer, int& obj, int& gen); |
| @@ -344,6 +345,7 @@ class QPDFJob | @@ -344,6 +345,7 @@ class QPDFJob | ||
| 344 | 345 | ||
| 345 | enum password_mode_e { pm_bytes, pm_hex_bytes, pm_unicode, pm_auto }; | 346 | enum password_mode_e { pm_bytes, pm_hex_bytes, pm_unicode, pm_auto }; |
| 346 | 347 | ||
| 348 | + public: // QXXXQ | ||
| 347 | struct UnderOverlay | 349 | struct UnderOverlay |
| 348 | { | 350 | { |
| 349 | UnderOverlay(char const* which) : | 351 | UnderOverlay(char const* which) : |
| @@ -365,6 +367,7 @@ class QPDFJob | @@ -365,6 +367,7 @@ class QPDFJob | ||
| 365 | std::vector<int> from_pagenos; | 367 | std::vector<int> from_pagenos; |
| 366 | std::vector<int> repeat_pagenos; | 368 | std::vector<int> repeat_pagenos; |
| 367 | }; | 369 | }; |
| 370 | + private: // QXXXQ | ||
| 368 | 371 | ||
| 369 | enum remove_unref_e { re_auto, re_yes, re_no }; | 372 | enum remove_unref_e { re_auto, re_yes, re_no }; |
| 370 | 373 | ||
| @@ -464,10 +467,12 @@ class QPDFJob | @@ -464,10 +467,12 @@ class QPDFJob | ||
| 464 | bool externalize_inline_images; | 467 | bool externalize_inline_images; |
| 465 | bool keep_inline_images; | 468 | bool keep_inline_images; |
| 466 | bool remove_page_labels; | 469 | bool remove_page_labels; |
| 470 | + public: // QXXXQ | ||
| 467 | size_t oi_min_width; | 471 | size_t oi_min_width; |
| 468 | size_t oi_min_height; | 472 | size_t oi_min_height; |
| 469 | size_t oi_min_area; | 473 | size_t oi_min_area; |
| 470 | size_t ii_min_bytes; | 474 | size_t ii_min_bytes; |
| 475 | + private: // QXXXQ | ||
| 471 | UnderOverlay underlay; | 476 | UnderOverlay underlay; |
| 472 | UnderOverlay overlay; | 477 | UnderOverlay overlay; |
| 473 | UnderOverlay* under_overlay; | 478 | UnderOverlay* under_overlay; |