Kaydet (Commit) 871d7703 authored tarafından Szymon Kłos's avatar Szymon Kłos

Separators between services types

Change-Id: Ibd26abdb83b86256197311bc7a120b4b025ae814
üst 289eb8a7
......@@ -51,6 +51,8 @@ private :
*/
std::vector< std::shared_ptr< DetailsContainer > > m_aDetailsContainers;
unsigned int m_nCurrentType;
public :
PlaceEditDialog( vcl::Window* pParent);
......
......@@ -573,6 +573,7 @@
<it>https://www.googleapis.com/drive/v2</it>
<it>https://apis.live.net/v5.0</it>
<it>https://api.alfresco.com/cmis/versions/1.0/atom/</it>
<it></it>
<it>http://&lt;host:port&gt;/alfresco/cmisatom</it>
<it>http://&lt;host&gt;/p8cmis/wsdl</it>
<it>https://apps.lotuslive.com/files/basic/cmis/my/servicedoc</it>
......@@ -583,6 +584,7 @@
<it>http://&lt;host&gt;/_vti_bin/CMISSoapwsdl.aspx</it>
<it>http://&lt;host&gt;/_api/Web</it>
<it>http://&lt;host&gt;/</it>
<it></it>
</value>
</prop>
<prop oor:name="CmisServersNames">
......@@ -590,6 +592,7 @@
<it>Google Drive</it>
<it>OneDrive</it>
<it>Alfresco Cloud</it>
<it>--------------------</it>
<it>Alfresco 4</it>
<it>IBM FileNet P8</it>
<it>Lotus Live Files</it>
......@@ -600,6 +603,7 @@
<it>SharePoint 2010</it>
<it>SharePoint 2013</it>
<it>Other CMIS</it>
<it>--------------------</it>
</value>
</prop>
</node>
......
......@@ -20,6 +20,7 @@ using namespace com::sun::star::uno;
PlaceEditDialog::PlaceEditDialog(vcl::Window* pParent)
: ModalDialog(pParent, "PlaceEditDialog", "svt/ui/placeedit.ui")
, m_xCurrentDetails()
, m_nCurrentType( 0 )
{
get( m_pEDServerName, "name" );
get( m_pLBServerType, "type" );
......@@ -249,11 +250,22 @@ IMPL_LINK_NOARG( PlaceEditDialog, EditUsernameHdl )
IMPL_LINK_NOARG( PlaceEditDialog, SelectTypeHdl )
{
if ( m_pLBServerType->GetSelectEntry() == "--------------------" )
{
if( !m_pLBServerType->IsTravelSelect() )
m_pLBServerType->SelectEntryPos( m_nCurrentType );
else
m_pLBServerType->SetNoSelection();
return 0;
}
if (m_xCurrentDetails.get())
m_xCurrentDetails->show(false);
sal_uInt16 nPos = m_pLBServerType->GetSelectEntryPos( );
m_xCurrentDetails = m_aDetailsContainers[nPos];
m_nCurrentType = nPos;
m_xCurrentDetails->show(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment