A method for implementing software integration of streaming version based on MVC architecture

By adopting an integrated design of streaming and formatting software based on the MVC architecture, the efficient conversion of streaming documents to formatted documents is achieved, the structured information is fully preserved, and the software integration is optimized, solving the problems of low efficiency and information loss in traditional office software.

CN121187553BActive Publication Date: 2026-03-17CHINA ELECTRONICS STANDARDIZATION INST
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-24
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Traditional office software suffers from problems such as low conversion efficiency, loss of structured information, and bloated software integration due to the separation of streaming and formatted documents.

Method used

The method of integrating streaming and layout software based on MVC architecture is adopted. By building an integrated office software kernel, the view layer object of the streaming document processing module is directly extended by the model layer object of the layout document processing module. The display and printing specifications are shared, and a layout document model containing structured information is formed in memory, realizing a single traversal conversion from streaming document to layout document.

Benefits of technology

It improves conversion efficiency, fully preserves the structured information of streaming documents, solves the inefficiency and information loss problems caused by multiple traversals in traditional conversion methods, and optimizes software integration, reducing system complexity and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121187553B_ABST
    Figure CN121187553B_ABST
Patent Text Reader

Abstract

The application provides a flow version software integration implementation method based on an MVC architecture, relates to the technical field of data processing, and aims to solve the problems of low conversion efficiency, information loss and software redundancy caused by the separation of flow documents and version documents in traditional office software. The method builds a unified office software kernel, so that the view layer of the flow document processing module is directly extended from the model layer of the version document processing module, and the two share basic technical units such as display, printing, encryption and decryption. Based on the fusion architecture, the flow document generates a version document model in memory synchronously when parsing and typesetting, so that the format conversion can be completed through single traversal, and structured information such as outline and cross-reference can be holographically preserved. The application significantly improves the document conversion efficiency and quality, eliminates software redundancy through deep component sharing, and provides an efficient, unified and reliable document processing basic capability for an office system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method for implementing integrated streaming software based on the MVC architecture. Background Technology

[0002] Building and operating a good office system requires the collaborative support of a series of office software such as word processing, spreadsheets, and document layout. However, office software products are usually from different vendors, lacking a unified design, and have different technical mechanisms, environmental dependencies, and software interfaces. When office applications require the integration of various heterogeneous basic office software products, many problems may occur, such as bloated software environment, inconsistent interface, and incompatible data formats.

[0003] Traditional office software includes streaming software and layout software. Streaming software and layout software belong to different vendors and technology camps, which is the norm in the software industry both at home and abroad.

[0004] The two separate camps make it difficult to integrate their document models and technical approaches, necessitating the use of an intermediate protocol for mutual conversion—such as virtual printing protocols. Currently, most conversions from streaming to layout-based documents in office software are accomplished through virtual printing, relying on printing protocols. However, virtual printing only guarantees that the resulting document's display / print quality matches the source document; it cannot preserve structured information crucial for reading and utilizing layout-based documents, such as outlines and cross-references. To obtain this information, traditional conversion methods must again call specific software interfaces to retrieve this information from the source document (or software) after virtual printing, resulting in a high degree of software dependence. This is equivalent to traversing the source document twice during the conversion process, leading to low conversion efficiency, significant information loss, and a higher probability of program crashes.

[0005] In recent years, domestic office software has also been able to "save as" formatted documents, and in this process, it can retain information such as the document structure outline, metadata, and subset fonts. However, compared with the rich interactive features of the source file, the information retained is still relatively small. Summary of the Invention

[0006] The technical problem to be solved by this invention is to address the low conversion efficiency, loss of structured information, and bloated software integration caused by the separation of streaming and formatted documents in traditional office software. To this end, this invention proposes an integrated implementation method for streaming and formatted software based on the MVC architecture.

[0007] The integrated implementation method of streaming software based on MVC architecture according to embodiments of the present invention includes:

[0008] Construct an integrated office software kernel, which includes a streaming document processing module and a layout document processing module using an MVC architecture;

