CN110502450A - Storage manager in a kind of WORD - Google Patents
Storage manager in a kind of WORD Download PDFInfo
- Publication number
- CN110502450A CN110502450A CN201910128078.4A CN201910128078A CN110502450A CN 110502450 A CN110502450 A CN 110502450A CN 201910128078 A CN201910128078 A CN 201910128078A CN 110502450 A CN110502450 A CN 110502450A
- Authority
- CN
- China
- Prior art keywords
- blocks
- storage manager
- free
- distribution
- storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000000284 extract Substances 0.000 claims description 3
- 239000000203 mixture Substances 0.000 claims description 3
- 230000006870 function Effects 0.000 abstract description 5
- 238000004064 recycling Methods 0.000 abstract description 3
- 230000007812 deficiency Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0253—Garbage collection, i.e. reclamation of unreferenced memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses storage managers in a kind of WORD.It is developed in plug-in unit in WORD, using content control, uniquely manipulable attribute PlaceholderText can store finite data (256 character), the present invention will expand and develop the storage manager inside Word document, it can break through the limitation of 256 characters, the storage limitation of content control is had greatly expanded, with functions such as distribution and recycling, the supports of chunk data of realizing space.
Description
Technical field
The present invention relates to computer application technology, storage manager in specially a kind of WORD.
Background technique
During Word developing plug, such as automatic calculating, pattern lock, list makes a report on function, need to store a large amount of
Control record information, these information must be able to be stored in Word document, be unable to separate type storage.
Document.CustomDocumentProperties using Word is basic data repository, storage class
For String type, each maximum limitation of String storage is 255 characters;
Document.CustomDocumentProperties is only saved and is extracted to the Name of String type,
It cannot distinguish between which Name is available or not available, also to the storage distribution support of chunk data and reclaim mechanism, therefore
Storage manager must be designed, to realize the distribution in space and the support function of recycling, chunk data.
Without corresponding storage management in the open technique of WORD itself, this requires us must find Word's itself
One basic data mechanism, and storage manager is created based on this.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides storage managers in a kind of WORD, it is able to achieve point in space
Match and recycle, the support function of chunk data, with overcome the deficiencies in the prior art.
In order to achieve the above object, the present invention is achieved by the following technical programs: storage manager in WORD, including such as
Lower step:
1) Microsoft VSTO technological development WORD plug-in unit is used;
2) work of storage manager:
A) when outside application distribution, application category title and storage content and content-length are wanted, storage manager is then counted
It calculates and needs how many a free blocks, then inquire whether enough whether this classification have available free block and, if there is enough skies
Not busy block, then sequence extracts the serial number of free block, returns to external applicant;
If storage manager distributes the free block of fixed quantity b) without enough free blocks, the serial number of free block from
Not used maximum value starts assignment, and then from list of free blocks head, order-assigned goes out required free block sequence number sequence;
C) storage manager will store data carry out piecemeal, then by the non-idle sequence of blocks composition " classification " of distribution+
The name variable of free block serial number is established this variable in Document.CustomDocumentProperties, and is stored in
The data of piecemeal;Distribution is completed with storage;
D) external applicant records the classification and non-idle sequence of blocks of distribution;When external users does not need memory space,
The classification of release operation and record, the non-idle sequence of blocks of distribution then are transmitted to storage manager, storage manager then will record
Classification and non-idle sequence of blocks be combined into name variable, delete this into Document.CustomDocumentProperties
Free block serial number, is then put into the tail portion of such other list of free blocks, then discharges completion by variable and its space of release.
Beneficial effect
Compared with prior art, it is developed in plug-in unit in WORD, uses the unique manipulable attribute of content control
PlaceholderText can store finite data (256 character), and the present invention will expand and develop the storage inside Word document
Manager, it can break through the limitation of 256 characters, have greatly expanded content control storage limitation, with realize space distribution and
The functions such as recycling, the support of chunk data.
Detailed description of the invention
Fig. 1 is the schematic diagram of the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention: storage manager in WORD includes the following steps:
1) Microsoft VSTO technological development WORD plug-in unit is used;
2) work of storage manager:
A) when outside application distribution, application category title and storage content and content-length are wanted, storage manager is then counted
It calculates and needs how many a free blocks, then inquire whether enough whether this classification have available free block and, if there is enough skies
Not busy block, then sequence extracts the serial number of free block, returns to external applicant;
If storage manager distributes the free block of fixed quantity b) without enough free blocks, the serial number of free block from
Not used maximum value starts assignment, and then from list of free blocks head, order-assigned goes out required free block sequence number sequence;
C) storage manager will store data carry out piecemeal, then by the non-idle sequence of blocks composition " classification " of distribution+
The name variable of free block serial number is established this variable in Document.CustomDocumentProperties, and is stored in
The data of piecemeal;Distribution is completed with storage;
D) external applicant records the classification and non-idle sequence of blocks of distribution;When external users does not need memory space,
The classification of release operation and record, the non-idle sequence of blocks of distribution then are transmitted to storage manager, storage manager then will record
Classification and non-idle sequence of blocks be combined into name variable, delete this into Document.CustomDocumentProperties
Free block serial number, is then put into the tail portion of such other list of free blocks, then discharges completion by variable and its space of release.
Above description has shown and described several preferred embodiments of invention, but as previously described, it should be understood that invention is not
It is confined to form disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations, modification
And environment, and can be carried out within that scope of the inventive concept describe herein by the above teachings or related fields of technology or knowledge
Change.And changes and modifications made by those skilled in the art do not depart from the spirit and scope of invention, then it all should be in the appended power of invention
In the protection scope that benefit requires.
Claims (1)
1. storage manager in a kind of WORD, which comprises the steps of:
1) Microsoft VSTO technological development WORD plug-in unit is used;
2) work of storage manager:
A) when outside application distribution, application category title and storage content and content-length are wanted, storage manager, which then calculates, to be needed
Want how many a free blocks, then inquire this classification whether have available free block and whether enough, if there is enough free blocks,
Then sequence extracts the serial number of free block, returns to external applicant;
If storage manager distributes the free block of fixed quantity, and the serial number of free block never makes b) without enough free blocks
Maximum value starts assignment, and then from list of free blocks head, order-assigned goes out required free block sequence number sequence;
C) data that storage manager will store carry out piecemeal, then by the non-idle sequence of blocks composition " classification " of distribution+free time
The name variable of block serial number establishes this variable in Document.CustomDocumentProperties, and is stored in piecemeal
Data;Distribution is completed with storage;
D) external applicant records the classification and non-idle sequence of blocks of distribution;When external users does not need memory space, then to
The non-idle sequence of blocks of storage manager transmitting release operation and the classification, distribution that record, storage manager is then by the class of record
Not and non-idle sequence of blocks is combined into name variable, this variable is deleted into Document.CustomDocumentProperties
With its space of release, then free block serial number is put into the tail portion of such other list of free blocks, then discharge completion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910128078.4A CN110502450A (en) | 2019-02-21 | 2019-02-21 | Storage manager in a kind of WORD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910128078.4A CN110502450A (en) | 2019-02-21 | 2019-02-21 | Storage manager in a kind of WORD |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110502450A true CN110502450A (en) | 2019-11-26 |
Family
ID=68585225
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910128078.4A Pending CN110502450A (en) | 2019-02-21 | 2019-02-21 | Storage manager in a kind of WORD |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110502450A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855881A (en) * | 2005-04-28 | 2006-11-01 | 华为技术有限公司 | Method for dynamically sharing space of memory |
CN101271428A (en) * | 2008-02-25 | 2008-09-24 | 北京理工大学 | Apparatus and method for object data storage management |
CN102722519A (en) * | 2011-03-28 | 2012-10-10 | 微软公司 | Techniques to create structured document templates using enhanced content controls |
CN104780148A (en) * | 2014-01-14 | 2015-07-15 | 北大方正集团有限公司 | Server, terminal, system and method for document online operation |
-
2019
- 2019-02-21 CN CN201910128078.4A patent/CN110502450A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855881A (en) * | 2005-04-28 | 2006-11-01 | 华为技术有限公司 | Method for dynamically sharing space of memory |
CN101271428A (en) * | 2008-02-25 | 2008-09-24 | 北京理工大学 | Apparatus and method for object data storage management |
CN102722519A (en) * | 2011-03-28 | 2012-10-10 | 微软公司 | Techniques to create structured document templates using enhanced content controls |
CN104780148A (en) * | 2014-01-14 | 2015-07-15 | 北大方正集团有限公司 | Server, terminal, system and method for document online operation |
Non-Patent Citations (1)
Title |
---|
刘艳平: "基于VSTO的word文档格式检查插件的开发与研究", 《电脑知识与技术》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102240557B1 (en) | Method, device and system for storing data | |
US5931935A (en) | File system primitive allowing reprocessing of I/O requests by multiple drivers in a layered driver I/O system | |
US6976038B2 (en) | Method and apparatus for real time creation and modification of a change log for multi-server synchronization | |
CN101178726B (en) | Method to unarchive data file | |
CN105474200A (en) | Hydration and dehydration with placeholders | |
CN103678556A (en) | Method for processing column-oriented database and processing equipment | |
CN102667703A (en) | System and method for optimized reclamation processing in a virtual tape library system | |
KR20070109835A (en) | Apparatus and method for searching rights object and a mapping apparatus and method for searching rights object | |
US7020659B2 (en) | System and method for managing bi-directional relationships between objects | |
US6829616B2 (en) | Method, system, and program for implementing a database trigger | |
US20150142749A1 (en) | Method and system for a safe archiving of data | |
CN105373541A (en) | Processing method and system for data operation request of database | |
CN109885577B (en) | Data processing method, device, terminal and storage medium | |
US11429494B2 (en) | File backup based on file type | |
CN111858577B (en) | Method, apparatus and computer program product for storage management | |
CN109597707A (en) | Clone volume data copying method, device and computer readable storage medium | |
CN110674084A (en) | Method, apparatus, and computer-readable storage medium for data protection | |
EP3343395A1 (en) | Data storage method and apparatus for mobile terminal | |
CN112000971B (en) | File permission recording method, system and related device | |
CN112257005B (en) | Form component generation method and device | |
CN114116717A (en) | Database information query method, device, equipment and readable storage medium | |
EP1654677A2 (en) | Metadata based query | |
CN110502450A (en) | Storage manager in a kind of WORD | |
CN104699688A (en) | File searching method and electronic device | |
CN100407204C (en) | Method for labeling computer resource and system therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191126 |