CN111309381A - Document output method, terminal and storage medium - Google Patents

Document output method, terminal and storage medium Download PDF

Info

Publication number
CN111309381A
CN111309381A CN202010087097.XA CN202010087097A CN111309381A CN 111309381 A CN111309381 A CN 111309381A CN 202010087097 A CN202010087097 A CN 202010087097A CN 111309381 A CN111309381 A CN 111309381A
Authority
CN
China
Prior art keywords
design
document
page
programming
logic view
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010087097.XA
Other languages
Chinese (zh)
Inventor
张磊
陈宏君
刘坤
文继锋
谭林丰
曾凯
顾熹
洪礼鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202010087097.XA priority Critical patent/CN111309381A/en
Publication of CN111309381A publication Critical patent/CN111309381A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/75Structural analysis for program understanding

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention is suitable for the technical field of visual programming and provides a document output method, a device, a terminal and a storage medium, wherein the document output comprises the following steps: outputting at least one document bookmark corresponding to a tree structure based on the tree structure of the visual programming project; each node in the tree structure corresponds to a design page in the visual programming project; each document bookmark in the at least one document bookmark corresponds to a node in the tree structure; generating a programming logic view corresponding to each design page in the visual programming project; outputting a document based on the at least one document bookmark and the corresponding programmed logic view; the document characterizes programming logic of the visual programming project.

Description

