CN104182227B - A kind of method and system for generating template preview graph - Google Patents

A kind of method and system for generating template preview graph Download PDF

Info

Publication number
CN104182227B
CN104182227B CN201410414656.8A CN201410414656A CN104182227B CN 104182227 B CN104182227 B CN 104182227B CN 201410414656 A CN201410414656 A CN 201410414656A CN 104182227 B CN104182227 B CN 104182227B
Authority
CN
China
Prior art keywords
template
picture
preview graph
office software
startup interface
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.)
Active
Application number
CN201410414656.8A
Other languages
Chinese (zh)
Other versions
CN104182227A (en
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.)
China Standard Software Co Ltd
Original Assignee
China Standard Software 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 China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201410414656.8A priority Critical patent/CN104182227B/en
Publication of CN104182227A publication Critical patent/CN104182227A/en
Application granted granted Critical
Publication of CN104182227B publication Critical patent/CN104182227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method and system for generating template preview graph, the present invention can overcome the shortcomings of that office software is less efficient in preview template file in the prior art.This method includes:When starting the template of the office software, obtain and the corresponding picture of template;The picture is plotted on the startup interface window of the office software, to generate the template preview graph in the startup interface window.The method and system of generation template preview graph disclosed in this invention improves the response speed of generation template preview graph, reduces overhead during generation template preview graph, improves the formation efficiency of template document preview graph.

Description

