Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
93a48990
Kaydet (Commit)
93a48990
authored
Agu 14, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert RID_DLG_SELECTION to .ui format
Change-Id: Ib23d8ec34c757bb8268651d4a1d00c6528dac9c1
üst
dbaed27d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
142 additions
and
123 deletions
+142
-123
AllLangResTarget_pcr.mk
extensions/AllLangResTarget_pcr.mk
+0
-4
UIConfig_spropctrlr.mk
extensions/UIConfig_spropctrlr.mk
+1
-0
formresid.hrc
extensions/source/propctrlr/formresid.hrc
+0
-5
listselectiondlg.cxx
extensions/source/propctrlr/listselectiondlg.cxx
+18
-29
listselectiondlg.hxx
extensions/source/propctrlr/listselectiondlg.hxx
+2
-13
listselectiondlg.src
extensions/source/propctrlr/listselectiondlg.src
+0
-72
listselectdialog.ui
extensions/uiconfig/spropctrlr/ui/listselectdialog.ui
+121
-0
No files found.
extensions/AllLangResTarget_pcr.mk
Dosyayı görüntüle @
93a48990
...
...
@@ -32,8 +32,4 @@ $(eval $(call gb_SrsTarget_add_files,pcr/res,\
extensions/source/propctrlr/formlinkdialog.src \
))
$(eval $(call gb_SrsTarget_add_nonlocalizable_files,pcr/res,\
extensions/source/propctrlr/listselectiondlg.src \
))
# vim:set noet sw=4 ts=4:
extensions/UIConfig_spropctrlr.mk
Dosyayı görüntüle @
93a48990
...
...
@@ -15,6 +15,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/spropctrlr,\
extensions/uiconfig/spropctrlr/ui/fieldlinkrow \
extensions/uiconfig/spropctrlr/ui/formlinksdialog \
extensions/uiconfig/spropctrlr/ui/labelselectiondialog \
extensions/uiconfig/spropctrlr/ui/listselectdialog \
extensions/uiconfig/spropctrlr/ui/taborder \
))
...
...
extensions/source/propctrlr/formresid.hrc
Dosyayı görüntüle @
93a48990
...
...
@@ -274,11 +274,6 @@
#define RID_STR_CONFIRM_DELETE_DATA_TYPE ( RID_FORMBROWSER_START + 500 )
// - dialogs
#define RID_DLG_TABORDER ( RID_PROPCONTROLLER_START + 1 )
#define RID_DLG_SELECTION ( RID_PROPCONTROLLER_START + 3 )
// - ImageLists
#define RID_IL_FORMEXPLORER ( RID_PROPCONTROLLER_START + 0 )
...
...
extensions/source/propctrlr/listselectiondlg.cxx
Dosyayı görüntüle @
93a48990
...
...
@@ -18,47 +18,36 @@
*/
#include "listselectiondlg.hxx"
#include "listselectiondlg.hrc"
#include "modulepcr.hxx"
#include "formresid.hrc"
#include "formstrings.hxx"
#include <vcl/msgbox.hxx>
namespace
pcr
{
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
beans
;
//= ListSelectionDialog
ListSelectionDialog
::
ListSelectionDialog
(
Window
*
_pParent
,
const
Reference
<
XPropertySet
>&
_rxListBox
,
const
OUString
&
_rPropertyName
,
const
OUString
&
_rPropertyUIName
)
:
ModalDialog
(
_pParent
,
PcrRes
(
RID_DLG_SELECTION
)
)
,
m_aLabel
(
this
,
PcrRes
(
FT_ENTRIES
)
)
,
m_aEntries
(
this
,
PcrRes
(
LB_ENTRIES
)
)
,
m_aOK
(
this
,
PcrRes
(
PB_OK
)
)
,
m_aCancel
(
this
,
PcrRes
(
PB_CANCEL
)
)
,
m_aHelp
(
this
,
PcrRes
(
PB_HELP
)
)
ListSelectionDialog
::
ListSelectionDialog
(
Window
*
_pParent
,
const
Reference
<
XPropertySet
>&
_rxListBox
,
const
OUString
&
_rPropertyName
,
const
OUString
&
_rPropertyUIName
)
:
ModalDialog
(
_pParent
,
"ListSelectDialog"
,
"modules/spropctrlr/ui/listselectdialog.ui"
)
,
m_xListBox
(
_rxListBox
)
,
m_sPropertyName
(
_rPropertyName
)
{
FreeResource
();
OSL_PRECOND
(
m_xListBox
.
is
(),
"ListSelectionDialog::ListSelectionDialog: invalid list box!"
);
SetText
(
_rPropertyUIName
);
m_aLabel
.
SetText
(
_rPropertyUIName
);
get
(
m_pEntries
,
"treeview"
);
Size
aSize
(
LogicToPixel
(
Size
(
85
,
97
),
MAP_APPFONT
));
m_pEntries
->
set_width_request
(
aSize
.
Width
());
m_pEntries
->
set_height_request
(
aSize
.
Height
());
SetText
(
_rPropertyUIName
);
get
<
VclFrame
>
(
"frame"
)
->
set_label
(
_rPropertyUIName
);
initialize
(
);
}
short
ListSelectionDialog
::
Execute
()
{
short
nResult
=
ModalDialog
::
Execute
();
...
...
@@ -75,14 +64,14 @@ namespace pcr
if
(
!
m_xListBox
.
is
()
)
return
;
m_
aEntries
.
SetStyle
(
GetStyle
()
|
WB_SIMPLEMODE
);
m_
pEntries
->
SetStyle
(
GetStyle
()
|
WB_SIMPLEMODE
);
try
{
// initialize the multi-selection flag
bool
bMultiSelection
=
false
;
OSL_VERIFY
(
m_xListBox
->
getPropertyValue
(
PROPERTY_MULTISELECTION
)
>>=
bMultiSelection
);
m_
aEntries
.
EnableMultiSelection
(
bMultiSelection
);
m_
pEntries
->
EnableMultiSelection
(
bMultiSelection
);
// fill the list box with all entries
Sequence
<
OUString
>
aListEntries
;
...
...
@@ -122,31 +111,31 @@ namespace pcr
void
ListSelectionDialog
::
fillEntryList
(
const
Sequence
<
OUString
>&
_rListEntries
)
{
m_
aEntries
.
Clear
();
m_
pEntries
->
Clear
();
const
OUString
*
_pListEntries
=
_rListEntries
.
getConstArray
();
const
OUString
*
_pListEntriesEnd
=
_rListEntries
.
getConstArray
()
+
_rListEntries
.
getLength
();
for
(
;
_pListEntries
<
_pListEntriesEnd
;
++
_pListEntries
)
m_
aEntries
.
InsertEntry
(
*
_pListEntries
);
m_
pEntries
->
InsertEntry
(
*
_pListEntries
);
}
void
ListSelectionDialog
::
collectSelection
(
Sequence
<
sal_Int16
>&
/* [out] */
_rSelection
)
{
sal_uInt16
nSelectedCount
=
m_
aEntries
.
GetSelectEntryCount
(
);
sal_uInt16
nSelectedCount
=
m_
pEntries
->
GetSelectEntryCount
(
);
_rSelection
.
realloc
(
nSelectedCount
);
sal_Int16
*
pSelection
=
_rSelection
.
getArray
();
for
(
sal_uInt16
selected
=
0
;
selected
<
nSelectedCount
;
++
selected
,
++
pSelection
)
*
pSelection
=
static_cast
<
sal_Int16
>
(
m_
aEntries
.
GetSelectEntryPos
(
selected
)
);
*
pSelection
=
static_cast
<
sal_Int16
>
(
m_
pEntries
->
GetSelectEntryPos
(
selected
)
);
}
void
ListSelectionDialog
::
selectEntries
(
const
Sequence
<
sal_Int16
>&
/* [in ] */
_rSelection
)
{
m_
aEntries
.
SetNoSelection
();
m_
pEntries
->
SetNoSelection
();
const
sal_Int16
*
pSelection
=
_rSelection
.
getConstArray
();
const
sal_Int16
*
pSelectionEnd
=
_rSelection
.
getConstArray
()
+
_rSelection
.
getLength
();
for
(
;
pSelection
!=
pSelectionEnd
;
++
pSelection
)
m_
aEntries
.
SelectEntryPos
(
*
pSelection
);
m_
pEntries
->
SelectEntryPos
(
*
pSelection
);
}
...
...
extensions/source/propctrlr/listselectiondlg.hxx
Dosyayı görüntüle @
93a48990
...
...
@@ -21,28 +21,17 @@
#define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_LISTSELECTIONDLG_HXX
#include <vcl/dialog.hxx>
#include <vcl/fixed.hxx>
#include <vcl/button.hxx>
#include <vcl/layout.hxx>
#include <vcl/lstbox.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
namespace
pcr
{
//= ListSelectionDialog
class
ListSelectionDialog
:
public
ModalDialog
{
private
:
FixedText
m_aLabel
;
ListBox
m_aEntries
;
OKButton
m_aOK
;
CancelButton
m_aCancel
;
HelpButton
m_aHelp
;
ListBox
*
m_pEntries
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
m_xListBox
;
...
...
extensions/source/propctrlr/listselectiondlg.src
deleted
100644 → 0
Dosyayı görüntüle @
dbaed27d
/* -*- 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 "formresid.hrc"
#include "propctrlr.hrc"
#include "listselectiondlg.hrc"
ModalDialog RID_DLG_SELECTION
{
HelpID = "extensions:ModalDialog:RID_DLG_SELECTION";
OutputSize = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 150, 120 ) ;
FixedText FT_ENTRIES
{
Pos = MAP_APPFONT( 6, 6 );
Size = MAP_APPFONT( 85, 8 );
};
ListBox LB_ENTRIES
{
HelpID = "extensions:ListBox:RID_DLG_SELECTION:LB_ENTRIES";
Pos = MAP_APPFONT( 6, 17 );
Size = MAP_APPFONT( 85, 97 );
Border = TRUE;
DropDown = FALSE;
};
OKButton PB_OK
{
Pos = MAP_APPFONT( 97, 6 );
Size = MAP_APPFONT( 50, 14 );
TabStop = TRUE;
DefButton = TRUE;
};
CancelButton PB_CANCEL
{
Pos = MAP_APPFONT( 97, 23 );
Size = MAP_APPFONT( 50, 14 );
TabStop = TRUE;
};
HelpButton PB_HELP
{
Pos = MAP_APPFONT( 97, 43 );
Size = MAP_APPFONT( 50, 14 );
TabStop = TRUE;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
extensions/uiconfig/spropctrlr/ui/listselectdialog.ui
0 → 100644
Dosyayı görüntüle @
93a48990
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires
lib=
"gtk+"
version=
"3.0"
/>
<object
class=
"GtkDialog"
id=
"ListSelectDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"type_hint"
>
normal
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"dialog-vbox1"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
12
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
id=
"dialog-action_area1"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</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=
"can_default"
>
True
</property>
<property
name=
"has_default"
>
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>
<child>
<object
class=
"GtkButton"
id=
"help"
>
<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"
>
2
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"pack_type"
>
end
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkFrame"
id=
"frame"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkAlignment"
id=
"alignment1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"top_padding"
>
6
</property>
<property
name=
"left_padding"
>
12
</property>
<child>
<object
class=
"GtkTreeView"
id=
"treeview:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"treeview-selection2"
/>
</child>
</object>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<attributes>
<attribute
name=
"weight"
value=
"bold"
/>
</attributes>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget
response=
"0"
>
ok
</action-widget>
<action-widget
response=
"0"
>
cancel
</action-widget>
<action-widget
response=
"0"
>
help
</action-widget>
</action-widgets>
</object>
</interface>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment