Restrict text styling options to custom ribbon tab in word document - ms-word

I have created custom ribbon tab and added the list of text styling options that I want the users to be using inside my document, however I want to disable all the styling options from the entire document in all the ribbon tabs except the custom tab that I have created.
What I have right now
All the styling options are disabled across all ribbon tabs.
What I want
To disable the styling in all the ribbon tabs except the custom one that I've created.

I think you may be missing the point. One disables not buttons, but commands. This is the basic idea. You can invoke a command (such as "Font color") from many places, using keyboard shortcuts and so on.
So office allows you to disable a command, not a button - and it makes perfect sense.
There is another option - you can remove office ribbon as a whole, using "StartFromScratch" attribute, and provide only the buttons you want instead.

Related

Is there a shortcut to jump between views inside the explorer (e.g from Files to NPM Scripts or Timeline)

Couldn't find a command in the Keyboard Shortcuts list that focuses next or previous view in the explorer.
I know there are commands available to directly focus certain views (e.g npm.focus, timeline.focus, workbench.explorer.fileView.focus) but that would require binding a unique key for every view.
I need a shortcut to focus next/previous view in the list.
Switching Focus between Lists in the Sidebar
The TAB key is your best option.
You can't specify a specific list switch focus on, but you can cycle up & down the list.
To Toggle one Group "DOWN" use: TAB
To Toggle one Group "UP" use: SHIFT + TAB
To toggle through the groups list items, like open editors in the open-editors section, logged file-saves in the local history section, files in the file explorer, and/or the many other groups/sections available in the sidebar...
use the UP & DOWN Arrow Keys.
This is how all html lists work. VS Code is written in HTML FYI (you probably new that, but I threw it out there for clarity's sake). When interacting with a page that has been rendered from an HTML document, the TAB key will always switch focus between base elements, and will never cycle through an elements children. If you cycle through elements, such as an ordered list (<ol>), or an unordered list (<ul>), you can cycle through their list items (<li>) using the UP & DOWN Arrow Keys.
VS Code is no exception, in fact the entire editor can be cycled through using the keyboard. There are many disabilities that this functionality accommodates.
And FYI, your theme, if well developed, should highlight where focus is at. I find many developers will remove that highlighting to create the desired visual effect, but doing so is naive, as its there for a reason.

Microsoft Word Add-in 2013/2016 -- Detect File Tab Visible

I am developing a word add-in in C#. In word 2013/2016, the file tab takes up the whole document window and covers the editable text area. I need to know when the editable text region becomes no longer visible because the file menu is selected/visible. Some form of callback would be ideal, but a property would suffice.
I looked in the Application, Window, and Document objects for callbacks that indicate a file menu selection -- no success.
I looked for properties that indicate that the file menu is visible -- no success.
I looked for a callback or property that indicates that the editable area of the document is no longer visible -- no success.
Any ideas?
The Backstage UI provides the onShow and onHide callbacks that allow to detect when the File tab is shown and hidden.
<backstage onShow="OnShow">
Read more about that in the Customizing the Office 2010 Backstage View for Developers article.
Also you may find the Introduction to the Office 2010 Backstage View for Developers article helpful.

How to show frequently used commands in toolbars under the menu bar in VScode

How to show frequently used commands in toolbars under the menu bar in VScode?
In Visual Studio, frequently used commands are placed in some toolbars. We can click them easily with a mouse, not using keyboard shortcuts.
Is there a way to set up toolbars in VScode like Visual Studio?
No, this is currently not possible (VSCode doesn't have one built-in, and the extension API is rather limited when it comes to customizing UI). There was a feature request for this, but it was considered "out of scope":
Support a real toolbar below the window title with actions (#18042)
Note that the extension API does allow you to customize the buttons shown in the upper right of editors, so that could be a workaround in the meantime:
The contribution point is the editor/title mentioned here. This is how the built-in markdown extension adds the additional Open preview to the Side button for .md files:
The third-party Markdown Shortcuts extension takes this even further, adding controls for editing such as Toggle bold, Toggle italic etc:
I made the extension just for this purpose.. you can add buttons like beautify, list files, undo, redo, save all etc to the editor menu bar in the VSCode. checkout
Shortcut Menu Bar

Built-In Add-Ins tab not displaying on the Ribbon of MS WORD 2010/2013

As the following image from my WORD 2013 shows the Add-Ins tab is missing from the Ribbon of the document even though "File-->Options-->Customize Ribbon Tabs" shows that the tab should display. Same is true for some other tabs shown in the list of Main Tabs on the left side of the image. Question: How can we display these missing tabs?
The Add-ins tab does not have any commands on it. That is why it does not appear in the "Choose commands from" list. Unless you add some commands it will not show in your ribbon even though you have checked the box next to it in the right hand column.
Other tabs in the "Choose commands from" list, such as SmartArt Tools, are context tabs and appear only when in context. So SmartArt Tools only appears if you have a SmartArt object selected, Chart Tools only appears when a Chart is selected, Table Tools appears when a Table is selected, etc.
Context tabs appear in the right column only when you change the drop-down to either All Tabs or Tool Tabs.
Some of the tabs listed under Main Tabs are also context tabs, e.g. Blog Post and Insert (Blog Post) only appear when you create a blog post, Outlining appears only when a document is in Outline view.

Enable VSTO Ribbon Tab

I've added some custom tabs to my ribbon in ribbon.xml. I have callbacks for the getVisible attribute that dynamically set the visibility of the tabs.
My problem is that when I go to Options--Customize Ribbon and uncheck my tabs, when I close Word and re-open my tabs don't re-appear even though the getVisible callback is invoked and returns true.
I've tried recording a macro when checking/unchecking the tabs, but nothing appears in my new macro. Anyone know how to force the tabs to be re-enabled?
I figured it out. This setting is stored in XML in %appdata%\local\microsoft\office\Word.officeUI and if I remove the element for my custom tab, on restarting word my tabs are visible again.