CN108897537A - Document display method, computer-readable medium and a kind of computer - Google Patents

Document display method, computer-readable medium and a kind of computer Download PDF

Info

Publication number
CN108897537A
CN108897537A CN201810561927.0A CN201810561927A CN108897537A CN 108897537 A CN108897537 A CN 108897537A CN 201810561927 A CN201810561927 A CN 201810561927A CN 108897537 A CN108897537 A CN 108897537A
Authority
CN
China
Prior art keywords
document
menu icon
type
data
document data
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.)
Pending
Application number
CN201810561927.0A
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.)
Evermore Software Ltd By Share Ltd
Original Assignee
Evermore Software Ltd By Share 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 Evermore Software Ltd By Share Ltd filed Critical Evermore Software Ltd By Share Ltd
Publication of CN108897537A publication Critical patent/CN108897537A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a kind of document display method, computer-readable medium and a kind of computer, the method includes:Start a document;It obtains and parses the menu icon file of documentor to obtain the attribute data of menu icon;Obtain the display size parameter of the menu icon;The menu icon is drawn according to the attribute data of the menu icon and display size parameter;Document data is read from the document, the document data of the reading is parsed and encapsulated, View Drawing is carried out to the document data after encapsulation;With show the document data and menu icon of drafting.The menu icon is drawn according to the attribute data of the menu icon and display size parameter in the present invention, rather than the image of menu icon is directly amplified and reduced, clearly menu icon can be obtained under each display size in this way.

Description

