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
d25b1bf2
Kaydet (Commit)
d25b1bf2
authored
Nis 04, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert smarttag options page to .ui
Change-Id: Iae72fb5debaa5fe642cba940cf6775f5fd927fcd
üst
a1f6d9d5
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
167 additions
and
182 deletions
+167
-182
AllLangResTarget_cui.mk
cui/AllLangResTarget_cui.mk
+0
-1
UIConfig_cui.mk
cui/UIConfig_cui.mk
+1
-0
autocdlg.hxx
cui/source/inc/autocdlg.hxx
+3
-4
cuires.hrc
cui/source/inc/cuires.hrc
+0
-1
helpid.hrc
cui/source/inc/helpid.hrc
+0
-1
autocdlg.cxx
cui/source/tabpages/autocdlg.cxx
+40
-39
autocdlg.hrc
cui/source/tabpages/autocdlg.hrc
+0
-64
autocdlg.src
cui/source/tabpages/autocdlg.src
+0
-72
smarttagoptionspage.ui
cui/uiconfig/ui/smarttagoptionspage.ui
+123
-0
No files found.
cui/AllLangResTarget_cui.mk
Dosyayı görüntüle @
d25b1bf2
...
@@ -51,7 +51,6 @@ $(eval $(call gb_SrsTarget_add_files,cui/res,\
...
@@ -51,7 +51,6 @@ $(eval $(call gb_SrsTarget_add_files,cui/res,\
cui/source/options/optlingu.src \
cui/source/options/optlingu.src \
cui/source/options/optpath.src \
cui/source/options/optpath.src \
cui/source/options/treeopt.src \
cui/source/options/treeopt.src \
cui/source/tabpages/autocdlg.src \
cui/source/tabpages/border.src \
cui/source/tabpages/border.src \
cui/source/tabpages/frmdirlbox.src \
cui/source/tabpages/frmdirlbox.src \
cui/source/tabpages/page.src \
cui/source/tabpages/page.src \
...
...
cui/UIConfig_cui.mk
Dosyayı görüntüle @
d25b1bf2
...
@@ -165,6 +165,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
...
@@ -165,6 +165,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/showcoldialog \
cui/uiconfig/ui/showcoldialog \
cui/uiconfig/ui/similaritysearchdialog \
cui/uiconfig/ui/similaritysearchdialog \
cui/uiconfig/ui/slantcornertabpage \
cui/uiconfig/ui/slantcornertabpage \
cui/uiconfig/ui/smarttagoptionspage \
cui/uiconfig/ui/smoothdialog \
cui/uiconfig/ui/smoothdialog \
cui/uiconfig/ui/solarizedialog \
cui/uiconfig/ui/solarizedialog \
cui/uiconfig/ui/specialcharacters \
cui/uiconfig/ui/specialcharacters \
...
...
cui/source/inc/autocdlg.hxx
Dosyayı görüntüle @
d25b1bf2
...
@@ -461,10 +461,9 @@ class OfaSmartTagOptionsTabPage : public SfxTabPage
...
@@ -461,10 +461,9 @@ class OfaSmartTagOptionsTabPage : public SfxTabPage
private
:
private
:
// controls
// controls
CheckBox
m_aMainCB
;
CheckBox
*
m_pMainCB
;
SvxCheckListBox
m_aSmartTagTypesLB
;
SvxCheckListBox
*
m_pSmartTagTypesLB
;
PushButton
m_aPropertiesPB
;
PushButton
*
m_pPropertiesPB
;
FixedText
m_aTitleFT
;
/// construction via Create()
/// construction via Create()
OfaSmartTagOptionsTabPage
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
);
OfaSmartTagOptionsTabPage
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
);
...
...
cui/source/inc/cuires.hrc
Dosyayı görüntüle @
d25b1bf2
...
@@ -128,7 +128,6 @@
...
@@ -128,7 +128,6 @@
#define OFA_TP_VIEW (RID_OFA_START + 202)
#define OFA_TP_VIEW (RID_OFA_START + 202)
#define RID_OFAPAGE_MSFILTEROPT (RID_OFA_START + 120)
#define RID_OFAPAGE_MSFILTEROPT (RID_OFA_START + 120)
#define RID_OFAPAGE_MSFILTEROPT2 (RID_OFA_START + 121)
#define RID_OFAPAGE_MSFILTEROPT2 (RID_OFA_START + 121)
#define RID_OFAPAGE_SMARTTAG_OPTIONS (RID_OFA_START + 125)
#define RID_SVXPAGE_OPTIONS_CTL (RID_SVX_START + 252)
#define RID_SVXPAGE_OPTIONS_CTL (RID_SVX_START + 252)
#define RID_SVXPAGE_OPTIONS_JAVA (RID_SVX_START + 253)
#define RID_SVXPAGE_OPTIONS_JAVA (RID_SVX_START + 253)
#define RID_SVXPAGE_ABOUT_CONFIG (RID_SVX_START + 301)
#define RID_SVXPAGE_ABOUT_CONFIG (RID_SVX_START + 301)
...
...
cui/source/inc/helpid.hrc
Dosyayı görüntüle @
d25b1bf2
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#define HID_OFA_FONT_SUBST_CLB "CUI_HID_OFA_FONT_SUBST_CLB"
#define HID_OFA_FONT_SUBST_CLB "CUI_HID_OFA_FONT_SUBST_CLB"
#define HID_DBPATH_CTL_PATH "CUI_HID_DBPATH_CTL_PATH"
#define HID_DBPATH_CTL_PATH "CUI_HID_DBPATH_CTL_PATH"
#define HID_DBPATH_HEADERBAR "CUI_HID_DBPATH_HEADERBAR"
#define HID_DBPATH_HEADERBAR "CUI_HID_DBPATH_HEADERBAR"
#define HID_OFAPAGE_SMARTTAG_OPTIONS "CUI_HID_OFAPAGE_SMARTTAG_OPTIONS"
#define HID_OFADLG_TREELISTBOX "CUI_HID_OFADLG_TREELISTBOX"
#define HID_OFADLG_TREELISTBOX "CUI_HID_OFADLG_TREELISTBOX"
#define HID_OPTIONS_DICT_EDIT_ENTRIES_LIST "CUI_HID_OPTIONS_DICT_EDIT_ENTRIES_LIST"
#define HID_OPTIONS_DICT_EDIT_ENTRIES_LIST "CUI_HID_OPTIONS_DICT_EDIT_ENTRIES_LIST"
#define HID_COLORPAGE_DOCCOLOR_LB "CUI_HID_COLORPAGE_DOCCOLOR_LB"
#define HID_COLORPAGE_DOCCOLOR_LB "CUI_HID_COLORPAGE_DOCCOLOR_LB"
...
...
cui/source/tabpages/autocdlg.cxx
Dosyayı görüntüle @
d25b1bf2
...
@@ -46,11 +46,11 @@
...
@@ -46,11 +46,11 @@
#include <rtl/strbuf.hxx>
#include <rtl/strbuf.hxx>
#include "autocdlg.hxx"
#include "autocdlg.hxx"
#include "autocdlg.hrc"
#include "helpid.hrc"
#include "helpid.hrc"
#include <editeng/acorrcfg.hxx>
#include <editeng/acorrcfg.hxx>
#include <editeng/svxacorr.hxx>
#include <editeng/svxacorr.hxx>
#include "cuicharmap.hxx"
#include "cuicharmap.hxx"
#include "cuires.hrc"
#include <editeng/unolingu.hxx>
#include <editeng/unolingu.hxx>
#include <dialmgr.hxx>
#include <dialmgr.hxx>
#include <svx/svxids.hrc>
#include <svx/svxids.hrc>
...
@@ -2357,22 +2357,23 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeAutoCompleteMultiListBox(Wi
...
@@ -2357,22 +2357,23 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeAutoCompleteMultiListBox(Wi
OfaSmartTagOptionsTabPage
::
OfaSmartTagOptionsTabPage
(
Window
*
pParent
,
OfaSmartTagOptionsTabPage
::
OfaSmartTagOptionsTabPage
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
const
SfxItemSet
&
rSet
)
:
SfxTabPage
(
pParent
,
CUI_RES
(
RID_OFAPAGE_SMARTTAG_OPTIONS
),
rSet
),
:
SfxTabPage
(
pParent
,
"SmartTagOptionsPage"
,
"cui/ui/smarttagoptionspage.ui"
,
rSet
)
m_aMainCB
(
this
,
CUI_RES
(
CB_SMARTTAGS
)
),
m_aSmartTagTypesLB
(
this
,
CUI_RES
(
LB_SMARTTAGS
)
),
m_aPropertiesPB
(
this
,
CUI_RES
(
PB_SMARTTAGS
)
),
m_aTitleFT
(
this
,
CUI_RES
(
FT_SMARTTAGS
)
)
{
{
FreeResource
();
get
(
m_pMainCB
,
"main"
);
get
(
m_pSmartTagTypesLB
,
"list"
);
get
(
m_pPropertiesPB
,
"properties"
);
// some options for the list box:
// some options for the list box:
m_aSmartTagTypesLB
.
SetStyle
(
m_aSmartTagTypesLB
.
GetStyle
()
|
WB_HSCROLL
|
WB_HIDESELECTION
);
m_pSmartTagTypesLB
->
SetStyle
(
m_pSmartTagTypesLB
->
GetStyle
()
|
WB_HSCROLL
|
WB_HIDESELECTION
);
m_aSmartTagTypesLB
.
SetHighlightRange
();
m_pSmartTagTypesLB
->
SetHighlightRange
();
Size
aControlSize
(
LogicToPixel
(
Size
(
172
,
154
),
MAP_APPFONT
));
m_pSmartTagTypesLB
->
set_width_request
(
aControlSize
.
Width
());
m_pSmartTagTypesLB
->
set_height_request
(
aControlSize
.
Height
());
// set the handlers:
// set the handlers:
m_
aMainCB
.
SetToggleHdl
(
LINK
(
this
,
OfaSmartTagOptionsTabPage
,
CheckHdl
));
m_
pMainCB
->
SetToggleHdl
(
LINK
(
this
,
OfaSmartTagOptionsTabPage
,
CheckHdl
));
m_
aPropertiesPB
.
SetClickHdl
(
LINK
(
this
,
OfaSmartTagOptionsTabPage
,
ClickHdl
));
m_
pPropertiesPB
->
SetClickHdl
(
LINK
(
this
,
OfaSmartTagOptionsTabPage
,
ClickHdl
));
m_
aSmartTagTypesLB
.
SetSelectHdl
(
LINK
(
this
,
OfaSmartTagOptionsTabPage
,
SelectHdl
));
m_
pSmartTagTypesLB
->
SetSelectHdl
(
LINK
(
this
,
OfaSmartTagOptionsTabPage
,
SelectHdl
));
}
}
OfaSmartTagOptionsTabPage
::~
OfaSmartTagOptionsTabPage
()
OfaSmartTagOptionsTabPage
::~
OfaSmartTagOptionsTabPage
()
...
@@ -2401,22 +2402,22 @@ struct ImplSmartTagLBUserData
...
@@ -2401,22 +2402,22 @@ struct ImplSmartTagLBUserData
mnSmartTagIdx
(
nSmartTagIdx
)
{}
mnSmartTagIdx
(
nSmartTagIdx
)
{}
};
};
/** Clears m_
a
SmartTagTypesLB
/** Clears m_
p
SmartTagTypesLB
*/
*/
void
OfaSmartTagOptionsTabPage
::
ClearListBox
()
void
OfaSmartTagOptionsTabPage
::
ClearListBox
()
{
{
const
sal_uLong
nCount
=
m_
aSmartTagTypesLB
.
GetEntryCount
();
const
sal_uLong
nCount
=
m_
pSmartTagTypesLB
->
GetEntryCount
();
for
(
sal_uLong
i
=
0
;
i
<
nCount
;
++
i
)
for
(
sal_uLong
i
=
0
;
i
<
nCount
;
++
i
)
{
{
const
SvTreeListEntry
*
pEntry
=
m_
aSmartTagTypesLB
.
GetEntry
(
i
);
const
SvTreeListEntry
*
pEntry
=
m_
pSmartTagTypesLB
->
GetEntry
(
i
);
const
ImplSmartTagLBUserData
*
pUserData
=
static_cast
<
ImplSmartTagLBUserData
*
>
(
pEntry
->
GetUserData
());
const
ImplSmartTagLBUserData
*
pUserData
=
static_cast
<
ImplSmartTagLBUserData
*
>
(
pEntry
->
GetUserData
());
delete
pUserData
;
delete
pUserData
;
}
}
m_
aSmartTagTypesLB
.
Clear
();
m_
pSmartTagTypesLB
->
Clear
();
}
}
/** Inserts items into m_
a
SmartTagTypesLB
/** Inserts items into m_
p
SmartTagTypesLB
*/
*/
void
OfaSmartTagOptionsTabPage
::
FillListBox
(
const
SmartTagMgr
&
rSmartTagMgr
)
void
OfaSmartTagOptionsTabPage
::
FillListBox
(
const
SmartTagMgr
&
rSmartTagMgr
)
{
{
...
@@ -2447,11 +2448,11 @@ void OfaSmartTagOptionsTabPage::FillListBox( const SmartTagMgr& rSmartTagMgr )
...
@@ -2447,11 +2448,11 @@ void OfaSmartTagOptionsTabPage::FillListBox( const SmartTagMgr& rSmartTagMgr )
aName
+
aName
+
OUString
(
")"
);
OUString
(
")"
);
SvTreeListEntry
*
pEntry
=
m_
aSmartTagTypesLB
.
SvTreeListBox
::
InsertEntry
(
aLBEntry
);
SvTreeListEntry
*
pEntry
=
m_
pSmartTagTypesLB
->
SvTreeListBox
::
InsertEntry
(
aLBEntry
);
if
(
pEntry
)
if
(
pEntry
)
{
{
const
bool
bCheck
=
rSmartTagMgr
.
IsSmartTagTypeEnabled
(
aSmartTagType
);
const
bool
bCheck
=
rSmartTagMgr
.
IsSmartTagTypeEnabled
(
aSmartTagType
);
m_
aSmartTagTypesLB
.
SetCheckButtonState
(
pEntry
,
bCheck
?
SV_BUTTON_CHECKED
:
SV_BUTTON_UNCHECKED
);
m_
pSmartTagTypesLB
->
SetCheckButtonState
(
pEntry
,
bCheck
?
SV_BUTTON_CHECKED
:
SV_BUTTON_UNCHECKED
);
pEntry
->
SetUserData
(
static_cast
<
void
*>
(
new
ImplSmartTagLBUserData
(
aSmartTagType
,
xRec
,
j
)
)
);
pEntry
->
SetUserData
(
static_cast
<
void
*>
(
new
ImplSmartTagLBUserData
(
aSmartTagType
,
xRec
,
j
)
)
);
}
}
}
}
...
@@ -2462,8 +2463,8 @@ void OfaSmartTagOptionsTabPage::FillListBox( const SmartTagMgr& rSmartTagMgr )
...
@@ -2462,8 +2463,8 @@ void OfaSmartTagOptionsTabPage::FillListBox( const SmartTagMgr& rSmartTagMgr )
*/
*/
IMPL_LINK_NOARG
(
OfaSmartTagOptionsTabPage
,
ClickHdl
)
IMPL_LINK_NOARG
(
OfaSmartTagOptionsTabPage
,
ClickHdl
)
{
{
const
sal_uLong
nPos
=
m_
aSmartTagTypesLB
.
GetSelectEntryPos
();
const
sal_uLong
nPos
=
m_
pSmartTagTypesLB
->
GetSelectEntryPos
();
const
SvTreeListEntry
*
pEntry
=
m_
aSmartTagTypesLB
.
GetEntry
(
nPos
);
const
SvTreeListEntry
*
pEntry
=
m_
pSmartTagTypesLB
->
GetEntry
(
nPos
);
const
ImplSmartTagLBUserData
*
pUserData
=
static_cast
<
ImplSmartTagLBUserData
*
>
(
pEntry
->
GetUserData
());
const
ImplSmartTagLBUserData
*
pUserData
=
static_cast
<
ImplSmartTagLBUserData
*
>
(
pEntry
->
GetUserData
());
uno
::
Reference
<
smarttags
::
XSmartTagRecognizer
>
xRec
=
pUserData
->
mxRec
;
uno
::
Reference
<
smarttags
::
XSmartTagRecognizer
>
xRec
=
pUserData
->
mxRec
;
const
sal_Int32
nSmartTagIdx
=
pUserData
->
mnSmartTagIdx
;
const
sal_Int32
nSmartTagIdx
=
pUserData
->
mnSmartTagIdx
;
...
@@ -2479,17 +2480,17 @@ IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, ClickHdl)
...
@@ -2479,17 +2480,17 @@ IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, ClickHdl)
*/
*/
IMPL_LINK_NOARG
(
OfaSmartTagOptionsTabPage
,
CheckHdl
)
IMPL_LINK_NOARG
(
OfaSmartTagOptionsTabPage
,
CheckHdl
)
{
{
const
sal_Bool
bEnable
=
m_
aMainCB
.
IsChecked
();
const
sal_Bool
bEnable
=
m_
pMainCB
->
IsChecked
();
m_
aSmartTagTypesLB
.
Enable
(
bEnable
);
m_
pSmartTagTypesLB
->
Enable
(
bEnable
);
m_
aSmartTagTypesLB
.
Invalidate
();
m_
pSmartTagTypesLB
->
Invalidate
();
m_
aPropertiesPB
.
Enable
(
false
);
m_
pPropertiesPB
->
Enable
(
false
);
// if the controls are currently enabled, we still have to check
// if the controls are currently enabled, we still have to check
// if the properties button should be disabled because the currently
// if the properties button should be disabled because the currently
// seleted smart tag type does not have a properties dialog.
// seleted smart tag type does not have a properties dialog.
// We do this by calling SelectHdl:
// We do this by calling SelectHdl:
if
(
bEnable
)
if
(
bEnable
)
SelectHdl
(
&
m_aSmartTagTypesLB
);
SelectHdl
(
m_pSmartTagTypesLB
);
return
0
;
return
0
;
}
}
...
@@ -2498,20 +2499,20 @@ IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, CheckHdl)
...
@@ -2498,20 +2499,20 @@ IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, CheckHdl)
*/
*/
IMPL_LINK_NOARG
(
OfaSmartTagOptionsTabPage
,
SelectHdl
)
IMPL_LINK_NOARG
(
OfaSmartTagOptionsTabPage
,
SelectHdl
)
{
{
if
(
m_
aSmartTagTypesLB
.
GetEntryCount
()
<
1
)
if
(
m_
pSmartTagTypesLB
->
GetEntryCount
()
<
1
)
return
0
;
return
0
;
const
sal_uLong
nPos
=
m_
aSmartTagTypesLB
.
GetSelectEntryPos
();
const
sal_uLong
nPos
=
m_
pSmartTagTypesLB
->
GetSelectEntryPos
();
const
SvTreeListEntry
*
pEntry
=
m_
aSmartTagTypesLB
.
GetEntry
(
nPos
);
const
SvTreeListEntry
*
pEntry
=
m_
pSmartTagTypesLB
->
GetEntry
(
nPos
);
const
ImplSmartTagLBUserData
*
pUserData
=
static_cast
<
ImplSmartTagLBUserData
*
>
(
pEntry
->
GetUserData
());
const
ImplSmartTagLBUserData
*
pUserData
=
static_cast
<
ImplSmartTagLBUserData
*
>
(
pEntry
->
GetUserData
());
uno
::
Reference
<
smarttags
::
XSmartTagRecognizer
>
xRec
=
pUserData
->
mxRec
;
uno
::
Reference
<
smarttags
::
XSmartTagRecognizer
>
xRec
=
pUserData
->
mxRec
;
const
sal_Int32
nSmartTagIdx
=
pUserData
->
mnSmartTagIdx
;
const
sal_Int32
nSmartTagIdx
=
pUserData
->
mnSmartTagIdx
;
const
lang
::
Locale
aLocale
(
LanguageTag
::
convertToLocale
(
eLastDialogLanguage
)
);
const
lang
::
Locale
aLocale
(
LanguageTag
::
convertToLocale
(
eLastDialogLanguage
)
);
if
(
xRec
->
hasPropertyPage
(
nSmartTagIdx
,
aLocale
)
)
if
(
xRec
->
hasPropertyPage
(
nSmartTagIdx
,
aLocale
)
)
m_
aPropertiesPB
.
Enable
(
true
);
m_
pPropertiesPB
->
Enable
(
true
);
else
else
m_
aPropertiesPB
.
Enable
(
false
);
m_
pPropertiesPB
->
Enable
(
false
);
return
0
;
return
0
;
}
}
...
@@ -2531,13 +2532,13 @@ bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& )
...
@@ -2531,13 +2532,13 @@ bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& )
sal_Bool
bModifiedSmartTagTypes
=
sal_False
;
sal_Bool
bModifiedSmartTagTypes
=
sal_False
;
std
::
vector
<
OUString
>
aDisabledSmartTagTypes
;
std
::
vector
<
OUString
>
aDisabledSmartTagTypes
;
const
sal_uLong
nCount
=
m_
aSmartTagTypesLB
.
GetEntryCount
();
const
sal_uLong
nCount
=
m_
pSmartTagTypesLB
->
GetEntryCount
();
for
(
sal_uLong
i
=
0
;
i
<
nCount
;
++
i
)
for
(
sal_uLong
i
=
0
;
i
<
nCount
;
++
i
)
{
{
const
SvTreeListEntry
*
pEntry
=
m_
aSmartTagTypesLB
.
GetEntry
(
i
);
const
SvTreeListEntry
*
pEntry
=
m_
pSmartTagTypesLB
->
GetEntry
(
i
);
const
ImplSmartTagLBUserData
*
pUserData
=
static_cast
<
ImplSmartTagLBUserData
*
>
(
pEntry
->
GetUserData
());
const
ImplSmartTagLBUserData
*
pUserData
=
static_cast
<
ImplSmartTagLBUserData
*
>
(
pEntry
->
GetUserData
());
const
sal_Bool
bChecked
=
m_
aSmartTagTypesLB
.
IsChecked
(
i
);
const
sal_Bool
bChecked
=
m_
pSmartTagTypesLB
->
IsChecked
(
i
);
const
sal_Bool
bIsCurrentlyEnabled
=
pSmartTagMgr
->
IsSmartTagTypeEnabled
(
pUserData
->
maSmartTagType
);
const
sal_Bool
bIsCurrentlyEnabled
=
pSmartTagMgr
->
IsSmartTagTypeEnabled
(
pUserData
->
maSmartTagType
);
bModifiedSmartTagTypes
=
bModifiedSmartTagTypes
||
(
!
bChecked
!=
!
bIsCurrentlyEnabled
);
bModifiedSmartTagTypes
=
bModifiedSmartTagTypes
||
(
!
bChecked
!=
!
bIsCurrentlyEnabled
);
...
@@ -2548,10 +2549,10 @@ bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& )
...
@@ -2548,10 +2549,10 @@ bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& )
delete
pUserData
;
delete
pUserData
;
}
}
const
sal_Bool
bModifiedRecognize
=
(
!
m_
aMainCB
.
IsChecked
()
!=
!
pSmartTagMgr
->
IsLabelTextWithSmartTags
()
);
const
sal_Bool
bModifiedRecognize
=
(
!
m_
pMainCB
->
IsChecked
()
!=
!
pSmartTagMgr
->
IsLabelTextWithSmartTags
()
);
if
(
bModifiedSmartTagTypes
||
bModifiedRecognize
)
if
(
bModifiedSmartTagTypes
||
bModifiedRecognize
)
{
{
bool
bLabelTextWithSmartTags
=
m_
aMainCB
.
IsChecked
()
?
true
:
false
;
bool
bLabelTextWithSmartTags
=
m_
pMainCB
->
IsChecked
()
?
true
:
false
;
pSmartTagMgr
->
WriteConfiguration
(
bModifiedRecognize
?
&
bLabelTextWithSmartTags
:
0
,
pSmartTagMgr
->
WriteConfiguration
(
bModifiedRecognize
?
&
bLabelTextWithSmartTags
:
0
,
bModifiedSmartTagTypes
?
&
aDisabledSmartTagTypes
:
0
);
bModifiedSmartTagTypes
?
&
aDisabledSmartTagTypes
:
0
);
}
}
...
@@ -2572,9 +2573,9 @@ void OfaSmartTagOptionsTabPage::Reset( const SfxItemSet& )
...
@@ -2572,9 +2573,9 @@ void OfaSmartTagOptionsTabPage::Reset( const SfxItemSet& )
return
;
return
;
FillListBox
(
*
pSmartTagMgr
);
FillListBox
(
*
pSmartTagMgr
);
m_
aSmartTagTypesLB
.
SelectEntryPos
(
0
);
m_
pSmartTagTypesLB
->
SelectEntryPos
(
0
);
m_
aMainCB
.
Check
(
pSmartTagMgr
->
IsLabelTextWithSmartTags
()
);
m_
pMainCB
->
Check
(
pSmartTagMgr
->
IsLabelTextWithSmartTags
()
);
CheckHdl
(
&
m_aMainCB
);
CheckHdl
(
m_pMainCB
);
}
}
void
OfaSmartTagOptionsTabPage
::
ActivatePage
(
const
SfxItemSet
&
)
void
OfaSmartTagOptionsTabPage
::
ActivatePage
(
const
SfxItemSet
&
)
...
...
cui/source/tabpages/autocdlg.hrc
deleted
100644 → 0
Dosyayı görüntüle @
a1f6d9d5
/* -*- 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 .
*/
#ifndef _SVX_AUTOCDLG_HRC
#define _SVX_AUTOCDLG_HRC
#include <cuires.hrc>
// defines ------------------------------------------------------------------
#define ED_RIGHT_MARGIN 100
#define BT_OK 101
#define BT_CANCEL 102
#define CB_ACTIV 121
#define CB_COLLECT 122
#define CB_APPEND_SPACE 123
#define CB_REMOVE_LIST 124
#define CB_AS_TIP 125
#define FT_MIN_WORDLEN 126
#define FT_MAX_ENTRIES 127
#define NF_MIN_WORDLEN 128
#define NF_MAX_ENTRIES 129
#define FT_EXPAND_KEY 130
#define DCB_EXPAND_KEY 131
#define LB_ENTRIES 132
#define PB_ENTRIES 133
#define FT_LANG 209
#define LB_LANG 210
#define CB_SMARTTAGS 220
#define FT_SMARTTAGS 221
#define LB_SMARTTAGS 222
#define PB_SMARTTAGS 223
#define STR_PB_NEWABBREV 224
#define STR_PB_DELABBREV 225
#define STR_PB_NEWDOUBLECAPS 226
#define STR_PB_DELDOUBLECAPS 227
#define STR_PB_SGL_STD 228
#define STR_PB_DBL_STD 229
#define STR_PB_SGL_START 230
#define STR_PB_DBL_START 231
#define STR_PB_SGL_END 232
#define STR_PB_DBL_END 233
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/tabpages/autocdlg.src
deleted
100644 → 0
Dosyayı görüntüle @
a1f6d9d5
/* -*- 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 "autocdlg.hrc"
#include <cuires.hrc>
#include "helpid.hrc"
#include <svx/svxids.hrc>
/**************************************************************************/
/* */
/* Beschreibung: Smart Tag Options */
/* */
/**************************************************************************/
TabPage RID_OFAPAGE_SMARTTAG_OPTIONS
{
HelpId = HID_OFAPAGE_SMARTTAG_OPTIONS ;
OutputSize = TRUE ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
SVLook = TRUE ;
Hide = TRUE ;
Text [ en-US ] = "Smart Tags";
CheckBox CB_SMARTTAGS
{
HelpID = "cui:CheckBox:RID_OFAPAGE_SMARTTAG_OPTIONS:CB_SMARTTAGS";
Pos = MAP_APPFONT( 4, 3 );
Size = MAP_APPFONT( 116, 10 );
Text [ en-US ] = "Label text with smart tags";
};
FixedText FT_SMARTTAGS
{
Pos = MAP_APPFONT( 12, 15 );
Size = MAP_APPFONT( 116, 8 );
Text [ en-US ] = "Currently installed smart tags";
};
Control LB_SMARTTAGS
{
Pos = MAP_APPFONT ( 12 , 25 ) ;
Size = MAP_APPFONT ( 172 , 154 ) ;
Border = TRUE ;
TabStop = TRUE ;
};
PushButton PB_SMARTTAGS
{
HelpID = "cui:PushButton:RID_OFAPAGE_SMARTTAG_OPTIONS:PB_SMARTTAGS";
Pos = MAP_APPFONT ( 188 , 25 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
Text [ en-US ] = "Properties...";
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/uiconfig/ui/smarttagoptionspage.ui
0 → 100644
Dosyayı görüntüle @
d25b1bf2
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires
lib=
"gtk+"
version=
"3.0"
/>
<!-- interface-requires LibreOffice 1.0 -->
<object
class=
"GtkGrid"
id=
"SmartTagOptionsPage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"row_spacing"
>
12
</property>
<property
name=
"column_spacing"
>
6
</property>
<child>
<object
class=
"GtkGrid"
id=
"grid1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"row_spacing"
>
6
</property>
<child>
<object
class=
"GtkCheckButton"
id=
"main"
>
<property
name=
"label"
translatable=
"yes"
>
Label text with smart tags
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"draw_indicator"
>
True
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkFrame"
id=
"frame1"
>
<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=
"GtkGrid"
id=
"grid2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"column_spacing"
>
12
</property>
<child>
<object
class=
"GtkButton"
id=
"properties"
>
<property
name=
"label"
translatable=
"yes"
>
Properties...
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"valign"
>
start
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"svxcorelo-SvxCheckListBox"
id=
"list:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"Check List Box-selection1"
/>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Currently installed smart tags
</property>
<attributes>
<attribute
name=
"weight"
value=
"bold"
/>
</attributes>
</object>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</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