A kind of method and system for generating template preview graph
Technical field
The present invention relates to office software more particularly to a kind of method and systems for generating template preview graph.
Background technology
Existing office software generally all has template file preview function, and the function is mainly by selecting template literary Part, and in corresponding window preview template file homepage content.
But the preview graph of template file is to automatically generate a snapshot plotting by office software when file preserves Piece is bundled to together with alternative document in template file., it is necessary to which first solution extrudes the snapshot from template file when preview Then picture could be shown.If the template file that shown simultaneously in homepage template is more, it is necessary to while to more A file carries out decompression work, occupies the expense of larger system, reduces fortune of the office software in preview template file Line efficiency.
The content of the invention
The technical problems to be solved by the invention be in order to overcome in the prior art office software in preview template file Less efficient deficiency.
In order to solve the above-mentioned technical problem, embodiments herein provides firstly a kind of method for generating template preview, For generating template preview graph in the homepage of office software;Wherein, this method includes:Starting the template of the office software When, it obtains and the corresponding picture of template;The picture is plotted on the startup interface window of the office software, in the startup The template preview graph is generated in interfaces windows.
Preferably, this method further includes:It is in advance the template establishment picture, and the picture and the template is closed Connection.
Preferably, the picture and the template are associated, including:Using the root name of the template as the master of the picture Filename;Or the picture and the template are associated by list file.
Preferably, this method further includes:Under catalogue where the picture is stored in the template.
Preferably, this method further includes:When the picture is plotted on the startup interface window of the office software, adaptively Ground adjusts size of the picture in the startup interface window.
Preferably, this method further includes:After the picture is plotted on the startup interface window of the office software, record should Path of the template when generating the template preview graph.
Embodiments herein additionally provides a kind of system for generating template preview graph, in the homepage of office software Generate template preview graph;Wherein, which includes:Acquisition module, be arranged to start the office software template when, obtain with The corresponding picture of the template;Drafting module is arranged to the picture being plotted on the startup interface window of the office software, with The template preview graph is generated in the startup interface window.
Preferably, which further includes:Creation module is arranged in advance as the template establishment picture;Relating module, if It is set to and is associated the picture and the template.
Preferably, which is arranged to the root name using the root name of the template as the picture;It is or logical List file is crossed to be associated the picture and the template.
Preferably, which further includes:Memory module is arranged under catalogue where the picture is stored in the template.
Compared with prior art, embodiments herein is carried when calling template without being decompressed to corresponding picture The high response speed of generation template preview graph, reduces overhead during generation template preview graph, improves template document The formation efficiency of preview graph.Moreover, snapshot picture of the prior art is that office software automatically generates, its size model is unable to control It encloses, thus also can not just carry out appropriate interception to snapshot picture according to the typesetting situation of each template, this is but also preview graph It is difficult to achieve the desired results.Embodiments herein is when being pre-created picture corresponding with template or in startup interface window When mouth is drawn, the size of picture can also be configured or is adjusted flexibly as needed to the size of picture, to meet The needs of the situations such as typesetting, adjustment can not be controlled and be difficult to not by overcoming the size of snapshot picture in the prior art Foot.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that being understood by implementing technical scheme.The purpose of the present invention and other advantages can by Specifically noted structure and/or flow are realized and obtained in specification, claims and attached drawing.
Description of the drawings
Attached drawing is used for providing to the technical solution of the application or further understanding for the prior art, and constitution instruction A part.Wherein, the attached drawing for expressing the embodiment of the present application is used to explain together with embodiments herein the technical side of the application Case, but do not form the limitation to technical scheme.
Fig. 1 is the flow diagram of the method for the generation template preview graph of the embodiment of the present application.
Fig. 2 is the organigram of the system of the generation template preview graph of the embodiment of the present application.
Specific embodiment
Carry out the embodiment that the present invention will be described in detail below with reference to accompanying drawings and embodiments, how the present invention is applied whereby Technological means solves technical problem, and the realization process for reaching relevant art effect can fully understand and implement according to this.This Shen Each feature that please be in embodiment and embodiment, can be combined with each other under the premise of not colliding, the technical solution formed Within protection scope of the present invention.
In addition, the flow of attached drawing can be in the computer system of such as a group of computer-executable instructions the step of illustrating Middle execution.Also, although logical order is shown in flow charts, it in some cases, can be to be different from herein Order performs shown or described step.
The method of the generation template preview graph of the embodiment of the present application, mainly generates document for office software in homepage Template preview graph.As shown in Figure 1, this method mainly includes the following steps.
Step S110, for the template establishment picture of office software, such as the picture of png forms, which can be used as should The preview graph of template.Wherein, the picture created can carry out sectional drawing from template file and be generated.
Step S120 stores the picture.For example, during the picture to be stored in the catalogue for preserving the template, also i.e. by picture It is stored in template under same catalogue, facilitates and the picture is called according to the template.
In embodiments herein, the picture and the corresponding template can also be closed when storing the picture Connection, to establish incidence relation between template and corresponding picture.It can be using the root name of the template as the master of the picture Filename namely keep the picture consistent with the root name of template so that the template can be carried out with the picture compared with Good correspondence, it is convenient that the picture is searched.
The picture and the corresponding template are associated, can also be carried out before or after the picture is stored. When storing the picture, the correspondence between the picture and corresponding template can also be stored together.
Step S130 when office software starts the template, is obtained and the corresponding picture of the template.
The corresponding picture of the template is plotted on the startup interface window of the office software by step S140, so as at this The template preview graph is generated in the homepage of startup interface window namely the office software.
When the office software contains multiple template (for example being stored under unified directory), correspondence can be generated in homepage In the masterplate preview graph of all templates.Under this situation, when starting the template of the office software, the mesh where template is traveled through Record, the corresponding picture of each template is found under same catalogue, and the corresponding picture of each template is plotted in opening for office software In dynamic interfaces windows.The picture corresponding to each template in order to more obvious is distinguished, can also show the title name of the template, than Such as the title name of template is included in the lower section of picture.
In embodiments herein, can also in advance for office software template establishment picture and store.It handles official business starting During the template of software, obtain and the corresponding picture of template and drawn directly from the picture stored.Therefore, exist When starting the template of office software every time, it is not required for creating picture corresponding with template, reduces time, improve life Into the efficiency of template preview graph.If for example, corresponding picture is prepared in advance for template, when starting the template of office software Can template preview graph be generated namely in some other embodiments according to the picture prepared, step as shown in Figure 1 Rapid S110 and step S120 is dispensed.Certainly, corresponding picture is created temporarily when starting template, it is also feasible 's.
Embodiments herein can also pass through the corresponding corresponding template file of template record in logging template preview graph Path provides more fast operation response for the follow-up template file generation template preview graph that starts, further improves operation system The reaction speed of system reduces overhead.As shown in Figure 1, embodiments herein can also include the following steps.
Step S150, the template file path corresponding to template of the record generation in template preview graph.What is generated When clicking on preview graph in template preview graph to open corresponding template, can needs be found by the template file path recorded The template file of opening.
In addition, being associated to template and corresponding picture, can also be realized by list file.For example note is established respectively It records the template tables of various templates and records various templates and correspond to the picture table of picture, then the template table and picture table are closed Connection corresponds to so that any template in template table has corresponding picture to be present in the picture table, so as to draw the template When corresponding picture can be called according to template table and picture table.
Embodiments herein realizes the function that document template preview graph is generated in the homepage of office software, the function The template preview graph of all documents can be shown in office software startup interface, corresponding mould can also be opened by clicking on preview graph Plate.The homepage template preview graph of office software can with compared with intuitive way show office software in template, and it is a variety of not Same template is readily applicable to different demands of the user for document, and user is facilitated to create all kinds of documents.
Below by way of open NeoShine Office word processings startup interface in homepage indicating template document preview Process elaborates.
The corresponding picture of each template is made previously according to the template file of office software, and made is stored in finger Determine in catalogue, such as C:\Program Files\NeoShineOffice\Basis\share\template\zh-CN\swriter (swriter is word processing module).The entitled ott of suffix (by taking word processing module as an example) of template file, after picture file Sew entitled png.The corresponding picture of template file is that Corresponding matching is carried out in a manner that root name is identical, that is, needs to find During the corresponding picture of template, as long as finding the picture identical with template root name.
Since template file may have very much, when template establishment template preview graph is traveled through consider not because due to time Going through and create operation causes program to start slowly, therefore the whole establishment of startup interface window can first be waited to complete window and shown Afterwards, then in startup interface window the template preview graph is created.
The entire establishment process of template preview graph can be put into a call back function, when creating startup interface window The PostUserEvent methods of the application (Application) of office software are called, the establishment process of template preview graph is delayed Into message queue circular treatment next time, the asynchronous call of establishment process is realized, avoids creating operation influence program startup Speed.
During the establishment that template preview graph is generated in the homepage of office software, read and the corresponding figure of template first The storage path of piece, travels through all template files, obtains the root name and title name of template file.The master of template file Filename, to be spliced into the complete name of picture file, is searched under same paths and is somebody's turn to do plus the suffix name " .png " for representing picture Then the picture of complete name is plotted in the picture found on startup interface window, and the title name of template file It is shown in below picture.The path of template file is recorded in the control for drawing preview graph, repeats above procedure until traversal Complete all template files.When user clicks on wherein any one preview graph, obtain this preview graph and correspond to what is recorded in control The path of corresponding templates file, which template file is so known that user needs open is.Accordingly, corresponding mould is opened Plate file.
A kind of system of generation template preview graph of the embodiment of the present application is mainly used for generating in the homepage of office software Template preview graph.As shown in Fig. 2, the system mainly includes creation module 210, memory module 220, acquisition module 230 and paints Molding block 240 etc..
Creation module 210 is arranged in advance as the template establishment picture of the office software.
Memory module 220 is connected with the creation module 210, is arranged to store the picture.
Acquisition module 230 is connected with the memory module 220, is arranged to when starting the template, obtains opposite with the template The picture answered.
Drafting module 240 is connected with the acquisition module 230, is arranged to the picture being plotted in the startup of the office software In interfaces windows, to generate the template preview graph in the startup interface window.
It should be noted that in embodiments herein, for the corresponding picture of template establishment and can be stored in advance. When starting the template of office software, it can obtain directly from the picture stored and be painted with the corresponding picture of the template System, and when template need not be started every time all create corresponding picture temporarily.If for example, phase is prepared in advance for template The picture answered, then it is pre- can to generate template according to the picture prepared for acquisition module 230 when starting the template of office software Look at figure namely in some other embodiments, creation module 210 as shown in Figure 2 and memory module 220 are to can be omitted 's.Certainly, corresponding picture is created temporarily when starting template, it is also feasible.
As shown in Fig. 2, the system can also include relating module 250, be connected phase with the creation module 210 and memory module Even, the creation module 210 is arranged in advance as after the template establishment picture, the picture and the template are associated.Storage Module 220 is connected with the relating module 250, while the picture is stored, can also store between template and corresponding picture Incidence relation.
The relating module 250 can be using the root name of the template as the root name of the picture;Or pass through table text Part is associated the picture and the template, facilitates and is searched according to template and call corresponding picture.Wherein, relating module 250 The association can be carried out to template and corresponding picture when memory module 220 stores the picture, the picture can also stored Before or after the association is carried out to template and corresponding picture.
In embodiments herein, under catalogue where which can be stored in the template by memory module 220.
In embodiments herein, which is plotted on the startup interface window of the office software by drafting module 240 Afterwards, the title name of the template can also be shown.
As shown in Fig. 2, the system of the generation template preview graph of the embodiment of the present application, can also include logging modle 260, with Drafting module 240 is connected, after the picture is plotted on the startup interface window of the office software by drafting module 240, record Path of the template when generating the template preview graph.
As shown in Fig. 2, the system of the generation template preview graph of the embodiment of the present application, can also include delaying module 270, with Drafting module 240 is connected, and is arranged to delay the establishment process that the picture is plotted on the startup interface window of the office software Into message queue circular treatment next time.
Embodiments herein is being opened by previously generating the preview graph of template and template file and being stored in specified directory During dynamic interfaces windows generation, the template file under specified directory, resolution file title and root name are traveled through, uses the master file Name is spliced into the picture is complete title to be found plus the suffix name of picture file (such as " .png "), is obtained under the catalogue advance The correspondence picture of generation is simultaneously drawn in the window, and the title name of template file is shown in below the picture.Repeat this mistake Journey can travel through all template files under the path.
Embodiments herein has versatility, template file is associated with corresponding picture, by traveling through template Its corresponding picture can be found to generate corresponding preview graph, reducing needs to generate template preview by forms such as snapshots The overhead of figure, and realize the function and purpose of office software indicating template preview graph in homepage.
Those skilled in the art should be understood that each of the device that above-mentioned the embodiment of the present application provided and/or system Each step in component and method, they can concentrate on single computing device or be distributed in multiple calculating On the network that device is formed.Optionally, they can be realized with the program code that computing device can perform.It is thus possible to It is stored in storage device by computing device to perform or they are fabricated to each integrated circuit modules respectively, Or multiple modules in them or step are fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to Any specific hardware and software combines.
Although disclosed herein embodiment as above, the content only technical solution of the present invention for ease of understanding And the embodiment used, it is not limited to the present invention.Technical staff in any fields of the present invention is not departing from this On the premise of the disclosed spirit and scope of invention, any modification and variation can be carried out in the form and details of implementation, But the scope of patent protection of the present invention, still should be subject to the scope of the claims as defined in the appended claims.

