CN109753641A - A kind of method, apparatus, electronic equipment and storage medium for changing object's position - Google Patents
A kind of method, apparatus, electronic equipment and storage medium for changing object's position Download PDFInfo
- Publication number
- CN109753641A CN109753641A CN201711058756.1A CN201711058756A CN109753641A CN 109753641 A CN109753641 A CN 109753641A CN 201711058756 A CN201711058756 A CN 201711058756A CN 109753641 A CN109753641 A CN 109753641A
- Authority
- CN
- China
- Prior art keywords
- target position
- coordinate value
- value
- location information
- cell region
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000008859 change Effects 0.000 claims abstract description 41
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 11
- 230000001105 regulatory effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Abstract
A kind of method, apparatus, electronic equipment and storage medium for changing object's position provided by the invention, belongs to computer field.The described method includes: receiving selection instruction from the user, the object in form document is determined, obtain the current location information of object;The instruction of change object's position is received, the location information of target position in form document is obtained;Specified point coordinate value in the current location information of object is modified to specified point coordinate value in the location information of target position, object is made to be moved to the target position.Using the present invention, can it is simple, conveniently, precisely adjust the position of object in form document, improve operating efficiency.
Description
Technical field
The present invention relates to computer field, in particular to a kind of method and device for changing object's position.
Background technique
We, often will be in form document when editing form document (such as WPS table, Microsoft excel)
AutoShape, text box, chart, picture etc. it is similar can be suspended in form document, and can be used as an entirety
Selected object carries out the adjustment of position, so that object is aligned or is covered some position (target position), so that document be made to seem
Rigorously, beautiful.
At present at the position of regulating object, user usually requires to realize using the method for manual drag object.Manual
During adjustment, since manual operation accuracy is lower, it usually needs repeatedly dragging can be only achieved purpose, cause to operate in this way
Low efficiency expends the time.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of method, apparatus, electronic equipment and storage for changing object's position
Medium, can it is simple, conveniently, precisely adjust the position of object in form document, improve operating efficiency.Specific technical solution
It is as follows:
In a first aspect, the embodiment of the invention provides a kind of methods for changing object's position, which comprises
Selection instruction from the user is received, determines the object in form document, obtains the present bit confidence of the object
Breath;
The instruction for receiving change object's position, obtains the location information of target position in the form document;
Specified point coordinate value in the current location information of the object is modified to the location information of the target position
Middle specified point coordinate value, makes the object be moved to the target position.
Specifically, specified point is sat in the location information of the target position when the target position is a cell
Scale value are as follows: the apex coordinate value of one cell;
When the cell region that the target position is made of two or more cells, the target position
Location information in specified point coordinate value are as follows: the apex coordinate value in the cell region.
Specifically, the apex coordinate value is the top left corner apex coordinate in the cell or the cell region
Value or upper right corner apex coordinate value or lower left corner apex coordinate value or lower right corner apex coordinate value.
Specifically, when the cell region that the target position is made of two or more cells, it is described
The location information of target position further include: the height value of the width value in the cell region and the cell region;
In the current location information of the object further include: the current width value of the object and the current height of the object
Angle value.
Specifically, when the cell region that the target position is made of two or more cells, it is described
Method further include:
The current level value of the current width value of the object and the object is modified to the cell region respectively
Width value and the cell region height value, so that the object is covered the cell region.
Second aspect, the embodiment of the invention provides a kind of device for changing object's position, described device includes:
First receiving module determines the object in form document for receiving selection instruction from the user, described in acquisition
The current location information of object;
Second receiving module obtains target position in the form document for receiving the instruction of change object's position
Location information;
Module is changed, for the specified point coordinate value in the current location information of the object to be modified to the target position
Specified point coordinate value in the location information set, makes the object be moved to the target position.
Specifically, specified point is sat in the location information of the target position when the target position is a cell
Scale value are as follows: the apex coordinate value of one cell;
When the cell region that the target position is made of two or more cells, the target position
Location information in specified point coordinate value are as follows: the apex coordinate value in the cell region.
Specifically, the apex coordinate value is the top left corner apex coordinate in the cell or the cell region
Value or upper right corner apex coordinate value or lower left corner apex coordinate value or lower right corner apex coordinate value.
Specifically, when the cell region that the target position is made of two or more cells, it is described
The location information of target position further include: the height value of the width value in the cell region and the cell region;
In the current location information of the object further include: the current width value of the object and the current height of the object
Angle value.
Specifically, when the cell region that the target position is made of two or more cells, it is described
Change module is also used to:
The current level value of the current width value of the object and the object is modified to the cell region respectively
Width value and the cell region height value, so that the object is covered the cell region.
The third aspect, in order to achieve the above object, the embodiment of the invention also discloses a kind of electronic equipment, the electronics is set
Standby includes processor, communication interface, memory and communication bus, wherein the processor, the communication interface, the storage
Device completes mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on memory, is realized as described in above-mentioned first aspect more
Change the method and step of object's position.
Fourth aspect, in order to achieve the above object, the embodiment of the invention also discloses a kind of computer readable storage medium,
It is stored with computer program in the computer readable storage medium, when the computer program is executed by processor, realizes such as
The method and step of object's position is changed described in above-mentioned first aspect.
It is provided by the invention it is a kind of change object's position method, apparatus, electronic equipment and storage medium, by receive come
From the selection instruction of user, the object in form document is determined, obtain the current location information of object, then by receiving change
The instruction of object's position obtains the location information of target position in form document, then by the finger in the current location information of object
Fixed point coordinate value is modified to specified point coordinate value in the location information of target position, and object is made to be moved to the target position.By
Then the location information of object is directly changed from data Layer, can it is simple, conveniently, precisely adjust the position of object in form document
It sets, improves operating efficiency.Certainly, it implements any of the products of the present invention or method is not necessarily required to reach above-described simultaneously
All advantages.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of method flow diagram for changing object's position provided in an embodiment of the present invention;
Fig. 2 is a kind of target position provided in an embodiment of the present invention when being a cell, the schematic diagram before object is mobile;
Fig. 3 is a kind of target position provided in an embodiment of the present invention when being a cell, the schematic diagram after object is mobile;
Fig. 4 is a kind of target position provided in an embodiment of the present invention when being cell region, the schematic diagram before object is mobile;
Fig. 5 is a kind of target position provided in an embodiment of the present invention when being cell region, the schematic diagram after object is mobile;
Fig. 6 is a kind of apparatus structure schematic diagram for changing object's position provided in an embodiment of the present invention;
Fig. 7 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
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.
First below to it is provided in an embodiment of the present invention it is a kind of change object's position method be introduced.
As shown in FIG. 1, FIG. 1 is a kind of method flow diagrams of change object's position of the offer of the embodiment of the present invention, including
Following steps:
Step 101, selection instruction from the user is received, determines the object in form document, obtains the present bit of object
Confidence breath.
In an implementation, user can install the application program for editing table, such as WPS in terminals such as computer, mobile phones
Table, Microsoft excel etc. can carry out the behaviour such as editor and typesetting in form document to contents such as picture, text boxes
Make.Object of the present invention can be AutoShape, text box, characters in a fancy style, picture in form document etc. and can be suspended in
In form document, also, the object is to can be used as the selected object of an entirety.When user needs the position of regulating object
When, need first selected object.At this point, terminal can receive selection instruction from the user, determine object to be adjusted,
And obtain the current location information of the object.The current location information of object includes the coordinate value of the specified point of object, this refers to
Fixed point is determined for the specific location of object, and when changing the coordinate value of the specified point, the position of object also occurs accordingly
Variation.
Step 102, the instruction of change object's position is received, the location information of target position in form document is obtained.
In an implementation, it can be set in toolbar or menu bar in the interface of application program, in toolbar or menu bar
The option of change object's position can be set, user selects the option, and terminal can then receive the instruction of change object's position.
After user selects the option, a target position can be selected in form document, for example, with mouse click a cell or
Person's frame selects the cell region being made of two or more cells.The target position that terminal is selected according to user,
The location information of the target position is obtained, the location information of target position includes the coordinate value of the specified point of target position, this refers to
The coordinate value of fixed point is used to determine the specific location of target position.In addition, user selects after changing the option of object's position, user
The location information of target position, the mesh that terminal is inputted according to user can also be directly inputted in the dialog box of change object's position
The location information of cursor position obtains the location information of target position.
Step 103, the specified point coordinate value in the current location information of object is modified to the location information of target position
Middle specified point coordinate value, makes object be moved to target position.
In an implementation, terminal can incite somebody to action after the location information of the current location information and target position that get object
Specified point coordinate value in the current location information of object, is modified to specified point coordinate value in the location information of target position, this
Sample can make object be moved to target position, and the specified point of the specified point meeting coverage goal position of object.
In scheme provided in an embodiment of the present invention, target position can be a cell either by two or two with
The cell region of upper cell composition.Each cell occupies a unit in form document, and terminal is by calculating target
Position occupies the sum of unit, to determine that target position is a cell or cell region.When target position is one
When cell, specified point coordinate value in the location information of target position are as follows: the apex coordinate value of the cell or the cell packet
The coordinate value at any point contained;When the cell region that target position is made of two or more cells, mesh
Specified point coordinate value in the location information of cursor position are as follows: the apex coordinate value in the cell region or the cell region include
The coordinate value at any point.The specified point of target position is used to determine the specific location of target position.
From the foregoing, it can be seen that target position can be a cell either cell region, user can be according to reality
It is selected.
In scheme provided in an embodiment of the present invention, the cell of acquisition or the apex coordinate value in cell region be can be
The top left corner apex coordinate value or upper right corner apex coordinate value or lower-left angular vertex in the cell or the cell region are sat
Scale value or lower right corner apex coordinate value.
In an implementation, target position is generally rectangular in shape, and there are four vertex, respectively top left corner apex, the right side tool
Upper angular vertex, lower-left angular vertex and bottom right angular vertex.For example, when target position is by two or more rectangular unit grids
When the rectangular unit grid region of composition, rectangular unit grid region is there are four vertex, the apex coordinate value on this four vertex, as singly
The apex coordinate value in first lattice region.Terminal can be according to the coordinate value on any one vertex of target position and preset table text
(coordinate data includes the width value and height value of the coordinate origin position of form document, individual unit lattice to the coordinate data of shelves
Etc. data) determine target position.For example, terminal obtains the top left corner apex coordinate value and preset table text of a cell
After the coordinate data of shelves, the top left corner apex coordinate value of object can be modified to the top left corner apex coordinate value of the cell,
Object will be moved to the cell location, and the top left corner apex of object covers the top left corner apex of the cell.It is selecting
When using other vertex as specified point, principle is identical.
From the foregoing, it can be seen that using the top left corner apex coordinate value of target position as the finger in the location information of target position
Coordinate value is pinpointed, meeting the self attributes of form document in this way, (top left corner apex of each target position is the target position
Top left corner apex, other three vertex can regard the top left corner apex of adjacent target sites as), it can simplify the present invention in this way
Algorithm.
In scheme provided in an embodiment of the present invention, when the unit that target position is made of two or more cells
When lattice region, the location information of target position further include: the width value in cell region and the height value in cell region;Object
Current location information in further include: the current width value of object and the current level value of object.
In an implementation, when the cell region that target position is made of two or more cells, acquisition
It further include the width value and height in the cell region in target position information other than the specified point coordinate value in cell region
Value.Correspondingly, further including the current width value of object in the current location information of object other than the specified point coordinate value of object
The current height value with object.
In scheme provided in an embodiment of the present invention, when target position is cell region, also by the current width of object
The current level value of value and object is modified to the width value in cell region and the height value in cell region respectively, covers object
Cap unit lattice region.
In an implementation, terminal is when detecting target position is cell region, in the current location information for obtaining object
After the location information in cell region, by the coordinate value, width value and height of the specified point in the current location information of object
Value is modified to corresponding numerical value in the location information in cell region respectively.Object can be made to be moved to cell region in this way,
And object can be stretched or be compressed according to the size in cell region, so that the size of object and cell region is big
It is small equal, realize object capping unit lattice region.
From the foregoing, it can be seen that can not only change the position of object, but also can be more when target position is cell region
Change the size of object.Practicability of the invention is increased in this way, because when target position is a cell, Yong Hutong
The position for often only needing regulating object, does not need the size of regulating object.It, can be by target if necessary to the size of regulating object
Position is chosen to be cell region, can change the position of object in this way and change the size of object.
Optionally, when target position is a cell, the location information of target position also may include the cell
Specified point coordinate value, the cell width value and height value, when changing the location information of object, the specified point of object is sat
Scale value, width value and height value are modified to the respective value of the cell.It is moved to object at cell, and covers the list
First lattice.
In an implementation, when detecting target position is a cell, in the current location information and list for obtaining object
After the location information of first lattice, respectively more by the coordinate value, width value and height value of the specified point in the current location information of object
It is changed to corresponding numerical value in the location information of cell.Object can be made to be moved to cell in this way, and object can basis
The size of cell is stretched or is compressed, so that equal in magnitude, the realization object capping unit of the size of object and cell
Lattice.
It is provided when target position is a cell and cell region separately below using provided in an embodiment of the present invention
The effect diagram of method.As shown in Fig. 2, target position is a cell B2 in form document, object is in form document
One rectangle picture of insertion, the mobile anteposition of object is in the 5th row to the 9th row of E column and F column.As shown in figure 3, being object quilt
Schematic diagram after movement, object are moved at cell B2 according to full size, and the top left corner apex of object covers list
The top left corner apex of first lattice B2.The specific process is as follows: terminal obtains the picture after user chooses picture in form document
Current location information, the location information may include the top left corner apex coordinate value (EX, EY) of picture;Then user is from menu bar
Or the option of object's position, and selecting unit lattice B2 are changed in selection in toolbar, terminal can then receive change object's position
Instruction, and determine the location information of the cell B2 of user's selection, which can be the top left corner apex of cell B2
Coordinate value (B2X, B2Y);Last terminal shows the dialog box of the position for prompting whether to change object, and user is in prompted dialog
In frame behind the position of selection confirmation change object, terminal the top left corner apex coordinate value (EX, EY) of picture is modified to (B2X,
B2Y).Picture is just moved at cell B2 according to life size in this way, and the top left corner apex of picture covers cell B2
Top left corner apex.
As shown in figure 4, the cell region that target position is made of cell B2, B3, B4, B5, C2, C3, C4, C5,
Object is a rectangle picture being inserted into form document, and the mobile anteposition of object is in the 6th row to the 11st row of E column and F column.Such as
Shown in Fig. 5, object moved after schematic diagram, object is moved into selected cell region, and the top left corner apex of object covers
The top left corner apex in the cell region is covered, and the width value of object and height value are changed to the width in the cell region
Value and height value, object just cover entire cell region.The specific process is as follows: user chooses figure in form document
Piece, terminal obtain the current location information of the picture, the location information may include picture top left corner apex coordinate value (EX,
EY), the current level value L2 of the current width value L1 of picture and picture;Then user selects change from menu bar or toolbar
The option of object's position, and frame selects the cell region being made of cell B2, B3, B4, B5, C2, C3, C4, C5, terminal then can
The instruction of change object's position is received, and determines the location information in the cell region of user's selection, which can be with
It is the top left corner apex coordinate value (B2X, B2Y) in the cell region, the width value L3 in the cell region and the cell area
The height value L4 in domain;Last terminal shows the dialog box of the position for prompting whether to change object, and user is in prompted dialog frame
Behind the position of middle selection confirmation change object, terminal is by the top left corner apex coordinate value (FX, FY) of picture, the current width of picture
The current level value L2 of value L1 and picture is modified to (B2X, B2Y), L3 and L4 respectively.This master drawing is just moved to selected cell
Region, the top left corner apex of picture cover the top left corner apex in the cell region, and the width value and height value of picture
The respectively equal to width value and height value in the cell region.
The method of change object's position provided in an embodiment of the present invention, can receive selection instruction from the user, determines
Object in form document obtains the current location information of object, then receives the instruction of change object's position, obtains table text
The location information of target position in shelves, then the specified point coordinate value in the current location information of object is modified to target position
Specified point coordinate value in location information makes object be moved to the target position.The position of object is directly changed from data Layer in this way
Confidence breath, can it is simple, conveniently, precisely adjust the position of object in form document, improve operating efficiency.
Based on the same technical idea, corresponding to embodiment of the method shown in Fig. 1, the embodiment of the invention also provides one kind more
Change the device of object's position, as shown in fig. 6, the device includes:
First receiving module 601 determines the object in form document, obtains for receiving selection instruction from the user
The current location information of the object;
Second receiving module 602 obtains target position in the form document for receiving the instruction of change object's position
Location information;
Module 603 is changed, for the specified point coordinate value in the current location information of the object to be modified to the mesh
Specified point coordinate value in the location information of cursor position, makes the object be moved to the target position.
Specifically, specified point is sat in the location information of the target position when the target position is a cell
Scale value are as follows: the apex coordinate value of one cell;
When the cell region that the target position is made of two or more cells, the target position
Location information in specified point coordinate value are as follows: the apex coordinate value in the cell region.
In scheme provided in an embodiment of the present invention, target position can be a cell either cell region, use
Family can be selected according to actual needs.
Specifically, the apex coordinate value is the top left corner apex coordinate in the cell or the cell region
Value or upper right corner apex coordinate value or lower left corner apex coordinate value or lower right corner apex coordinate value.
In scheme provided in an embodiment of the present invention, using the top left corner apex coordinate value of target position as target position
Specified point coordinate value in location information meets the self attributes (top left corner apex of each target position of form document in this way
It is the top left corner apex of the target position, other three vertex can regard the top left corner apex of adjacent target sites as), in this way
It can simplify algorithm of the invention.
Specifically, when the cell region that the target position is made of two or more cells, it is described
The location information of target position further include: the height value of the width value in the cell region and the cell region;
In the current location information of the object further include: the current width value of the object and the current height of the object
Angle value.
Specifically, when the cell region that the target position is made of two or more cells, it is described
Change module is also used to: the current level value of the current width value of the object and the object is modified to the unit respectively
The height value of the width value in lattice region and the cell region makes the object cover the cell region.
In scheme provided in an embodiment of the present invention, when target position is cell region, object can be not only changed
Position, and the size of object can be changed.Practicability of the invention is increased in this way, because being a unit in target position
When lattice, user usually only needs the position of regulating object, does not need the size of regulating object.If necessary to regulating object
Target position can be chosen to be cell region by size, can be changed the position of object in this way and be changed the big of object
It is small.
The device of change object's position provided in an embodiment of the present invention, can receive selection instruction from the user, determines
Object in form document obtains the current location information of object, then receives the instruction of change object's position, obtains table text
The location information of target position in shelves, then the specified point coordinate value in the current location information of object is modified to target position
Specified point coordinate value in location information makes object be moved to the target position.The position of object is directly changed from data Layer in this way
Confidence breath, can it is simple, conveniently, precisely adjust the position of object in form document, improve operating efficiency.
The embodiment of the invention also provides a kind of electronic equipment, as shown in fig. 7, comprises processor 701, communication interface 702,
Memory 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 are complete by communication bus 704
At mutual communication,
Memory 703, for storing computer program;
Processor 701, when for executing the program stored on memory 703, realization is provided in an embodiment of the present invention more
Change the method for object's position.
Specifically, the method for above-mentioned change object's position, comprising:
Selection instruction from the user is received, determines the object in form document, obtains the present bit confidence of the object
Breath;
The instruction for receiving change object's position, obtains the location information of target position in the form document;
Specified point coordinate value in the current location information of the object is modified to the location information of the target position
Middle specified point coordinate value, makes the object be moved to the target position.
It should be noted that other implementations of the method for above-mentioned change object's position and preceding method embodiment part
Identical, which is not described herein again.
The communication bus of above-mentioned electronic equipment can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..
Only to be indicated with a thick line in figure, it is not intended that an only bus or a type of bus convenient for indicating.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field Programmable Gate Array,
Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment
The method for the change object's position stated.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It is provided by the invention it is a kind of change object's position method, apparatus, electronic equipment and storage medium, by receive come
From the selection instruction of user, the object in form document is determined, obtain the current location information of object, then by receiving change
The instruction of object's position obtains the location information of target position in form document, then by the finger in the current location information of object
Fixed point coordinate value is modified to specified point coordinate value in the location information of target position, and object is made to be moved to the target position.By
Then the location information of object is directly changed from data Layer, can it is simple, conveniently, precisely adjust the position of object in form document
It sets, improves operating efficiency.Certainly, it implements any of the products of the present invention or method is not necessarily required to reach above-described simultaneously
All advantages.
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.
Claims (12)
1. a kind of method for changing object's position, which is characterized in that the described method includes:
Selection instruction from the user is received, determines the object in form document, obtains the current location information of the object;
The instruction for receiving change object's position, obtains the location information of target position in the form document;
Specified point coordinate value in the current location information of the object is modified to the location information middle finger of the target position
Coordinate value is pinpointed, the object is made to be moved to the target position.
2. according to the method described in claim 1, it is characterized by:
When the target position is a cell, specified point coordinate value in the location information of the target position are as follows: described
The apex coordinate value of one cell;
When the cell region that the target position is made of two or more cells, the position of the target position
Specified point coordinate value in confidence breath are as follows: the apex coordinate value in the cell region.
3. according to the method described in claim 2, it is characterized in that, the apex coordinate value is the cell or the list
The top left corner apex coordinate value or upper right corner apex coordinate value or lower left corner apex coordinate value or bottom right angular vertex in first lattice region
Coordinate value.
4. the method according to claim 1, wherein when the target position is by two or more units
When the cell region of lattice composition, the location information of the target position further include: the width value in the cell region and institute
State the height value in cell region;
In the current location information of the object further include: the current width value of the object and the present level of the object
Value.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The current level value of the current width value of the object and the object is modified to the width in the cell region respectively
The height value of angle value and the cell region makes the object cover the cell region.
6. a kind of device for changing object's position, which is characterized in that described device includes:
First receiving module determines the object in form document, obtains the object for receiving selection instruction from the user
Current location information;
Second receiving module obtains the position of target position in the form document for receiving the instruction of change object's position
Information;
Module is changed, for the specified point coordinate value in the current location information of the object to be modified to the target position
Specified point coordinate value in location information makes the object be moved to the target position.
7. device according to claim 6, it is characterised in that:
When the target position is a cell, specified point coordinate value in the location information of the target position are as follows: described
The apex coordinate value of one cell;
When the cell region that the target position is made of two or more cells, the position of the target position
Specified point coordinate value in confidence breath are as follows: the apex coordinate value in the cell region.
8. device according to claim 7, which is characterized in that the apex coordinate value is the cell or the list
The top left corner apex coordinate value or upper right corner apex coordinate value or lower left corner apex coordinate value or bottom right angular vertex in first lattice region
Coordinate value.
9. device according to claim 6, which is characterized in that when the target position is by two or more units
When the cell region of lattice composition, the location information of the target position further include: the width value in the cell region and institute
State the height value in cell region;
In the current location information of the object further include: the current width value of the object and the present level of the object
Value.
10. device according to claim 9, which is characterized in that the change module is also used to:
The current level value of the current width value of the object and the object is modified to the width in the cell region respectively
The height value of angle value and the cell region makes the object cover the cell region.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes that processor, communication interface, memory and communication are total
Line, wherein the processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any side claim 1-5
Method step.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-5 any method and step when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711058756.1A CN109753641B (en) | 2017-11-01 | 2017-11-01 | Method and device for changing object position, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711058756.1A CN109753641B (en) | 2017-11-01 | 2017-11-01 | Method and device for changing object position, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109753641A true CN109753641A (en) | 2019-05-14 |
CN109753641B CN109753641B (en) | 2023-11-28 |
Family
ID=66398996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711058756.1A Active CN109753641B (en) | 2017-11-01 | 2017-11-01 | Method and device for changing object position, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109753641B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110609993A (en) * | 2019-09-18 | 2019-12-24 | 北京字节跳动网络技术有限公司 | Table adjusting method and equipment |
CN112035848A (en) * | 2019-06-04 | 2020-12-04 | 珠海金山办公软件有限公司 | Method and device for protecting graphic text content, electronic equipment and storage medium |
CN112115485A (en) * | 2019-06-04 | 2020-12-22 | 珠海金山办公软件有限公司 | Method and device for protecting width and height of graph in document, electronic equipment and storage medium |
CN112784543A (en) * | 2020-06-08 | 2021-05-11 | 北京金山办公软件股份有限公司 | Picture adjusting method, device, equipment and storage medium |
CN113065176A (en) * | 2021-04-08 | 2021-07-02 | 深圳市格林兄弟科技有限公司 | Object attachment method, device, equipment and computer readable storage medium |
CN113723049A (en) * | 2020-05-25 | 2021-11-30 | 珠海金山办公软件有限公司 | Document content interval adjusting method and device, electronic equipment and storage medium |
WO2022242441A1 (en) * | 2021-05-21 | 2022-11-24 | 北京字跳网络技术有限公司 | Spreadsheet importing method, apparatus, and device, and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5544288A (en) * | 1993-04-15 | 1996-08-06 | International Business Machines Corporation | Object resizing and repositioning for a new font in a graphical user interface |
CN1841361A (en) * | 2005-03-31 | 2006-10-04 | 微软公司 | Scrollable and re-sizeable formula bar |
JP2008204173A (en) * | 2007-02-20 | 2008-09-04 | Seiko Epson Corp | Document editing device, program, and storage medium |
US20100058163A1 (en) * | 2008-08-27 | 2010-03-04 | The Board Of Trustees Of The Leland Stanford Junior University | Spreadsheet system and method for managing photos |
CN101944179A (en) * | 2009-07-01 | 2011-01-12 | 佳能株式会社 | Image processing apparatus and image processing method |
CN105683946A (en) * | 2013-06-15 | 2016-06-15 | 微软技术许可有限责任公司 | Seamless grid and canvas integration in a spreadsheet application |
CN106033349A (en) * | 2015-03-20 | 2016-10-19 | 广州金山移动科技有限公司 | Object position adjusting method and device |
CN106354395A (en) * | 2016-09-28 | 2017-01-25 | 厦门印天电子科技有限公司 | Method of inserting multimedia object in interactive whiteboard software to 2D sheet |
CN106663088A (en) * | 2014-12-04 | 2017-05-10 | 谷歌公司 | Efficient copy paste in collaborative spreadsheet |
-
2017
- 2017-11-01 CN CN201711058756.1A patent/CN109753641B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5544288A (en) * | 1993-04-15 | 1996-08-06 | International Business Machines Corporation | Object resizing and repositioning for a new font in a graphical user interface |
CN1841361A (en) * | 2005-03-31 | 2006-10-04 | 微软公司 | Scrollable and re-sizeable formula bar |
JP2008204173A (en) * | 2007-02-20 | 2008-09-04 | Seiko Epson Corp | Document editing device, program, and storage medium |
US20100058163A1 (en) * | 2008-08-27 | 2010-03-04 | The Board Of Trustees Of The Leland Stanford Junior University | Spreadsheet system and method for managing photos |
CN101944179A (en) * | 2009-07-01 | 2011-01-12 | 佳能株式会社 | Image processing apparatus and image processing method |
CN105683946A (en) * | 2013-06-15 | 2016-06-15 | 微软技术许可有限责任公司 | Seamless grid and canvas integration in a spreadsheet application |
CN106663088A (en) * | 2014-12-04 | 2017-05-10 | 谷歌公司 | Efficient copy paste in collaborative spreadsheet |
CN106033349A (en) * | 2015-03-20 | 2016-10-19 | 广州金山移动科技有限公司 | Object position adjusting method and device |
CN106354395A (en) * | 2016-09-28 | 2017-01-25 | 厦门印天电子科技有限公司 | Method of inserting multimedia object in interactive whiteboard software to 2D sheet |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035848A (en) * | 2019-06-04 | 2020-12-04 | 珠海金山办公软件有限公司 | Method and device for protecting graphic text content, electronic equipment and storage medium |
CN112115485A (en) * | 2019-06-04 | 2020-12-22 | 珠海金山办公软件有限公司 | Method and device for protecting width and height of graph in document, electronic equipment and storage medium |
CN110609993A (en) * | 2019-09-18 | 2019-12-24 | 北京字节跳动网络技术有限公司 | Table adjusting method and equipment |
CN113723049A (en) * | 2020-05-25 | 2021-11-30 | 珠海金山办公软件有限公司 | Document content interval adjusting method and device, electronic equipment and storage medium |
CN112784543A (en) * | 2020-06-08 | 2021-05-11 | 北京金山办公软件股份有限公司 | Picture adjusting method, device, equipment and storage medium |
CN113065176A (en) * | 2021-04-08 | 2021-07-02 | 深圳市格林兄弟科技有限公司 | Object attachment method, device, equipment and computer readable storage medium |
CN113065176B (en) * | 2021-04-08 | 2023-02-28 | 深圳市格林兄弟科技有限公司 | Object attachment method, device, equipment and computer readable storage medium |
WO2022242441A1 (en) * | 2021-05-21 | 2022-11-24 | 北京字跳网络技术有限公司 | Spreadsheet importing method, apparatus, and device, and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109753641B (en) | 2023-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109753641A (en) | A kind of method, apparatus, electronic equipment and storage medium for changing object's position | |
CN105354022B (en) | A kind of page layout document generating method and device | |
US20170075524A1 (en) | Method And Apparatus Of Switching Interfaces | |
US20150089355A1 (en) | Graphical tile-based layout | |
CN103164114A (en) | Method and device of classifying icons of terminal operation interface | |
CN103176595B (en) | A kind of information cuing method and system | |
US10552532B2 (en) | Techniques to present a dynamic formula bar in a spreadsheet | |
CN107329653A (en) | Adjust the method and device of icon sizes | |
CN111881662A (en) | Form generation method, device, processing equipment and storage medium | |
CN104679391B (en) | The icon display method and device of intelligent watch | |
CN109298909A (en) | A kind of method, mobile terminal and computer readable storage medium that window is adjusted | |
CN104571792A (en) | Information processing method and electronic equipment | |
CN105068777A (en) | Display control method and electronic equipment | |
CN109522324A (en) | A kind of SQL scenario generation method, device and computer equipment | |
CN106168959A (en) | Page layout method and device | |
CN106200976A (en) | A kind of motion-activated method and terminal | |
CN106708508B (en) | A kind of interface data processing method and device | |
CN104375814A (en) | Generation method and device of an interface document | |
CN110832456B (en) | Creating default layout constraints for a graphical interface | |
CN109165070A (en) | View processing method, device and electronic equipment | |
US20140310248A1 (en) | Verification support program, verification support apparatus, and verification support method | |
CN107391148A (en) | View elements store method, device, electronic equipment and computer-readable storage medium | |
CN104536887B (en) | communication data detection method and device | |
CN109976605A (en) | Class's board content display method, device and storage medium | |
US8473892B1 (en) | Computer aided design system and method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |