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
7e2742b0
Kaydet (Commit)
7e2742b0
authored
Agu 21, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert field dialog to .ui
Change-Id: I0f956d365242447f39752d544a020cbc77d6ac4c
üst
e743617e
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
265 additions
and
210 deletions
+265
-210
tabdlg.cxx
sfx2/source/dialog/tabdlg.cxx
+4
-2
AllLangResTarget_sw.mk
sw/AllLangResTarget_sw.mk
+0
-1
UIConfig_swriter.mk
sw/UIConfig_swriter.mk
+1
-0
fldui.hrc
sw/inc/fldui.hrc
+0
-1
globals.hrc
sw/inc/globals.hrc
+0
-7
helpid.h
sw/inc/helpid.h
+0
-3
swabstdlg.hxx
sw/inc/swabstdlg.hxx
+2
-2
swdlgfact.cxx
sw/source/ui/dialog/swdlgfact.cxx
+5
-17
swdlgfact.hxx
sw/source/ui/dialog/swdlgfact.hxx
+2
-2
flddb.cxx
sw/source/ui/fldui/flddb.cxx
+0
-1
flddinf.cxx
sw/source/ui/fldui/flddinf.cxx
+0
-1
flddok.cxx
sw/source/ui/fldui/flddok.cxx
+0
-1
fldfunc.cxx
sw/source/ui/fldui/fldfunc.cxx
+0
-1
fldpage.hxx
sw/source/ui/fldui/fldpage.hxx
+2
-0
fldref.cxx
sw/source/ui/fldui/fldref.cxx
+0
-1
fldtdlg.cxx
sw/source/ui/fldui/fldtdlg.cxx
+44
-45
fldtdlg.hrc
sw/source/ui/fldui/fldtdlg.hrc
+0
-30
fldtdlg.src
sw/source/ui/fldui/fldtdlg.src
+0
-84
fldvar.cxx
sw/source/ui/fldui/fldvar.cxx
+0
-1
fldwrap.cxx
sw/source/ui/fldui/fldwrap.cxx
+4
-5
fldtdlg.hxx
sw/source/ui/inc/fldtdlg.hxx
+10
-3
fldwrap.hxx
sw/source/ui/inc/fldwrap.hxx
+1
-1
textfld.cxx
sw/source/ui/shells/textfld.cxx
+1
-1
fielddialog.ui
sw/uiconfig/swriter/ui/fielddialog.ui
+189
-0
No files found.
sfx2/source/dialog/tabdlg.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -564,6 +564,8 @@ void SfxTabDialog::Init_Impl( sal_Bool bFmtFlag, const String* pUserButtonText,
...
@@ -564,6 +564,8 @@ void SfxTabDialog::Init_Impl( sal_Bool bFmtFlag, const String* pUserButtonText,
m_pTabCtrl
->
set_expand
(
true
);
m_pTabCtrl
->
set_expand
(
true
);
}
}
pImpl
=
new
TabDlg_Impl
(
m_pTabCtrl
->
GetPageCount
());
m_pActionArea
=
get_action_area
();
m_pActionArea
=
get_action_area
();
m_bOwnsActionArea
=
m_pActionArea
==
NULL
;
m_bOwnsActionArea
=
m_pActionArea
==
NULL
;
if
(
m_bOwnsActionArea
)
if
(
m_bOwnsActionArea
)
...
@@ -601,14 +603,14 @@ void SfxTabDialog::Init_Impl( sal_Bool bFmtFlag, const String* pUserButtonText,
...
@@ -601,14 +603,14 @@ void SfxTabDialog::Init_Impl( sal_Bool bFmtFlag, const String* pUserButtonText,
m_bOwnsResetBtn
=
m_pResetBtn
==
NULL
;
m_bOwnsResetBtn
=
m_pResetBtn
==
NULL
;
if
(
m_bOwnsResetBtn
)
if
(
m_bOwnsResetBtn
)
m_pResetBtn
=
new
PushButton
(
m_pActionArea
);
m_pResetBtn
=
new
PushButton
(
m_pActionArea
);
else
pImpl
->
bHideResetBtn
=
!
m_pResetBtn
->
IsVisible
();
m_pBaseFmtBtn
=
m_pUIBuilder
?
m_pUIBuilder
->
get
<
PushButton
>
(
"standard"
)
:
NULL
;
m_pBaseFmtBtn
=
m_pUIBuilder
?
m_pUIBuilder
->
get
<
PushButton
>
(
"standard"
)
:
NULL
;
m_bOwnsBaseFmtBtn
=
m_pBaseFmtBtn
==
NULL
;
m_bOwnsBaseFmtBtn
=
m_pBaseFmtBtn
==
NULL
;
if
(
m_bOwnsBaseFmtBtn
)
if
(
m_bOwnsBaseFmtBtn
)
m_pBaseFmtBtn
=
new
PushButton
(
m_pActionArea
);
m_pBaseFmtBtn
=
new
PushButton
(
m_pActionArea
);
pImpl
=
new
TabDlg_Impl
(
m_pTabCtrl
->
GetPageCount
());
m_pOKBtn
->
SetClickHdl
(
LINK
(
this
,
SfxTabDialog
,
OkHdl
)
);
m_pOKBtn
->
SetClickHdl
(
LINK
(
this
,
SfxTabDialog
,
OkHdl
)
);
m_pCancelBtn
->
SetClickHdl
(
LINK
(
this
,
SfxTabDialog
,
CancelHdl
)
);
m_pCancelBtn
->
SetClickHdl
(
LINK
(
this
,
SfxTabDialog
,
CancelHdl
)
);
m_pResetBtn
->
SetClickHdl
(
LINK
(
this
,
SfxTabDialog
,
ResetHdl
)
);
m_pResetBtn
->
SetClickHdl
(
LINK
(
this
,
SfxTabDialog
,
ResetHdl
)
);
...
...
sw/AllLangResTarget_sw.mk
Dosyayı görüntüle @
7e2742b0
...
@@ -101,7 +101,6 @@ $(eval $(call gb_SrsTarget_add_files,sw/res,\
...
@@ -101,7 +101,6 @@ $(eval $(call gb_SrsTarget_add_files,sw/res,\
sw/source/ui/envelp/label.src \
sw/source/ui/envelp/label.src \
sw/source/ui/envelp/labfmt.src \
sw/source/ui/envelp/labfmt.src \
sw/source/ui/envelp/mailmrge.src \
sw/source/ui/envelp/mailmrge.src \
sw/source/ui/fldui/fldtdlg.src \
sw/source/ui/fldui/fldui.src \
sw/source/ui/fldui/fldui.src \
sw/source/ui/frmdlg/frmpage.src \
sw/source/ui/frmdlg/frmpage.src \
sw/source/ui/frmdlg/frmui.src \
sw/source/ui/frmdlg/frmui.src \
...
...
sw/UIConfig_swriter.mk
Dosyayı görüntüle @
7e2742b0
...
@@ -91,6 +91,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
...
@@ -91,6 +91,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/envformatpage \
sw/uiconfig/swriter/ui/envformatpage \
sw/uiconfig/swriter/ui/envprinterpage \
sw/uiconfig/swriter/ui/envprinterpage \
sw/uiconfig/swriter/ui/exchangedatabases \
sw/uiconfig/swriter/ui/exchangedatabases \
sw/uiconfig/swriter/ui/fielddialog \
sw/uiconfig/swriter/ui/flddbpage \
sw/uiconfig/swriter/ui/flddbpage \
sw/uiconfig/swriter/ui/flddocinfopage \
sw/uiconfig/swriter/ui/flddocinfopage \
sw/uiconfig/swriter/ui/flddocumentpage \
sw/uiconfig/swriter/ui/flddocumentpage \
...
...
sw/inc/fldui.hrc
Dosyayı görüntüle @
7e2742b0
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "rcid.hrc"
#include "rcid.hrc"
#define DLG_FLD_INSERT (RC_FLDDLG_BEGIN + 11)
#define DLG_FLD_DROPDOWN (RC_FLDDLG_BEGIN + 12)
#define DLG_FLD_DROPDOWN (RC_FLDDLG_BEGIN + 12)
/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
...
...
sw/inc/globals.hrc
Dosyayı görüntüle @
7e2742b0
...
@@ -135,13 +135,6 @@
...
@@ -135,13 +135,6 @@
#define TP_NUMBER (RC_GLOBALS_BEGIN + 57)
#define TP_NUMBER (RC_GLOBALS_BEGIN + 57)
#define TP_FLD_DB (RC_GLOBALS_BEGIN + 64)
#define TP_FLD_DOKINF (RC_GLOBALS_BEGIN + 65)
#define TP_FLD_VAR (RC_GLOBALS_BEGIN + 66)
#define TP_FLD_DOK (RC_GLOBALS_BEGIN + 67)
#define TP_FLD_FUNC (RC_GLOBALS_BEGIN + 68)
#define TP_FLD_REF (RC_GLOBALS_BEGIN + 69)
#define TP_OPTSHDWCRSR (RC_GLOBALS_BEGIN + 70)
#define TP_OPTSHDWCRSR (RC_GLOBALS_BEGIN + 70)
...
...
sw/inc/helpid.h
Dosyayı görüntüle @
7e2742b0
...
@@ -309,9 +309,6 @@
...
@@ -309,9 +309,6 @@
#define HID_CALC_TOOLBOX "SW_HID_CALC_TOOLBOX"
#define HID_CALC_TOOLBOX "SW_HID_CALC_TOOLBOX"
#define HID_PVIEW_TOOLBOX "SW_HID_PVIEW_TOOLBOX"
#define HID_PVIEW_TOOLBOX "SW_HID_PVIEW_TOOLBOX"
#define HID_FIELD_INSERT "SW_HID_FIELD_INSERT"
#define HID_FIELD_CLOSE "SW_HID_FIELD_CLOSE"
#define HID_COND_COLL_TABLIST "SW_HID_COND_COLL_TABLIST"
#define HID_COND_COLL_TABLIST "SW_HID_COND_COLL_TABLIST"
#define HID_SELECT_TEMPLATE "SW_HID_SELECT_TEMPLATE"
#define HID_SELECT_TEMPLATE "SW_HID_SELECT_TEMPLATE"
...
...
sw/inc/swabstdlg.hxx
Dosyayı görüntüle @
7e2742b0
...
@@ -272,7 +272,7 @@ public:
...
@@ -272,7 +272,7 @@ public:
virtual
void
Initialize
(
SfxChildWinInfo
*
pInfo
)
=
0
;
virtual
void
Initialize
(
SfxChildWinInfo
*
pInfo
)
=
0
;
virtual
void
ReInitDlg
()
=
0
;
virtual
void
ReInitDlg
()
=
0
;
virtual
void
ActivateDatabasePage
()
=
0
;
virtual
void
ActivateDatabasePage
()
=
0
;
virtual
void
Show
Page
(
sal_uInt16
nId
)
=
0
;
// this method from SfxTabDialog
virtual
void
Show
ReferencePage
()
=
0
;
virtual
Window
*
GetWindow
()
=
0
;
//this method is added for return a Window type pointer
virtual
Window
*
GetWindow
()
=
0
;
//this method is added for return a Window type pointer
};
};
...
@@ -383,7 +383,7 @@ public:
...
@@ -383,7 +383,7 @@ public:
virtual
SfxAbstractTabDialog
*
CreateSwTableTabDlg
(
Window
*
pParent
,
SfxItemPool
&
Pool
,
virtual
SfxAbstractTabDialog
*
CreateSwTableTabDlg
(
Window
*
pParent
,
SfxItemPool
&
Pool
,
const
SfxItemSet
*
pItemSet
,
SwWrtShell
*
pSh
)
=
0
;
//add for SwTableTabDlg
const
SfxItemSet
*
pItemSet
,
SwWrtShell
*
pSh
)
=
0
;
//add for SwTableTabDlg
virtual
AbstractSwFldDlg
*
CreateSwFldDlg
(
SfxBindings
*
pB
,
SwChildWinWrapper
*
pCW
,
Window
*
pParent
,
int
nResId
)
=
0
;
//add for SwFldDlg
virtual
AbstractSwFldDlg
*
CreateSwFldDlg
(
SfxBindings
*
pB
,
SwChildWinWrapper
*
pCW
,
Window
*
pParent
)
=
0
;
//add for SwFldDlg
virtual
SfxAbstractDialog
*
CreateSwFldEditDlg
(
SwView
&
rVw
,
int
nResId
)
=
0
;
//add for SwFldEditDlg
virtual
SfxAbstractDialog
*
CreateSwFldEditDlg
(
SwView
&
rVw
,
int
nResId
)
=
0
;
//add for SwFldEditDlg
virtual
AbstractSwRenameXNamedDlg
*
CreateSwRenameXNamedDlg
(
Window
*
pParent
,
//add for SwRenameXNamedDlg
virtual
AbstractSwRenameXNamedDlg
*
CreateSwRenameXNamedDlg
(
Window
*
pParent
,
//add for SwRenameXNamedDlg
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNamed
>
&
xNamed
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNamed
>
&
xNamed
,
...
...
sw/source/ui/dialog/swdlgfact.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -371,9 +371,9 @@ Window* AbstractSwFldDlg_Impl::GetWindow()
...
@@ -371,9 +371,9 @@ Window* AbstractSwFldDlg_Impl::GetWindow()
{
{
return
(
Window
*
)
pDlg
;
return
(
Window
*
)
pDlg
;
}
}
void
AbstractSwFldDlg_Impl
::
ShowPage
(
sal_uInt16
nId
)
void
AbstractSwFldDlg_Impl
::
ShowReferencePage
(
)
{
{
pDlg
->
Show
Page
(
nId
);
pDlg
->
Show
ReferencePage
(
);
}
}
void
AbstractSwRenameXNamedDlg_Impl
::
SetForbiddenChars
(
const
String
&
rSet
)
void
AbstractSwRenameXNamedDlg_Impl
::
SetForbiddenChars
(
const
String
&
rSet
)
...
@@ -876,22 +876,10 @@ SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTableTabDlg(Window*
...
@@ -876,22 +876,10 @@ SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTableTabDlg(Window*
return
new
AbstractTabDialog_Impl
(
pDlg
);
return
new
AbstractTabDialog_Impl
(
pDlg
);
}
}
AbstractSwFldDlg
*
SwAbstractDialogFactory_Impl
::
CreateSwFldDlg
(
SfxBindings
*
pB
,
SwChildWinWrapper
*
pCW
,
Window
*
pParent
,
int
nResId
)
AbstractSwFldDlg
*
SwAbstractDialogFactory_Impl
::
CreateSwFldDlg
(
SfxBindings
*
pB
,
SwChildWinWrapper
*
pCW
,
Window
*
pParent
)
{
{
SwFldDlg
*
pDlg
=
NULL
;
SwFldDlg
*
pDlg
=
new
SwFldDlg
(
pB
,
pCW
,
pParent
);
switch
(
nResId
)
return
new
AbstractSwFldDlg_Impl
(
pDlg
);
{
case
DLG_FLD_INSERT
:
pDlg
=
new
SwFldDlg
(
pB
,
pCW
,
pParent
);
break
;
default
:
break
;
}
if
(
pDlg
)
return
new
AbstractSwFldDlg_Impl
(
pDlg
);
return
0
;
}
}
SfxAbstractDialog
*
SwAbstractDialogFactory_Impl
::
CreateSwFldEditDlg
(
SwView
&
rVw
,
int
nResId
)
SfxAbstractDialog
*
SwAbstractDialogFactory_Impl
::
CreateSwFldEditDlg
(
SwView
&
rVw
,
int
nResId
)
...
...
sw/source/ui/dialog/swdlgfact.hxx
Dosyayı görüntüle @
7e2742b0
...
@@ -234,7 +234,7 @@ class AbstractSwFldDlg_Impl : public AbstractSwFldDlg //add for SwFldDlg
...
@@ -234,7 +234,7 @@ class AbstractSwFldDlg_Impl : public AbstractSwFldDlg //add for SwFldDlg
virtual
void
SetText
(
const
OUString
&
rStr
);
virtual
void
SetText
(
const
OUString
&
rStr
);
virtual
OUString
GetText
()
const
;
virtual
OUString
GetText
()
const
;
virtual
void
Start
(
sal_Bool
bShow
=
sal_True
);
//this method from SfxTabDialog
virtual
void
Start
(
sal_Bool
bShow
=
sal_True
);
//this method from SfxTabDialog
virtual
void
Show
Page
(
sal_uInt16
nId
);
// this method from SfxTabDialog
virtual
void
Show
ReferencePage
();
virtual
void
Initialize
(
SfxChildWinInfo
*
pInfo
);
virtual
void
Initialize
(
SfxChildWinInfo
*
pInfo
);
virtual
void
ReInitDlg
();
virtual
void
ReInitDlg
();
virtual
void
ActivateDatabasePage
();
virtual
void
ActivateDatabasePage
();
...
@@ -482,7 +482,7 @@ public:
...
@@ -482,7 +482,7 @@ public:
virtual
VclAbstractDialog
*
CreateSwTableWidthDlg
(
Window
*
pParent
,
SwTableFUNC
&
rFnc
);
virtual
VclAbstractDialog
*
CreateSwTableWidthDlg
(
Window
*
pParent
,
SwTableFUNC
&
rFnc
);
virtual
SfxAbstractTabDialog
*
CreateSwTableTabDlg
(
Window
*
pParent
,
SfxItemPool
&
Pool
,
virtual
SfxAbstractTabDialog
*
CreateSwTableTabDlg
(
Window
*
pParent
,
SfxItemPool
&
Pool
,
const
SfxItemSet
*
pItemSet
,
SwWrtShell
*
pSh
);
//add for SwTableTabDlg
const
SfxItemSet
*
pItemSet
,
SwWrtShell
*
pSh
);
//add for SwTableTabDlg
virtual
AbstractSwFldDlg
*
CreateSwFldDlg
(
SfxBindings
*
pB
,
SwChildWinWrapper
*
pCW
,
Window
*
pParent
,
int
nResId
);
//add for SwFldDlg
virtual
AbstractSwFldDlg
*
CreateSwFldDlg
(
SfxBindings
*
pB
,
SwChildWinWrapper
*
pCW
,
Window
*
pParent
);
//add for SwFldDlg
virtual
SfxAbstractDialog
*
CreateSwFldEditDlg
(
SwView
&
rVw
,
int
nResId
);
//add for SwFldEditDlg
virtual
SfxAbstractDialog
*
CreateSwFldEditDlg
(
SwView
&
rVw
,
int
nResId
);
//add for SwFldEditDlg
virtual
AbstractSwRenameXNamedDlg
*
CreateSwRenameXNamedDlg
(
Window
*
pParent
,
//add for SwRenameXNamedDlg
virtual
AbstractSwRenameXNamedDlg
*
CreateSwRenameXNamedDlg
(
Window
*
pParent
,
//add for SwRenameXNamedDlg
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNamed
>
&
xNamed
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNamed
>
&
xNamed
,
...
...
sw/source/ui/fldui/flddb.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#include <fldtdlg.hxx>
#include <fldtdlg.hxx>
#include <numrule.hxx>
#include <numrule.hxx>
#include <fldtdlg.hrc>
#include <fldui.hrc>
#include <fldui.hrc>
#include <flddb.hxx>
#include <flddb.hxx>
#include <dbconfig.hxx>
#include <dbconfig.hxx>
...
...
sw/source/ui/fldui/flddinf.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <fldui.hrc>
#include <fldui.hrc>
#include <fldtdlg.hrc>
#include <flddinf.hxx>
#include <flddinf.hxx>
#include <swmodule.hxx>
#include <swmodule.hxx>
#include <view.hxx>
#include <view.hxx>
...
...
sw/source/ui/fldui/flddok.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include <docufld.hxx>
#include <docufld.hxx>
#include <globals.hrc>
#include <globals.hrc>
#include <chpfld.hxx>
#include <chpfld.hxx>
#include <fldtdlg.hrc>
#include <fldui.hrc>
#include <fldui.hrc>
#include <flddok.hxx>
#include <flddok.hxx>
#include <swmodule.hxx>
#include <swmodule.hxx>
...
...
sw/source/ui/fldui/fldfunc.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <fldfunc.hxx>
#include <fldfunc.hxx>
#include <flddropdown.hxx>
#include <flddropdown.hxx>
#include <fldui.hrc>
#include <fldui.hrc>
#include <fldtdlg.hrc>
#define USER_DATA_VERSION_1 "1"
#define USER_DATA_VERSION_1 "1"
#define USER_DATA_VERSION USER_DATA_VERSION_1
#define USER_DATA_VERSION USER_DATA_VERSION_1
...
...
sw/source/ui/fldui/fldpage.hxx
Dosyayı görüntüle @
7e2742b0
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#include <sfx2/tabdlg.hxx>
#include <sfx2/tabdlg.hxx>
#include <fldmgr.hxx>
#include <fldmgr.hxx>
#define FIELD_COLUMN_WIDTH 76
class
ListBox
;
class
ListBox
;
const
int
coLBCount
=
3
;
const
int
coLBCount
=
3
;
...
...
sw/source/ui/fldui/fldref.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include <wrtsh.hxx>
#include <wrtsh.hxx>
#include <fldui.hrc>
#include <fldui.hrc>
#include <fldtdlg.hrc>
#include <globals.hrc>
#include <globals.hrc>
// #i83479#
// #i83479#
#include <SwNodeNum.hxx>
#include <SwNodeNum.hxx>
...
...
sw/source/ui/fldui/fldtdlg.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -42,7 +42,6 @@
...
@@ -42,7 +42,6 @@
#include <helpid.h>
#include <helpid.h>
#include <fldui.hrc>
#include <fldui.hrc>
#include <globals.hrc>
#include <globals.hrc>
#include <fldtdlg.hrc>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
...
@@ -54,37 +53,32 @@
...
@@ -54,37 +53,32 @@
SwFldDlg
::
SwFldDlg
(
SfxBindings
*
pB
,
SwChildWinWrapper
*
pCW
,
Window
*
pParent
)
SwFldDlg
::
SwFldDlg
(
SfxBindings
*
pB
,
SwChildWinWrapper
*
pCW
,
Window
*
pParent
)
:
SfxTabDialog
(
pParent
,
SW_RES
(
DLG_FLD_INSERT
)),
:
SfxTabDialog
(
pParent
,
"FieldDialog"
,
"modules/swriter/ui/fielddialog.ui"
)
m_pChildWin
(
pCW
),
,
m_pChildWin
(
pCW
)
m_pBindings
(
pB
),
,
m_pBindings
(
pB
)
m_bDataBaseMode
(
sal_False
)
,
m_bDataBaseMode
(
false
)
,
m_nDokId
(
0
)
,
m_nVarId
(
0
)
,
m_nDokInf
(
0
)
,
m_nRefId
(
0
)
,
m_nFuncId
(
0
)
,
m_nDbId
(
0
)
{
{
SetStyle
(
GetStyle
()
|
WB_STDMODELESS
);
SetStyle
(
GetStyle
()
|
WB_STDMODELESS
);
m_bHtmlMode
=
(
::
GetHtmlMode
((
SwDocShell
*
)
SfxObjectShell
::
Current
())
&
HTMLMODE_ON
)
!=
0
;
m_bHtmlMode
=
(
::
GetHtmlMode
((
SwDocShell
*
)
SfxObjectShell
::
Current
())
&
HTMLMODE_ON
)
!=
0
;
RemoveResetButton
();
GetOKButton
().
SetText
(
String
(
SW_RES
(
STR_FLD_INSERT
)));
GetOKButton
().
SetHelpId
(
HID_FIELD_INSERT
);
GetOKButton
().
SetHelpText
(
aEmptyStr
);
// so that generated help text is used
GetCancelButton
().
SetText
(
String
(
SW_RES
(
STR_FLD_CLOSE
)));
GetCancelButton
().
SetHelpId
(
HID_FIELD_CLOSE
);
GetCancelButton
().
SetHelpText
(
aEmptyStr
);
// so that generated help text is used
GetCancelButton
().
SetClickHdl
(
LINK
(
this
,
SwFldDlg
,
CancelHdl
));
GetCancelButton
().
SetClickHdl
(
LINK
(
this
,
SwFldDlg
,
CancelHdl
));
FreeResource
();
GetOKButton
().
SetClickHdl
(
LINK
(
this
,
SwFldDlg
,
OKHdl
));
GetOKButton
().
SetClickHdl
(
LINK
(
this
,
SwFldDlg
,
OKHdl
));
AddTabPage
(
TP_FLD_DOK
,
SwFldDokPage
::
Create
,
0
);
m_nDokId
=
AddTabPage
(
"document"
,
SwFldDokPage
::
Create
,
0
);
AddTabPage
(
TP_FLD_VAR
,
SwFldVarPage
::
Create
,
0
);
m_nVarId
=
AddTabPage
(
"variables"
,
SwFldVarPage
::
Create
,
0
);
AddTabPage
(
TP_FLD_DOKINF
,
SwFldDokInfPage
::
Create
,
0
);
m_nDokInf
=
AddTabPage
(
"docinfo"
,
SwFldDokInfPage
::
Create
,
0
);
if
(
!
m_bHtmlMode
)
if
(
!
m_bHtmlMode
)
{
{
AddTabPage
(
TP_FLD_REF
,
SwFldRefPage
::
Create
,
0
);
m_nRefId
=
AddTabPage
(
"ref"
,
SwFldRefPage
::
Create
,
0
);
AddTabPage
(
TP_FLD_FUNC
,
SwFldFuncPage
::
Create
,
0
);
m_nFuncId
=
AddTabPage
(
"functions"
,
SwFldFuncPage
::
Create
,
0
);
utl
::
OConfigurationTreeRoot
aCfgRoot
utl
::
OConfigurationTreeRoot
aCfgRoot
=
utl
::
OConfigurationTreeRoot
::
createWithComponentContext
(
=
utl
::
OConfigurationTreeRoot
::
createWithComponentContext
(
...
@@ -99,15 +93,15 @@ SwFldDlg::SwFldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent)
...
@@ -99,15 +93,15 @@ SwFldDlg::SwFldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent)
OUString
(
"DatabaseFields"
))
>>=
bDatabaseFields
;
OUString
(
"DatabaseFields"
))
>>=
bDatabaseFields
;
if
(
bDatabaseFields
)
if
(
bDatabaseFields
)
AddTabPage
(
TP_FLD_DB
,
SwFldDBPage
::
Create
,
0
);
m_nDbId
=
AddTabPage
(
"database"
,
SwFldDBPage
::
Create
,
0
);
else
else
RemoveTabPage
(
TP_FLD_DB
);
RemoveTabPage
(
"database"
);
}
}
else
else
{
{
RemoveTabPage
(
TP_FLD_REF
);
RemoveTabPage
(
"ref"
);
RemoveTabPage
(
TP_FLD_FUNC
);
RemoveTabPage
(
"functions"
);
RemoveTabPage
(
TP_FLD_DB
);
RemoveTabPage
(
"database"
);
}
}
}
}
...
@@ -120,7 +114,7 @@ sal_Bool SwFldDlg::Close()
...
@@ -120,7 +114,7 @@ sal_Bool SwFldDlg::Close()
m_pBindings
->
GetDispatcher
()
->
m_pBindings
->
GetDispatcher
()
->
Execute
(
m_bDataBaseMode
?
FN_INSERT_FIELD_DATA_ONLY
:
FN_INSERT_FIELD
,
Execute
(
m_bDataBaseMode
?
FN_INSERT_FIELD_DATA_ONLY
:
FN_INSERT_FIELD
,
SFX_CALLMODE_ASYNCHRON
|
SFX_CALLMODE_RECORD
);
SFX_CALLMODE_ASYNCHRON
|
SFX_CALLMODE_RECORD
);
return
sal_T
rue
;
return
t
rue
;
}
}
void
SwFldDlg
::
Initialize
(
SfxChildWinInfo
*
pInfo
)
void
SwFldDlg
::
Initialize
(
SfxChildWinInfo
*
pInfo
)
...
@@ -171,7 +165,7 @@ void SwFldDlg::Initialize(SfxChildWinInfo *pInfo)
...
@@ -171,7 +165,7 @@ void SwFldDlg::Initialize(SfxChildWinInfo *pInfo)
SfxItemSet
*
SwFldDlg
::
CreateInputItemSet
(
sal_uInt16
nID
)
SfxItemSet
*
SwFldDlg
::
CreateInputItemSet
(
sal_uInt16
nID
)
{
{
if
(
nID
==
TP_FLD_DOKINF
)
if
(
nID
==
m_nDokInf
)
{
{
SwDocShell
*
pDocSh
=
(
SwDocShell
*
)
SfxObjectShell
::
Current
();
SwDocShell
*
pDocSh
=
(
SwDocShell
*
)
SfxObjectShell
::
Current
();
SfxItemSet
*
pISet
=
new
SfxItemSet
(
pDocSh
->
GetPool
(),
SID_DOCINFO
,
SID_DOCINFO
);
SfxItemSet
*
pISet
=
new
SfxItemSet
(
pDocSh
->
GetPool
(),
SID_DOCINFO
,
SID_DOCINFO
);
...
@@ -237,15 +231,15 @@ void SwFldDlg::ReInitDlg()
...
@@ -237,15 +231,15 @@ void SwFldDlg::ReInitDlg()
GetOKButton
().
Enable
(
!
rSh
.
IsReadOnlyAvailable
()
||
GetOKButton
().
Enable
(
!
rSh
.
IsReadOnlyAvailable
()
||
!
rSh
.
HasReadonlySel
()
);
!
rSh
.
HasReadonlySel
()
);
ReInitTabPage
(
TP_FLD_DOK
);
ReInitTabPage
(
m_nDokId
);
ReInitTabPage
(
TP_FLD_VAR
);
ReInitTabPage
(
m_nVarId
);
ReInitTabPage
(
TP_FLD_DOKINF
);
ReInitTabPage
(
m_nDokInf
);
if
(
!
m_bHtmlMode
)
if
(
!
m_bHtmlMode
)
{
{
ReInitTabPage
(
TP_FLD_REF
);
ReInitTabPage
(
m_nRefId
);
ReInitTabPage
(
TP_FLD_FUNC
);
ReInitTabPage
(
m_nFuncId
);
ReInitTabPage
(
TP_FLD_DB
);
ReInitTabPage
(
m_nDbId
);
}
}
m_pChildWin
->
SetOldDocShell
(
pDocSh
);
m_pChildWin
->
SetOldDocShell
(
pDocSh
);
...
@@ -277,12 +271,12 @@ void SwFldDlg::Activate()
...
@@ -277,12 +271,12 @@ void SwFldDlg::Activate()
GetOKButton
().
Enable
(
!
rSh
.
IsReadOnlyAvailable
()
||
GetOKButton
().
Enable
(
!
rSh
.
IsReadOnlyAvailable
()
||
!
rSh
.
HasReadonlySel
()
);
!
rSh
.
HasReadonlySel
()
);
ReInitTabPage
(
TP_FLD_VAR
,
sal_True
);
ReInitTabPage
(
m_nVarId
,
true
);
if
(
!
bHtmlMode
)
if
(
!
bHtmlMode
)
{
{
ReInitTabPage
(
TP_FLD_REF
,
sal_True
);
ReInitTabPage
(
m_nRefId
,
true
);
ReInitTabPage
(
TP_FLD_FUNC
,
sal_True
);
ReInitTabPage
(
m_nFuncId
,
true
);
}
}
}
}
}
}
...
@@ -309,23 +303,28 @@ void SwFldDlg::InsertHdl()
...
@@ -309,23 +303,28 @@ void SwFldDlg::InsertHdl()
void
SwFldDlg
::
ActivateDatabasePage
()
void
SwFldDlg
::
ActivateDatabasePage
()
{
{
m_bDataBaseMode
=
sal_True
;
m_bDataBaseMode
=
sal_True
;
ShowPage
(
TP_FLD_DB
);
ShowPage
(
m_nDbId
);
SfxTabPage
*
pDBPage
=
GetTabPage
(
TP_FLD_DB
);
SfxTabPage
*
pDBPage
=
GetTabPage
(
m_nDbId
);
if
(
pDBPage
)
if
(
pDBPage
)
{
{
((
SwFldDBPage
*
)
pDBPage
)
->
ActivateMailMergeAddress
();
((
SwFldDBPage
*
)
pDBPage
)
->
ActivateMailMergeAddress
();
}
}
//remove all other pages
//remove all other pages
RemoveTabPage
(
TP_FLD_DOK
);
RemoveTabPage
(
"document"
);
RemoveTabPage
(
TP_FLD_VAR
);
RemoveTabPage
(
"variables"
);
RemoveTabPage
(
TP_FLD_DOKINF
);
RemoveTabPage
(
"docinfo"
);
RemoveTabPage
(
TP_FLD_REF
);
RemoveTabPage
(
"ref"
);
RemoveTabPage
(
TP_FLD_FUNC
);
RemoveTabPage
(
"functions"
);
}
void
SwFldDlg
::
ShowReferencePage
()
{
ShowPage
(
m_nRefId
);
}
}
void
SwFldDlg
::
PageCreated
(
sal_uInt16
nId
,
SfxTabPage
&
rPage
)
void
SwFldDlg
::
PageCreated
(
sal_uInt16
nId
,
SfxTabPage
&
rPage
)
{
{
if
(
TP_FLD_DB
==
n
Id
)
if
(
nId
==
m_nDb
Id
)
{
{
SfxDispatcher
*
pDispatch
=
m_pBindings
->
GetDispatcher
();
SfxDispatcher
*
pDispatch
=
m_pBindings
->
GetDispatcher
();
SfxViewFrame
*
pViewFrame
=
pDispatch
?
pDispatch
->
GetFrame
()
:
0
;
SfxViewFrame
*
pViewFrame
=
pDispatch
?
pDispatch
->
GetFrame
()
:
0
;
...
...
sw/source/ui/fldui/fldtdlg.hrc
deleted
100644 → 0
Dosyayı görüntüle @
e743617e
/* -*- 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 _FLDTDLG_HRC
#define _FLDTDLG_HRC
#define FIELD_COLUMN_WIDTH 76
#define STR_FLD_INSERT 1
#define STR_FLD_CLOSE 2
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/ui/fldui/fldtdlg.src
deleted
100644 → 0
Dosyayı görüntüle @
e743617e
/* -*- 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 "globals.hrc"
#include "fldui.hrc"
#include "fldtdlg.hrc"
#include "helpid.h"
TabDialog DLG_FLD_INSERT
{
OutputSize = TRUE ;
SVLook = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
TabControl 1
{
OutputSize = TRUE ;
PageList =
{
PageItem
{
Identifier = TP_FLD_DOK ;
PageResID = TP_FLD_DOK ;
Text [ en-US ] = "Document" ;
};
PageItem
{
Identifier = TP_FLD_REF ;
PageResID = TP_FLD_REF ;
Text [ en-US ] = "Cross-references" ;
};
PageItem
{
Identifier = TP_FLD_FUNC ;
PageResID = TP_FLD_FUNC ;
Text [ en-US ] = "Functions" ;
};
PageItem
{
Identifier = TP_FLD_DOKINF ;
PageResID = TP_FLD_DOKINF ;
Text [ en-US ] = "DocInformation" ;
};
PageItem
{
Identifier = TP_FLD_VAR ;
PageResID = TP_FLD_VAR ;
Text [ en-US ] = "Variables" ;
};
PageItem
{
Identifier = TP_FLD_DB ;
PageResID = TP_FLD_DB ;
Text [ en-US ] = "Database" ;
};
};
};
String STR_FLD_INSERT
{
Text [ en-US ] = "~Insert" ;
};
String STR_FLD_CLOSE
{
Text [ en-US ] = "~Close" ;
};
Text [ en-US ] = "Fields" ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/ui/fldui/fldvar.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <svl/zformat.hxx>
#include <svl/zformat.hxx>
#include <globals.hrc>
#include <globals.hrc>
#include <fldui.hrc>
#include <fldui.hrc>
#include <fldtdlg.hrc>
#define USER_DATA_VERSION_1 "1"
#define USER_DATA_VERSION_1 "1"
#define USER_DATA_VERSION USER_DATA_VERSION_1
#define USER_DATA_VERSION USER_DATA_VERSION_1
...
...
sw/source/ui/fldui/fldwrap.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <helpid.h>
#include <helpid.h>
#include <fldui.hrc>
#include <fldui.hrc>
#include <globals.hrc>
#include <globals.hrc>
#include <fldtdlg.hrc>
#include "swabstdlg.hxx"
#include "swabstdlg.hxx"
SFX_IMPL_CHILDWINDOW_WITHID
(
SwFldDlgWrapper
,
FN_INSERT_FIELD
)
SFX_IMPL_CHILDWINDOW_WITHID
(
SwFldDlgWrapper
,
FN_INSERT_FIELD
)
...
@@ -87,7 +86,7 @@ SwFldDlgWrapper::SwFldDlgWrapper( Window* _pParent, sal_uInt16 nId,
...
@@ -87,7 +86,7 @@ SwFldDlgWrapper::SwFldDlgWrapper( Window* _pParent, sal_uInt16 nId,
SwAbstractDialogFactory
*
pFact
=
SwAbstractDialogFactory
::
Create
();
SwAbstractDialogFactory
*
pFact
=
SwAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"SwAbstractDialogFactory fail!"
);
OSL_ENSURE
(
pFact
,
"SwAbstractDialogFactory fail!"
);
AbstractSwFldDlg
*
pDlg
=
pFact
->
CreateSwFldDlg
(
pB
,
this
,
_pParent
,
DLG_FLD_INSERT
);
AbstractSwFldDlg
*
pDlg
=
pFact
->
CreateSwFldDlg
(
pB
,
this
,
_pParent
);
OSL_ENSURE
(
pDlg
,
"Dialogdiet fail!"
);
OSL_ENSURE
(
pDlg
,
"Dialogdiet fail!"
);
pDlgInterface
=
pDlg
;
pDlgInterface
=
pDlg
;
pWindow
=
pDlg
->
GetWindow
();
pWindow
=
pDlg
->
GetWindow
();
...
@@ -110,9 +109,9 @@ sal_Bool SwFldDlgWrapper::ReInitDlg(SwDocShell *pDocSh)
...
@@ -110,9 +109,9 @@ sal_Bool SwFldDlgWrapper::ReInitDlg(SwDocShell *pDocSh)
return
bRet
;
return
bRet
;
}
}
void
SwFldDlgWrapper
::
Show
Page
(
sal_uInt16
nPage
)
void
SwFldDlgWrapper
::
Show
ReferencePage
(
)
{
{
pDlgInterface
->
Show
Page
(
nPage
?
nPage
:
TP_FLD_REF
);
pDlgInterface
->
Show
ReferencePage
(
);
}
}
SFX_IMPL_CHILDWINDOW
(
SwFldDataOnlyDlgWrapper
,
FN_INSERT_FIELD_DATA_ONLY
)
SFX_IMPL_CHILDWINDOW
(
SwFldDataOnlyDlgWrapper
,
FN_INSERT_FIELD_DATA_ONLY
)
...
@@ -134,7 +133,7 @@ SwFldDataOnlyDlgWrapper::SwFldDataOnlyDlgWrapper( Window* _pParent, sal_uInt16 n
...
@@ -134,7 +133,7 @@ SwFldDataOnlyDlgWrapper::SwFldDataOnlyDlgWrapper( Window* _pParent, sal_uInt16 n
SwAbstractDialogFactory
*
pFact
=
SwAbstractDialogFactory
::
Create
();
SwAbstractDialogFactory
*
pFact
=
SwAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"SwAbstractDialogFactory fail!"
);
OSL_ENSURE
(
pFact
,
"SwAbstractDialogFactory fail!"
);
AbstractSwFldDlg
*
pDlg
=
pFact
->
CreateSwFldDlg
(
pB
,
this
,
_pParent
,
DLG_FLD_INSERT
);
AbstractSwFldDlg
*
pDlg
=
pFact
->
CreateSwFldDlg
(
pB
,
this
,
_pParent
);
OSL_ENSURE
(
pDlg
,
"Dialogdiet fail!"
);
OSL_ENSURE
(
pDlg
,
"Dialogdiet fail!"
);
pDlgInterface
=
pDlg
;
pDlgInterface
=
pDlg
;
...
...
sw/source/ui/inc/fldtdlg.hxx
Dosyayı görüntüle @
7e2742b0
...
@@ -29,10 +29,16 @@ class SwFldDlg: public SfxTabDialog
...
@@ -29,10 +29,16 @@ class SwFldDlg: public SfxTabDialog
{
{
SwChildWinWrapper
*
m_pChildWin
;
SwChildWinWrapper
*
m_pChildWin
;
SfxBindings
*
m_pBindings
;
SfxBindings
*
m_pBindings
;
sal_Bool
m_bHtmlMode
;
sal_Bool
m_bHtmlMode
;
sal_Bool
m_bDataBaseMode
;
sal_Bool
m_bDataBaseMode
;
sal_uInt16
m_nDokId
;
sal_uInt16
m_nVarId
;
sal_uInt16
m_nDokInf
;
sal_uInt16
m_nRefId
;
sal_uInt16
m_nFuncId
;
sal_uInt16
m_nDbId
;
virtual
sal_Bool
Close
();
virtual
sal_Bool
Close
();
virtual
SfxItemSet
*
CreateInputItemSet
(
sal_uInt16
nId
);
virtual
SfxItemSet
*
CreateInputItemSet
(
sal_uInt16
nId
);
virtual
void
Activate
();
virtual
void
Activate
();
virtual
void
PageCreated
(
sal_uInt16
nId
,
SfxTabPage
&
rPage
);
virtual
void
PageCreated
(
sal_uInt16
nId
,
SfxTabPage
&
rPage
);
...
@@ -52,6 +58,7 @@ public:
...
@@ -52,6 +58,7 @@ public:
void
EnableInsert
(
sal_Bool
bEnable
);
void
EnableInsert
(
sal_Bool
bEnable
);
void
InsertHdl
();
void
InsertHdl
();
void
ActivateDatabasePage
();
void
ActivateDatabasePage
();
void
ShowReferencePage
();
};
};
#endif
#endif
...
...
sw/source/ui/inc/fldwrap.hxx
Dosyayı görüntüle @
7e2742b0
...
@@ -32,7 +32,7 @@ public:
...
@@ -32,7 +32,7 @@ public:
SFX_DECL_CHILDWINDOW_WITHID
(
SwFldDlgWrapper
);
SFX_DECL_CHILDWINDOW_WITHID
(
SwFldDlgWrapper
);
virtual
sal_Bool
ReInitDlg
(
SwDocShell
*
pDocSh
);
virtual
sal_Bool
ReInitDlg
(
SwDocShell
*
pDocSh
);
void
ShowPage
(
sal_uInt16
nPage
=
0
);
void
ShowReferencePage
(
);
};
};
/* --------------------------------------------------
/* --------------------------------------------------
...
...
sw/source/ui/shells/textfld.cxx
Dosyayı görüntüle @
7e2742b0
...
@@ -290,7 +290,7 @@ void SwTextShell::ExecField(SfxRequest &rReq)
...
@@ -290,7 +290,7 @@ void SwTextShell::ExecField(SfxRequest &rReq)
sal_uInt16
nId
=
SwFldDlgWrapper
::
GetChildWindowId
();
sal_uInt16
nId
=
SwFldDlgWrapper
::
GetChildWindowId
();
SwFldDlgWrapper
*
pWrp
=
(
SwFldDlgWrapper
*
)
pVFrame
->
GetChildWindow
(
nId
);
SwFldDlgWrapper
*
pWrp
=
(
SwFldDlgWrapper
*
)
pVFrame
->
GetChildWindow
(
nId
);
if
(
pWrp
)
if
(
pWrp
)
pWrp
->
ShowPage
();
pWrp
->
Show
Reference
Page
();
rReq
.
Ignore
();
rReq
.
Ignore
();
}
}
break
;
break
;
...
...
sw/uiconfig/swriter/ui/fielddialog.ui
0 → 100644
Dosyayı görüntüle @
7e2742b0
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkDialog"
id=
"FieldDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"title"
translatable=
"yes"
>
Fields
</property>
<property
name=
"type_hint"
>
dialog
</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"
>
_Insert
</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_underline"
>
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-close
</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>
<child>
<object
class=
"GtkButton"
id=
"reset"
>
<property
name=
"label"
>
gtk-revert-to-saved
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"no_show_all"
>
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>
</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=
"GtkNotebook"
id=
"tabcontrol"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"document"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Document
</property>
</object>
<packing>
<property
name=
"tab_fill"
>
False
</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"ref"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Cross-references
</property>
</object>
<packing>
<property
name=
"position"
>
1
</property>
<property
name=
"tab_fill"
>
False
</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"functions"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Functions
</property>
</object>
<packing>
<property
name=
"position"
>
2
</property>
<property
name=
"tab_fill"
>
False
</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"docinfo"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
DocInformation
</property>
</object>
<packing>
<property
name=
"position"
>
3
</property>
<property
name=
"tab_fill"
>
False
</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"variables"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Variables
</property>
</object>
<packing>
<property
name=
"position"
>
4
</property>
<property
name=
"tab_fill"
>
False
</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"database"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Database
</property>
</object>
<packing>
<property
name=
"position"
>
5
</property>
<property
name=
"tab_fill"
>
False
</property>
</packing>
</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-widget
response=
"0"
>
reset
</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