CN106959869A - A kind of method and system of loading OCX controls - Google Patents

A kind of method and system of loading OCX controls Download PDF

Info

Publication number
CN106959869A
CN106959869A CN201710083005.9A CN201710083005A CN106959869A CN 106959869 A CN106959869 A CN 106959869A CN 201710083005 A CN201710083005 A CN 201710083005A CN 106959869 A CN106959869 A CN 106959869A
Authority
CN
China
Prior art keywords
ocx controls
ocx
lantern slide
path
loading
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
Application number
CN201710083005.9A
Other languages
Chinese (zh)
Other versions
CN106959869B (en
Inventor
刘德建
郭玉湖
方振华
危波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN201710083005.9A priority Critical patent/CN106959869B/en
Publication of CN106959869A publication Critical patent/CN106959869A/en
Application granted granted Critical
Publication of CN106959869B publication Critical patent/CN106959869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists
    • G06F16/4393Multimedia presentations, e.g. slide shows, multimedia albums

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to data processing field, more particularly to a kind of method and system of loading OCX Plug-in controls.The present invention is by parsing PPTX formatted files to default file;Obtain the original path of the OCX controls that the lantern slide in projection state is included in the PPTX formatted files;According to the absolute path of the original path of the OCX controls and the temporary folder, the current absolute path of the OCX controls is obtained;The OCX controls are loaded according to the current absolute path.Realize that PPTX formatted files, which are stored in, can correctly load the OCX controls that the lantern slide currently shown is included in the case where use the absolute path of OCX controls as chained address making lantern slide under either path.

Description

A kind of method and system of loading OCX controls
Technical field
The present invention relates to data processing field, more particularly to a kind of method and system of loading OCX controls.
Background technology
FLASH or HTML5 resources can be played in lantern slide by OCX controls, the broadcasting content of lantern slide is enriched.It is existing Some PPT tools, such as Microsoft Office Power Point 2007, using OCX controls absolute path as Chained address.When the PPTX formatted files made are transferred under other paths, the absolute road for the OCX controls that lantern slide is included Footpath changes, and can not find corresponding resource according to the chained address of the OCX controls added in manufacturing process, leads to not just OCX controls are really loaded, so that FLASH the or HTML5 resources included in the lantern slide can not be played automatically.
The content of the invention
The technical problems to be solved by the invention are:A kind of method and system of loading OCX controls are provided, realization is being used In the case that the absolute path of OCX controls makes lantern slide as chained address, PPTX formatted files are stored under either path The OCX controls that the lantern slide currently shown is included can correctly be loaded.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:
The present invention provides a kind of method of loading OCX controls, including:
S1, parsing PPTX formatted files to default file;
S2, the original road for obtaining the OCX controls that the lantern slide in projection state is included in the PPTX formatted files Footpath;
S3, the original path according to the OCX controls and the temporary folder absolute path, obtain the OCX controls The current absolute path of part;
S4, the OCX controls are loaded according to the current absolute path.
The present invention also provides a kind of system of loading OCX controls, it is characterised in that including:
Parsing module, for parsing PPTX formatted files to default file;
First acquisition module, for obtaining what the lantern slide in projection state in the PPTX formatted files was included The original path of OCX controls;
Second acquisition module, for the original path and the absolute path of the temporary folder according to the OCX controls, Obtain the current absolute path of the OCX controls;
Load-on module, for loading the OCX controls according to the current absolute path.
The beneficial effects of the present invention are:By the way that OCX controls are copied into spy during PPTX formatted files are opened Under fixed temporary folder, and it is the current absolute of the OCX controls to reacquire the chained address of OCX controls in temporary folder Path so that in the case where using the absolute path of OCX controls to make lantern slide as chained address, realizes PPTX forms text Part be stored under either path can correctly be loaded according to absolute path of the OCX controls in specific temporary folder it is corresponding OCX controls.
Brief description of the drawings
A kind of FB(flow block) of the embodiment of the method for loading OCX controls that Fig. 1 provides for the present invention;
A kind of structured flowchart of the embodiment of the system for loading OCX controls that Fig. 2 provides for the present invention;
Label declaration:
1st, parsing module;2nd, the first acquisition module;3rd, the second acquisition module;4th, load-on module.
Embodiment
To describe technology contents, the objects and the effects of the present invention in detail, below in conjunction with embodiment and coordinate attached Figure is explained.
The design of most critical of the present invention is:By the way that OCX controls are copied to during PPTX formatted files are opened Under specific temporary folder, realize in the case where use the absolute path of OCX controls as chained address making lantern slide, PPTX formatted files, which are stored in, can correctly load the OCX controls that the lantern slide currently shown is included under either path.
As shown in figure 1, the present invention provides a kind of method of loading OCX controls, including:
S1, parsing PPTX formatted files to default file;
S2, the original road for obtaining the OCX controls that the lantern slide in projection state is included in the PPTX formatted files Footpath;
S3, the original path according to the OCX controls and the temporary folder absolute path, obtain the OCX controls The current absolute path of part;
S4, the OCX controls are loaded according to the current absolute path.
Further, the S2 is specially:
S21, the page number for obtaining the lantern slide in projection state in the PPTX formatted files;
S22, parsing sequence of slides XML document corresponding with the page number, obtain the numbering of the OCX controls;Institute State the object included in sequence of slides XML document record lantern slide;
S23, corresponding with page number lantern slide is parsed according to the numbering link XML document, obtain the OCX controls Original path;The chained address of the object included in the lantern slide link XML document storage lantern slide.
Further, the S22 is specially:
Choice box element is searched in the sequence of slides XML document;
Obtain the control daughter element that the choice box element is included;
Obtain the numbering property value of the control daughter element.
Further, the S23 is specially:
Matching is described to number the numbering property value that the first element in XML document is linked with the lantern slide, obtains matching knot Really;
If the matching result obtains the path attribute value of first element for the match is successful.
Seen from the above description, the OCX controls chained address that the lantern slide currently shown includes is parsed automatically, so that real OCX controls during existing playing lantern slides included by automatic playing lantern slides.
Further, the S4 is specially:
Chromium embedded frames load the OCX controls according to the current absolute path.
Seen from the above description, Chromium embedded frames are embedded form, only without opening when playing OCX controls Vertical window, user perceives the presence less than OCX controls, as the primary effect of PPTX formatted files, improves Consumer's Experience.
Further, the file is temporary folder.
Seen from the above description, when closing PPTX formatted files, system can be automatically deleted and be stored in temporary folder File, it is to avoid system rubbish can all be caused by opening PPTX formatted files every time, take the memory cell of system.
As shown in Fig. 2 the present invention also provides a kind of system of loading OCX controls, including:
Parsing module 1, for parsing PPTX formatted files to default file;
First acquisition module 2, for obtaining what the lantern slide in projection state in the PPTX formatted files was included The original path of OCX controls;
Second acquisition module 3, for the original path according to the OCX controls and the absolute road of the temporary folder Footpath, obtains the current absolute path of the OCX controls;
Load-on module 4, for loading the OCX controls according to the current absolute path.
Further, first acquisition module includes:
First acquisition unit, the page number for obtaining the lantern slide in projection state in the PPTX formatted files;
First resolution unit, for parsing sequence of slides XML document corresponding with the page number, obtains the OCX The numbering of control;The object included in the sequence of slides XML document record lantern slide;
Second resolution unit, links XML document for parsing lantern slide corresponding with the page number according to the numbering, obtains To the original path of the OCX controls;The chain ground connection of the object included in the lantern slide link XML document storage lantern slide Location.
Further, first resolution unit includes:
Searching unit, for searching choice box element in the sequence of slides XML document;
Second acquisition unit, for obtaining the control daughter element that the choice box element is included;
3rd acquiring unit, the numbering property value for obtaining the control daughter element.
Further, second resolution unit includes:
Matching unit, the numbering attribute of the first element in XML document is linked for matching the numbering with the lantern slide Value, obtains matching result;
4th acquiring unit, if for the matching result for the match is successful, obtaining the path category of first element Property value.
Seen from the above description, the system for the loading OCX controls that the present invention is provided is realized that PPTX formatted files are stored in and appointed The OCX controls that the lantern slide currently shown is included can be correctly loaded under one path.
Embodiment:
S1, parsing PPTX formatted files to default temporary folder;
Wherein, PPTX formatted file solutions are depressed under temporary folder Temp, the system meeting when PPTX formatted files are closed It is automatically deleted temporary folder Temp.
The page number " # " of current slide show is obtained under full frame state, the # pages lantern slide is parsed, obtains the # pages lantern slide Serialize file and the # pages lantern slide threaded file.The # pages sequence of slides file is XML document form, deposit this page it is unreal All object datas that lamp piece is included, such as:The sequence of slides file of page 2 saves as slide2.xml.The # pages lantern slide Threaded file is rels formatted files, deposits the chained address of the object datas such as all pictures, video, audio, control, such as:2nd Page lantern slide threaded file saves as slide2.xml.rels.
S2, the original road for obtaining the OCX controls that the lantern slide in projection state is included in the PPTX formatted files Footpath;
S21, the page number " # " for obtaining the lantern slide in projection state in the PPTX formatted files;
S22, parsing sequence of slides XML document corresponding with the page number, obtain the numbering of the OCX controls;
Wherein, the slide#.xml files in Temp files are read;By searching label in slide#.xml files mc:Choice obtains choice box element;Label p in identification selection frame element:R in control (control):Id (identification number) item Value key;Value such as key is rId2, represents the OCX controls for being rId2 comprising numbering in the # pages lantern slide;
S23, corresponding with page number lantern slide is parsed according to the numbering link XML document, obtain the OCX controls Original path;The chained address of the object included in the lantern slide link XML document storage lantern slide;
Wherein, the slide#.xml.rels files in Temp files are read, label is matched from the beginning to the end, Id (marks are found Know number) tag entry that the value of item is key (rId2), then obtain the value path of Target (target) item of the label;Read The respective file in path paths, matches label from the beginning to the end, finds ax:The value of name (title) item is the tag entry of " Url ", so The ax of the label is obtained afterwards:When the value value, value of value value are the making PPTX formatted files, the OCX controls Original path.
S3, the original path according to the OCX controls and the temporary folder absolute path, obtain the OCX controls The current absolute path of part;
S4, Chromium embedded frame load the OCX controls according to the current absolute path.
In summary, the method and system for a kind of loading OCX controls that the present invention is provided, by opening PPTX forms text OCX controls are copied under specific temporary folder during part, and reacquire the chain of OCX controls in temporary folder It is grounded the current absolute path that location is the OCX controls so that the absolute path of OCX controls is unreal as chained address making using In the case of lamp piece, realizing that PPTX formatted files are stored under either path can be according to OCX control in specific temporary file Absolute path in folder correctly loads corresponding OCX controls.Further, parse what the lantern slide currently shown included automatically OCX controls chained address, so that OCX controls when realizing playing lantern slides included by automatic playing lantern slides.Further, originally The system for inventing the loading OCX controls provided is realized that PPTX formatted files are stored under either path correctly to load and currently put The OCX controls that the lantern slide reflected is included.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalents that bright specification and accompanying drawing content are made, or the technical field of correlation is directly or indirectly used in, similarly include In the scope of patent protection of the present invention.

Claims (10)

1. a kind of method of loading OCX controls, it is characterised in that including:
S1, parsing PPTX formatted files to default file;
S2, the original path for obtaining the OCX controls that the lantern slide in projection state is included in the PPTX formatted files;
S3, the original path according to the OCX controls and the temporary folder absolute path, obtain the OCX controls Current absolute path;
S4, the OCX controls are loaded according to the current absolute path.
2. the method for loading OCX controls according to claim 1, it is characterised in that the S2 is specially:
S21, the page number for obtaining the lantern slide in projection state in the PPTX formatted files;
S22, parsing sequence of slides XML document corresponding with the page number, obtain the numbering of the OCX controls;It is described unreal The object included in lamp piece serializing XML document record lantern slide;
S23, corresponding with page number lantern slide is parsed according to the numbering link XML document, obtain the original of the OCX controls Beginning path;The chained address of the object included in the lantern slide link XML document storage lantern slide.
3. the method for loading OCX controls according to claim 2, it is characterised in that the S22 is specially:
Choice box element is searched in the sequence of slides XML document;
Obtain the control daughter element that the choice box element is included;
Obtain the numbering property value of the control daughter element.
4. the method for loading OCX controls according to claim 2, it is characterised in that the S23 is specially:
Matching is described to number the numbering property value that the first element in XML document is linked with the lantern slide, obtains matching result;
If the matching result obtains the path attribute value of first element for the match is successful.
5. the method for loading OCX controls according to claim 1, it is characterised in that the S4 is specially:
Chromium embedded frames load the OCX controls according to the current absolute path.
6. the method for loading OCX controls according to claim 1, it is characterised in that the file is temporary folder.
7. a kind of system of loading OCX controls, it is characterised in that including:
Parsing module, for parsing PPTX formatted files to default file;
First acquisition module, for obtaining the OCX controls that the lantern slide in projection state is included in the PPTX formatted files The original path of part;
Second acquisition module, for the original path and the absolute path of the temporary folder according to the OCX controls, is obtained The current absolute path of the OCX controls;
Load-on module, for loading the OCX controls according to the current absolute path.
8. the system of loading OCX controls according to claim 7, it is characterised in that first acquisition module includes:
First acquisition unit, the page number for obtaining the lantern slide in projection state in the PPTX formatted files;
First resolution unit, for parsing sequence of slides XML document corresponding with the page number, obtains the OCX controls Numbering;The object included in the sequence of slides XML document record lantern slide;
Second resolution unit, links XML document for parsing lantern slide corresponding with the page number according to the numbering, obtains institute State the original path of OCX controls;The chained address of the object included in the lantern slide link XML document storage lantern slide.
9. the system of loading OCX controls according to claim 7, it is characterised in that first resolution unit includes:
Searching unit, for searching choice box element in the sequence of slides XML document;
Second acquisition unit, for obtaining the control daughter element that the choice box element is included;
3rd acquiring unit, the numbering property value for obtaining the control daughter element.
10. the system of loading OCX controls according to claim 7, it is characterised in that second resolution unit includes:
Matching unit, links the numbering property value of the first element in XML document with the lantern slide for matching the numbering, obtains To matching result;
4th acquiring unit, if obtaining the path attribute value of first element for the matching result for the match is successful.
CN201710083005.9A 2017-02-16 2017-02-16 Method and system for loading OCX control Active CN106959869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710083005.9A CN106959869B (en) 2017-02-16 2017-02-16 Method and system for loading OCX control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710083005.9A CN106959869B (en) 2017-02-16 2017-02-16 Method and system for loading OCX control

Publications (2)

Publication Number Publication Date
CN106959869A true CN106959869A (en) 2017-07-18
CN106959869B CN106959869B (en) 2020-09-08

Family

ID=59481673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710083005.9A Active CN106959869B (en) 2017-02-16 2017-02-16 Method and system for loading OCX control

Country Status (1)

Country Link
CN (1) CN106959869B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765068A (en) * 2019-09-20 2020-02-07 数字视觉云(北京)科技发展有限公司 Maya file processing method, device, terminal and storage medium
CN111145104A (en) * 2019-12-02 2020-05-12 福建天泉教育科技有限公司 Method and terminal for restoring picture brightness and contrast
CN111241041A (en) * 2020-01-22 2020-06-05 福建天泉教育科技有限公司 Method and system for storing video resources in PPTX file
CN112825067A (en) * 2019-11-19 2021-05-21 福建天泉教育科技有限公司 PPT (Power Point) -based document resource storage method and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088689A1 (en) * 2008-10-03 2010-04-08 Microsoft Corporation Branding binary modules using resource patching
CN105786339A (en) * 2014-12-19 2016-07-20 珠海金山办公软件有限公司 Method and device for playing multimedia file in PowerPoint
CN106127838A (en) * 2016-06-23 2016-11-16 福建天泉教育科技有限公司 Multimedia resource based on Powerpoint storage method and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088689A1 (en) * 2008-10-03 2010-04-08 Microsoft Corporation Branding binary modules using resource patching
CN105786339A (en) * 2014-12-19 2016-07-20 珠海金山办公软件有限公司 Method and device for playing multimedia file in PowerPoint
CN106127838A (en) * 2016-06-23 2016-11-16 福建天泉教育科技有限公司 Multimedia resource based on Powerpoint storage method and system thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765068A (en) * 2019-09-20 2020-02-07 数字视觉云(北京)科技发展有限公司 Maya file processing method, device, terminal and storage medium
CN110765068B (en) * 2019-09-20 2022-10-11 数字视觉云(北京)科技发展有限公司 Maya file processing method, device, terminal and storage medium
CN112825067A (en) * 2019-11-19 2021-05-21 福建天泉教育科技有限公司 PPT (Power Point) -based document resource storage method and terminal
CN112825067B (en) * 2019-11-19 2022-07-05 福建天泉教育科技有限公司 PPT (Power Point) -based document resource storage method and terminal
CN111145104A (en) * 2019-12-02 2020-05-12 福建天泉教育科技有限公司 Method and terminal for restoring picture brightness and contrast
CN111145104B (en) * 2019-12-02 2023-04-18 福建天泉教育科技有限公司 Method and terminal for restoring picture brightness and contrast
CN111241041A (en) * 2020-01-22 2020-06-05 福建天泉教育科技有限公司 Method and system for storing video resources in PPTX file
CN111241041B (en) * 2020-01-22 2022-07-05 福建天泉教育科技有限公司 Method and system for storing video resources in PPTX file

Also Published As

Publication number Publication date
CN106959869B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN106959869A (en) A kind of method and system of loading OCX controls
US6898607B2 (en) Proposed syntax for a synchronized commands execution
RU2398275C2 (en) File system presented inside database
US8286146B2 (en) Method for automatic generation of schema mapping application code
SG142297A1 (en) Command script parsing using local and extended storage for command lookup
US20060020602A9 (en) Maintaining interoperability of systems that use different metadata schemas
CN105046159B (en) OOX text document privacy information detection methods based on modified logo symbol
US20070061797A1 (en) Bulk loading system and method
CN110334326B (en) A kind of method and system for identifying recipe file and being converted into XML file
US8548963B2 (en) Context sensitive media and information
CN104573001A (en) Mobile terminal-based webpage data acqusition and classification method
US20140006430A1 (en) Indexing multimedia web content
KR100420473B1 (en) An Adaptation Technique for Binary Components through Adaptation Components
Jeliazkova et al. AMBIT‐SMARTS: Efficient Searching of Chemical Structures and Fragments
CN105224309B (en) A kind of method and apparatus for transferring function
US20150347353A1 (en) Document layering platform
CN103778239A (en) Multi-database data management method and system
EP3740882A1 (en) Browser navigation for facilitating data access
Mannel et al. Finding complex process-structures by exploiting the token-game
CN112187713B (en) Message conversion method, device, computer equipment and storage medium
CN116560642A (en) Code generation method and device, electronic equipment and storage medium
US7523392B2 (en) Method and system for mapping between components of a packaging model and features of a physical representation of a package
US7900136B2 (en) Structured document processing apparatus and structured document processing method, and program
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
WO2023077932A1 (en) Method and apparatus for automatically registering floor code, and storage medium

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