[0009] The view layer object of the streaming document processing module is directly extended from the model layer object of the layout document processing module, so that the view layer of the streaming document processing module and the model layer of the layout document processing module share the same display and printing conventions.

[0010] When parsing and formatting a streaming document, the streaming document processing module directly generates a view based on the shared model layer object of the format document processing module, thereby forming a format document model containing structured information in memory.

[0011] In response to a conversion instruction from a streaming document to a layout document, the layout document model in memory is serialized and output as a target layout document. The conversion process is completed by a single traversal of the streaming document, and the structured information of the streaming document is holographically preserved in the target layout document.

[0012] According to some embodiments of the present invention, the streaming document processing module includes at least one of a word processing component and a spreadsheet component.

[0013] In some embodiments of the present invention, the view layer object of the streaming document processing module is directly extended from the model layer object of the layout document processing module, and the extended part includes interactive control logic and access interface for document structured information.

[0014] According to some embodiments of the present invention, the shared display and printing specifications include: page layout, font rendering, graphics drawing, and document data encryption and decryption processing logic.

[0015] In some embodiments of the present invention, the structured information includes at least one of document outline, cross-references, metadata, and subset font information.

[0016] According to some embodiments of the present invention, the method further includes:

[0017] Based on the unified office software kernel, it interfaces with preset standard document formats at the bottom and is packaged into independent software plugins according to different business application scenarios at the top.

[0018] Among them, the different software plugins share the same set of environment dependencies, interface styles, data formats and application control interfaces.

[0019] In some embodiments of the present invention, the software plugin includes at least one of a text editor plugin for document issuance management and a scanning and processing plugin for document receipt or file management.

[0020] An electronic device according to an embodiment of the present invention includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the integrated implementation method of streaming software based on MVC architecture as described above.

[0021] According to an embodiment of the present invention, a computer storage medium stores a computer program, which, when executed by a processor, implements the steps of the integrated implementation method of streaming software based on the MVC architecture as described above.

[0022] The present invention has the following beneficial effects:

[0023] This invention, through an integrated implementation method for streaming and layout software based on the MVC architecture, fundamentally solves the long-standing technical problems in traditional office software systems, bringing multiple significant benefits. Firstly, it achieves a qualitative leap in conversion efficiency. Through an innovative "model-view fusion" design, the conversion process from streaming documents to layout documents can be completed in a single traversal, completely changing the inefficient traditional method that relies on virtual printing protocols and requires multiple traversals of the source document. This not only significantly improves conversion speed but also effectively reduces the risk of program crashes caused by complex conversion processes.

[0024] This invention represents a fundamental breakthrough in information fidelity. By constructing a holographic mapping path at the model layer of the streaming document, the converted document fully retains the structured information in the streaming document, including elements crucial for document reading and subsequent use such as document outlines, cross-references, and metadata. This feature addresses the core pain point of traditional virtual printing methods, which can only preserve visual appearance while losing semantic information, laying a solid foundation for high-quality document reuse and intelligent processing.

[0025] From a software engineering perspective, this invention achieves significant optimization through deep integration design. Streaming documents and formatted documents share the same basic technical units for display, printing, linearization, encryption, and decryption, eliminating the environmental bloat, inconsistent interfaces, and data format compatibility issues caused by integrating software from different technology camps in traditional solutions. This deep component sharing not only reduces software size and resource consumption, but more importantly, it lowers system complexity and maintenance costs. Any technical improvements to the shared core can benefit both streaming editing and formatted reading scenarios simultaneously.

[0026] Finally, this invention demonstrates comprehensive advantages in system integration and business support. Based on a pluggable architecture with an integrated kernel, it can be flexibly encapsulated into dedicated components according to different business application scenarios, seamlessly connecting to various office information systems, such as document issuance management, document receipt management, and archive management modules. This design enables this invention to serve as a high-performance, highly reliable document processing infrastructure, effectively supporting the smooth operation of complex business scenarios such as paperless office and electronic documents, ensuring the efficiency and stability of the entire office business process.

[0027] In summary, this invention is not a partial improvement on existing technologies, but rather a fundamental architectural innovation that simultaneously solves three major technical challenges: efficiency, fidelity, and system integration, providing a completely new solution for the development of office software technology. Attached Figure Description

[0028] Figure 1 The operating mechanism of the MVC model;

[0029] Figure 2 A schematic diagram of the MVC structure with separate flow boards;

[0030] Figure 3 This is a schematic diagram of an integrated MVC structure according to an embodiment of the present invention;

[0031] Figure 4 This is a schematic diagram of the component form and internal structure of a novel office software according to an embodiment of the present invention. Detailed Implementation

[0032] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments.

[0033] The steps described in the specification and the flowcharts in the accompanying drawings of this invention are not necessarily to be strictly followed according to the step numbers; the execution order of the steps can be changed. Furthermore, certain steps can be omitted, multiple steps can be combined into one step, and / or one step can be broken down into multiple steps.

[0034] Office software such as word processing and document layout have high user interaction requirements and technical complexity. They generally use a technical model of "Model, View, and Control" to decompose the coupling of data and visual effects, thereby clarifying the structure and responsibilities to support the implementation of highly interactive functions. Figure 1 It describes the operating mechanism of the MVC technology architecture.

[0035] (1) Model: This is the memory structure that stores data and is responsible for maintaining the data. The model usually provides methods for accessing and modifying data. When the model changes, it also sends events to the registered views, which then update themselves based on the changes in the model.

[0036] (2) View: refers to the appearance of document element objects and is responsible for providing the visual effect of some data of the model.

[0037] (3) Controller: Responds to specific user actions on the feature object display area and handles events for the view. Mouse and action listeners are examples of MVC controllers.

[0038] Existing workflow office software products often suffer from problems such as bloated software environments, inconsistent interfaces, and incompatible data formats when integrated into a business system because they do not adopt the MVC architecture or have inconsistent MVC divisions.

[0039] This invention provides an integrated design for the software implementation of streaming and layout documents, striving for consistency in document models and technical approaches between the two. It advocates directly converting the view structure of streaming software into the document model of layout documents, completing the document format conversion task with a single traversal of the view structure. Furthermore, because the view structure of the streaming document still retains information from the source document, the structured information from the source document can be fully converted into the layout document while simultaneously converting the layout description. This integrated design makes streaming and layout document conversion faster and more direct, independent of other printing protocols, and results in documents with better usability.

[0040] This invention proposes an integrated implementation method for streaming software. The streaming software proposed in this invention undergoes a comprehensive reconstruction. First, a series of common basic technologies are defined, such as encryption / decryption (data security), file linearization, font parsing and caching, display and printing specifications, etc. Second, a comparison is made with... Figure 2 and Figure 3 As shown, this invention achieves unified coordination in the MVC layer, which is the core of the software functionality, merging the view layer object of the streaming document with the document layer of the layout document. Furthermore, based on the core software elements of different document formats, it provides different encapsulations according to application needs, simplifying the user interface of the single software. The redesigned office software effectively avoids problems such as bloated software environments, inconsistent interfaces, and incompatible data formats.

[0041] The integrated implementation method of streaming software based on MVC architecture according to embodiments of the present invention includes:

[0042] S10 builds an integrated office software kernel, which includes a streaming document processing module and a layout document processing module using the MVC architecture.

[0043] The view layer object of the streaming document processing module is directly extended from the model layer object of the layout document processing module, so that the view layer of the streaming document processing module and the model layer of the layout document processing module share the same display and printing conventions.

[0044] Step S10 can be understood as the foundation-building step. Traditionally, streaming software (such as Word) and layout software (such as PDF readers / generators) are two independently developed programs with completely different internal structures. However, this invention designs and builds them as a whole from the outset. This means that a shared codebase, unified data structure, and communication mechanism are planned from the early stages of software design. Streaming and layout functions are no longer two "pieced-together" modules, but rather two different manifestations originating from the same "kernel."