Claims (9)

1. a kind of method for generating template preview, for generating template preview graph in the homepage of office software;Wherein, this method Including:
When starting the template of the office software, obtain and the corresponding picture of template;
After all establishment completion window is shown in the startup interface window of the office software, which is plotted in the office software Startup interface window on, to generate the template preview graph in the startup interface window;
Template file path corresponding to template of the record generation in template preview graph, with by clicking on the template preview graph Open corresponding template.
2. according to the method described in claim 1, wherein, this method further includes:
It is in advance the template establishment picture, and the picture and the template is associated.
3. according to the method described in claim 2, wherein, the picture and the template are associated, including:
Using the root name of the template as the root name of the picture;Or
The picture and the template are associated by list file.
4. method according to claim 1 or 2, wherein, this method further includes:
Under catalogue where the picture is stored in the template.
5. method according to claim 1 or 2, wherein, this method further includes:
When the picture is plotted on the startup interface window of the office software, the picture is adaptively adjusted in the startup interface Size in window.
6. a kind of system for generating template preview graph, for generating template preview graph in the homepage of office software;Wherein, this is System includes:
Acquisition module is arranged to, when starting the template of the office software, obtain and the corresponding picture of the template;
Drafting module is arranged to after the startup interface window whole establishment completion window of the office software is shown, by the picture It is plotted on the startup interface window of the office software, to generate the template preview graph in the startup interface window;
Logging modle is arranged to the template file path corresponding to template of the record generation in template preview graph, to pass through a little It hits the template preview graph and opens corresponding template.
7. system according to claim 6, wherein, which further includes:
Creation module is arranged in advance as the template establishment picture;
Relating module is arranged to the picture and the template being associated.
8. system according to claim 7, wherein:
The relating module is arranged to the root name using the root name of the template as the picture;Or by list file to this Picture is associated with the template.
9. the system according to claim 6 or 7, wherein, which further includes:
Memory module is arranged under catalogue where the picture is stored in the template.
CN201410414656.8A 2014-08-21 2014-08-21 A kind of method and system for generating template preview graph Active CN104182227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410414656.8A CN104182227B (en) 2014-08-21 2014-08-21 A kind of method and system for generating template preview graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410414656.8A CN104182227B (en) 2014-08-21 2014-08-21 A kind of method and system for generating template preview graph

