how to add a tab into lync 2010 client - plugins

Thanks First.
Could any one tell me some reference urls or docs to implement this function.
Add a customerized winform tab into lync 2010 client.
(in the main window, not the contact window extension.)

There is no way to do this unfortunately. Previous versions of Lync (actually, Office Communicator) let you add custom UI similar to what you are describing, but this functionality has been removed in Lync.
This document (http://technet.microsoft.com/en-us/library/gg398300.aspx) suggests you can add custom tabs using the -TabUrl parameter, but actually this is an error in the documentation, as the Lync client does not support it.

Related

office js change DOM loaded in task pane

I'm developing an office add-in using office-js (not using VSTO) and I want to access the DOM loaded in the task pane from the java script function-file used in the manifest extension points .
Yes, you can access the DOM loaded in the task pane from your JavaScript function-file. Think of it as if you have two browser windows or tabs and you want to communicate between them. Since the windows don't have access to a reference for one another, postMessage isn't a good solution. One option would be to use localStorage, which triggers an event on all same-domain pages when it changes.
Yes, you can access the DOM loaded in the task pane from your JavaScript function-file. Think of it as if you have two browser windows or tabs and you want to communicate between them. One option would be to use the postMessage() API to notify the task pane and include any information you'd like.
Edit: see my other answer: this solution isn't feasible since the window reference isn't available.

Custom Ribbons - per DOTM

we have a possible customer, who would like to have a custom ribbon in ONE template, which makes it for him easier to design the text etc.
This stuff should work on Office 2007, 2010 and 2013.
Since this will go to thousands of people, the easiest solution for this would be, to implement Macros, which do the Design-Stuff.
It seems to be no problem (I tested only with 2013) to create a custom ribbon and connect it to macros, it seems even to be possible to define custom Icons.
The real problem causess the Ribbon itself. Since, if I activate my custom ribbon, it's activated for all documents, I have to anyhow create a macro, which makes it visible JUST for one template.
Is this even possible, or is there a possibility to define a Ribbon per dotm? I didnt find anything about that, but what I found makes me nervous about the 2007, 2010, 2013 thing...
Or is it easier to create an Addin, which is kindahow compatible with alle 3 Versions?
Use Visual Studio and start a Word Template project. You can use VB if macros are to your liking or C#.
Your future documents will have to have the template attached for the ribbon to show up, which in my experience has proven to be a pain.
Alternatively you can create an addon that handles document-open events and checks if the document looks like what you expect it to look like. Heuristics can be very tricky if you don't have very specific indicators (such as an attached template, schema or content tags)
Another suggestion, which would most likely be acceptable to users, is to write an addon that shows and hides its main ribbon tab but has a ribbon button to "activate" the document and when you click that button (on another tab) it attaches your template or assigns some other persistent indicator to the document. This addon would also check each document when opened for that indicator and automatically show the actual ribbon tab when the document is recognized.

UI Automation Verify v/s UISpy - The way they find UI elements

I am trying to automate UI interactions for a C++ MFC application. I tried to find elements' automation ID using UISpy and UIAVerify tools. I am on win2k3.
There is a tab control, the automation ID of which is visible to UISpy but not to UIAVerify.
The issue is - it is not visible even to the C# code that I write using Project White framework or ui automation framework of .net 3.0.
I want to get handle to this control the way UISpy gets it. Is there any way I can find out how UISpy does it?
Thanks!!!
UISpy is likely using Microsoft UI Automation under the covers. You can see how this works from this example*. There are all kinds of conditions on AutomationElement which you can use to locate them.
I've only worked with WPF tabs, but found it really, really hard to locate them by Automation Id. Instead I've been using the AutomationName property, with the title on the tab as the value. Not sure if White supports this, but I'm pretty sure you can get the original AutomationElement out and use it as per the example.
You'll also probably be looking for something supporting the SelectionItemPattern (there's a SelectionItemIsSupportedProperty), and you'll need to use the pattern to select the tab and make it active before you can see anything in it.
Please comment if you need any more info. It might help to know what the structure of your container with tabs in is.
*Declaration of interest since I wrote this.

Adding custom toolbar and docking your app to Lync Client main window

I looked over the internet to find out how to add a custom toolbar to Lync client main window as well as to doc my web application to the main window when it triggered by a button on the custom toolbar.
I couldn't find how to implement the functionality, although I could find on youtube Avaya and prairieFyre presentations of their client side with custom toolbars and docked application, so I assume it is doable.
Could somebody refer me to where I can find some info on how to implement that?
Thank you.
This is doable, but not supported by Microsoft. I'd imagine it's done by using Win32 calls to find the Lync windows, and the calling SetParent on your own window to tie the two together - but I haven't tried it.
For a list of supported extensibility points, take a look at this post

lync extension development

Could anyone please send me some urls or code samples for develop extension for lync 2010.
I mean development some tools which can integrated into lync 2010 as extension.
add a menu or button to lync 2010, when click the menu or button, the customerized tool will popup.
Thanks a lot.
You've got 4 options:
1 - Add a custom menu item to either the main Lync window or a conversation window.
2 - Create a Conversation Window Extension to host your custom functionality. This is a Silverlight or HTML application that can be hosted inside a conversation window. Note, this can only be applied to a conversation window, and not to the main Lync window.
3 - Create a Silverlight or WPF application that contains your custom functionality, and then automate Lync from that application
4 - Probably a bit extreme depending on what you're trying to achieve, but you could run Lync in UI suppression mode, and then create your custom functionality in an application that also uses Lync for communication related tasks - but in this case, you'll have to provide all the communication UI (e.g. conversation windows) yourself.
The Lync SDK can be downloaded here - This contains sample code and walkthroughs, and should be enough to get you started.
You can find a solution at
http://visualstudiogallery.msdn.microsoft.com/29576efc-0d12-4ad8-8ace-6a9a63275a57
Using this package, you can add custom tab functionality to lync 2010 client.