Object in interactive electric whiteboard software is inserted into the method in the Office page
[technical field]
The invention belongs to computer software fields, specifically refer to the method be inserted into by the object in interactive electric whiteboard software in the Office page.
[background technology]
Teacher uses interactive electric whiteboard software to say class hour, the Office document (comprising Word, Excel, PowerPoint document) of oneself is used to explain, if will explain the Office document of oneself, do annotation to carry out under the Window pattern of whiteboarding software, but cannot preserve this this annotation, student does not annotate, and when wanting have these to annotate, teacher can only manually operate in Office, and not only inconvenience also can waste the plenty of time.
In view of this, the present inventor furthers investigate for the defect of prior art, and has this case to produce.
[summary of the invention]
Technical matters to be solved by this invention is to provide a kind of method be inserted into by object in interactive electric whiteboard software in the Office page, teacher to the Office labelling document that will explain, conveniently can be checked at use interactive electric whiteboard software process.
The present invention solves the problems of the technologies described above by the following technical solutions:
Object in interactive electric whiteboard software is inserted into the method in the Office page, comprises the steps:
Step 1: determine to insert object module, specifically comprise:
Process tag Flag arranges 0, all processes in scanning system, if find the process of PowerPoint, and do not scan this process before, then process tag Flag takes advantage of 10 to add 1; If find the process of Excel, and do not scan this process before, then process tag Flag takes advantage of 10 to add 2; If find the process of Word, and do not scan this process before, then process tag Flag takes advantage of 10 to add 3;
Judge Flag units, if 1, then proceed to step 2; , if 2, then proceed to step 3; If 3, then proceed to step 4; If insert unsuccessfully, judge that Flag tens inserts in the same way, if insert failure again, then judge that hundred figure places are inserted in the same way; Success, then proceed to step 5;
Step 2: the object in interactive electric whiteboard software is inserted in the PowerPoint page, specifically comprises:
Step 21: picture is preserved module and preserved the object needing to insert;
Specifically comprise: scan all objects of all interactive electric whiteboard software under windows pattern, obtain the coordinate of object at screen place and size, mobile object to 20,20 points, setting up one to the form of image width+40* object high+40 is the picture of EMF, objects draw is caused to this on EMF picture, and picture is preserved;
Step 22: photo current is inserted the PPT page by insert module;
Specifically comprise: PPT edit page zoom factor is multiplied by image width and height and obtains W, H, obtain PPT lantern slide width to convert pixel to and be multiplied by PPT edit page zoom factor and obtain PPTW, screen width deducts PPTW and obtains divided by 2 the slide location top left co-ordinate PPTL that PPT is sown into, increase picture, picture level position is that object horizontal position L deducts PPTL and converts point size to and is multiplied by edit page zoom factor, and picture upright position is that object upright position T converts point size to and is multiplied by edit page zoom factor;
Step 23: judging whether that all objects insert all, is then proceed to step 24; No, then proceed to step 21;
Step 24: disconnect PowerPoint Ole object, terminate;
Step 3: the object in interactive electric whiteboard software is inserted in the Excel page, specifically comprises:
Step 31: location obtains the screen coordinate that Excel jumps to the most upper left corner of the page of each page;
Step 32: the picture object of in current whiteboard software being saved as emf form;
Step 33: contrasted by the coordinate obtained in the coordinate of the object in step 32 and step 31, determines the page inserted, picture is inserted the Excel page;
Step 34: judge whether all objects in whiteboarding software all insert? then proceed to step 35, no, then proceed to step 32;
Step 35: disconnect Excel Ole object, terminate;
Step 4: the object in interactive electric whiteboard software is inserted in the Word page, specifically comprises:
Step 41: location obtains the screen coordinate that Word jumps to the most upper left corner of the page of each page;
Step 42: the picture object of in current whiteboard software being saved as EMF form;
Step 43: contrasted by the coordinate obtained in the coordinate of the object in step 42 and step 41, determines the page inserted, picture is inserted the Word page;
Step 44: judge whether all objects in whiteboarding software all insert? then proceed to step 45, no, then proceed to step 42;
Step 45: disconnect Word Ole object, terminate;
Step 5: terminate.
Further, described step 31, specifically comprises the steps:
Step 31.1: the line number R and the row C that obtain the most upper left corner of current Excel document;
Step 31.2: the displaying ratio obtaining current Excel document;
Step 31.3: obtain and currently choose position A and retain;
Step 31.4: choose the first row first row, now Excel document jumps to the first row first row automatically;
Step 31.5: the first row first row coordinate conversion becomes screen coordinate;
Step 31.6: choose position A, the now automatic redirect of Excel document;
Step 31.7: arranging current uppermost line number with row number is R, C;
Step 31.8: location is terminated.
Further, described step 32, specifically comprises the steps:
Step 32.1: scan all objects of all interactive electric whiteboard software under windows pattern;
Step 32.2: obtain the coordinate of described object at screen place and size, mobile object to 20,20 points;
Step 32.3: setting up one to the form of image width+40* object high+40 is the picture of EMF;
Step 32.4: objects draw is caused to this on EMF picture, and picture is preserved.
Further, described step 33, specifically comprises:
Add picture, position is that object's position deducts after screen coordinate that Excel the first row one arranges converts point size to and adds the Excel coordinate of current location A.
Further, described step 41, specifically comprises the steps:
Step 41.1: the Word document connecting current display with Ole object;
Step 41.2: obtain the HScrollBar of described Word document and the position of vertical scroll bar and retain this position;
Step 41.3: the displaying ratio obtaining described Word document;
Step 41.4: all page numbers obtaining described Word document;
Step 41.5: the page index N obtaining the cursor place of described Word document;
Step 41.6: four margins up and down obtaining described Word document;
Step 41.7: obtain the wide of the page of described Word document and height;
Step 41.8: redirect cursor, to each page in Word document, namely scans each page of Word document;
Step 41.9: trial obtains the position of the first row first row of the described page, because Word document the first row first row may not exist, therefore, if obtain unsuccessfully, preserves an empty position, successful then proceed to step 41.10;
Step 41.10: this position is preserved;
Step 41.11: judge whether all pages have all scanned? proceed to step 41.12, no, proceed to step 41.7;
Step 41.12: judge that the page up of the first row first row position of the page at index N place and lower one side position exist? do not exist as looked into and sky is put in the first row first row position of current index N place Page-saving, if index N is first page, judge the next page, if index N is last page, do not judge the next page;
Step 41.13: the page the first row first row position of all existence of preserving before scanning;
Step 41.14: obtain these positions and be positioned at the position of screen and preserve;
Step 41.15: the pixel screen position mark obtaining the position in the most upper left corner of this page by the following method, and preserve;
Suppose screen position mark WL, the WT of the Word page most upper left corner page;
Word Window object GetPoint obtains page the first row first row and is positioned at coordinate SelL on screen, SelT;
Select location and page left hand edge and coboundary distance SelLM, SelTM, unit is point size;
Word page displaying ratio PagePercent;
Then computing method are:
WL=SelL-SelLM*1.33333*PagePercent;
When Word display is blank: WT=SelT-SelTM*1.33333*PagePercent;
When Word does not show blank: WT=SelT-5*1.33333*PagePercent;
Step 41.16: the AutoShape increasing a 10*10 size in the position in the described most upper left corner, and preserve;
Step 41.17: repeat rapid 41.13 to step 41.16, until the first row first row position of the page of all preservations has been scanned.
Further, described step 42, specifically comprises the steps:
Step 42.1: scan all objects of all interactive electric whiteboard software under windows pattern;
Step 42.2: obtain the coordinate of described object at screen place and size, by object move to 20,20 points;
Step 42.3: setting up one to the form of image width+40* object high+40 is the picture of EMF;
Step 42.4: by objects draw on EMF picture, and picture is preserved.
Further, described step 43, specifically comprises the steps:
Step 43.1: the most top left co-ordinate in page editing district that scanning is preserved;
Step 43.2: compare with object, judges whether object is positioned at the lower right of the most top left co-ordinate in page editing district, is then proceed to step 43.5, no, then proceed to step 43.3;
Step 43.3: object's position compares with first word screen position of the editing area the first row of to preserve before, finds out the seat that first coordinate be greater than object coordinates and puts, find out, proceed to step 43.5; Otherwise proceed to step 43.4
Step 43.4: represent over range, do not insert this picture;
Step 43.5: judge that the version of Word program is 2010 versions? then proceed to step 43.611, no, then proceed to step 43.621;
Step 43.611: the AutoShape inserted before finding the PageIndex page, and choose it, now Word jumps to respective page automatically;
Step 43.612: most for the page editing district obtained before top left co-ordinate is changed into point size L, T;
Step 43.613: add an AutoShape A, size is 10*10, and position is L, T;
Step 43.614: object position mark is deducted the most top left co-ordinate in page editing district and changes into point size, object size converts point size W to, H;
Step 43.615: utilize L, T, W, H add a painting canvas, and the position of this painting canvas is equal with the coordinate of AutoShape A;
Step 43.616: delete AutoShape A is the picture file preserved before painting canvas interpolation; Proceed to step 43.7;
Step 43.621: the AutoShape inserted before finding the PageIndex page, and choose it, now Word jumps to respective page automatically;
Step 43.622: first word screen position of the editing area the first row of preserving before is changed into point size L, T;
Step 43.623: add an AutoShape A, size is 10*10, and position is L, T;
Step 43.624: add picture, position is the L of AutoShape, T;
Step 43.625: delete AutoShape; Proceed to step 43.7;
Step 43.7: the insertion completing an object.
The invention has the advantages that: object is inserted into its position in Office substantially identical to the relative position in picture and Office documentation page with before insertion, Office page Scalable, not showing blank does not affect insertion effect yet.Make teacher can to the Office labelling document that will explain at use interactive electric whiteboard software process, method provided by the invention makes teacher saying that the mark in solution preocess is kept in Office document, conveniently checks.
[accompanying drawing explanation]
The invention will be further described in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is software key step schematic flow sheet of the present invention.
Fig. 2 is inserted into PowerPoint page major function process flow diagram in the present invention.
Fig. 3 is that the present invention is inserted in the PowerPoint page and preserves picture flow chart of steps.
Fig. 4 is that the present invention is inserted into inserting step process flow diagram in the PowerPoint page.
Fig. 5 is inserted into Excel page major function process flow diagram in the present invention.
Fig. 6 is that the present invention is inserted into positioning step process flow diagram in the Excel page.
Fig. 7 is that the present invention is inserted in the Excel page and preserves picture flow chart of steps.
Fig. 8 is inserted into Word page major function process flow diagram in the present invention.
Fig. 9 is that the present invention is inserted into positioning step process flow diagram in the Word page.
Figure 10 is that the present invention is inserted in the Word page and preserves picture flow chart of steps.
Figure 11 is that the present invention is inserted in the Word page and inserts process step process flow diagram.
[embodiment]
As shown in Figure 1, the object in interactive electric whiteboard software is inserted into the method in the Office page, comprises the steps:
Step 1: determine to insert object module, specifically comprise:
Process tag Flag arranges 0, all processes in scanning system, if find the process of PowerPoint, and do not scan this process before, then process tag Flag takes advantage of 10 to add 1; If find the process of Excel, and do not scan this process before, then process tag Flag takes advantage of 10 to add 2; If find the process of Word, and do not scan this process before, then process tag Flag takes advantage of 10 to add 3;
Judge Flag units, if 1, then proceed to step 2; , if 2, then proceed to step 3; If 3, then proceed to step 4; If insert unsuccessfully, judge that Flag tens inserts in the same way, if insert failure again, then judge that hundred figure places are inserted in the same way; Success, then proceed to step 5;
Step 2: the object in interactive electric whiteboard software is inserted in the PowerPoint page, as shown in Figures 2 to 4, specifically comprises:
Step 21: picture is preserved module and preserved the object needing to insert;
Specifically comprise: scan all objects of all interactive electric whiteboard software under windows pattern, obtain the coordinate of object at screen place and size, mobile object to 20,20 points, setting up one to the form of image width+40* object high+40 is the picture of EMF, objects draw is caused to this on EMF picture, and picture is preserved;
Step 22: photo current is inserted the PPT page by insert module;
Specifically comprise: PPT edit page zoom factor is multiplied by image width and height and obtains W, H, obtain PPT lantern slide width to convert pixel to and be multiplied by PPT edit page zoom factor and obtain PPTW, screen width deducts PPTW and obtains divided by 2 the slide location top left co-ordinate PPTL that PPT is sown into, increase picture, picture level position is that object horizontal position L deducts PPTL and converts point size to and is multiplied by edit page zoom factor, and picture upright position is that object upright position T converts point size to and is multiplied by edit page zoom factor;
Step 23: judging whether that all objects insert all, is then proceed to step 24; No, then proceed to step 21;
Step 24: disconnect PowerPoint Ole object, terminate;
Step 3: the object in interactive electric whiteboard software is inserted in the Excel page, as shown in Figure 5, specifically comprises:
Step 31: location obtains the screen coordinate that Excel jumps to the most upper left corner of the page of each page;
Step 32: the picture object of in current whiteboard software being saved as emf form;
Step 33: contrasted by the coordinate obtained in the coordinate of the object in step 32 and step 31, determines the page inserted, picture is inserted the Excel page;
Step 34: judge whether all objects in whiteboarding software all insert? then proceed to step 35, no, then proceed to step 32;
Step 35: disconnect Excel Ole object, terminate;
Step 4: the object in interactive electric whiteboard software is inserted in the Word page, as shown in Figure 8, specifically comprises:
Step 41: location obtains the screen coordinate that Word jumps to the most upper left corner of the page of each page;
Step 42: the picture object of in current whiteboard software being saved as EMF form;
Step 43: contrasted by the coordinate obtained in the coordinate of the object in step 42 and step 41, determines the page inserted, picture is inserted the Word page;
Step 44: judge whether all objects in whiteboarding software all insert? then proceed to step 45, no, then proceed to step 42;
Step 45: disconnect Word Ole object, terminate;
Step 5: terminate.
Fig. 6 is that the present invention is inserted into positioning step process flow diagram in the Excel page.Specifically refer to step 31, comprise the steps:
Step 31.1: the line number R and the row C that obtain the most upper left corner of current Excel document;
Step 31.2: the displaying ratio obtaining current Excel document;
Step 31.3: obtain and currently choose position A and retain;
Step 31.4: choose the first row first row, now Excel document jumps to the first row first row automatically;
Step 31.5: the first row first row coordinate conversion becomes screen coordinate;
Step 31.6: choose position A, the now automatic redirect of Excel document;
Step 31.7: arranging current uppermost line number with row number is R, C;
Step 31.8: location is terminated.
Fig. 7 is that the present invention is inserted in the Excel page and preserves picture flow chart of steps.Specifically refer to step 32, comprising:
Step 32.1: scan all objects of all interactive electric whiteboard software under windows pattern;
Step 32.2: obtain the coordinate of described object at screen place and size, mobile object to 20,20 points;
Step 32.3: setting up one to the form of image width+40* object high+40 is the picture of EMF;
Step 32.4: objects draw is caused to this on EMF picture, and picture is preserved.
Inserting step in step 33, specifically comprises:
Add picture, position is that object's position deducts after screen coordinate that Excel the first row one arranges converts point size to and adds the Excel coordinate of current location A.
As shown in Figure 9, positioning step process flow diagram in the Word page is inserted into.Specifically refer to step 41, comprise the steps:
Step 41.1: the Word document connecting current display with Ole object;
Step 41.2: obtain the HScrollBar of described Word document and the position of vertical scroll bar and retain this position;
Step 41.3: the displaying ratio obtaining described Word document;
Step 41.4: all page numbers obtaining described Word document;
Step 41.5: the page index N obtaining the cursor place of described Word document;
Step 41.6: four margins up and down obtaining described Word document;
Step 41.7: obtain the wide of the page of described Word document and height;
Step 41.8: redirect cursor, to each page in Word document, namely scans each page of Word document;
Step 41.9: trial obtains the position of the first row first row of the described page, because Word document the first row first row may not exist, therefore, if obtain unsuccessfully, preserves an empty position, successful then proceed to step 41.10;
Step 41.10: this position is preserved;
Step 41.11: judge whether all pages have all scanned? proceed to step 41.12, no, proceed to step 41.7;
Step 41.12: judge that the page up of the first row first row position of the page at index N place and lower one side position exist? do not exist as looked into and sky is put in the first row first row position of current index N place Page-saving, if index N is first page, judge the next page, if index N is last page, do not judge the next page;
Step 41.13: the page the first row first row position of all existence of preserving before scanning;
Step 41.14: obtain these positions and be positioned at the position of screen and preserve;
Step 41.15: the pixel screen position mark obtaining the position in the most upper left corner of this page by the following method, and preserve;
Suppose screen position mark WL, the WT of the Word page most upper left corner page;
Word Window object GetPoint obtains page the first row first row and is positioned at coordinate SelL on screen, SelT;
Select location and page left hand edge and coboundary distance SelLM, SelTM, unit is point size;
Word page displaying ratio PagePercent;
Then computing method are:
WL=SelL-SelLM*1.33333*PagePercent;
When Word display is blank: WT=SelT-SelTM*1.33333*PagePercent;
When Word does not show blank: WT=SelT-5*1.33333*PagePercent;
Step 41.16: the AutoShape increasing a 10*10 size in the position in the described most upper left corner, and preserve;
Step 41.17: repeat rapid 41.13 to step 41.16, until the first row first row position of the page of all preservations has been scanned.
As shown in Figure 10, be inserted in the Word page and preserve picture flow chart of steps, specifically refer to step 42, comprising:
Step 42.1: scan all objects of all interactive electric whiteboard software under windows pattern;
Step 42.2: obtain the coordinate of described object at screen place and size, by object move to 20,20 points;
Step 42.3: setting up one to the form of image width+40* object high+40 is the picture of EMF;
Step 42.4: by objects draw on EMF picture, and picture is preserved.
As shown in figure 11, concrete inserting step process flow diagram in the Word page is inserted into.Specifically refer to step 43, comprising:
Step 43.1: the most top left co-ordinate in page editing district that scanning is preserved;
Step 43.2: compare with object, judges whether object is positioned at the lower right of the most top left co-ordinate in page editing district, is then proceed to step 43.5, no, then proceed to step 43.3;
Step 43.3: object's position compares with first word screen position of the editing area the first row of to preserve before, finds out the seat that first coordinate be greater than object coordinates and puts, find out, proceed to step 3.5; Otherwise proceed to step 43.4
Step 43.4: represent over range, do not insert this picture;
Step 43.5: judge that the version of Word program is 2010 versions? then proceed to step 3.611, no, then proceed to step 43.621;
Step 43.611: the AutoShape inserted before finding the PageIndex page, and choose it, now Word jumps to respective page automatically;
Step 43.612: most for the page editing district obtained before top left co-ordinate is changed into point size L, T;
Step 43.613: add an AutoShape A, size is 10*10, and position is L, T;
Step 43.614: object position mark is deducted the most top left co-ordinate in page editing district and changes into point size, object size converts point size W to, H;
Step 43.615: utilize L, T, W, H add a painting canvas, and the position of this painting canvas is equal with the coordinate of AutoShape A;
Step 43.616: delete AutoShape A is the picture file preserved before painting canvas interpolation; Proceed to step 43.7;
Step 43.621: the AutoShape inserted before finding the PageIndex page, and choose it, now Word jumps to respective page automatically;
Step 43.622: first word screen position of the editing area the first row of preserving before is changed into point size L, T;
Step 43.623: add an AutoShape A, size is 10*10, and position is L, T;
Step 43.624: add picture, position is the L of AutoShape, T;
Step 43.625: delete AutoShape; Proceed to step 43.7;
Step 43.7: the insertion completing an object.
It is substantially identical to the relative position in picture and Office documentation page with before insertion that object is inserted into its position in Office by the present invention, and Office page Scalable, not showing blank does not affect insertion effect yet.Make teacher can to the Office labelling document that will explain at use interactive electric whiteboard software process, method provided by the invention makes teacher saying that the mark in solution preocess is kept in Office document, conveniently checks.
The foregoing is only better enforcement use-case of the present invention, be not intended to limit protection model figure of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.