mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-28 03:58:45 -06:00
refactor(xfa): explicit model imports (Sonar S2208) (#4403)
* refactor(xfa): replace model wildcard imports with explicit names (Sonar S2208) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(xfa): complete explicit model imports Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(xfa): drop unused model imports Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Import Corner, which main's parse.rs now uses --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
Brandon Thomas
parent
82f0b6f8a0
commit
9aef0dfb78
@@ -14,7 +14,10 @@ use base64::Engine;
|
||||
|
||||
use crate::XfaError;
|
||||
use crate::data::{DataNode, data_date_letters, data_path, data_to_iso, date_letters, is_on, iso_to_pattern};
|
||||
use crate::model::*;
|
||||
use crate::model::{
|
||||
Access, Area, Border, Common, Draw, ExclGroup, Field, Font, HAlign, Layout, Margin, Node, Occur, PageArea, PageRole, Para, Placement, Presence,
|
||||
Rect, Script, SomIndices, Stroke, Subform, Template, Ui, VAlign, Value,
|
||||
};
|
||||
use crate::text::{self, Block, Face, Span};
|
||||
|
||||
/// Most pages a form may lay out to.
|
||||
|
||||
@@ -5,7 +5,11 @@ use base64::Engine;
|
||||
use roxmltree::Node as XmlNode;
|
||||
|
||||
use crate::XfaError;
|
||||
use crate::model::*;
|
||||
use crate::model::{
|
||||
Access, Anchor, Area, Border, Caption, ChoiceList, Color, Common, Corner, Draw, Edge, ExclGroup, Field, FontSpec, HAlign, Layout, Margin, Node,
|
||||
Occur, PageArea, PageRole, PageSet, ParaSpec, Paragraph, Placement, Presence, Rect, RichText, Run, Script, Stroke, Subform, Template, Ui, VAlign,
|
||||
Value,
|
||||
};
|
||||
|
||||
/// Deepest element nesting followed (templates are shallow; hostile ones are not).
|
||||
const MAX_DEPTH: usize = 64;
|
||||
|
||||
@@ -7,7 +7,7 @@ use std::collections::{BTreeMap, HashMap};
|
||||
use pdfcraft_cos::{Dict, Document, Object, PdfString};
|
||||
|
||||
use crate::data::{DataNode, data_path, parse_datasets};
|
||||
use crate::model::*;
|
||||
use crate::model::{Access, Field, Node, Presence, Script, SomIndices, Template};
|
||||
use crate::{Report, XfaError};
|
||||
|
||||
/// Private key on the AcroForm: presence scripts set, by SOM path.
|
||||
|
||||
Reference in New Issue
Block a user