Publications (2)

Publication Number Publication Date
CN104182227A CN104182227A (en) 2014-12-03
CN104182227B true CN104182227B (en) 2018-05-25

Family

ID=51963306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410414656.8A Active CN104182227B (en) 2014-08-21 2014-08-21 A kind of method and system for generating template preview graph

Country Status (1)

Country Link
CN (1) CN104182227B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975571A (en) * 2016-05-03 2016-09-28 深圳Tcl数字技术有限公司 Picture pushing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122243A (en) * 2010-01-07 2011-07-13 炬力集成电路设计有限公司 Method, system and portable electronic equipment for generating application program interface
CN102779045A (en) * 2012-07-03 2012-11-14 北京昆仑万维科技股份有限公司 Interface generating method, interface editor and electronic equipment
CN103793229A (en) * 2014-02-11 2014-05-14 重庆市科学技术研究院 Template digital publishing and editing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122243A (en) * 2010-01-07 2011-07-13 炬力集成电路设计有限公司 Method, system and portable electronic equipment for generating application program interface
CN102779045A (en) * 2012-07-03 2012-11-14 北京昆仑万维科技股份有限公司 Interface generating method, interface editor and electronic equipment
CN103793229A (en) * 2014-02-11 2014-05-14 重庆市科学技术研究院 Template digital publishing and editing method and system