[0045] By sharing the same display and printing conventions, a "what you see is what you get" approach is guaranteed. This ensures that what you see when editing in Word is fundamentally consistent with the final generated PDF, as they use the same set of rules to calculate page layout, font rendering, and graphic positioning. This avoids the subtle differences caused by two different rendering engines (such as Word's engine and the PDF virtual printer driver), such as different text wrapping positions and image offsets, that occur in traditional methods.

[0046] S20, when parsing and formatting the streaming document, the streaming document processing module directly generates a view based on the model layer object of the shared layout document processing module, thereby forming a layout document model containing structured information in memory.

[0047] The steps described above overturn the traditional document conversion relationship. In the traditional approach, streaming documents (such as Word) and formatted documents (such as PDF) have their own independent internal data representations. During conversion, the internal data of one system needs to be "translated" into data that the other system can understand. This process is like translating a Chinese article sentence by sentence into English, which is both slow and potentially distorted.

[0048] In the above-described method of the present invention, the "data heart" (model layer) of the PDF is directly used as the basis for constructing the "display appearance" (view layer) of Word. The Word display layer is a "specialized version" or "enhanced version" of the PDF data layer.

[0049] Understandably, in object-oriented programming, "extension" implies inheritance. The view class (Class) of a flow document inherits from the model class (Class) of a layout document. Therefore, the flow view naturally possesses all the characteristics and functions of the layout model (especially display and printing conventions).

[0050] It's important to note that this invention directly creates a layout document model in memory when parsing and formatting streaming documents. For example, when a user is editing a Word document, the software simultaneously prepares the PDF file in the background. When streaming software (like Word) parses the document content, performs pagination, and formats it for screen display, it's not building a temporary structure for its own use, but rather directly constructing a complete and accurate memory model of the layout document (like a PDF). This model contains all the information needed for the final PDF. This is a "win-win" process. A single formatting operation simultaneously satisfies the display requirements of streaming editing and the generation requirements of the layout document.

[0051] S30, in response to the conversion instruction from streaming document to layout document, serializes the layout document model in memory and outputs it as the target layout document. The conversion process is completed by a single traversal of the streaming document, and the structured information of the streaming document is holographically preserved in the target layout document.

[0052] For example, when a user clicks "Save As PDF" in Word, the software doesn't need to reprocess the entire document; it simply saves the "blueprint" (the layout document model) already in memory directly as a file. This process is extremely fast because the document doesn't need to be "re-analyzed."

[0053] Serialization refers to the process of converting complex data structures in memory into a byte stream that can be stored in a file or transmitted over a network. Because the layout model is already constructed during editing, the conversion (serialization) is extremely efficient.

[0054] Traditional virtual printing requires "traversing" the document once to allow the print driver to generate print data (such as PostScript), and then the PDF generator "traverses" this print data again to create the PDF. A third traversal may also be needed to supplement structured information. This invention, however, only requires one traversal.

[0055] Furthermore, this invention holographically preserves the structured information of the streaming document. In other words, the formatted document (such as a PDF) generated by this invention is not a static image, but a dynamic and intelligent document. It fully remembers all the outline levels, table of contents, cross-references (such as "see page X"), annotations, and other information from the streaming document (such as a Word document).

[0056] In this invention, since the flow view is an extension of the layout model and is the same model in memory, the rich semantic and structural information in the flow document is not lost during the conversion process and is carried "unchanged" to the layout document.

[0057] According to some embodiments of the present invention, the streaming document processing module includes at least one of a text processing component and a spreadsheet component. This enables the "model-view fusion" integrated architecture of the present invention to possess strong versatility, making it applicable to streaming documents with different technical characteristics. The text processing component corresponds to software such as Microsoft Word and WPS Office, used to process documents in formats such as .doc, .docx, and .wps. Its characteristic is that the content can be dynamically rearranged. The spreadsheet component corresponds to software such as Microsoft Excel and WPS Spreadsheet, used to process documents in formats such as .xls, .xlsx, and .et. Its core is a table composed of cells, also possessing streaming characteristics.

[0058] In this invention, the kernel of the office software is divided into spreadsheets, word processing, and layout documents. Both the streaming documents (word processing, spreadsheets, etc.) and the layout documents adopt the MVC architecture. The streaming and layout documents share common technical units, such as encryption and decryption (data security), file linearization, font parsing and caching, display and printing specifications, etc. The model of the layout document and the view of the streaming document are integrated. The view layer design of the streaming software is extended from the model layer of the layout document, and directly uses the display and printing effects of the model layer of the layout document. The extension is limited to the interaction mechanism and access to the document's structured information.

[0059] Under the aforementioned integrated software implementation architecture, it is only necessary to define the control logic and component appearance of each software form to respond to the functional requirements of various application systems by using integrated, series of tool components.

[0060] In some embodiments of the present invention, the view layer object of the streaming document processing module is directly extended from the model layer object of the layout document processing module, and the extended part includes interactive control logic and access interface for document structured information.

[0061] It's important to note that streaming documents (like Word) require a separate view layer because they must possess interactive editing capabilities that layout-based documents (like PDFs) don't. Therefore, the extended components are designed to meet these unique needs, including interactive control logic and interfaces for accessing the document's structured information.

[0062] Interactive control logic refers to a series of functions that respond to user actions. For example:

[0063] Cursor movement and text selection: Handles mouse clicks, moving the cursor using keyboard arrow keys, and dragging to select text.

[0064] Editing operations: handling character input, deletion, copying, and pasting.

[0065] Formatting adjustment: Real-time response and application of user-defined bold, italics, font size, color, etc.

[0066] Object manipulation: Allows users to drag images, resize tables, etc.

[0067] In some embodiments of the present invention, structured information includes at least one of document outline, cross-references, metadata, and subsetted font information. The access interface for document structured information refers to the ability to access the deep structure of a document for editing purposes. For example:

[0068] Provides methods to obtain and modify the outline hierarchy of a document.

[0069] Allows updating cross-references (automatically updates the page number or heading number at the reference when the location of the referenced content changes).

[0070] Expose interfaces to edit bookmarks, hyperlinks, domain codes, etc.

[0071] In some embodiments of the present invention, in addition to the "incremental" functionality added for interactive editing as described above, the flow view layer fully inherits the core capabilities of the layout model layer, especially its "display and printing conventions." According to some embodiments of the present invention, the shared display and printing conventions include: page layout, font rendering, graphics drawing, and document data encryption / decryption processing logic.

[0072] This means:

[0073] The rendering engine is the same: the underlying logic and algorithms for drawing a character, an image, or a line on the screen, and the same set of flow view and layout model are used.

[0074] The page description is the same: the document's physical page layout (size, margins, columns), the precise coordinates of all elements, and styles are completely consistent between the two.

[0075] According to some embodiments of the present invention, the method further includes:

[0076] Based on a unified office software kernel, it interfaces with preset standard document formats at the bottom and is packaged into independent software plugins according to different business application scenarios at the top. Among them, different software plugins share the same set of environment dependencies, interface styles, data formats and application control interfaces.

[0077] The aforementioned "preset standard" can be a national standard. This invention is based on the redesigned MVC technology core, unifying the national standard document format downwards and encapsulating it into software plugins according to business application scenarios upwards, specifically supporting various applications. The new office software's environment dependencies, interface style, data format, and application control interface can achieve complete integration. The component forms of these software and their internal connections are as follows: Figure 4 As shown.

[0078] In some embodiments of the present invention, the software plugin includes at least one of a text editor plugin for document issuance management and a scanning and processing plugin for document receipt or file management.

[0079] Figure 4 The document also indicates the support of scene plugins for various business information systems. For example, text editor software mainly supports "document issuance management" or similar business function modules, while scanning and processing software mainly supports document management or "document receipt management" and other business function modules. The entry points for electronic documents in office business information systems mainly include documents written (issued) by system users and external documents received (including paper and electronic forms). The exit points mainly include transferring formatted documents to the archive system or converting them into HTML format for publication on the public internet.

[0080] An electronic device according to an embodiment of the present invention includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the above-described integrated software implementation method based on the MVC architecture.

[0081] According to an embodiment of the present invention, a computer storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps of the above-described integrated implementation method of streaming software based on MVC architecture.

[0082] The present invention has the following beneficial effects:

[0083] Based on the MVC architecture, the software achieves broader and deeper sharing of software components, thus greatly eliminating software bloat and reducing the learning curve for integration development, making it easier to integrate with various systems. For example, the page display of word processing (streaming documents) can directly use the layout document model, and related display and printing technology optimizations and improvements can be shared by both document formats.

[0084] The layout document model and the streaming document view are integrated in the design, and the two share the display and printing effects. The necessary document formatting is prepared during the parsing and browsing of the streaming document. The pagination and layout result of the text processing (streaming document) contains the layout document model. When converting to a streaming version, it is only necessary to directly serialize and write out the model that exists in memory. This design makes the conversion of the streaming document extremely accurate in restoring the layout details, avoiding the multiple traversals of the traditional conversion method based on virtual printing, and greatly improving the efficiency of the streaming version.

[0085] The view layer of a streaming document is directly derived from the layout document model. Within the MVC framework, the view layer is closely related to the data layer of the streaming document. This is equivalent to building a "holographic" mapping channel between the two document formats before and after conversion. This design makes it possible to fully preserve the front-end file structure information in the layout document (layout-to-stream conversion). During the conversion from streaming to layout document, more complete source information can be written as needed than in traditional virtual printing methods. This information can even fully preserve the semantic structure information of the streaming document, thus laying a solid foundation for higher-quality layout-to-stream conversion. The converted layout document retains structured information beneficial to the backend, resulting in a higher quality layout document.

[0086] Through the description of specific embodiments, a more in-depth and specific understanding should be gained of the technical means and effects adopted by the present invention to achieve the intended purpose. However, the accompanying drawings are only provided for reference and illustration and are not intended to limit the present invention.

Claims

1. A method for implementing software integration of streaming based on MVC architecture, characterized in that, The method comprises the following steps: constructing an integrated office software kernel, which comprises a streaming document processing module and a layout document processing module adopting an MVC architecture; wherein a view layer object of the streaming document processing module is directly extended from a model layer object of the layout document processing module, so that the view layer of the streaming document processing module and the model layer of the layout document processing module share the same display and printing specifications; the display and printing specifications comprise processing logic of page layout, font rendering, graphic drawing and document data encryption and decryption; when the streaming document processing module parses and formats a streaming document, a view is directly generated based on the shared model layer object of the layout document processing module, so as to form a layout document model containing structured information in the memory; in response to a conversion instruction of the streaming document to a layout document, the layout document model in the memory is serialized and output as a target layout document, wherein the conversion process is completed through a single pass of the streaming document, and the structured information of the streaming document is holographically retained in the target layout document.

2. The method of claim 1, wherein the MVC-based software integration method is implemented in a streaming version. The streaming document processing module comprises at least one of a word processing component and a spreadsheet component.

3. The method of claim 1, wherein the MVC-based software integration method is implemented in a streaming version. The view layer object of the streaming document processing module is directly extended from the model layer object of the layout document processing module, and the extension part comprises interactive control logic and an access interface of document structured information.

4. The method of claim 1, wherein the MVC-based software integration method is implemented in a streaming version. The structured information comprises at least one of document outline, cross-reference, metadata and subset font information.

5. The method of claim 1, wherein the MVC-based software integration method is implemented in a streaming version. The method further comprises: based on the unified office software kernel, downwardly interfacing with a preset standard document format, and upwardly encapsulating into independent software plug-ins according to different business application scenarios; wherein different software plug-ins share the same set of environment dependencies, interface styles, data formats and application control interfaces.

6. The method of claim 5, wherein the MVC-based software integration method is implemented in a streaming version. The software plug-ins comprise at least one of a text editor plug-in for document issuance management and a scanning processing plug-in for document collection or archive management.

7. An electronic device, comprising: The computer program is stored in the memory and can be run on the processor, and when the computer program is executed by the processor, the steps of the method for implementing the streaming and layout software integration based on the MVC architecture are realized. 8.A computer storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the method for implementing the streaming and layout software integration based on the MVC architecture are realized. ​

Citation Information

Patent Citations

  • General DOC, DOCX and INDD document typesetting engine and method

    CN113011129A