Skip to content

Conhost: copy RTF to clipboard - #3595

Merged
3 commits merged into
microsoft:masterfrom
anirudhrb:rtf_copy_conhost
Dec 5, 2019
Merged

3 commits merged into
microsoft:masterfrom
anirudhrb:rtf_copy_conhost

Conversation

@anirudhrb

Copy link
Copy Markdown
Contributor

RTF data is now copied to the clipboard. The clipboard format name
used for RTF data is Rich Text Format.

Refactored some code in Clipboard.cpp so that the code for setting
data to the clipboard is re-used. Also, renamed parameter
fAlsoCopyHtml to fAlsoCopyFormatting to make it more generic.

Tested by copying text from console to WordPad. Also verified that
HTML copy is not regressed by copying to Word.

Closes #3560.

RTF data is now copied to the clipboard. The clipboard format name
used for RTF data is `Rich Text Format`.

Refactored some code in `Clipboard.cpp` so that code for setting
data to the clipboard is re-used. Also, renamed parameter
`fAlsoCopyHtml` to `fAlsoCopyFormatting` to make it more generic.

Tested by copying text from console to WordPad. Also verified that
HTML copy is not regressed by copying to Word.
@anirudhrb

Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor things. Other than that, looks good 👍

Comment thread src/interactivity/win32/Clipboard.cpp Resolved
Comment thread src/interactivity/win32/Clipboard.cpp Resolved
@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 22, 2019
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 23, 2019

@zadjii-msft Mike Griese (zadjii-msft) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are probably just nits so I'll approve. Thanks!

Comment thread src/interactivity/win32/Clipboard.cpp Resolved
Comment thread src/interactivity/win32/Clipboard.cpp Resolved

@zadjii-msft Mike Griese (zadjii-msft) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making that change!

@zadjii-msft Mike Griese (zadjii-msft) added the AutoMerge Marked for automatic merge by the bot when requirements are met label Dec 5, 2019
@ghost

Copy link
Copy Markdown

Hello Mike Griese (@zadjii-msft)!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost
ghost merged commit f1ff0cf into microsoft:master Dec 5, 2019
@anirudhrb
Anirudh Rayabharam (anirudhrb) deleted the rtf_copy_conhost branch December 6, 2019 06:01
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Marked for automatic merge by the bot when requirements are met Needs-Second It's a PR that needs another sign-off

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Connect GenRTF to conhost (Win32Interactivity Clipboard)

3 participants