Document display method, computer-readable medium and a kind of computer
【Technical field】
The present invention relates to office software fields, are particularly suited for document display method, computer-readable medium and a kind of calculating Machine.
【Background technique】
With the development and universal, computer application work and life of the overall permeation to people of computer technology In, become the indispensable important tool of people and home entertainment device.Basis of the image graphics technology as computer technology, Play vital effect.However, from the point of view of the core technology of current application program, for graph image support also only It is limited only to the simple displaying to image, with gradually going deep into for application program, some disadvantages of image technique itself, such as file Larger, shortage interactivity becomes increasingly conspicuous in the problem of poor display effect in high definition device, also limits boundary to a certain extent The further development that face shows.
For using the user of computer, as display screen is increasing, resolution ratio also increases therewith, they are more accustomed to The large icons of exquisite high definition and full design.And the menu icon of application program (such as word) is usually using raster graphic lattice Formula, such as JPEG, GIF and PNG etc..However, will lead to image after amplifying for the menu icon in the application program It is fuzzy, cause user experience very poor.
Therefore, it is intended that proposing that one kind can be with improved document display method.
【Summary of the invention】
One of the technical problem to be solved in the present invention is to provide a kind of document display method, after menu icon is amplified It still is able to clearly show.
One of the technical problem to be solved in the present invention is to provide a kind of computer-readable medium and computer, in storage There is document processing program, is performed in the document processing program and still is able to clearly show after menu icon is amplified.
To solve the above-mentioned problems, according to an aspect of the present invention, the present invention provides a kind of document display method, Including:Start a document;It obtains and parses the menu icon file of documentor to obtain the attribute data of menu icon;It obtains The display size parameter of the menu icon;The dish is drawn according to the attribute data of the menu icon and display size parameter Free hand drawing mark;Document data is read from the document, the document data of the reading is parsed and encapsulated, after encapsulation Document data carries out View Drawing;The document data and menu icon drawn with display.
Further, the menu icon file is scalable vector graphics file.
Further, the display size parameter of the menu icon is determined based on the display configuration parameter of display.
Further, the attribute data of the menu icon includes origin coordinates point, width, height, Fill Color and icon road Diameter data.
Further, the document data of the reading is parsed and is encapsulated, the document data after encapsulation is regarded Figure is drawn:The document data of reading is parsed, in memory by the document datastore after parsing;It is read from memory Each paragraph in document data after taking parsing;Each document data is read from the paragraph;According to the document data Type the document data is packaged;View Drawing is carried out to the document data after encapsulation.
Further, the type of the document data includes text type, keisen type, AutoShape type, figure Sheet type, link type, characters in a fancy style type, subtype, multiple media types, field type, bookmark type, barcode types, annotation One or more of type, directory index type and functional image type.
According to another aspect of the present invention, the present invention provides a kind of computer-readable medium, is stored with program and refers to It enables, which is executed by processor to realize document display method described above.
According to a further aspect of the invention, the present invention provides a kind of computer comprising memory and processor, storage Program instruction is stored in device, processor executes described program instruction to realize document display method described above.
Compared with prior art, it is drawn in the present invention according to the attribute data of the menu icon and display size parameter The menu icon, rather than the image of menu icon is directly amplified and reduced, in this way under each display size all Available clearly menu icon.
About other objects of the present invention, feature and advantage are detailed in a specific embodiment below in conjunction with attached drawing Description.
【Detailed description of the invention】
It will be better understood in conjunction with reference attached drawing and next detailed description, the present invention, wherein same appended drawing reference Corresponding same structure member, wherein:
Fig. 1 is the flow diagram of document display method in one embodiment in the present invention;
Fig. 2 is the flow diagram of document data View Drawing method in one embodiment in the present invention;
Fig. 3 a, Fig. 3 b, the menu icon that Fig. 3 c and 3d are different resolution;
Fig. 4 is the display example of the document in the present invention, shows menu icon and document data simultaneously;
Fig. 5 is multiple examples of the menu icon of the document in the present invention;
Fig. 6 is an example of the menu icon file of the document in the present invention.
【Specific embodiment】
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Detailed description of the invention is mainly in by program, step, logical block, process or other symbolistic descriptions It is existing, the running of the technical solution in the direct or indirect simulation present invention.Technical staff in fields uses herein These describe and state that the others skilled in the art into fields effectively introduce their work essence.
" one embodiment " or " embodiment " referred to herein refer to special characteristic relevant to the embodiment, structure or Characteristic at least may be included at least one implementation of the invention.In the present specification different places occur " in a reality Apply in example " not necessarily all refer to the same embodiment, it is also necessarily that the independent or selection mutually exclusive with other embodiments is real Apply example.In addition, indicating the method for one or more embodiments, flow chart or sequence of modules and revocable finger in functional block diagram What particular order is acted as, is not also construed as limiting the invention.
According to an aspect of the present invention, the present invention proposes a kind of document display method, and the menu icon of the document is can Scaled vectors graphic file can repaint menu icon based on the display size parameter of the menu icon, rather than The icon of raster graphic format is zoomed in or out to adapt to different display sizes, so as to be directed to various display rulers It is very little all to obtain clearly menu icon.
Fig. 1 is the flow diagram of document display method 100 in one embodiment in the present invention.As shown in Fig. 1 , the document display method 100 includes the following steps.
Step 110, start a document.
The document can be word processing file, bulletin processing document, Form Handle document, CAD document etc..The text Shelves can be edited using various documentors after the document that is formed.
Step 120, it obtains and parses the menu icon file of documentor to obtain the attribute data of menu icon.
The menu icon file saves the designated position with the documentor, then opens automatically after starting the document The documentor is moved, and obtains the menu icon file to predetermined position, the menu icon file is Scalable Vector Graphic file.Later, the menu icon file for parsing the documentor obtains the attribute data of menu icon, wherein the dish Free hand drawing target attribute data includes origin coordinates point, width, height, Fill Color and icon path data.
As shown in Fig. 6 an example of the menu icon file:
One example of the attribute data of the menu icon can be:Origin coordinates point is (0,0) position, wide (width) it is equal to 16px, high (height) is equal to 16px, and Fill Color (fill) is #F99533, and menu icon path data is Path, only one path in this menu icon, it give when this menu icon draws display all coordinate points (x, Y), inside " d " of its coordinate points all at path.
Step 130, the display size parameter of the menu icon is obtained.
In one embodiment, the display size ginseng of the menu icon is determined according to the display configuration parameter of display Number.Shown display size parameter can be resolution information, such as 16*16,32*32,64*64,128*128 etc..
Step 140, the documentor is according to the attribute data of the menu icon and the drafting of display size parameter Menu icon.
It is shown display size parameter is 16*16 such as Fig. 3 a, when attribute data is above-mentioned example, the dish drawn Free hand drawing mark.It is shown display size parameter is 32*32 such as Fig. 3 b, when attribute data is above-mentioned example, the menu drawn Icon.It is shown display size parameter is 64*64 such as Fig. 3 c, when attribute data is above-mentioned example, the menu map drawn Mark.It is shown display size parameter is 128*128 such as Fig. 3 d, when attribute data is above-mentioned example, the menu map drawn Mark.
As can be seen that the menu icon be all under each resolution ratio it is gem-pure, do not have more bigger fuzzyyer Problem.
Fig. 5 is the example of a variety of menu icons of the document in the present invention.From Fig. 5, it can be seen that various menu maps Mark.
Step 150, document data is read from the document, the document data of the reading is parsed and encapsulated, View Drawing is carried out to the document data after encapsulation.
Step 160, the document data and menu icon of drafting are shown.
Fig. 4 is the display example of the document in the present invention, and which show the document data of drafting and menu icons.
In this way, using the documentor of scalable vector graphics file, it can be adapted to large high-definition screen, interface icon is comprehensive Flattening is more in line with present fashion trend, even if display is amplified to 500%, will not be distorted.In addition, Scalable Vector Figure source file is smaller, than other raster graphics loading velocity faster, the bandwidth used is less;It can reduce Office The size of images (office image) packet, reduces the size of installation compressed package.Also, menu icon is rendered by browser, to compile Journey mode is drawn, and image is dynamically changed, and is especially suitable for the application program, such as chart application etc. of data-driven.
Fig. 2 is the flow diagram of document data View Drawing step 150 in one embodiment in the present invention, described Step 150 includes the following steps.
Step 151, document data is read from the document.
Step 152, the document data of reading is parsed, in memory by the document datastore after parsing.
Step 153, a paragraph in the document data after reading parsing in memory.
Step 154, a document data is read from the paragraph.
Step 155, the document data is packaged according to the type of the document data.
The type of the document data includes text type, keisen type, AutoShape type, picture type, chain Connect type, characters in a fancy style type, subtype, multiple media types, field type, bookmark type, barcode types, annotation type, catalogue One or more of index type and functional image type.
Step 156, View Drawing is carried out to the document data after encapsulation.
Step 157, judge whether all document datas in paragraph are all packed, if it is, being transferred to step 158, such as Fruit is no, then return step 154.
Step 158, judge whether all paragraphs of document are all packed to complete, if it is, it is transferred to step 159, if It is no, then return step 153.
Step 159, terminate.
According to another aspect of the present invention, the present invention provides a kind of computer-readable medium, is stored with program and refers to It enables, which is executed by processor to realize the document display method 100.
According to another aspect of the present invention, the present invention provides a kind of computer comprising memory and processor, storage Program instruction is stored in device, processor executes described program instruction to realize the document display method 100.
The description with certain particularity detailed enough has been carried out to the present invention above.Ordinary skill in fields Personnel are it should be understood that the description in embodiment is only exemplary, before without departing from true spirit and scope of the present invention Put make it is all change all should belong to protection scope of the present invention.Scope of the present invention is by the power What sharp claim was defined, rather than limited by the foregoing description in embodiment.

