DOC-FULL-017 P1 | Office 文件预览策略模型 【status:todo】 #73
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Word/Excel/PowerPoint → PlatformPreview/ExternalOpen,识别类型/返回 fileSize/previewMode,未来支持 serverConvertedPdf
M-DOC-FULL 里程碑 issue。详见设计文档。
DOC-FULL-017 P1 | Office 文件预览策略模型to DOC-FULL-017 P1 | Office 文件预览策略模型 【status:todo】审查结论:document runtime 当前有文件类型识别/MaterialType/PreviewMode/DocumentInfo(基本)/Markdown解析/Text解析/ImageMeta/Search(V1 Markdown+Text)/NoteAnchor(V1)/ReadingEvent(V1)/ReadingPosition(V1)/EventBuffer(V1基础)/iOS构建/UniFFI绑定/docs。但 V2 核心模型(ReadingSession/EventV2/ActiveTimeTracker)不存在,EventBuffer 缺 ack/failed,Position 缺 camelCase+clamp,PDF/EPUB/Office 为 stub,测试覆盖不足 V2。
本 Issue: 无 office 模块。文件类型识别已有(MaterialType::Word/Excel/PowerPoint)。PreviewMode 已有。缺策略文档+DocumentInfo 返回。
状态: status:todo
工作类型: work:new-module
完成报告
改动
office.rs(NEW):OfficePreviewStrategy枚举 (PlatformPreview/ExternalOpen/ServerConvertedPdf/Unsupported)office.rs:OfficePreviewConfig(material_type/strategy/file_size/supports_search_after_conversion)office.rs:get_office_preview_config()— Word/Excel→PlatformPreview, PowerPoint→ExternalOpenoffice.rs:is_office_type()+office_preview_mode()office.rs: 5 测试get_office_preview_config_ffi+is_office_type_ffi+ UDL预览策略
已知限制
office_preview_mode()无人调用验证