Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@brotchie
Copy link

Added ObjectPlacholder class which acts as a union of SlidePlacholder, ChartPlaceholder, PicturePlaceholder, and TablePlaceholder.

Added ObjectPlacholder class which acts as a union of
SlidePlacholder, ChartPlaceholder, PicturePlaceholder, and
TablePlaceholder.
@brotchie
Copy link
Author

Looks like some tests failed. I'll fix them up, and write some new tests for the added functionality.

@scanny
Copy link
Owner

scanny commented Jun 23, 2015

Say James, what did you have in mind for the ObjectPlaceholder class? I'm not immediately seeing what the intended use is.

@brotchie
Copy link
Author

brotchie commented Jul 6, 2015

Hi Steve,

The default Powerpoint template liberally uses object placeholders (as opposed to table / picture / etc placeholder). Maybe I missed the functionality of some other class, but I couldn't find an obvious means of populating an object placeholder with a picture (having heavily used the Powerpoint COM interface, this is a common usage pattern).

By default python-pptx assigns an object of SlidePlaceholder type to placeholders it doesn't currently support. However, this SlidePlaceholder doesn't seem to have any functionality to replace itself with a picture / table / etc.

Cheers,
James

@scanny
Copy link
Owner

scanny commented Jul 6, 2015

Ah, ok, got it; now I see your intent I think.

Definitely will need the tests if you want a commit.

I haven't had my head in the code recently, but I vaguely recall the generic placeholder not being quite so simple as just inheriting functionality from the various "specialized" placeholder objects; something to do with (bulleted) list specifications or something.

It's probably worth drafting up an analysis page and working through the schema and PowerPoint behaviors to make sure the full scope is understood.

Minimally the proper delete behavior ought to be in there, that it remembers it was originally an object placeholder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.