Claims (8)

1. a kind of document display method, which is characterized in that it includes:
Start a document;
It obtains and parses the menu icon file of documentor to obtain the attribute data of menu icon;
Obtain the display size parameter of the menu icon;
The menu icon is drawn according to the attribute data of the menu icon and display size parameter;
Document data is read from the document, the document data of the reading is parsed and encapsulated, to the text after encapsulation File data carries out View Drawing;With
Show the document data and menu icon drawn.
2. document display method according to claim 1, which is characterized in that the menu icon file is Scalable Vector Graphic file.
3. document display method according to claim 1, which is characterized in that the display configuration parameter based on display is come really The display size parameter of the fixed menu icon.
4. document display method according to claim 1, which is characterized in that the attribute data of the menu icon includes Beginning coordinate points, width, height, Fill Color and icon path data.
5. document display method according to claim 1, which is characterized in that parsed to the document data of the reading And encapsulation, carrying out View Drawing to the document data after encapsulation includes:
The document data of reading is parsed, in memory by the document datastore after parsing;
Each paragraph in document data after reading parsing in memory;
Each document data is read from the paragraph;
The document data is packaged according to the type of the document data;
View Drawing is carried out to the document data after encapsulation.
6. document display method according to claim 5, which is characterized in that
The type of the document data includes text type, keisen type, AutoShape type, picture type, links category Type, characters in a fancy style type, subtype, multiple media types, field type, bookmark type, barcode types, annotation type, directory index One or more of type and functional image type.
7. a kind of computer-readable medium, which is characterized in that be stored with program instruction, which is executed by processor To realize the method as described in claim 1-6 is any.
8. a kind of computer, which is characterized in that it includes memory and processor, and program instruction is stored in memory, processing Device executes described program instruction to realize the method as described in claim 1-6 is any.
CN201810561927.0A 2018-05-11 2018-06-04 Document display method, computer-readable medium and a kind of computer Pending CN108897537A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018104542892 2018-05-11
CN201810454289 2018-05-11

