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
0139ec9d
Kaydet (Commit)
0139ec9d
authored
Ara 28, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert add condition dialog to .ui
Change-Id: I0cc014909cf49d7cbfadcb5d5d8730395d558eda
üst
43cc064c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
140 deletions
+38
-140
fmresids.hrc
include/svx/fmresids.hrc
+0
-1
UIConfig_svx.mk
svx/UIConfig_svx.mk
+1
-0
fmhelp.hrc
svx/inc/fmhelp.hrc
+0
-1
datanavi.cxx
svx/source/form/datanavi.cxx
+24
-35
datanavi.src
svx/source/form/datanavi.src
+0
-75
datanavi.hrc
svx/source/inc/datanavi.hrc
+0
-7
datanavi.hxx
svx/source/inc/datanavi.hxx
+13
-21
No files found.
include/svx/fmresids.hrc
Dosyayı görüntüle @
0139ec9d
...
@@ -61,7 +61,6 @@
...
@@ -61,7 +61,6 @@
// Dialog-Id's -----------------------------------------------------------
// Dialog-Id's -----------------------------------------------------------
#define RID_SVX_FMEXPLORER (RID_FORMS_START + 6)
#define RID_SVX_FMEXPLORER (RID_FORMS_START + 6)
#define RID_SVXDLG_ADD_CONDITION (RID_FORMS_START + 13)
#define RID_SVXDLG_NAMESPACE_ITEM (RID_FORMS_START + 14)
#define RID_SVXDLG_NAMESPACE_ITEM (RID_FORMS_START + 14)
#define RID_SVXWIN_DATANAVIGATOR (RID_FORMS_START + 19)
#define RID_SVXWIN_DATANAVIGATOR (RID_FORMS_START + 19)
...
...
svx/UIConfig_svx.mk
Dosyayı görüntüle @
0139ec9d
...
@@ -11,6 +11,7 @@ $(eval $(call gb_UIConfig_UIConfig,svx))
...
@@ -11,6 +11,7 @@ $(eval $(call gb_UIConfig_UIConfig,svx))
$(eval $(call gb_UIConfig_add_uifiles,svx,\
$(eval $(call gb_UIConfig_add_uifiles,svx,\
svx/uiconfig/ui/acceptrejectchangesdialog \
svx/uiconfig/ui/acceptrejectchangesdialog \
svx/uiconfig/ui/addconditiondialog \
svx/uiconfig/ui/adddataitemdialog \
svx/uiconfig/ui/adddataitemdialog \
svx/uiconfig/ui/addinstancedialog \
svx/uiconfig/ui/addinstancedialog \
svx/uiconfig/ui/addmodeldialog \
svx/uiconfig/ui/addmodeldialog \
...
...
svx/inc/fmhelp.hrc
Dosyayı görüntüle @
0139ec9d
...
@@ -53,7 +53,6 @@
...
@@ -53,7 +53,6 @@
#define UID_FORMPROPBROWSER_FRAME "SVX_UID_FORMPROPBROWSER_FRAME"
#define UID_FORMPROPBROWSER_FRAME "SVX_UID_FORMPROPBROWSER_FRAME"
#define UID_ABSOLUTE_RECORD_WINDOW "SVX_UID_ABSOLUTE_RECORD_WINDOW"
#define UID_ABSOLUTE_RECORD_WINDOW "SVX_UID_ABSOLUTE_RECORD_WINDOW"
#define HID_DATA_NAVIGATOR_WIN "SVX_HID_DATA_NAVIGATOR_WIN"
#define HID_DATA_NAVIGATOR_WIN "SVX_HID_DATA_NAVIGATOR_WIN"
#define HID_XFORMS_ADDCONDITION_DLG "SVX_HID_XFORMS_ADDCONDITION_DLG"
#define HID_XFORMS_NAMESPACEITEM_DLG "SVX_HID_XFORMS_NAMESPACEITEM_DLG"
#define HID_XFORMS_NAMESPACEITEM_DLG "SVX_HID_XFORMS_NAMESPACEITEM_DLG"
#define HID_XFORMS_NAMESPACEITEM_LIST "SVX_HID_XFORMS_NAMESPACEITEM_LIST"
#define HID_XFORMS_NAMESPACEITEM_LIST "SVX_HID_XFORMS_NAMESPACEITEM_LIST"
#define HID_MN_XFORMS_MODELS_ADD "SVX_HID_MN_XFORMS_MODELS_ADD"
#define HID_MN_XFORMS_MODELS_ADD "SVX_HID_MN_XFORMS_MODELS_ADD"
...
...
svx/source/form/datanavi.cxx
Dosyayı görüntüle @
0139ec9d
...
@@ -2763,34 +2763,28 @@ namespace svxform
...
@@ -2763,34 +2763,28 @@ namespace svxform
// class AddConditionDialog
// class AddConditionDialog
//========================================================================
//========================================================================
AddConditionDialog
::
AddConditionDialog
(
AddConditionDialog
::
AddConditionDialog
(
Window
*
pParent
,
Window
*
pParent
,
const
OUString
&
_rPropertyName
,
const
OUString
&
_rPropertyName
,
const
Reference
<
XPropertySet
>&
_rPropSet
)
:
const
Reference
<
XPropertySet
>&
_rPropSet
)
:
ModalDialog
(
pParent
,
"AddConditionDialog"
,
"svx/ui/addconditiondialog.ui"
)
ModalDialog
(
pParent
,
SVX_RES
(
RID_SVXDLG_ADD_CONDITION
)
),
,
m_sPropertyName
(
_rPropertyName
)
,
m_xBinding
(
_rPropSet
)
m_aConditionFT
(
this
,
SVX_RES
(
FT_CONDITION
)
),
m_aConditionED
(
this
,
SVX_RES
(
ED_CONDITION
)
),
m_aResultFT
(
this
,
SVX_RES
(
FT_RESULT
)
),
m_aResultWin
(
this
,
SVX_RES
(
FT_RESULT_PREVIEW
)
),
m_aEditNamespacesBtn
(
this
,
SVX_RES
(
PB_EDIT_NAMESPACES
)
),
m_aButtonsFL
(
this
,
SVX_RES
(
FL_DATANAV_BTN
)
),
m_aOKBtn
(
this
,
SVX_RES
(
BTN_DATANAV_OK
)
),
m_aEscBtn
(
this
,
SVX_RES
(
BTN_DATANAV_ESC
)
),
m_aHelpBtn
(
this
,
SVX_RES
(
BTN_DATANAV_HELP
)
),
m_sPropertyName
(
_rPropertyName
),
m_xBinding
(
_rPropSet
)
{
{
FreeResource
();
get
(
m_pConditionED
,
"condition"
);
get
(
m_pResultWin
,
"result"
);
get
(
m_pEditNamespacesBtn
,
"edit"
);
get
(
m_pOKBtn
,
"ok"
);
DBG_ASSERT
(
m_xBinding
.
is
(),
"AddConditionDialog::Ctor(): no Binding"
);
DBG_ASSERT
(
m_xBinding
.
is
(),
"AddConditionDialog::Ctor(): no Binding"
);
m_aResultWin
.
SetBackground
(
m_aConditionED
.
GetBackground
()
);
m_pConditionED
->
set_height_request
(
m_pConditionED
->
GetTextHeight
()
*
4
);
m_aConditionED
.
SetModifyHdl
(
LINK
(
this
,
AddConditionDialog
,
ModifyHdl
)
);
m_pConditionED
->
set_width_request
(
m_pConditionED
->
approximate_char_width
()
*
62
);
m_aEditNamespacesBtn
.
SetClickHdl
(
LINK
(
this
,
AddConditionDialog
,
EditHdl
)
);
m_pResultWin
->
set_height_request
(
m_pResultWin
->
GetTextHeight
()
*
4
);
m_aOKBtn
.
SetClickHdl
(
LINK
(
this
,
AddConditionDialog
,
OKHdl
)
);
m_pResultWin
->
set_width_request
(
m_pResultWin
->
approximate_char_width
()
*
62
);
m_pConditionED
->
SetModifyHdl
(
LINK
(
this
,
AddConditionDialog
,
ModifyHdl
)
);
m_pEditNamespacesBtn
->
SetClickHdl
(
LINK
(
this
,
AddConditionDialog
,
EditHdl
)
);
m_pOKBtn
->
SetClickHdl
(
LINK
(
this
,
AddConditionDialog
,
OKHdl
)
);
m_aResultTimer
.
SetTimeout
(
500
);
m_aResultTimer
.
SetTimeout
(
500
);
m_aResultTimer
.
SetTimeoutHdl
(
LINK
(
this
,
AddConditionDialog
,
ResultHdl
)
);
m_aResultTimer
.
SetTimeoutHdl
(
LINK
(
this
,
AddConditionDialog
,
ResultHdl
)
);
...
@@ -2802,19 +2796,19 @@ namespace svxform
...
@@ -2802,19 +2796,19 @@ namespace svxform
if
(
(
m_xBinding
->
getPropertyValue
(
m_sPropertyName
)
>>=
sTemp
)
if
(
(
m_xBinding
->
getPropertyValue
(
m_sPropertyName
)
>>=
sTemp
)
&&
!
sTemp
.
isEmpty
()
)
&&
!
sTemp
.
isEmpty
()
)
{
{
m_
aConditionED
.
SetText
(
sTemp
);
m_
pConditionED
->
SetText
(
sTemp
);
}
}
else
else
{
{
//! m_xBinding->setPropertyValue( m_sPropertyName, makeAny( TRUE_VALUE ) );
//! m_xBinding->setPropertyValue( m_sPropertyName, makeAny( TRUE_VALUE ) );
m_
aConditionED
.
SetText
(
TRUE_VALUE
);
m_
pConditionED
->
SetText
(
TRUE_VALUE
);
}
}
Reference
<
css
::
xforms
::
XModel
>
xModel
;
Reference
<
css
::
xforms
::
XModel
>
xModel
;
if
(
(
m_xBinding
->
getPropertyValue
(
PN_BINDING_MODEL
)
>>=
xModel
)
&&
xModel
.
is
()
)
if
(
(
m_xBinding
->
getPropertyValue
(
PN_BINDING_MODEL
)
>>=
xModel
)
&&
xModel
.
is
()
)
m_xUIHelper
=
Reference
<
css
::
xforms
::
XFormsUIHelper1
>
(
xModel
,
UNO_QUERY
);
m_xUIHelper
=
Reference
<
css
::
xforms
::
XFormsUIHelper1
>
(
xModel
,
UNO_QUERY
);
}
}
catch
(
Exception
&
)
catch
(
const
Exception
&
)
{
{
SAL_WARN
(
"svx.form"
,
"AddConditionDialog::Ctor(): exception caught"
);
SAL_WARN
(
"svx.form"
,
"AddConditionDialog::Ctor(): exception caught"
);
}
}
...
@@ -2824,11 +2818,6 @@ namespace svxform
...
@@ -2824,11 +2818,6 @@ namespace svxform
ResultHdl
(
&
m_aResultTimer
);
ResultHdl
(
&
m_aResultTimer
);
}
}
//------------------------------------------------------------------------
AddConditionDialog
::~
AddConditionDialog
()
{
}
//------------------------------------------------------------------------
//------------------------------------------------------------------------
IMPL_LINK_NOARG
(
AddConditionDialog
,
EditHdl
)
IMPL_LINK_NOARG
(
AddConditionDialog
,
EditHdl
)
{
{
...
@@ -2861,7 +2850,7 @@ namespace svxform
...
@@ -2861,7 +2850,7 @@ namespace svxform
try
try
{
{
if ( m_xBinding.is() )
if ( m_xBinding.is() )
m_xBinding->setPropertyValue( m_sPropertyName, makeAny( OUString( m_
aConditionED.
GetText() ) ) );
m_xBinding->setPropertyValue( m_sPropertyName, makeAny( OUString( m_
pConditionED->
GetText() ) ) );
}
}
catch( const Exception& )
catch( const Exception& )
{
{
...
@@ -2882,7 +2871,7 @@ namespace svxform
...
@@ -2882,7 +2871,7 @@ namespace svxform
//------------------------------------------------------------------------
//------------------------------------------------------------------------
IMPL_LINK_NOARG
(
AddConditionDialog
,
ResultHdl
)
IMPL_LINK_NOARG
(
AddConditionDialog
,
ResultHdl
)
{
{
OUString
sCondition
=
comphelper
::
string
::
strip
(
m_
aConditionED
.
GetText
(),
' '
);
OUString
sCondition
=
comphelper
::
string
::
strip
(
m_
pConditionED
->
GetText
(),
' '
);
OUString
sResult
;
OUString
sResult
;
if
(
!
sCondition
.
isEmpty
()
)
if
(
!
sCondition
.
isEmpty
()
)
{
{
...
@@ -2895,7 +2884,7 @@ namespace svxform
...
@@ -2895,7 +2884,7 @@ namespace svxform
SAL_WARN
(
"svx.form"
,
"AddConditionDialog::ResultHdl(): exception caught"
);
SAL_WARN
(
"svx.form"
,
"AddConditionDialog::ResultHdl(): exception caught"
);
}
}
}
}
m_
aResultWin
.
SetText
(
sResult
);
m_
pResultWin
->
SetText
(
sResult
);
return
0
;
return
0
;
}
}
...
...
svx/source/form/datanavi.src
Dosyayı görüntüle @
0139ec9d
...
@@ -359,81 +359,6 @@ Menu RID_MENU_DATANAVIGATOR
...
@@ -359,81 +359,6 @@ Menu RID_MENU_DATANAVIGATOR
};
};
};
};
ModalDialog RID_SVXDLG_ADD_CONDITION
{
HelpID = HID_XFORMS_ADDCONDITION_DLG ;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 210 , 150 ) ;
Text [ en-US ] = "Add Condition" ;
Moveable = TRUE ;
FixedText FT_CONDITION
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 198 , 8 ) ;
LeftLabel = TRUE ;
Text [ en-US ] = "~Condition" ;
};
MultiLineEdit ED_CONDITION
{
HelpID = "svx:MultiLineEdit:RID_SVXDLG_ADD_CONDITION:ED_CONDITION";
Border = TRUE ;
Pos = MAP_APPFONT ( 6 , 14 ) ;
Size = MAP_APPFONT ( 198 , 34 ) ;
TabStop = TRUE ;
Left = TRUE ;
IgnoreTab = TRUE;
};
FixedText FT_RESULT
{
Pos = MAP_APPFONT ( 6 , 51 ) ;
Size = MAP_APPFONT ( 198 , 8 ) ;
LeftLabel = TRUE ;
Text [ en-US ] = "~Result" ;
};
FixedText FT_RESULT_PREVIEW
{
Pos = MAP_APPFONT ( 6 , 62 ) ;
Size = MAP_APPFONT ( 198 , 34 ) ;
Border = TRUE;
TabStop = TRUE ;
Left = TRUE ;
WordBreak = TRUE ;
};
PushButton PB_EDIT_NAMESPACES
{
HelpID = "svx:PushButton:RID_SVXDLG_ADD_CONDITION:PB_EDIT_NAMESPACES";
Pos = MAP_APPFONT ( 132 , 102 ) ;
Size = MAP_APPFONT ( 72 , 14 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Edit Namespaces..." ;
};
FixedLine FL_DATANAV_BTN
{
Pos = MAP_APPFONT ( 4 , 119 ) ;
Size = MAP_APPFONT ( 202 , 8 ) ;
};
OKButton BTN_DATANAV_OK
{
Pos = MAP_APPFONT ( 45 , 130 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
DefButton = TRUE ;
};
CancelButton BTN_DATANAV_ESC
{
Pos = MAP_APPFONT ( 98 , 130 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
HelpButton BTN_DATANAV_HELP
{
Pos = MAP_APPFONT ( 154 , 130 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
};
ModalDialog RID_SVXDLG_NAMESPACE_ITEM
ModalDialog RID_SVXDLG_NAMESPACE_ITEM
{
{
HelpID = HID_XFORMS_NAMESPACEITEM_DLG ;
HelpID = HID_XFORMS_NAMESPACEITEM_DLG ;
...
...
svx/source/inc/datanavi.hrc
Dosyayı görüntüle @
0139ec9d
...
@@ -83,13 +83,6 @@
...
@@ -83,13 +83,6 @@
#define IID_TEXT 5
#define IID_TEXT 5
#define IID_OTHER 6
#define IID_OTHER 6
// class AddConditionDialog
#define FT_CONDITION 10
#define ED_CONDITION 11
#define FT_RESULT 12
#define FT_RESULT_PREVIEW 13
#define PB_EDIT_NAMESPACES 14
// class NamespaceItemDialog
// class NamespaceItemDialog
#define FT_NAMESPACES 10
#define FT_NAMESPACES 10
#define LB_NAMESPACES 11
#define LB_NAMESPACES 11
...
...
svx/source/inc/datanavi.hxx
Dosyayı görüntüle @
0139ec9d
...
@@ -465,15 +465,10 @@ namespace svxform
...
@@ -465,15 +465,10 @@ namespace svxform
class
AddConditionDialog
:
public
ModalDialog
class
AddConditionDialog
:
public
ModalDialog
{
{
private
:
private
:
FixedText
m_aConditionFT
;
VclMultiLineEdit
*
m_pConditionED
;
MultiLineEdit
m_aConditionED
;
VclMultiLineEdit
*
m_pResultWin
;
FixedText
m_aResultFT
;
PushButton
*
m_pEditNamespacesBtn
;
FixedText
m_aResultWin
;
OKButton
*
m_pOKBtn
;
PushButton
m_aEditNamespacesBtn
;
FixedLine
m_aButtonsFL
;
OKButton
m_aOKBtn
;
CancelButton
m_aEscBtn
;
HelpButton
m_aHelpBtn
;
Timer
m_aResultTimer
;
Timer
m_aResultTimer
;
OUString
m_sPropertyName
;
OUString
m_sPropertyName
;
...
@@ -487,21 +482,18 @@ namespace svxform
...
@@ -487,21 +482,18 @@ namespace svxform
DECL_LINK
(
OKHdl
,
void
*
);
DECL_LINK
(
OKHdl
,
void
*
);
public
:
public
:
AddConditionDialog
(
Window
*
pParent
,
AddConditionDialog
(
Window
*
pParent
,
const
OUString
&
_rPropertyName
,
const
XPropertySet_ref
&
_rBinding
);
const
OUString
&
_rPropertyName
,
const
XPropertySet_ref
&
_rBinding
);
~
AddConditionDialog
();
inline
XFormsUIHelper1_ref
GetUIHelper
()
const
{
return
m_xUIHelper
;
}
XFormsUIHelper1_ref
GetUIHelper
()
const
{
return
m_xUIHelper
;
}
inline
OUString
GetCondition
()
const
{
return
m_aConditionED
.
GetText
();
}
OUString
GetCondition
()
const
{
return
m_pConditionED
->
GetText
();
}
inline
void
SetCondition
(
const
OUString
&
_rCondition
);
void
SetCondition
(
const
OUString
&
_rCondition
)
{
m_pConditionED
->
SetText
(
_rCondition
);
m_aResultTimer
.
Start
();
}
};
};
inline
void
AddConditionDialog
::
SetCondition
(
const
OUString
&
_rCondition
)
{
m_aConditionED
.
SetText
(
_rCondition
);
m_aResultTimer
.
Start
();
}
//========================================================================
//========================================================================
class
NamespaceItemDialog
:
public
ModalDialog
class
NamespaceItemDialog
:
public
ModalDialog
{
{
...
...
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