Summary of the invention
The embodiment of the present invention is designed to provide a kind of document schem drawing generating method and system, to help user quick
Understand file structure.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of document schem drawing generating methods, including:
Obtain the document for having multiple titles;
Determine the subordinate relation and title content in the document between the level attributes of each title, title;
The corresponding display object of each title is generated, includes the title content of corresponding title in the display object,
The corresponding display object of each title is arranged according to the subordinate relation between the level attributes and title of each title, it will by line
Title series connection with same level attribute, generates document schem figure.
Optionally, the subordinate relation between the level attributes and title according to each title is by the corresponding display object of each title
After being arranged, further include:
The corresponding display object of two titles with subordinate relation is connected by line segment.
Optionally, after generating document schem figure, further include:
User is received to the first operation behavior of the display object in document schem figure;
The document is positioned according to first operation behavior, the current page of the document is switched to described
The page where the targeted corresponding title of display object of first operation behavior.
Optionally, the subordinate relation between the level attributes and title according to each title by each title it is corresponding display pair
As being arranged, it will be connected with the title of same level attribute by line, generate document schem figure, including:
The corresponding display object of the highest title of level is set to center;
The corresponding display object of the high title of level time is arranged in the corresponding display object of the highest title of the level
Around;
The corresponding display object of remaining title is arranged in the display data collection of the display object institute subordinate, it will by line
Title series connection with same level attribute, generates document schem figure.
Optionally, the subordinate relation between the level attributes and title according to each title by each title it is corresponding display pair
As being arranged, it will be connected with the title of same level attribute by line, generate document schem figure, including:
The corresponding display object of the highest title of level is set to top layer;
The corresponding display object of the high title of level time is arranged in the corresponding display object of the highest title of the level
Lower layer;
The corresponding display object of remaining title is arranged in the lower layer of the display object of the display object institute subordinate, passes through line
It will connect with the title of same level attribute, generate document schem figure.
Optionally, further include:
User is received to the second operation behavior of the first display object;
It is described to judge whether the corresponding display object of subordinate title of the corresponding title of the first display object is shown in
Around first display object, if it is, the subordinate title for cancelling the corresponding title of the first display object is corresponding aobvious
Show the display of object, otherwise, the corresponding display object of subordinate title of the corresponding title of the first display object is shown
Around the first display object.
A kind of document schem figure generation system, including:Document obtaining unit, title determination unit and graphics generation unit,
The document obtaining unit, for obtaining the document for having multiple titles;
The title determination unit, for determining the subordinate relation in the document between the level attributes of each title, title
And title content;
The graphics generation unit includes phase in the display object for generating each title corresponding display object
The title content of corresponding title, according to the subordinate relation between the level attributes and title of each title by the corresponding display of each title
Object is arranged, and will be connected with the title of same level attribute by line, is generated document schem figure.
Optionally, further include:
Object connection unit, in the graphics generation unit according to the subordinate between the level attributes and title of each title
It is by line segment that two titles with subordinate relation are corresponding aobvious after relationship is arranged the corresponding display object of each title
Show that object connects.
Optionally, further include:Receiving unit and document positioning unit are operated,
The operation receiving unit, for after the graphics generation unit generates document schem figure, receiving user to text
First operation behavior of the display object in shelves outline figure;
The document positioning unit, for being positioned according to first operation behavior to the document, by the text
The current page of shelves is switched to the page where the targeted corresponding title of display object of first operation behavior.
Optionally, the graphics generation unit, including:Object generation unit, the first setting unit, the second setting unit and
Third setting unit,
The object generation unit includes phase in the display object for generating each title corresponding display object
The title content of corresponding title;
First setting unit, for the corresponding display object of the highest title of level to be set to center;
Second setting unit, for being arranged the corresponding display object of the high title of level time in the level highest
The corresponding display object of title around;
The third setting unit, for the display object institute subordinate to be arranged in the corresponding display object of remaining title
It shows data collection, will be connected with the title of same level attribute by line, generate document schem figure.
A kind of document schem drawing generating method provided in an embodiment of the present invention and system, can be according to title each in document
Subordinate relation and title content between level attributes, title, generation include the document of display object corresponding with each title
Outline figure.Since display object is arranged according to the subordinate relation between the level attributes and title of title, and same level attribute
Title is cascaded, therefore user can get information about the outline structure of document by document schem figure.The present invention can
So that user can easily understand the outline structure of document without browsing document very much, the time of user is saved.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, a kind of document schem drawing generating method provided in an embodiment of the present invention, may include:
S100, the document for having multiple titles is obtained;
It is understood that can be there are many different titles in document, different titles can have different grades,
The title grade designations in document that different company produces are not necessarily identical, but all have level attributes.Specifically, title grade
At least may include:Title 1, title 2, title 3 etc..Wherein, 1 grade highest of title, outline rank are 1;The levels such as title 2
It, outline rank is 2;Third, outline rank is 3 to title 3.
S200, subordinate relation and title content in the document between the level attributes of each title, title are determined;
After user writes with headed document, according to the appearance of each title sequence be assured that between title from
Category relationship.Document content as shown in Figure 2, wherein " regulation of company organization's tourism " is title 1, and matter of time, expense are asked
Topic, personnel issue, route problem are title 2, gather time, departure time, travelling expenses, admission ticket expense, food and drink expense, purchase expenses
It is title 3.Since all titles 2 are respectively positioned on the lower section of title 1, and an only title 1, thus all titles 2 from
Belong to title 1.And the set time, departure time in title 3 below the matter of time in title 2, therefore gather the time, go out
The hair time is subordinated to matter of time.Equally, travelling expenses, admission ticket expense, food and drink expense, purchase expenses be below cost issues, all subordinate
In cost issues.
S300, the corresponding display object of each title is generated, includes the title of corresponding title in the display object
Content arranges the corresponding display object of each title according to the subordinate relation between the level attributes and title of each title, leads to
Crossing line will connect with the title of same level attribute, generate document schem figure.
Wherein, in S300 according to the subordinate relation between the level attributes and title of each title by each title it is corresponding display pair
As being arranged, it will be connected with the title of same level attribute by line, generate document schem figure, can be held for the following two kinds
Any one in line mode:
Executive mode one,
The corresponding display object of the highest title of level is set to center;
The corresponding display object of the high title of level time is arranged in the corresponding display object of the highest title of the level
Around;
The corresponding display object of remaining title is arranged in the display data collection of the display object institute subordinate, it will by line
Title series connection with same level attribute, generates document schem figure.
Executive mode two,
The corresponding display object of the highest title of level is set to top layer;
The corresponding display object of the high title of level time is arranged in the corresponding display object of the highest title of the level
Lower layer;
The corresponding display object of remaining title is arranged in the lower layer of the display object of the display object institute subordinate, passes through line
It will connect with the title of same level attribute, generate document schem figure.
Wherein, executive mode one is by embodying level attributes around mode, and executive mode two passes through overlying relation body
Existing level attributes.Although it is different that the two embodies mode, with the level attributes that can intuitively recognize title per family.
In other embodiments of the present invention, it for the document schem drawing generating method using executive mode one, can also wrap
It includes:
User is received to the second operation behavior of the first display object;
It is described to judge whether the corresponding display object of subordinate title of the corresponding title of the first display object is shown in
Around first display object, if it is, the subordinate title for cancelling the corresponding title of the first display object is corresponding aobvious
Show the display of object, otherwise, the corresponding display object of subordinate title of the corresponding title of the first display object is shown
Around the first display object.
Wherein, the second operation behavior can click behavior for left mouse button, left mouse button double-clicks behavior, right mouse button behavior
Deng.
When the level attributes of title are more, by the title of all levels all show will so that document schem figure more
Complexity is unfavorable for user and quickly understands file structure.At this point it is possible to the corresponding display object of the lower title of level is first hidden,
When the corresponding display object of the title that the corresponding title of display object hidden when the user clicks is subordinated to, user is clicked aobvious
Show that the corresponding display object of the subordinate title of the corresponding title of object can be shown.Correspondingly, when certain display object is corresponding
Title the corresponding display object display of subordinate title when, user can click certain display object, make its corresponding title
The corresponding display object of subordinate title cancels display.
Wherein, show object form can there are many, such as round, rectangular two-dimensional shapes or spherical shape, box-shaped etc. three
Tie up shape.For document shown in Fig. 2, document schem figure shown in Fig. 3 for the moment, can be generated using executive mode.
A kind of document schem drawing generating method provided in an embodiment of the present invention, can be according to the level category of title each in document
Property, the subordinate relation between title and title content, generation include the document schem figure of display object corresponding with each title.
Since display object is arranged according to the subordinate relation between the level attributes and title of title, and the title series connection of same level attribute
Together, therefore user can get information about the outline structure of document by document schem figure.The present invention can to use
Family can easily understand the outline structure of document without browsing document very much, save the time of user.
Preferably, it in other embodiments of the present invention, is closed in S300 according to the subordinate between the level attributes and title of each title
After system is arranged the corresponding display object of each title, can also include:
The corresponding display object of two titles with subordinate relation is connected by line segment.
It is understood that being used by line segment by after the corresponding display object connection of two titles with subordinate relation
The subordinate relation of title will be better understood in family.
On the basis of embodiment shown in Fig. 1, another kind document schem drawing generating method provided in an embodiment of the present invention,
After S300, can also include:
User is received to the first operation behavior of the display object in document schem figure;According to first operation behavior pair
The document is positioned, and the current page of the document is switched to the targeted display object pair of first operation behavior
The page where the title answered.
Wherein, the first operation behavior can click behavior for left mouse button, left mouse button double-clicks behavior, right mouse button behavior
Deng.As long as the first operation behavior is different from the second operation behavior.
In this way, after user clicks display object, so that it may directly see the title from document, user is facilitated to see
It sees.
Optionally, the current page of the document is being switched to the targeted display object pair of first operation behavior
After the page where the title answered, can also by the targeted corresponding title of display object of the first operation behavior in document into
Row distinctly displays, such as sets title to choose mode, for another example by title overstriking etc..
Corresponding with above method embodiment, the embodiment of the invention also provides a kind of document schem figures to generate system.
As shown in figure 4, a kind of document schem figure provided in an embodiment of the present invention generates system, may include:Document obtains
Unit 100, title determination unit 200 and graphics generation unit 300,
Document obtaining unit 100, for obtaining the document for having multiple titles;
It is understood that can be there are many different titles in document, different titles can have different grades,
The title grade designations in document that different company produces are not necessarily identical, but all have level attributes.Specifically, title grade
At least may include:Title 1, title 2, title 3 etc..Wherein, 1 grade highest of title, outline rank are 1;The levels such as title 2
It, outline rank is 2;Third, outline rank is 3 to title 3.
Title determination unit 200, for determine the subordinate relation in the document between the level attributes of each title, title with
And title content;
After user writes with headed document, according to the appearance of each title sequence be assured that between title from
Category relationship.
Graphics generation unit 300 includes opposite in the display object for generating each title corresponding display object
The title content for the title answered, according to the subordinate relation between the level attributes and title of each title by each title it is corresponding display pair
As being arranged, it will be connected with the title of same level attribute by line, generate document schem figure.
Wherein, the graphics generation unit 300 can have the following two kinds building form:
Building form one,
Graphics generation unit 300 includes:Object generation unit, the first setting unit, the second setting unit and third setting
Unit,
The object generation unit includes phase in the display object for generating each title corresponding display object
The title content of corresponding title;
First setting unit, for the corresponding display object of the highest title of level to be set to center;
Second setting unit, for being arranged the corresponding display object of the high title of level time in the level highest
The corresponding display object of title around;
The third setting unit, for the display object institute subordinate to be arranged in the corresponding display object of remaining title
It shows data collection, will be connected with the title of same level attribute by line, generate document schem figure.
Building form two,
Graphics generation unit 300 includes:Object generation unit, the 4th setting unit, the 5th setting unit and the 6th setting
Unit,
The object generation unit includes phase in the display object for generating each title corresponding display object
The title content of corresponding title;
4th setting unit, for the corresponding display object of the highest title of level to be set to top layer;
5th setting unit, for being arranged the corresponding display object of the high title of level time in the level highest
Title it is corresponding display object lower layer;
6th setting unit, for the display object institute subordinate to be arranged in the corresponding display object of remaining title
The lower layer for showing object will be connected with the title of same level attribute by line, generate document schem figure.
Wherein, building form one is by embodying level attributes around mode, and building form two passes through overlying relation body
Existing level attributes.Although it is different that the two embodies mode, with the level attributes that can intuitively recognize title per family.
In other embodiments of the present invention, graphics generation unit 300 include object generation unit, the first setting unit,
When the second setting unit and third setting unit, system shown in Figure 4 can also include:Click commands receiving unit, display judgement
Unit, Objects hide unit and object display unit,
The click commands receiving unit, for receiving user to the second operation behavior of the first display object;
The display judging unit, the subordinate title for judging the corresponding title of the first display object are corresponding aobvious
Show whether object is shown in around the first display object, if it is, triggering the Objects hide unit, otherwise triggers
The object display unit;
The Objects hide unit, the subordinate title for cancelling the corresponding title of the first display object are corresponding aobvious
Show the display of object;
The object display unit, for showing the corresponding display of subordinate title of the corresponding title of object by described first
Object is shown in around the first display object.
Wherein, the second operation behavior can click behavior for left mouse button, left mouse button double-clicks behavior, right mouse button behavior
Deng.
When the level attributes of title are more, by the title of all levels all show will so that document schem figure more
Complexity is unfavorable for user and quickly understands file structure.At this point it is possible to the corresponding display object of the lower title of level is first hidden,
When the corresponding display object of the title that the corresponding title of display object hidden when the user clicks is subordinated to, user is clicked aobvious
Show that the corresponding display object of the subordinate title of the corresponding title of object can be shown.Correspondingly, when certain display object is corresponding
Title the corresponding display object display of subordinate title when, user can click certain display object, make its corresponding title
The corresponding display object of subordinate title cancels display.
Wherein, show object form can there are many, such as round, rectangular two-dimensional shapes or spherical shape, box-shaped etc. three
Tie up shape.
A kind of document schem figure provided in an embodiment of the present invention generates system, can be according to the level category of title each in document
Property, the subordinate relation between title and title content, generation include the document schem figure of display object corresponding with each title.
Since display object is arranged according to the subordinate relation between the level attributes and title of title, and the title series connection of same level attribute
Together, therefore user can get information about the outline structure of document by document schem figure.The present invention can to use
Family can easily understand the outline structure of document without browsing document very much, save the time of user.
Preferably, in other embodiments of the present invention, can also include:
Object connection unit, in the graphics generation unit 300 according between the level attributes and title of each title
It is by line segment that two titles with subordinate relation are corresponding after subordinate relation is arranged the corresponding display object of each title
Display object connection.
It is understood that being used by line segment by after the corresponding display object connection of two titles with subordinate relation
The subordinate relation of title will be better understood in family.
On the basis of embodiment shown in Fig. 4, another kind document schem figure provided in an embodiment of the present invention generates system, may be used also
To include:Receiving unit and document positioning unit are operated,
Receiving unit is operated, for it is big to document to receive user after the graphics generation unit generates document schem figure
First operation behavior of the display object in guiding principle figure;
Document positioning unit, for being positioned according to first operation behavior to the document, by the document
Current page is switched to the page where the targeted corresponding title of display object of first operation behavior.
Wherein, the first operation behavior can click behavior for left mouse button, left mouse button double-clicks behavior, right mouse button behavior
Deng.As long as the first operation behavior is different from the second operation behavior.
In this way, after user clicks display object, so that it may directly see the title from document, user is facilitated to see
It sees.
Optionally, the current page of the document is being switched to the targeted display object pair of first operation behavior
After the page where the title answered, can also by the targeted corresponding title of display object of the first operation behavior in document into
Row distinctly displays, such as sets title to choose mode, for another example by title overstriking etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.