Publications (1)

Publication Number Publication Date
CN108897537A true CN108897537A (en) 2018-11-27

Family

ID=64344053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810561927.0A Pending CN108897537A (en) 2018-05-11 2018-06-04 Document display method, computer-readable medium and a kind of computer

Country Status (1)

Country Link
CN (1) CN108897537A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115767A (en) * 2020-08-31 2022-03-01 西安诺瓦星云科技股份有限公司 Media playing method, device and system and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110032A (en) * 2007-08-24 2008-01-23 张建中 Method for creating multidimensional operating system and device thereof
CN101807141A (en) * 2009-02-18 2010-08-18 京瓷美达株式会社 The control device of image processing system and image formation system
CN102157005A (en) * 2011-04-19 2011-08-17 无锡永中软件有限公司 Document view drawing method applied to small-screen equipment
US20160173318A1 (en) * 2014-12-15 2016-06-16 Samsung Electronics Co., Ltd. Electronic apparatus and method of controlling group action

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110032A (en) * 2007-08-24 2008-01-23 张建中 Method for creating multidimensional operating system and device thereof
CN101807141A (en) * 2009-02-18 2010-08-18 京瓷美达株式会社 The control device of image processing system and image formation system
CN102157005A (en) * 2011-04-19 2011-08-17 无锡永中软件有限公司 Document view drawing method applied to small-screen equipment
US20160173318A1 (en) * 2014-12-15 2016-06-16 Samsung Electronics Co., Ltd. Electronic apparatus and method of controlling group action

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115767A (en) * 2020-08-31 2022-03-01 西安诺瓦星云科技股份有限公司 Media playing method, device and system and computer readable storage medium

Similar Documents

Publication Publication Date Title
US8923651B2 (en) Data system and method
CN103034502B (en) A kind of method embedding dynamic realtime monitoring chart in SVG interface
CN106991096A (en) Dynamic page rendering intent and device
CN106095437A (en) The implementation method of the layout type of user interface RTL from right to left and device
CN110415319B (en) Animation production method and device based on PPT, electronic equipment and storage medium
CN108198231A (en) Electric power GIS vector graphics real-time drawing method, storage medium
CN109933324B (en) Nuclear power DCS (distributed control System) human-computer interface automatic generation method
CN104820589A (en) Method and device for dynamically adapting webpage
CN115439609B (en) Three-dimensional model rendering method, system, equipment and medium based on map service
CN109636885B (en) Sequential frame animation production method and system for H5 page
CN109472852A (en) Display methods and device, the equipment and storage medium of point cloud chart picture
CN112100296B (en) GIS system convenient to carry out GIS vector data editing
CN105956133B (en) Method and device for displaying file on intelligent terminal
CN107707965A (en) The generation method and device of a kind of barrage
CN106776994B (en) Application method and system of engineering symbols in engineering report forms and web pages
CN104615647B (en) View model request, delivery method and device
CN104008565B (en) System and method for playing Flash bitmap animation by using cocos2d-x and HE engines
CN108897537A (en) Document display method, computer-readable medium and a kind of computer
CN104424174B (en) Document processing system and document processing method
CN108733441A (en) A kind of rendering method for visualizing and system suitable for large scale electric network symbolic device
CN108399156A (en) The composition method and device of formula in a kind of pdf document
CN113835595A (en) Picture display method and device, electronic equipment and computer storage medium
CN111063010A (en) Map motion track animation realization method and device, electronic equipment and storage medium
CN116010736A (en) Vector icon processing method, device, equipment and storage medium
CN115391692A (en) Video processing method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181127