Document output method, terminal and storage medium
Technical Field
The invention relates to the technical field of visual programming, in particular to a document output method, a terminal and a storage medium.
Background
The visual programming 'visual' means that the design work of the page can be completed only by an intuitive graphical operation mode without writing codes. At present, visual programming software can directly call a printing interface of an operating system to output an electronic document, but the readability of the output electronic document is poor, and the user experience is poor during browsing.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a printing method, a terminal, and a storage medium for a visualization program, so as to at least solve the problem of poor readability of an electronic document output in the related art.
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a document output method, where the method includes:
outputting at least one document bookmark corresponding to a tree structure based on the tree structure of the visual programming project; each node in the tree structure corresponds to a design page in the visual programming project; each document bookmark in the at least one document bookmark corresponds to a node in the tree structure;
generating a programming logic view corresponding to each design page in the visual programming project;
outputting a document based on the at least one document bookmark and the corresponding programmed logic view; the document characterizes programming logic of the visual programming project.
In the above scheme, when generating the programming logic view corresponding to each design page in the visual programming project, the method includes:
determining the page authority of the document output object to the design page;
when the content of the page permission representation design page is visible to the document output object, generating a corresponding first programming logic view; all design elements in a corresponding design page are shown in the first programming logic view;
when the page permission represents that the content of the design page is invisible to the document output object, generating a corresponding second programming logic view; and shielding the set design elements in the corresponding design page in the second programming logic view.
In the above solution, when generating the corresponding second programming logic view, the method includes:
encapsulating the set design elements with set primitives in the second programmed logic view.
In the foregoing solution, the encapsulating the set design element with the set primitive in the second programming logic view includes:
encapsulating at least one set design element in a design page into a rectangular box primitive in the second programming logic view; and the set design elements represent other design elements except the input end, the output end and the set jump link in the corresponding design page.
In the above scheme, the jump page corresponding to the set jump link is a design page not in the visual programming item.
In the above solution, when outputting a document based on the at least one document bookmark and the corresponding programming logic view, the method includes:
determining jump information of a first design element in a first design page; the skip information represents a second design element having an index relationship with the first design element and a second design page where the second design element is located;
adding a second graphic element to a first graphic element corresponding to the corresponding first design element in a programming logic view corresponding to the first design page based on the jump information; the second primitive is used to link the first primitive to a third primitive; and the third graphic element is a graphic element corresponding to the second design element.
In the foregoing solution, when adding a second primitive to a first primitive corresponding to a corresponding first design element in a programming logic view corresponding to a first design page based on the skip information, the method includes:
determining a first path; the first path characterizes a relative path of the second design page with respect to the first design page;
generating a jump link according to the first path and the second design element;
and writing the jump link into the second primitive.
In a second aspect, an embodiment of the present invention provides a document output apparatus, including:
the system comprises a first output module, a second output module and a display module, wherein the first output module is used for outputting at least one document bookmark corresponding to a tree structure based on the tree structure of a visual programming project; each node in the tree structure corresponds to a design page in the visual programming project; each document bookmark in the at least one document bookmark corresponds to a node in the tree structure;
the generating module is used for generating a programming logic view corresponding to each design page in the visual programming project;
a second output module for outputting a document based on the at least one document bookmark and the corresponding programmed logic view; the document characterizes programming logic of the visual programming project.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor and a memory, where the processor and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions and execute the steps of the document output method provided in the first aspect of the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program. The computer program, when executed by a processor, implements the steps of the document output method as provided by the first aspect of an embodiment of the invention.
The embodiment of the invention correspondingly generates the document bookmark with the tree structure based on the tree structure of the visual programming project, then generates the programming logic view corresponding to each design page in the visual programming project, and finally outputs the document based on the document bookmark and the corresponding programming logic view. The document generated by the embodiment of the invention has the document bookmark corresponding to the tree structure of the visual programming project, so that the user can browse and look up the document conveniently, and the convenience of browsing the document by the user is improved.
Drawings
FIG. 1 is a flowchart illustrating an implementation of a document output method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a tree structure of a visual programming project according to an embodiment of the present invention;
FIG. 3 is a diagram of a document bookmark directory provided by an embodiment of the present invention;
FIG. 4 is a diagram of a design page provided by an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another document output method according to an embodiment of the present invention;
FIG. 6 is a diagram of a second programming logic view provided by an embodiment of the present invention;
FIG. 7 is a flowchart illustrating another document output method according to an embodiment of the present invention;
FIG. 8 is a diagram of a jump link of a design page according to an embodiment of the present invention;
FIG. 9 is a diagram of a second primitive provided in an embodiment of the present invention;
FIG. 10 is a flowchart illustrating another document output method according to an embodiment of the present invention;
FIG. 11 is a flowchart of a document output method according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of a document output apparatus according to an embodiment of the present invention;
fig. 13 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The technical means described in the embodiments of the present invention may be arbitrarily combined without conflict.
In addition, in the embodiments of the present invention, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
Fig. 1 is a schematic diagram of an implementation flow of a document output method provided by an embodiment of the present invention, where an execution subject of the method is a terminal. As shown in fig. 1, the document output method includes:
s101, outputting at least one document bookmark corresponding to a tree structure based on the tree structure of a visual programming project; each node in the tree structure corresponds to a design page in the visual programming project; each document bookmark in the at least one document bookmark corresponds to a node in the tree structure.
Compared with the traditional programming mode, the visual programming mode has the greatest advantage that the designer can complete the design of the application program without writing or only writing few program codes, so that the working efficiency of the designer can be greatly improved.
A visual programming project can be regarded as application software, and the tree structure of the visual programming project can be regarded as the framework of the application software.
Fig. 2 is a schematic diagram of a tree structure of a visual programming project according to an embodiment of the present invention, as shown in fig. 2. In practical applications, the tree structure of the visual programming project may be: engineering-device-plug-in-core processor-element-page, e.g., device corresponds to ACC53 in fig. 2, plug-in corresponds to B01 and B03 in fig. 2, core processor corresponds to Main in fig. 2, element corresponds to ACS: ACSAPP in fig. 2, page corresponds to SYS-CFG in fig. 2.
A visual programming project is composed of a plurality of design pages, each node in the tree structure corresponds to one design page in the visual programming project, and when a node of the tree structure of any visual programming project is clicked, the design page corresponding to the node can be jumped to.
Outputting at least one document bookmark corresponding to a tree structure based on the tree structure of a visual programming project, wherein each document bookmark in the at least one document bookmark corresponds to one node in the tree structure. And generating the document bookmarks one to one according to the nodes of the tree structure of the visual programming project.
For example, as shown in fig. 3, fig. 3 is a schematic diagram of a document bookmark directory provided by an application embodiment of the present invention, and each document bookmark in the document bookmark directory in fig. 3 corresponds to a node of a tree structure.
In practical application, when generating a document bookmark, a depth-first search method may be adopted to traverse the tree structure of the entire visual programming project, and during traversal, document bookmarks corresponding to each node are sequentially generated according to the traversal order and the parent nodes thereof, and the book signature of the document bookmarks may be the same as the node names. The depth-first search is to select a node, and search the nodes of lower level from the selected node down until reaching the leaf nodes of the tree structure (the leaf nodes do not include any lower nodes). And after the leaf node is reached, selecting other nodes to search according to the method until all the nodes of the tree structure are searched to the position.
The document bookmarks with the tree structures are correspondingly generated according to the tree structures of the visual programming projects, so that designers can browse documents by using browsing habits when browsing the visual programming projects, and convenience of users for browsing the documents is improved.
And S102, generating a programming logic view corresponding to each design page in the visual programming project.
The design page in the visual programming project is composed of a plurality of design elements, and referring to fig. 4, fig. 4 is a schematic diagram of a design page provided by an application embodiment of the present invention. For example, the design elements corresponding to the input and output ends in the design page may be "rectangular boxes".
Referring to fig. 5, a flowchart of another document output method provided by the embodiment of the present invention is shown, where when generating a programming logic view corresponding to each design page in the visual programming project, the method includes:
s501, determining the page authority of the document output object to the design page.
Some design pages contain important information or unique technology, for example, if the design page contains content that has not yet been patented, the content of the design page cannot be browsed by an output object, so that the page right of the design page needs to be set, the output object cannot browse the detailed content of the design page, and the page right represents whether the content of the design page is visible to the output object.
S502, when the content of the page permission representation design page is visible to the document output object, generating a corresponding first programming logic view; all design elements in a corresponding design page are shown in the first programming logic view.
If the content of the design page is visible to the document output object, a first programmatic logical view is generated that includes all of the design elements in the design page, that is, all of the content of the design page is visible to the user.
In practical application, if the page authority of the design page is set to be visible to a user, traversing each design element in the design page, analyzing basic composition primitives of the design elements, and drawing corresponding primitives in the first programming logic view according to basic primitives such as rectangles, polygons, circles, ellipses, arcs, straight-line segments, broken lines, texts and the like.
S503, when the content of the page right representing the design page is invisible to the document output object, generating a corresponding second programming logic view; and shielding the set design elements in the corresponding design page in the second programming logic view.
If the content of the design page is not visible to the document output object, the set design elements in the design page are masked.
In an embodiment of the present invention, when generating the corresponding second programming logic view, the method includes:
encapsulating the set design elements with set primitives in the second programmed logic view.
Further, the encapsulating the set design element with the set primitive in the second programming logic view includes:
encapsulating at least one set design element in a design page into a rectangular box primitive in the second programming logic view; and the set design elements represent other design elements except the input end, the output end and the set jump link in the corresponding design page.
Setting design elements, i.e. design elements that the designer does not want to see, for example, as shown in fig. 6, fig. 6 is a schematic diagram of a second programming logic view provided by an application embodiment of the present invention, and the setting primitive in fig. 6 is a rectangular frame, and the setting design elements are encapsulated by the rectangular frame. The rectangular frame in fig. 6 corresponds to the design page IEC103, and in practical application, IEC103 may be a node name of a tree structure, or may be a bookmark name of a document bookmark directory. Since the details in the design page IEC103 are not intended to be seen by the user, a rectangular box element is used to encapsulate the details of the design page IEC103, and the user can only see the input (test in fig. 6, left side), the output (remote _ modify _ set in fig. 6, right side) and the set jump link of the design page IEC 103.
In an embodiment of the present invention, the jump page corresponding to the set jump link is a design page that is not in the visual programming item. That is, when the content of the page permission representation design page is invisible to the document output object, if the jump page corresponding to the jump link in the design page is the design page in the visual programming item, the jump page is packaged in the rectangular box primitive. If the jump page corresponding to the jump link in the design page is not in the design page in the visual programming project, namely the jump link for linking the external program, the jump page is not packaged in the rectangular frame primitive and is visible to the user.
In practical applications, assuming that the design page size is a4 size, the maximum number of input ends or output ends of a single rectangular box is set to be 60, and if the maximum number of output ends is M, the number N of rectangular boxes is M +59/60, and the rectangular boxes are uniformly distributed in the view area of the second programming logic view.
The detailed content of the design page is packaged into a set primitive according to the page permission, and the specific content in the design page is hidden, so that the labor achievement of designers is protected, and the intellectual property is protected.
S103, outputting a document based on the at least one document bookmark and the corresponding programming logic view; the document characterizes programming logic of the visual programming project.
One design page can generate a programming logic view, one document bookmark corresponds to one programming logic view, and after all the design pages generate the programming logic views correspondingly, the programming logic views correspond to the corresponding document bookmarks one by one, so that clicking one document bookmark can jump to the corresponding programming logic view. All document bookmarks and all programmatic logic views constitute a complete document. In practical applications, the document may be a PDF document, or a Word document.
The design page is provided with a jump page capable of jumping to other design pages, and when a programming logic view corresponding to the design page is generated, a jump link is also generated in the programming logic view correspondingly. Specifically, referring to fig. 7, a schematic flow chart of another document output method provided by the embodiment of the present invention is shown, where when a document is output based on the at least one document bookmark and the corresponding programming logic view, the method includes:
s701, determining jump information of a first design element in a first design page; the skip information represents a second design element having an index relationship with the first design element and a second design page where the second design element is located.
And determining the jump information of the first design element in the first design page, namely acquiring the jump information of the jump link corresponding to the first design element. Some design elements are followed by jump links in the design page, and if the jump links are clicked, the design elements of a certain design page are jumped to. Fig. 8 is a schematic diagram of a jump link of a design page according to an embodiment of the present invention, as shown in fig. 8. The jump link in FIG. 8 is located behind the output end, and the names of the jump links are B09: Main: SUP1, that is to say jumping to the plug-in B09-core processor Main-page SUP 1.
It should be appreciated that some jump links only have corresponding design pages and no corresponding design elements.
S702, adding a second graphic element to a first graphic element corresponding to a corresponding first design element in a programming logic view corresponding to a first design page based on the jump information; the second primitive is used to link the first primitive to a third primitive; and the third graphic element is a graphic element corresponding to the second design element.
Each design element in the design page corresponds to a primitive in the programming logic view, and if a certain design element in the design page has a jump link, jump primitives are added to the primitive corresponding to the design element in the corresponding programming logic view. And the first design element in the first design page corresponds to a first graphic element in the corresponding programming logic view, a second graphic element is added to the first graphic element, the second graphic element corresponds to the jump link, the second graphic element is clicked to jump to a third graphic element, and the third graphic element is the graphic element corresponding to the second design element of the second design page.
Referring to fig. 9, fig. 9 is a schematic diagram of a second primitive provided by an embodiment of the present invention, where the name of the second primitive in fig. 9 is consistent with the name of the jump link, and both B09: Main: SUP 1. Clicking the second graphic element can jump to a third graphic element of the second design page.
Specifically, in practical application, a jump link needs to be added to the second primitive. Referring to fig. 10, a flowchart of another document output method provided by the embodiment of the invention is shown. When adding a second primitive to a first primitive corresponding to a corresponding first design element in a programming logic view corresponding to a first design page based on the jump information, the method includes:
s1001, determining a first path; the first path characterizes a relative path of the second design page with respect to the first design page.
The first path is the path of the third primitive in the document.
S1002, generating a jump link according to the first path and the second design element.
For example, a jump link is generated based on the names of the first path and the second design element, and the names of this jump link may include the names of the first path and the second design element.
S1003, writing the jump link into the second primitive.
And setting a corresponding relation between the second primitive and the jump link, wherein clicking the second primitive is equivalent to clicking the jump link.
The embodiment of the invention correspondingly generates the document bookmark with the tree structure based on the tree structure of the visual programming project, then generates the programming logic view corresponding to each design page in the visual programming project, and finally outputs the document based on the document bookmark and the corresponding programming logic view. The document generated by the embodiment of the invention has the document bookmark corresponding to the tree structure of the visual programming project, so that the user can browse and look up the document conveniently, and the convenience of browsing the document by the user is improved.
Referring to fig. 11, it shows a schematic flow chart of a document output method provided by an application embodiment of the present invention, and the document output flow includes:
s1101, acquiring a tree structure of the visual programming project, calling PDF to form an interface, and forming a PDF tree bookmark.
And S1102, sequentially processing each design page of the visual programming project.
S1103, whether the design page is of a user visible type or not is judged.
If the design page is of a user-visible type, step S1105 is performed. If the design page is of a type invisible to the user, step S1104 is performed.
S1104, packaging the content of the design page.
And S1105, calling a PDF interface and outputting the design page as a PDF document.
S1106, reading the jump information of the jump link in the design page to form a jump symbol in the PDF document.
And setting a jump page for the jump symbol in the PDF document.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 12, fig. 12 is a schematic diagram of a document output apparatus according to an embodiment of the present invention, as shown in fig. 12, the apparatus includes: the device comprises a first output module, a generation module and a second output module.
The system comprises a first output module, a second output module and a display module, wherein the first output module is used for outputting at least one document bookmark corresponding to a tree structure based on the tree structure of a visual programming project; each node in the tree structure corresponds to a design page in the visual programming project; each document bookmark in the at least one document bookmark corresponds to a node in the tree structure;
the generating module is used for generating a programming logic view corresponding to each design page in the visual programming project;
a second output module for outputting a document based on the at least one document bookmark and the corresponding programmed logic view; the document characterizes programming logic of the visual programming project.
The generation module is further to:
determining the page authority of the document output object to the design page;
when the content of the page permission representation design page is visible to the document output object, generating a corresponding first programming logic view; all design elements in a corresponding design page are shown in the first programming logic view;
when the page permission represents that the content of the design page is invisible to the document output object, generating a corresponding second programming logic view; and shielding the set design elements in the corresponding design page in the second programming logic view.
The generation module is further to:
encapsulating the set design elements with set primitives in the second programmed logic view.
The generation module is further to:
encapsulating at least one set design element in a design page into a rectangular box primitive in the second programming logic view; and the set design elements represent other design elements except the input end, the output end and the set jump link in the corresponding design page.
And the jump page corresponding to the set jump link is a design page which is not in the visual programming project.
The second output module is further configured to:
determining jump information of a first design element in a first design page; the skip information represents a second design element having an index relationship with the first design element and a second design page where the second design element is located;
adding a second graphic element to a first graphic element corresponding to the corresponding first design element in a programming logic view corresponding to the first design page based on the jump information; the second primitive is used to link the first primitive to a third primitive; and the third graphic element is a graphic element corresponding to the second design element.
The second output module is further configured to:
determining a first path; the first path characterizes a relative path of the second design page with respect to the first design page;
generating a jump link according to the first path and the second design element;
and writing the jump link into the second primitive.
It should be noted that: in the document output device provided in the above embodiment, only the division of the above modules is used for illustration when outputting a document, and in practical applications, the above processing may be distributed to different modules according to needs, that is, the internal structure of the device may be divided into different modules to complete all or part of the above described processing. In addition, the document output device and the document output method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Fig. 13 is a schematic diagram of a terminal according to an embodiment of the present invention. The terminal includes: cell phones, tablets, servers, etc. As shown in fig. 13, the terminal of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. The processor, when executing the computer program, implements the steps in the various method embodiments described above, such as steps 101 to 103 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of the modules in the above device embodiments, such as the functions of the receiving module, the first output module, the generating module, and the second output module shown in fig. 12.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the terminal.
The terminal may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that fig. 13 is only an example of a terminal and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, for example, the terminal may also include input and output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be an internal storage module of the terminal, such as a hard disk or a memory of the terminal. The memory may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the memory may also include both an internal memory module and an external memory device of the terminal. The memory is used for storing the computer program and other programs and data required by the terminal. The memory may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned functional modules and modules are illustrated as examples, and in practical applications, the above-mentioned functional allocation may be performed by different functional modules and modules according to requirements, that is, the internal structure of the apparatus is divided into different functional modules or modules to perform all or part of the above-mentioned functions. In the embodiments, each functional module and each module may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module, and the integrated modules may be implemented in a form of hardware or a form of software functional modules. In addition, specific names of the functional modules and modules are only used for distinguishing the functional modules and the modules from each other, and are not used for limiting the protection scope of the present application. The modules and the specific working processes of the modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the modules or the division of modules are merely one logical division, and there may be other divisions when actually implemented, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated modules/modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A document output method, comprising:
outputting at least one document bookmark corresponding to a tree structure based on the tree structure of the visual programming project; each node in the tree structure corresponds to a design page in the visual programming project; each document bookmark in the at least one document bookmark corresponds to a node in the tree structure;
generating a programming logic view corresponding to each design page in the visual programming project;
outputting a document based on the at least one document bookmark and the corresponding programmed logic view; the document characterizes programming logic of the visual programming project.
2. The method of claim 1, wherein when generating the programming logic view corresponding to each design page in the visual programming project, the method comprises:
determining the page authority of the document output object to the design page;
when the content of the page permission representation design page is visible to the document output object, generating a corresponding first programming logic view; all design elements in a corresponding design page are shown in the first programming logic view;
when the page permission represents that the content of the design page is invisible to the document output object, generating a corresponding second programming logic view; and shielding the set design elements in the corresponding design page in the second programming logic view.
3. The method of claim 2, wherein, when generating the corresponding second programming logic view, the method comprises:
encapsulating the set design elements with set primitives in the second programmed logic view.
4. The method of claim 3, wherein encapsulating the set design element with set primitives in the second programming logic view comprises:
encapsulating at least one set design element in a design page into a rectangular box primitive in the second programming logic view; and the set design elements represent other design elements except the input end, the output end and the set jump link in the corresponding design page.
5. The method according to claim 4, wherein the jump page corresponding to the set jump link is a design page not in the visual programming item.
6. The method of claim 1, wherein when outputting a document based on the at least one document bookmark and the corresponding programmed logic view, the method comprises:
determining jump information of a first design element in a first design page; the skip information represents a second design element having an index relationship with the first design element and a second design page where the second design element is located;
adding a second graphic element to a first graphic element corresponding to the corresponding first design element in a programming logic view corresponding to the first design page based on the jump information; the second primitive is used to link the first primitive to a third primitive; and the third graphic element is a graphic element corresponding to the second design element.
7. The method of claim 6, wherein when adding a second primitive for a first primitive corresponding to a corresponding first design element in a programmed logical view corresponding to a first design page based on the jump information, the method comprises:
determining a first path; the first path characterizes a relative path of the second design page with respect to the first design page;
generating a jump link according to the first path and the second design element;
and writing the jump link into the second primitive.
8. A document output apparatus, comprising:
the system comprises a first output module, a second output module and a display module, wherein the first output module is used for outputting at least one document bookmark corresponding to a tree structure based on the tree structure of a visual programming project; each node in the tree structure corresponds to a design page in the visual programming project; each document bookmark in the at least one document bookmark corresponds to a node in the tree structure;
the generating module is used for generating a programming logic view corresponding to each design page in the visual programming project;
a second output module for outputting a document based on the at least one document bookmark and the corresponding programmed logic view; the document characterizes programming logic of the visual programming project.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the document output method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the document output method of any one of claims 1-7.
CN202010087097.XA 2020-02-11 2020-02-11 Document output method, terminal and storage medium Withdrawn CN111309381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010087097.XA CN111309381A (en) 2020-02-11 2020-02-11 Document output method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010087097.XA CN111309381A (en) 2020-02-11 2020-02-11 Document output method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111309381A true CN111309381A (en) 2020-06-19

Family

ID=71145457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010087097.XA Withdrawn CN111309381A (en) 2020-02-11 2020-02-11 Document output method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111309381A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984252A (en) * 2020-06-30 2020-11-24 北京编程猫科技有限公司 Work creation method and device based on graphical programming tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984252A (en) * 2020-06-30 2020-11-24 北京编程猫科技有限公司 Work creation method and device based on graphical programming tool

Similar Documents

Publication Publication Date Title
CN109634598A (en) A kind of page display method, device, equipment and storage medium
CN102929867A (en) Technology used for automatically translating a document
CN106775970A (en) The window operation synchronous method of striding course, device and electronic equipment
CN105573574A (en) Application interface navigation method and apparatus
CN105630454A (en) Information display method and terminal equipment
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN111460763A (en) Method, device and equipment for marking file differences and computer-readable storage medium
CN109711189A (en) Data desensitization method and device, storage medium, terminal
CN111309381A (en) Document output method, terminal and storage medium
CN105989126B (en) A kind of Webpage display process and device
CN105656755A (en) User nickname processing method and device on social contact platform
CN106528115A (en) Visualized interface development method and device
CN102880690A (en) Method for simplifying character library of electronic book, and processing device for electronic book
CN114443592A (en) Data storage method and device, electronic equipment and storage medium
CN109558123A (en) The method of webpage conversion electrons book, electronic equipment, storage medium
CN108959294A (en) A kind of method and apparatus accessing search engine
CN106775586B (en) Data reordering method and device
CN113704819B (en) Coding output method and device of application log and computer readable storage medium
CN114237407A (en) Font icon processing method and device and computer readable storage medium
CN113110837A (en) Method and device for processing page information
Radford Learning Web Development with Bootstrap and AngularJS
CN113778401A (en) Page generation method and device
CN112395268A (en) Visual configuration method and device for complex condition rules
CN113900725A (en) Interface configuration method and device, computer equipment and storage medium
CN113703638A (en) Data management page processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20200619

WW01 Invention patent application withdrawn after publication