forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshp-inline-shape-access.feature
More file actions
26 lines (22 loc) · 1.21 KB
/
shp-inline-shape-access.feature
File metadata and controls
26 lines (22 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Feature: Access inline shapes in document
In order to query or manipulate inline shapes in a document
As an python-docx developer
I need the ability to access the inline shapes in a document
Scenario: Access inline shapes collection of document
Given a document containing five inline shapes
Then I can access the inline shape collection of the document
And the length of the inline shape collection is 5
Scenario: Access shape in inline shape collection
Given an inline shape collection containing five shapes
Then I can iterate over the inline shape collection
And I can access each inline shape by index
Scenario Outline: Identify type of inline shape
Given an inline shape known to be <shape of type>
Then its inline shape type is <shape type>
Examples: Inline shapes of recognized types
| shape of type | shape type |
| an embedded picture | WD_INLINE_SHAPE.PICTURE |
| a linked picture | WD_INLINE_SHAPE.LINKED_PICTURE |
| a link+embed picture | WD_INLINE_SHAPE.LINKED_PICTURE |
| a smart art diagram | WD_INLINE_SHAPE.SMART_ART |
| a chart | WD_INLINE_SHAPE.CHART |