Kaydet (Commit) 08cc1553 authored tarafından Caolán McNamara's avatar Caolán McNamara

adapt code to use converted share doument widget

Change-Id: Ic553e593890cb3254666e3c27c5d8ca05256687e
üst 10bd0604
...@@ -84,7 +84,6 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\ ...@@ -84,7 +84,6 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\
sc/source/ui/miscdlgs/conflictsdlg.src \ sc/source/ui/miscdlgs/conflictsdlg.src \
sc/source/ui/miscdlgs/protectiondlg.src \ sc/source/ui/miscdlgs/protectiondlg.src \
sc/source/ui/miscdlgs/acredlin.src \ sc/source/ui/miscdlgs/acredlin.src \
sc/source/ui/miscdlgs/sharedocdlg.src \
sc/source/ui/formdlg/formdlgs.src \ sc/source/ui/formdlg/formdlgs.src \
sc/source/ui/formdlg/dwfunctr.src \ sc/source/ui/formdlg/dwfunctr.src \
sc/source/core/src/compiler.src \ sc/source/core/src/compiler.src \
......
...@@ -75,6 +75,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\ ...@@ -75,6 +75,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/sheetprintpage \ sc/uiconfig/scalc/ui/sheetprintpage \
sc/uiconfig/scalc/ui/selectrange \ sc/uiconfig/scalc/ui/selectrange \
sc/uiconfig/scalc/ui/selectsource \ sc/uiconfig/scalc/ui/selectsource \
sc/uiconfig/scalc/ui/sharedocumentdlg \
sc/uiconfig/scalc/ui/solverdlg \ sc/uiconfig/scalc/ui/solverdlg \
sc/uiconfig/scalc/ui/sortcriteriapage \ sc/uiconfig/scalc/ui/sortcriteriapage \
sc/uiconfig/scalc/ui/sortkey \ sc/uiconfig/scalc/ui/sortkey \
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sc.hrc>
#define CB_SHARE 1
#define FT_WARNING 2
#define FL_USERS 3
#define FT_USERS 4
#define LB_USERS 5
#define FL_END 6
#define BTN_HELP 7
#define BTN_OK 8
#define BTN_CANCEL 9
#define STR_TITLE_NAME 1
#define STR_TITLE_ACCESSED 2
#define STR_NO_USER_DATA 3
#define STR_UNKNOWN_USER 4
#define STR_EXCLUSIVE_ACCESS 5
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -36,22 +36,13 @@ class ScDocShell; ...@@ -36,22 +36,13 @@ class ScDocShell;
class ScShareDocumentDlg : public ModalDialog class ScShareDocumentDlg : public ModalDialog
{ {
private: private:
CheckBox maCbShare; CheckBox* m_pCbShare;
FixedText maFtWarning; FixedText* m_pFtWarning;
FixedLine maFlUsers; SvxSimpleTable* m_pLbUsers;
FixedText maFtUsers;
SvxSimpleTableContainer m_aLbUsersContainer;
SvxSimpleTable maLbUsers;
FixedLine maFlEnd;
HelpButton maBtnHelp;
OKButton maBtnOK;
CancelButton maBtnCancel;
String maStrTitleName; OUString m_aStrNoUserData;
String maStrTitleAccessed; OUString m_aStrUnknownUser;
String maStrNoUserData; OUString m_aStrExclusiveAccess;
String maStrUnkownUser;
String maStrExclusiveAccess;
ScViewData* mpViewData; ScViewData* mpViewData;
ScDocShell* mpDocShell; ScDocShell* mpDocShell;
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "sharedocdlg.hxx" #include "sharedocdlg.hxx"
#include "sharedocdlg.hrc"
#include "scresid.hxx" #include "scresid.hxx"
#include "docsh.hxx" #include "docsh.hxx"
#include "viewdata.hxx" #include "viewdata.hxx"
...@@ -36,68 +35,101 @@ ...@@ -36,68 +35,101 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
class ScShareTable : public SvxSimpleTable
{
private:
OUString m_sWidestAccessString;
public:
ScShareTable(SvxSimpleTableContainer& rParent)
: SvxSimpleTable(rParent)
{
Date aDate(22, 12, 2000);
Time aTime(22, 59);
DateTime aDateTime(aDate, aTime);
m_sWidestAccessString += ScGlobal::pLocaleData->getDate(aDateTime);
m_sWidestAccessString += OUString(' ');
m_sWidestAccessString += ScGlobal::pLocaleData->getTime(aDateTime, false);
}
virtual void Resize()
{
SvxSimpleTable::Resize();
if (isInitialLayout(this))
setColWidths();
}
void setColWidths()
{
HeaderBar &rBar = GetTheHeaderBar();
if (rBar.GetItemCount() < 2)
return;
long nAccessedWidth = 12 +
std::max(rBar.GetTextWidth(rBar.GetItemText(2)),
GetTextWidth(m_sWidestAccessString));
long nWebSiteWidth = std::max(
12 + rBar.GetTextWidth(rBar.GetItemText(1)),
GetSizePixel().Width() - nAccessedWidth);
long aStaticTabs[]= { 2, 0, 0 };
aStaticTabs[2] = nWebSiteWidth;
SvxSimpleTable::SetTabs(aStaticTabs, MAP_PIXEL);
}
};
//============================================================================= //=============================================================================
// class ScShareDocumentDlg // class ScShareDocumentDlg
//============================================================================= //=============================================================================
ScShareDocumentDlg::ScShareDocumentDlg( Window* pParent, ScViewData* pViewData ) ScShareDocumentDlg::ScShareDocumentDlg( Window* pParent, ScViewData* pViewData )
:ModalDialog( pParent, ScResId( RID_SCDLG_SHAREDOCUMENT ) ) : ModalDialog(pParent, "ShareDocumentDialog", "modules/scalc/ui/sharedocumentdlg.ui")
,maCbShare ( this, ScResId( CB_SHARE ) ) , mpViewData(pViewData)
,maFtWarning ( this, ScResId( FT_WARNING ) ) , mpDocShell(NULL)
,maFlUsers ( this, ScResId( FL_USERS ) )
,maFtUsers ( this, ScResId( FT_USERS ) )
,m_aLbUsersContainer(this, ScResId(LB_USERS))
,maLbUsers(m_aLbUsersContainer)
,maFlEnd ( this, ScResId( FL_END ) )
,maBtnHelp ( this, ScResId( BTN_HELP ) )
,maBtnOK ( this, ScResId( BTN_OK ) )
,maBtnCancel ( this, ScResId( BTN_CANCEL ) )
,maStrTitleName ( ScResId( STR_TITLE_NAME ) )
,maStrTitleAccessed ( ScResId( STR_TITLE_ACCESSED ) )
,maStrNoUserData ( ScResId( STR_NO_USER_DATA ) )
,maStrUnkownUser ( ScResId( STR_UNKNOWN_USER ) )
,maStrExclusiveAccess ( ScResId( STR_EXCLUSIVE_ACCESS ) )
,mpViewData ( pViewData )
,mpDocShell ( NULL )
{ {
OSL_ENSURE( mpViewData, "ScShareDocumentDlg CTOR: mpViewData is null!" ); OSL_ENSURE( mpViewData, "ScShareDocumentDlg CTOR: mpViewData is null!" );
mpDocShell = ( mpViewData ? mpViewData->GetDocShell() : NULL ); mpDocShell = ( mpViewData ? mpViewData->GetDocShell() : NULL );
OSL_ENSURE( mpDocShell, "ScShareDocumentDlg CTOR: mpDocShell is null!" ); OSL_ENSURE( mpDocShell, "ScShareDocumentDlg CTOR: mpDocShell is null!" );
FreeResource(); get(m_pCbShare, "share");
get(m_pFtWarning, "warning");
SvxSimpleTableContainer *pCtrl = get<SvxSimpleTableContainer>("users");
pCtrl->set_height_request(pCtrl->GetTextHeight()*9);
m_pLbUsers = new ScShareTable(*pCtrl);
m_aStrNoUserData = get<FixedText>("nouserdata")->GetText();
m_aStrUnknownUser = get<FixedText>("unknownuser")->GetText();
m_aStrExclusiveAccess = get<FixedText>("exclusive")->GetText();
bool bIsDocShared = ( mpDocShell ? mpDocShell->IsDocShared() : false ); bool bIsDocShared = ( mpDocShell ? mpDocShell->IsDocShared() : false );
maCbShare.Check( bIsDocShared ); m_pCbShare->Check( bIsDocShared );
maCbShare.SetToggleHdl( LINK( this, ScShareDocumentDlg, ToggleHandle ) ); m_pCbShare->SetToggleHdl( LINK( this, ScShareDocumentDlg, ToggleHandle ) );
maFtWarning.Enable( bIsDocShared ); m_pFtWarning->Enable( bIsDocShared );
long nTabs[] = { 2, 10, 128 }; long nTabs[] = { 2, 0, 0 };
maLbUsers.SetTabs( nTabs ); m_pLbUsers->SetTabs( nTabs );
String aHeader( maStrTitleName ); String aHeader(get<FixedText>("name")->GetText());
aHeader += '\t'; aHeader += '\t';
aHeader += maStrTitleAccessed; aHeader += get<FixedText>("accessed")->GetText();
maLbUsers.InsertHeaderEntry( aHeader, HEADERBAR_APPEND, HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER ); m_pLbUsers->InsertHeaderEntry( aHeader, HEADERBAR_APPEND, HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER );
maLbUsers.SetSelectionMode( NO_SELECTION ); m_pLbUsers->SetSelectionMode( NO_SELECTION );
UpdateView(); UpdateView();
} }
ScShareDocumentDlg::~ScShareDocumentDlg() ScShareDocumentDlg::~ScShareDocumentDlg()
{ {
delete m_pLbUsers;
} }
IMPL_LINK_NOARG(ScShareDocumentDlg, ToggleHandle) IMPL_LINK_NOARG(ScShareDocumentDlg, ToggleHandle)
{ {
maFtWarning.Enable( maCbShare.IsChecked() ); m_pFtWarning->Enable( m_pCbShare->IsChecked() );
return 0; return 0;
} }
bool ScShareDocumentDlg::IsShareDocumentChecked() const bool ScShareDocumentDlg::IsShareDocumentChecked() const
{ {
return maCbShare.IsChecked(); return m_pCbShare->IsChecked();
} }
void ScShareDocumentDlg::UpdateView() void ScShareDocumentDlg::UpdateView()
...@@ -135,7 +167,7 @@ void ScShareDocumentDlg::UpdateView() ...@@ -135,7 +167,7 @@ void ScShareDocumentDlg::UpdateView()
} }
else else
{ {
aUser = OUString(maStrUnkownUser) + " " + OUString::number( nUnknownUser++ ); aUser = OUString(m_aStrUnknownUser) + " " + OUString::number( nUnknownUser++ );
} }
// parse the edit time string of the format "DD.MM.YYYY hh:mm" // parse the edit time string of the format "DD.MM.YYYY hh:mm"
...@@ -160,20 +192,20 @@ void ScShareDocumentDlg::UpdateView() ...@@ -160,20 +192,20 @@ void ScShareDocumentDlg::UpdateView()
aString += ' '; aString += ' ';
aString += ScGlobal::pLocaleData->getTime( aDateTime, false ); aString += ScGlobal::pLocaleData->getTime( aDateTime, false );
maLbUsers.InsertEntry( aString, NULL ); m_pLbUsers->InsertEntry( aString, NULL );
} }
} }
} }
else else
{ {
maLbUsers.InsertEntry( maStrNoUserData, NULL ); m_pLbUsers->InsertEntry( m_aStrNoUserData, NULL );
} }
} }
catch ( uno::Exception& ) catch ( uno::Exception& )
{ {
OSL_FAIL( "ScShareDocumentDlg::UpdateView(): caught exception\n" ); OSL_FAIL( "ScShareDocumentDlg::UpdateView(): caught exception\n" );
maLbUsers.Clear(); m_pLbUsers->Clear();
maLbUsers.InsertEntry( maStrNoUserData, NULL ); m_pLbUsers->InsertEntry( m_aStrNoUserData, NULL );
} }
} }
else else
...@@ -197,10 +229,10 @@ void ScShareDocumentDlg::UpdateView() ...@@ -197,10 +229,10 @@ void ScShareDocumentDlg::UpdateView()
if ( aUser.Len() == 0 ) if ( aUser.Len() == 0 )
{ {
// unknown user name // unknown user name
aUser = maStrUnkownUser; aUser = m_aStrUnknownUser;
} }
aUser += ' '; aUser += ' ';
aUser += maStrExclusiveAccess; aUser += m_aStrExclusiveAccess;
String aString( aUser ); String aString( aUser );
aString += '\t'; aString += '\t';
...@@ -216,7 +248,7 @@ void ScShareDocumentDlg::UpdateView() ...@@ -216,7 +248,7 @@ void ScShareDocumentDlg::UpdateView()
aString += ' '; aString += ' ';
aString += ScGlobal::pLocaleData->getTime( aDateTime, false ); aString += ScGlobal::pLocaleData->getTime( aDateTime, false );
maLbUsers.InsertEntry( aString, NULL ); m_pLbUsers->InsertEntry( aString, NULL );
} }
} }
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "sharedocdlg.hrc"
ModalDialog RID_SCDLG_SHAREDOCUMENT
{
OutputSize = TRUE ;
HelpId = CMD_SID_SHARE_DOC ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 204 , 186 ) ;
Text [ en-US ] = "Share Document" ;
Moveable = TRUE ;
Closeable = TRUE ;
CheckBox CB_SHARE
{
HelpID = "sc:CheckBox:RID_SCDLG_SHAREDOCUMENT:CB_SHARE";
Pos = MAP_APPFONT ( 6 , 6 ) ;
Size = MAP_APPFONT ( 192 , 8 ) ;
Text [ en-US ] = "Share this spreadsheet with other users" ;
};
FixedText FT_WARNING
{
Pos = MAP_APPFONT ( 15 , 18 ) ;
Size = MAP_APPFONT ( 183 , 48 ) ;
WordBreak = TRUE ;
Text [ en-US ] = "Note: Changes to formatting attributes like fonts, colors, and number formats will not be saved and some functionalities like editing charts and drawing objects are not available in shared mode. Turn off shared mode to get exclusive access needed for those changes and functionalities." ;
};
FixedLine FL_USERS
{
Pos = MAP_APPFONT ( 6 , 66 ) ;
Size = MAP_APPFONT ( 192 , 4 ) ;
};
FixedText FT_USERS
{
Pos = MAP_APPFONT ( 6 , 72 ) ;
Size = MAP_APPFONT ( 192 , 8 ) ;
Text [ en-US ] = "Users currently accessing this spreadsheet" ;
};
Control LB_USERS
{
Pos = MAP_APPFONT ( 6 , 82 ) ;
Size = MAP_APPFONT ( 192 , 72 ) ;
Border = TRUE ;
};
FixedLine FL_END
{
Pos = MAP_APPFONT ( 1 , 156 ) ;
Size = MAP_APPFONT ( 204 , 8 ) ;
};
HelpButton BTN_HELP
{
Pos = MAP_APPFONT ( 6 , 166 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
OKButton BTN_OK
{
Pos = MAP_APPFONT ( 92 , 166 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
DefButton = TRUE ;
};
CancelButton BTN_CANCEL
{
Pos = MAP_APPFONT ( 148 , 166 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
String STR_TITLE_NAME
{
Text [ en-US ] = "Name" ;
};
String STR_TITLE_ACCESSED
{
Text [ en-US ] = "Accessed" ;
};
String STR_NO_USER_DATA
{
Text [ en-US ] = "No user data available." ;
};
String STR_UNKNOWN_USER
{
Text [ en-US ] = "Unknown User" ;
};
String STR_EXCLUSIVE_ACCESS
{
Text [ en-US ] = "(exclusive access)" ;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <!-- interface-requires gtk+ 3.0 -->
<object class="GtkDialog" id="sharedocument"> <!-- interface-requires LibreOffice 1.0 -->
<object class="GtkDialog" id="ShareDocumentDialog">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
<property name="title" translatable="yes">Share Document</property> <property name="title" translatable="yes">Share Document</property>
...@@ -10,76 +11,53 @@ ...@@ -10,76 +11,53 @@
<object class="GtkBox" id="dialog-vbox1"> <object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">2</property> <property name="spacing">12</property>
<child internal-child="action_area"> <child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1"> <object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="layout_style">start</property> <property name="layout_style">end</property>
<child> <child>
<object class="GtkBox" id="box1"> <object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">True</property>
<property name="spacing">100</property> <property name="receives_default">True</property>
<child> <property name="use_stock">True</property>
<object class="GtkButton" id="help"> <property name="image_position">right</property>
<property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">0</property> <property name="position">0</property>
<property name="secondary">True</property>
</packing>
</child>
<child>
<object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing> </packing>
</child> </child>
</object> </object>
...@@ -94,8 +72,10 @@ ...@@ -94,8 +72,10 @@
<object class="GtkBox" id="box3"> <object class="GtkBox" id="box3">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">10</property> <property name="spacing">18</property>
<child> <child>
<object class="GtkBox" id="box4"> <object class="GtkBox" id="box4">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -103,7 +83,7 @@ ...@@ -103,7 +83,7 @@
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">6</property> <property name="spacing">6</property>
<child> <child>
<object class="GtkCheckButton" id="checkbutton1"> <object class="GtkCheckButton" id="share">
<property name="label" translatable="yes">_Share this spreadsheet with other users</property> <property name="label" translatable="yes">_Share this spreadsheet with other users</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
...@@ -119,14 +99,22 @@ ...@@ -119,14 +99,22 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label1"> <object class="GtkAlignment" id="alignment1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes">Note: Changes to formatting attributes like fonts, colors, and number <property name="left_padding">12</property>
formats will not be saved and some functionalities like editing charts <child>
and drawing objects are not available in shared mode. Turn off shared <object class="GtkLabel" id="warning">
mode to get exclusive access needed for those changes and <property name="visible">True</property>
functionalities.</property> <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="xpad">12</property>
<property name="label" translatable="yes">Note: Changes to formatting attributes like fonts, colors, and number formats will not be saved and some functionalities like editing charts and drawing objects are not available in shared mode. Turn off shared mode to get exclusive access needed for those changes and functionalities.</property>
<property name="wrap">True</property>
<property name="max_width_chars">72</property>
</object>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -142,50 +130,59 @@ functionalities.</property> ...@@ -142,50 +130,59 @@ functionalities.</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="box5"> <object class="GtkFrame" id="frame1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="hexpand">True</property>
<property name="spacing">6</property> <property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child> <child>
<object class="GtkSeparator" id="separator1"> <object class="GtkAlignment" id="alignment2">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
</object> <property name="hexpand">True</property>
<packing> <property name="vexpand">True</property>
<property name="expand">False</property> <property name="top_padding">6</property>
<property name="fill">True</property> <property name="left_padding">12</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Users currently accessing this spreadsheet</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child> <child>
<object class="GtkBox" id="box8"> <object class="GtkBox" id="box1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="spacing">200</property> <property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child> <child>
<object class="GtkLabel" id="label3"> <object class="GtkBox" id="box2">
<property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes">Name</property> <property name="no_show_all">True</property>
<property name="hexpand">True</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="name">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Name</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="accessed">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Accessed</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -194,10 +191,14 @@ functionalities.</property> ...@@ -194,10 +191,14 @@ functionalities.</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label4"> <object class="svxcorelo-SvxSimpleTableContainer" id="users">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">True</property>
<property name="label" translatable="yes">Accessed</property> <property name="hexpand">True</property>
<property name="vexpand">True</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="Simple Table Container-selection"/>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -205,45 +206,68 @@ functionalities.</property> ...@@ -205,45 +206,68 @@ functionalities.</property>
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="shadow_type">in</property>
<child> <child>
<placeholder/> <object class="GtkBox" id="box5">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="hexpand">True</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="nouserdata">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">No user data available.</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="unknownuser">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Unknown User</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="exclusive">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">(exclusive access)</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child> </child>
</object> </object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child> </child>
</object> </object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child> </child>
<child> <child type="label">
<object class="GtkSeparator" id="separator2"> <object class="GtkLabel" id="label1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes">Users currently accessing this spreadsheet</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object> </object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child> </child>
</object> </object>
<packing> <packing>
...@@ -261,5 +285,10 @@ functionalities.</property> ...@@ -261,5 +285,10 @@ functionalities.</property>
</child> </child>
</object> </object>
</child> </child>
<action-widgets>
<action-widget response="0">help</action-widget>
<action-widget response="0">ok</action-widget>
<action-widget response="0">cancel</action-widget>
</action-widgets>
</object> </object>
</interface> </interface>
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