Also Published As

Publication number Publication date
CN104182227A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
CN104881466B (en) The processing of data fragmentation and the delet method of garbage files and device
CN105205117A (en) Data table migrating method and device
DE202011110894U1 (en) Server-based data sharing in computer applications
CN103186336B (en) A kind of icon adjustment method and device
US20110022643A1 (en) Dynamic media content previews
US11222016B2 (en) Dynamic combination of processes for sub-queries
CN103116503B (en) The implementation method of a kind of multiwindow and device
CN104424172B (en) A kind of composition method, apparatus and system
CN105005568B (en) Web page front end processing device and method based on template
CN107918638A (en) Information processor, document display method, file display system and medium
CN105100195A (en) Data transmission method and device thereof
CN110321545A (en) A kind of method and apparatus of office documents typesetting
CN103888513B (en) Server end multifile method for down loading and system
CN104182227B (en) A kind of method and system for generating template preview graph
CN109617944B (en) WEB parameter management method, device, computer storage medium and equipment
JP2014519673A (en) Techniques for generating custom objects that represent content files
WO2020000812A1 (en) Method and apparatus for generating ppt document, storage medium, and computer device
CN113177088A (en) Multi-scale simulation big data management system for material irradiation damage
CN109446201A (en) A kind of method for sorting, device and the equipment of Excel table endorsement information
KR102608726B1 (en) Method, apparatus, device and storage medium for customizing personalized rules for entities
AU2018397276A1 (en) Synchronizing changes within a collaborative content management system
JP2022058737A (en) Data access method, device, electronic apparatus, storage medium and computer program
US20210409518A1 (en) Custom action invocation in a speadsheet integrated with web services
CN111240665A (en) Method for optimizing Vuejs user interface based on Spring MVC technology
CN110119502A (en) A method of dynamic table single domain is realized based on OFD document

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant