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
3f7f957e
Kaydet (Commit)
3f7f957e
authored
Kas 05, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert macro dialog to .ui format
Change-Id: I5c832f3eaa6aefe2d652173289ef306e8743d4e0
üst
daccedee
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
353 additions
and
313 deletions
+353
-313
UI_cui.mk
cui/UI_cui.mk
+1
-0
acccfg.hrc
cui/source/customize/acccfg.hrc
+0
-7
acccfg.src
cui/source/customize/acccfg.src
+0
-32
cfgutil.cxx
cui/source/customize/cfgutil.cxx
+10
-10
scriptdlg.cxx
cui/source/dialogs/scriptdlg.cxx
+130
-112
scriptdlg.hrc
cui/source/dialogs/scriptdlg.hrc
+1
-28
scriptdlg.src
cui/source/dialogs/scriptdlg.src
+0
-110
helpid.hrc
cui/source/inc/helpid.hrc
+0
-2
scriptdlg.hxx
cui/source/inc/scriptdlg.hxx
+12
-11
scriptorganizer.ui
cui/uiconfig/ui/scriptorganizer.ui
+199
-0
hidother.src
cui/util/hidother.src
+0
-1
No files found.
cui/UI_cui.mk
Dosyayı görüntüle @
3f7f957e
...
@@ -17,6 +17,7 @@ $(eval $(call gb_UI_add_uifiles,cui,\
...
@@ -17,6 +17,7 @@ $(eval $(call gb_UI_add_uifiles,cui,\
cui/uiconfig/ui/insertoleobject \
cui/uiconfig/ui/insertoleobject \
cui/uiconfig/ui/insertplugin \
cui/uiconfig/ui/insertplugin \
cui/uiconfig/ui/insertrowcolumn \
cui/uiconfig/ui/insertrowcolumn \
cui/uiconfig/ui/scriptorganizer \
cui/uiconfig/ui/macroselectordialog \
cui/uiconfig/ui/macroselectordialog \
cui/uiconfig/ui/positionpage \
cui/uiconfig/ui/positionpage \
cui/uiconfig/ui/specialcharacters \
cui/uiconfig/ui/specialcharacters \
...
...
cui/source/customize/acccfg.hrc
Dosyayı görüntüle @
3f7f957e
...
@@ -36,12 +36,6 @@
...
@@ -36,12 +36,6 @@
#define STR_LOADACCELCONFIG 46
#define STR_LOADACCELCONFIG 46
#define STR_SAVEACCELCONFIG 47
#define STR_SAVEACCELCONFIG 47
#define IMG_HARDDISK 48
#define STR_PRODMACROS 50
#define STR_MYMACROS 51
#define IMG_LIB 52
#define IMG_MACRO 54
#define IMG_DOC 56
#define STR_GROUP_STYLES 58
#define STR_GROUP_STYLES 58
#define STR_PDF_EXPORT_SEND 59
#define STR_PDF_EXPORT_SEND 59
#define IMG_INFO 61
#define IMG_INFO 61
...
@@ -49,6 +43,5 @@
...
@@ -49,6 +43,5 @@
#define BMP_COLLAPSED 63
#define BMP_COLLAPSED 63
#define BMP_EXPANDED 64
#define BMP_EXPANDED 64
#define STR_BASICMACROS 67
#define STR_BASICMACROS 67
#define STR_DLG_MACROS 68
#define STR_HUMAN_APPNAME 69
#define STR_HUMAN_APPNAME 69
#define STR_FILTERNAME_CFG 70
#define STR_FILTERNAME_CFG 70
cui/source/customize/acccfg.src
Dosyayı görüntüle @
3f7f957e
...
@@ -198,22 +198,10 @@ TabPage RID_SVXPAGE_KEYBOARD
...
@@ -198,22 +198,10 @@ TabPage RID_SVXPAGE_KEYBOARD
Resource RID_SVXPAGE_CONFIGGROUPBOX
Resource RID_SVXPAGE_CONFIGGROUPBOX
{
{
String STR_MYMACROS
{
Text [ en-US ] = "My Macros";
};
String STR_PRODMACROS
{
Text [ en-US ] = "%PRODUCTNAME Macros";
};
String STR_BASICMACROS
String STR_BASICMACROS
{
{
Text [ en-US ] = "BASIC Macros" ;
Text [ en-US ] = "BASIC Macros" ;
};
};
String STR_DLG_MACROS
{
Text [ en-US ] = "%PRODUCTNAME Macros" ;
};
String STR_HUMAN_APPNAME
String STR_HUMAN_APPNAME
{
{
TEXT = "%PRODUCTNAME" ;
TEXT = "%PRODUCTNAME" ;
...
@@ -222,26 +210,6 @@ Resource RID_SVXPAGE_CONFIGGROUPBOX
...
@@ -222,26 +210,6 @@ Resource RID_SVXPAGE_CONFIGGROUPBOX
{
{
Text [ en-US ] = "Styles" ;
Text [ en-US ] = "Styles" ;
};
};
Image IMG_HARDDISK
{
ImageBitmap = Bitmap { File = "harddisk_16.bmp" ; };
MASKCOLOR
};
Image IMG_LIB
{
ImageBitmap = Bitmap { File = "im30820.png"; };
MASKCOLOR
};
Image IMG_MACRO
{
ImageBitmap = Bitmap { File = "im30821.png"; };
MASKCOLOR
};
Image IMG_DOC
{
ImageBitmap = Bitmap { File = "im30826.png"; };
MASKCOLOR
};
Image BMP_COLLAPSED
Image BMP_COLLAPSED
{
{
ImageBitmap = Bitmap
ImageBitmap = Bitmap
...
...
cui/source/customize/cfgutil.cxx
Dosyayı görüntüle @
3f7f957e
...
@@ -387,16 +387,16 @@ struct SvxConfigGroupBoxResource_Impl : public Resource
...
@@ -387,16 +387,16 @@ struct SvxConfigGroupBoxResource_Impl : public Resource
SvxConfigGroupBoxResource_Impl
::
SvxConfigGroupBoxResource_Impl
()
:
SvxConfigGroupBoxResource_Impl
::
SvxConfigGroupBoxResource_Impl
()
:
Resource
(
CUI_RES
(
RID_SVXPAGE_CONFIGGROUPBOX
)),
Resource
(
CUI_RES
(
RID_SVXPAGE_CONFIGGROUPBOX
)),
m_hdImage
(
CUI_RES
(
IMG_HARDDISK
)),
m_hdImage
(
CUI_RES
(
RID_CUI
IMG_HARDDISK
)),
m_libImage
(
CUI_RES
(
IMG_LIB
)),
m_libImage
(
CUI_RES
(
RID_CUI
IMG_LIB
)),
m_macImage
(
CUI_RES
(
IMG_MACRO
)),
m_macImage
(
CUI_RES
(
RID_CUI
IMG_MACRO
)),
m_docImage
(
CUI_RES
(
IMG_DOC
)),
m_docImage
(
CUI_RES
(
RID_CUI
IMG_DOC
)),
m_sMyMacros
(
String
(
CUI_RES
(
STR_MYMACROS
)
)),
m_sMyMacros
(
CUI_RESSTR
(
RID_SVXSTR_MYMACROS
)),
m_sProdMacros
(
String
(
CUI_RES
(
STR_PRODMACROS
)
)),
m_sProdMacros
(
CUI_RESSTR
(
RID_SVXSTR_PRODMACROS
)),
m_sMacros
(
String
(
CUI_RES
(
STR_BASICMACROS
)
)),
m_sMacros
(
CUI_RESSTR
(
STR_BASICMACROS
)),
m_sDlgMacros
(
String
(
CUI_RES
(
STR_DLG_MACROS
)
)),
m_sDlgMacros
(
CUI_RESSTR
(
RID_SVXSTR_PRODMACROS
)),
m_aHumanAppName
(
String
(
CUI_RES
(
STR_HUMAN_APPNAME
)
)),
m_aHumanAppName
(
CUI_RESSTR
(
STR_HUMAN_APPNAME
)),
m_aStrGroupStyles
(
String
(
CUI_RES
(
STR_GROUP_STYLES
)
)),
m_aStrGroupStyles
(
CUI_RESSTR
(
STR_GROUP_STYLES
)),
m_collapsedImage
(
CUI_RES
(
BMP_COLLAPSED
)),
m_collapsedImage
(
CUI_RES
(
BMP_COLLAPSED
)),
m_expandedImage
(
CUI_RES
(
BMP_EXPANDED
))
m_expandedImage
(
CUI_RES
(
BMP_EXPANDED
))
{
{
...
...
cui/source/dialogs/scriptdlg.cxx
Dosyayı görüntüle @
3f7f957e
...
@@ -71,16 +71,8 @@ void ShowErrorDialog( const Any& aException )
...
@@ -71,16 +71,8 @@ void ShowErrorDialog( const Any& aException )
delete
pDlg
;
delete
pDlg
;
}
}
SFTreeListBox
::
SFTreeListBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
void
SFTreeListBox
::
Init
()
SvTreeListBox
(
pParent
,
ResId
(
rResId
.
GetId
(),
*
rResId
.
GetResMgr
()
)
),
m_hdImage
(
ResId
(
IMG_HARDDISK
,
*
rResId
.
GetResMgr
())),
m_libImage
(
ResId
(
IMG_LIB
,
*
rResId
.
GetResMgr
())),
m_macImage
(
ResId
(
IMG_MACRO
,
*
rResId
.
GetResMgr
())),
m_docImage
(
ResId
(
IMG_DOCUMENT
,
*
rResId
.
GetResMgr
())),
m_sMyMacros
(
String
(
ResId
(
STR_MYMACROS
,
*
rResId
.
GetResMgr
()))),
m_sProdMacros
(
String
(
ResId
(
STR_PRODMACROS
,
*
rResId
.
GetResMgr
())))
{
{
FreeResource
();
SetSelectionMode
(
SINGLE_SELECTION
);
SetSelectionMode
(
SINGLE_SELECTION
);
SetStyle
(
GetStyle
()
|
WB_CLIPCHILDREN
|
WB_HSCROLL
|
SetStyle
(
GetStyle
()
|
WB_CLIPCHILDREN
|
WB_HSCROLL
|
...
@@ -91,6 +83,36 @@ SFTreeListBox::SFTreeListBox( Window* pParent, const ResId& rResId ) :
...
@@ -91,6 +83,36 @@ SFTreeListBox::SFTreeListBox( Window* pParent, const ResId& rResId ) :
nMode
=
0xFF
;
// everything
nMode
=
0xFF
;
// everything
}
}
SFTreeListBox
::
SFTreeListBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
SvTreeListBox
(
pParent
,
ResId
(
rResId
.
GetId
(),
*
rResId
.
GetResMgr
()))
,
m_hdImage
(
CUI_RES
(
RID_CUIIMG_HARDDISK
))
,
m_libImage
(
CUI_RES
(
RID_CUIIMG_LIB
))
,
m_macImage
(
CUI_RES
(
RID_CUIIMG_MACRO
))
,
m_docImage
(
CUI_RES
(
RID_CUIIMG_DOC
))
,
m_sMyMacros
(
CUI_RESSTR
(
RID_SVXSTR_MYMACROS
))
,
m_sProdMacros
(
CUI_RES
(
RID_SVXSTR_PRODMACROS
))
{
FreeResource
();
Init
();
}
SFTreeListBox
::
SFTreeListBox
(
Window
*
pParent
)
:
SvTreeListBox
(
pParent
)
,
m_hdImage
(
CUI_RES
(
RID_CUIIMG_HARDDISK
))
,
m_libImage
(
CUI_RES
(
RID_CUIIMG_LIB
))
,
m_macImage
(
CUI_RES
(
RID_CUIIMG_MACRO
))
,
m_docImage
(
CUI_RES
(
RID_CUIIMG_DOC
))
,
m_sMyMacros
(
CUI_RESSTR
(
RID_SVXSTR_MYMACROS
))
,
m_sProdMacros
(
CUI_RESSTR
(
RID_SVXSTR_PRODMACROS
))
{
Init
();
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeSFTreeListBox
(
Window
*
pParent
,
VclBuilder
::
stringmap
&
)
{
return
new
SFTreeListBox
(
pParent
);
}
SFTreeListBox
::~
SFTreeListBox
()
SFTreeListBox
::~
SFTreeListBox
()
{
{
deleteAllTree
();
deleteAllTree
();
...
@@ -235,7 +257,7 @@ void SFTreeListBox::Init( const ::rtl::OUString& language )
...
@@ -235,7 +257,7 @@ void SFTreeListBox::Init( const ::rtl::OUString& language )
getLangNodeFromRootNode
(
children
[
n
],
lang
);
getLangNodeFromRootNode
(
children
[
n
],
lang
);
SAL_WNODEPRECATED_DECLARATIONS_PUSH
SAL_WNODEPRECATED_DECLARATIONS_PUSH
insertEntry
(
uiName
,
app
?
IMG_HARDDISK
:
IMG_DOCUMENT
,
insertEntry
(
uiName
,
app
?
RID_CUIIMG_HARDDISK
:
RID_CUIIMG_DOC
,
0
,
true
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_SFROOT
,
langEntries
,
xDocumentModel
)),
factoryURL
);
0
,
true
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_SFROOT
,
langEntries
,
xDocumentModel
)),
factoryURL
);
SAL_WNODEPRECATED_DECLARATIONS_POP
SAL_WNODEPRECATED_DECLARATIONS_POP
}
}
...
@@ -324,7 +346,7 @@ void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference<
...
@@ -324,7 +346,7 @@ void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference<
if
(
children
[
n
]
->
getType
()
!=
browse
::
BrowseNodeTypes
::
SCRIPT
)
if
(
children
[
n
]
->
getType
()
!=
browse
::
BrowseNodeTypes
::
SCRIPT
)
{
{
SAL_WNODEPRECATED_DECLARATIONS_PUSH
SAL_WNODEPRECATED_DECLARATIONS_PUSH
insertEntry
(
name
,
IMG_LIB
,
pRootEntry
,
true
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_SCRIPTCONTAINER
,
children
[
n
],
model
)));
insertEntry
(
name
,
RID_CUI
IMG_LIB
,
pRootEntry
,
true
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_SCRIPTCONTAINER
,
children
[
n
],
model
)));
SAL_WNODEPRECATED_DECLARATIONS_POP
SAL_WNODEPRECATED_DECLARATIONS_POP
}
}
else
else
...
@@ -332,7 +354,7 @@ void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference<
...
@@ -332,7 +354,7 @@ void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference<
if
(
children
[
n
]
->
getType
()
==
browse
::
BrowseNodeTypes
::
SCRIPT
)
if
(
children
[
n
]
->
getType
()
==
browse
::
BrowseNodeTypes
::
SCRIPT
)
{
{
SAL_WNODEPRECATED_DECLARATIONS_PUSH
SAL_WNODEPRECATED_DECLARATIONS_PUSH
insertEntry
(
name
,
IMG_MACRO
,
pRootEntry
,
false
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_METHOD
,
children
[
n
],
model
)));
insertEntry
(
name
,
RID_CUI
IMG_MACRO
,
pRootEntry
,
false
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_METHOD
,
children
[
n
],
model
)));
SAL_WNODEPRECATED_DECLARATIONS_POP
SAL_WNODEPRECATED_DECLARATIONS_POP
}
}
...
@@ -355,7 +377,7 @@ SvTreeListEntry * SFTreeListBox::insertEntry(
...
@@ -355,7 +377,7 @@ SvTreeListEntry * SFTreeListBox::insertEntry(
bool
bChildrenOnDemand
,
std
::
auto_ptr
<
SFEntry
>
aUserData
,
::
rtl
::
OUString
factoryURL
)
bool
bChildrenOnDemand
,
std
::
auto_ptr
<
SFEntry
>
aUserData
,
::
rtl
::
OUString
factoryURL
)
{
{
SvTreeListEntry
*
p
;
SvTreeListEntry
*
p
;
if
(
nBitmap
==
IMG_DOCUMENT
&&
!
factoryURL
.
isEmpty
()
)
if
(
nBitmap
==
RID_CUIIMG_DOC
&&
!
factoryURL
.
isEmpty
()
)
{
{
Image
aImage
=
SvFileInformationManager
::
GetFileImage
(
INetURLObject
(
factoryURL
),
false
);
Image
aImage
=
SvFileInformationManager
::
GetFileImage
(
INetURLObject
(
factoryURL
),
false
);
p
=
InsertEntry
(
p
=
InsertEntry
(
...
@@ -376,19 +398,19 @@ SvTreeListEntry * SFTreeListBox::insertEntry(
...
@@ -376,19 +398,19 @@ SvTreeListEntry * SFTreeListBox::insertEntry(
bool
bChildrenOnDemand
,
std
::
auto_ptr
<
SFEntry
>
aUserData
)
bool
bChildrenOnDemand
,
std
::
auto_ptr
<
SFEntry
>
aUserData
)
{
{
Image
aImage
;
Image
aImage
;
if
(
nBitmap
==
IMG_HARDDISK
)
if
(
nBitmap
==
RID_CUI
IMG_HARDDISK
)
{
{
aImage
=
m_hdImage
;
aImage
=
m_hdImage
;
}
}
else
if
(
nBitmap
==
IMG_LIB
)
else
if
(
nBitmap
==
RID_CUI
IMG_LIB
)
{
{
aImage
=
m_libImage
;
aImage
=
m_libImage
;
}
}
else
if
(
nBitmap
==
IMG_MACRO
)
else
if
(
nBitmap
==
RID_CUI
IMG_MACRO
)
{
{
aImage
=
m_macImage
;
aImage
=
m_macImage
;
}
}
else
if
(
nBitmap
==
IMG_DOCUMENT
)
else
if
(
nBitmap
==
RID_CUIIMG_DOC
)
{
{
aImage
=
m_docImage
;
aImage
=
m_docImage
;
}
}
...
@@ -488,57 +510,53 @@ CuiInputDialog::~CuiInputDialog()
...
@@ -488,57 +510,53 @@ CuiInputDialog::~CuiInputDialog()
// ScriptOrgDialog ------------------------------------------------------------
// ScriptOrgDialog ------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
SvxScriptOrgDialog
::
SvxScriptOrgDialog
(
Window
*
pParent
,
::
rtl
::
OUString
language
)
SvxScriptOrgDialog
::
SvxScriptOrgDialog
(
Window
*
pParent
,
::
rtl
::
OUString
language
)
:
SfxModalDialog
(
pParent
,
CUI_RES
(
RID_DLG_SCRIPTORGANIZER
)
),
:
SfxModalDialog
(
pParent
,
"ScriptOrganizerDialog"
,
"cui/ui/scriptorganizer.ui"
)
aScriptsTxt
(
this
,
CUI_RES
(
SF_TXT_SCRIPTS
)
),
,
m_sLanguage
(
language
)
aScriptsBox
(
this
,
CUI_RES
(
SF_CTRL_SCRIPTSBOX
)
),
,
m_delErrStr
(
CUI_RESSTR
(
RID_SVXSTR_DELFAILED
))
aRunButton
(
this
,
CUI_RES
(
SF_PB_RUN
)
),
,
m_delErrTitleStr
(
CUI_RESSTR
(
RID_SVXSTR_DELFAILED_TITLE
))
aCloseButton
(
this
,
CUI_RES
(
SF_PB_CLOSE
)
),
,
m_delQueryStr
(
CUI_RES
(
RID_SVXSTR_DELQUERY
))
aCreateButton
(
this
,
CUI_RES
(
SF_PB_CREATE
)
),
,
m_delQueryTitleStr
(
CUI_RESSTR
(
RID_SVXSTR_DELQUERY_TITLE
))
aEditButton
(
this
,
CUI_RES
(
SF_PB_EDIT
)
),
,
m_createErrStr
(
CUI_RESSTR
(
RID_SVXSTR_CREATEFAILED
))
aRenameButton
(
this
,
CUI_RES
(
SF_PB_RENAME
)
),
,
m_createDupStr
(
CUI_RESSTR
(
RID_SVXSTR_CREATEFAILEDDUP
))
aDelButton
(
this
,
CUI_RES
(
SF_PB_DEL
)
),
,
m_createErrTitleStr
(
CUI_RESSTR
(
RID_SVXSTR_CREATEFAILED_TITLE
))
aHelpButton
(
this
,
CUI_RES
(
SF_PB_HELP
)
),
,
m_renameErrStr
(
CUI_RESSTR
(
RID_SVXSTR_RENAMEFAILED
))
m_sLanguage
(
language
),
,
m_renameErrTitleStr
(
CUI_RESSTR
(
RID_SVXSTR_RENAMEFAILED_TITLE
))
m_delErrStr
(
CUI_RES
(
RID_SVXSTR_DELFAILED
)
),
m_delErrTitleStr
(
CUI_RES
(
RID_SVXSTR_DELFAILED_TITLE
)
),
m_delQueryStr
(
CUI_RES
(
RID_SVXSTR_DELQUERY
)
),
m_delQueryTitleStr
(
CUI_RES
(
RID_SVXSTR_DELQUERY_TITLE
)
)
,
m_createErrStr
(
CUI_RES
(
RID_SVXSTR_CREATEFAILED
)
),
m_createDupStr
(
CUI_RES
(
RID_SVXSTR_CREATEFAILEDDUP
)
),
m_createErrTitleStr
(
CUI_RES
(
RID_SVXSTR_CREATEFAILED_TITLE
)
),
m_renameErrStr
(
CUI_RES
(
RID_SVXSTR_RENAMEFAILED
)
),
m_renameErrTitleStr
(
CUI_RES
(
RID_SVXSTR_RENAMEFAILED_TITLE
)
)
{
{
get
(
m_pScriptsBox
,
"scripts"
);
get
(
m_pRunButton
,
"run"
);
get
(
m_pCloseButton
,
"close"
);
get
(
m_pCreateButton
,
"create"
);
get
(
m_pEditButton
,
"edit"
);
get
(
m_pRenameButton
,
"rename"
);
get
(
m_pDelButton
,
"delete"
);
// must be a neater way to deal with the strings than as above
// must be a neater way to deal with the strings than as above
// append the language to the dialog title
// append the language to the dialog title
String
winTitle
(
GetText
()
);
String
winTitle
(
GetText
()
);
winTitle
.
SearchAndReplace
(
rtl
::
OUString
(
"%MACROLANG"
),
m_sLanguage
);
winTitle
.
SearchAndReplace
(
rtl
::
OUString
(
"%MACROLANG"
),
m_sLanguage
);
SetText
(
winTitle
);
SetText
(
winTitle
);
aScriptsBox
.
SetSelectHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ScriptSelectHdl
)
);
m_pScriptsBox
->
SetSelectHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ScriptSelectHdl
)
);
aRunButton
.
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
m_pRunButton
->
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
aCloseButton
.
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
m_pCloseButton
->
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
aRenameButton
.
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
m_pRenameButton
->
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
aEditButton
.
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
m_pEditButton
->
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
aDelButton
.
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
m_pDelButton
->
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
aCreateButton
.
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
m_pCreateButton
->
SetClickHdl
(
LINK
(
this
,
SvxScriptOrgDialog
,
ButtonHdl
)
);
aRunButton
.
Disable
();
m_pRunButton
->
Disable
();
aRenameButton
.
Disable
();
m_pRenameButton
->
Disable
();
aEditButton
.
Disable
();
m_pEditButton
->
Disable
();
aDelButton
.
Disable
();
m_pDelButton
->
Disable
();
aCreateButton
.
Disable
();
m_pCreateButton
->
Disable
();
aScriptsBox
.
Init
(
m_sLanguage
);
m_pScriptsBox
->
Init
(
m_sLanguage
);
RestorePreviousSelection
();
RestorePreviousSelection
();
FreeResource
();
}
}
SvxScriptOrgDialog
::~
SvxScriptOrgDialog
()
SvxScriptOrgDialog
::~
SvxScriptOrgDialog
()
{
{
// clear the SelectHdl so that it isn't called during the dtor
// clear the SelectHdl so that it isn't called during the dtor
aScriptsBox
.
SetSelectHdl
(
Link
()
);
m_pScriptsBox
->
SetSelectHdl
(
Link
()
);
};
};
short
SvxScriptOrgDialog
::
Execute
()
short
SvxScriptOrgDialog
::
Execute
()
...
@@ -560,7 +578,7 @@ short SvxScriptOrgDialog::Execute()
...
@@ -560,7 +578,7 @@ short SvxScriptOrgDialog::Execute()
pDoc
=
SfxObjectShell
::
GetNext
(
*
pDoc
);
pDoc
=
SfxObjectShell
::
GetNext
(
*
pDoc
);
}
}
aScriptsBox
.
ExpandAllTrees
();
m_pScriptsBox
->
ExpandAllTrees
();
Window
*
pPrevDlgParent
=
Application
::
GetDefDialogParent
();
Window
*
pPrevDlgParent
=
Application
::
GetDefDialogParent
();
Application
::
SetDefDialogParent
(
this
);
Application
::
SetDefDialogParent
(
this
);
...
@@ -575,20 +593,20 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
...
@@ -575,20 +593,20 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
{
{
if
(
node
->
getType
()
==
browse
::
BrowseNodeTypes
::
SCRIPT
)
if
(
node
->
getType
()
==
browse
::
BrowseNodeTypes
::
SCRIPT
)
{
{
aRunButton
.
Enable
();
m_pRunButton
->
Enable
();
}
}
else
else
{
{
aRunButton
.
Disable
();
m_pRunButton
->
Disable
();
}
}
Reference
<
beans
::
XPropertySet
>
xProps
(
node
,
UNO_QUERY
);
Reference
<
beans
::
XPropertySet
>
xProps
(
node
,
UNO_QUERY
);
if
(
!
xProps
.
is
()
)
if
(
!
xProps
.
is
()
)
{
{
aEditButton
.
Disable
();
m_pEditButton
->
Disable
();
aDelButton
.
Disable
();
m_pDelButton
->
Disable
();
aCreateButton
.
Disable
();
m_pCreateButton
->
Disable
();
aRunButton
.
Disable
();
m_pRunButton
->
Disable
();
return
;
return
;
}
}
...
@@ -596,54 +614,54 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
...
@@ -596,54 +614,54 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
if
(
getBoolProperty
(
xProps
,
sName
)
)
if
(
getBoolProperty
(
xProps
,
sName
)
)
{
{
aEditButton
.
Enable
();
m_pEditButton
->
Enable
();
}
}
else
else
{
{
aEditButton
.
Disable
();
m_pEditButton
->
Disable
();
}
}
sName
=
rtl
::
OUString
(
"Deletable"
)
;
sName
=
rtl
::
OUString
(
"Deletable"
)
;
if
(
getBoolProperty
(
xProps
,
sName
)
)
if
(
getBoolProperty
(
xProps
,
sName
)
)
{
{
aDelButton
.
Enable
();
m_pDelButton
->
Enable
();
}
}
else
else
{
{
aDelButton
.
Disable
();
m_pDelButton
->
Disable
();
}
}
sName
=
rtl
::
OUString
(
"Creatable"
)
;
sName
=
rtl
::
OUString
(
"Creatable"
)
;
if
(
getBoolProperty
(
xProps
,
sName
)
)
if
(
getBoolProperty
(
xProps
,
sName
)
)
{
{
aCreateButton
.
Enable
();
m_pCreateButton
->
Enable
();
}
}
else
else
{
{
aCreateButton
.
Disable
();
m_pCreateButton
->
Disable
();
}
}
sName
=
rtl
::
OUString
(
"Renamable"
)
;
sName
=
rtl
::
OUString
(
"Renamable"
)
;
if
(
getBoolProperty
(
xProps
,
sName
)
)
if
(
getBoolProperty
(
xProps
,
sName
)
)
{
{
aRenameButton
.
Enable
();
m_pRenameButton
->
Enable
();
}
}
else
else
{
{
aRenameButton
.
Disable
();
m_pRenameButton
->
Disable
();
}
}
}
}
else
else
{
{
// no node info available, disable all configurable actions
// no node info available, disable all configurable actions
aDelButton
.
Disable
();
m_pDelButton
->
Disable
();
aCreateButton
.
Disable
();
m_pCreateButton
->
Disable
();
aEditButton
.
Disable
();
m_pEditButton
->
Disable
();
aRunButton
.
Disable
();
m_pRunButton
->
Disable
();
aRenameButton
.
Disable
();
m_pRenameButton
->
Disable
();
}
}
}
}
...
@@ -675,21 +693,21 @@ IMPL_LINK( SvxScriptOrgDialog, ScriptSelectHdl, SvTreeListBox *, pBox )
...
@@ -675,21 +693,21 @@ IMPL_LINK( SvxScriptOrgDialog, ScriptSelectHdl, SvTreeListBox *, pBox )
IMPL_LINK
(
SvxScriptOrgDialog
,
ButtonHdl
,
Button
*
,
pButton
)
IMPL_LINK
(
SvxScriptOrgDialog
,
ButtonHdl
,
Button
*
,
pButton
)
{
{
if
(
pButton
==
&
a
CloseButton
)
if
(
pButton
==
m_p
CloseButton
)
{
{
StoreCurrentSelection
();
StoreCurrentSelection
();
EndDialog
(
0
);
EndDialog
(
0
);
}
}
if
(
pButton
==
&
a
EditButton
||
if
(
pButton
==
m_p
EditButton
||
pButton
==
&
a
CreateButton
||
pButton
==
m_p
CreateButton
||
pButton
==
&
a
DelButton
||
pButton
==
m_p
DelButton
||
pButton
==
&
a
RunButton
||
pButton
==
m_p
RunButton
||
pButton
==
&
a
RenameButton
)
pButton
==
m_p
RenameButton
)
{
{
if
(
aScriptsBox
.
IsSelected
(
aScriptsBox
.
GetHdlEntry
()
)
)
if
(
m_pScriptsBox
->
IsSelected
(
m_pScriptsBox
->
GetHdlEntry
()
)
)
{
{
SvTreeListEntry
*
pEntry
=
aScriptsBox
.
GetHdlEntry
();
SvTreeListEntry
*
pEntry
=
m_pScriptsBox
->
GetHdlEntry
();
SFEntry
*
userData
=
0
;
SFEntry
*
userData
=
0
;
if
(
!
pEntry
)
if
(
!
pEntry
)
{
{
...
@@ -709,7 +727,7 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton )
...
@@ -709,7 +727,7 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton )
return
0
;
return
0
;
}
}
if
(
pButton
==
&
a
RunButton
)
if
(
pButton
==
m_p
RunButton
)
{
{
::
rtl
::
OUString
tmpString
;
::
rtl
::
OUString
tmpString
;
Reference
<
beans
::
XPropertySet
>
xProp
(
node
,
UNO_QUERY
);
Reference
<
beans
::
XPropertySet
>
xProp
(
node
,
UNO_QUERY
);
...
@@ -735,12 +753,12 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton )
...
@@ -735,12 +753,12 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton )
}
}
SvTreeListEntry
*
pParent
=
aScriptsBox
.
GetParent
(
pEntry
);
SvTreeListEntry
*
pParent
=
m_pScriptsBox
->
GetParent
(
pEntry
);
while
(
pParent
&&
!
mspNode
.
is
()
)
while
(
pParent
&&
!
mspNode
.
is
()
)
{
{
SFEntry
*
mspUserData
=
(
SFEntry
*
)
pParent
->
GetUserData
();
SFEntry
*
mspUserData
=
(
SFEntry
*
)
pParent
->
GetUserData
();
mspNode
.
set
(
mspUserData
->
GetNode
()
,
UNO_QUERY
);
mspNode
.
set
(
mspUserData
->
GetNode
()
,
UNO_QUERY
);
pParent
=
aScriptsBox
.
GetParent
(
pParent
);
pParent
=
m_pScriptsBox
->
GetParent
(
pParent
);
}
}
xProp
->
getPropertyValue
(
rtl
::
OUString
(
"URI"
)
)
>>=
tmpString
;
xProp
->
getPropertyValue
(
rtl
::
OUString
(
"URI"
)
)
>>=
tmpString
;
const
String
scriptURL
(
tmpString
);
const
String
scriptURL
(
tmpString
);
...
@@ -782,7 +800,7 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton )
...
@@ -782,7 +800,7 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton )
StoreCurrentSelection
();
StoreCurrentSelection
();
EndDialog
(
0
);
EndDialog
(
0
);
}
}
else
if
(
pButton
==
&
a
EditButton
)
else
if
(
pButton
==
m_p
EditButton
)
{
{
Reference
<
script
::
XInvocation
>
xInv
(
node
,
UNO_QUERY
);
Reference
<
script
::
XInvocation
>
xInv
(
node
,
UNO_QUERY
);
if
(
xInv
.
is
()
)
if
(
xInv
.
is
()
)
...
@@ -804,15 +822,15 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton )
...
@@ -804,15 +822,15 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton )
}
}
}
}
}
}
else
if
(
pButton
==
&
a
CreateButton
)
else
if
(
pButton
==
m_p
CreateButton
)
{
{
createEntry
(
pEntry
);
createEntry
(
pEntry
);
}
}
else
if
(
pButton
==
&
a
DelButton
)
else
if
(
pButton
==
m_p
DelButton
)
{
{
deleteEntry
(
pEntry
);
deleteEntry
(
pEntry
);
}
}
else
if
(
pButton
==
&
a
RenameButton
)
else
if
(
pButton
==
m_p
RenameButton
)
{
{
renameEntry
(
pEntry
);
renameEntry
(
pEntry
);
}
}
...
@@ -864,7 +882,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
...
@@ -864,7 +882,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
::
rtl
::
OUString
aNewName
;
::
rtl
::
OUString
aNewName
;
::
rtl
::
OUString
aNewStdName
;
::
rtl
::
OUString
aNewStdName
;
sal_uInt16
nMode
=
INPUTMODE_NEWLIB
;
sal_uInt16
nMode
=
INPUTMODE_NEWLIB
;
if
(
aScriptsBox
.
GetModel
()
->
GetDepth
(
pEntry
)
==
0
)
if
(
m_pScriptsBox
->
GetModel
()
->
GetDepth
(
pEntry
)
==
0
)
{
{
aNewStdName
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Library"
)
)
;
aNewStdName
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Library"
)
)
;
}
}
...
@@ -967,7 +985,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
...
@@ -967,7 +985,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
while
(
!
bValid
);
while
(
!
bValid
);
// open up parent node (which ensures it's loaded)
// open up parent node (which ensures it's loaded)
aScriptsBox
.
RequestingChildren
(
pEntry
);
m_pScriptsBox
->
RequestingChildren
(
pEntry
);
Sequence
<
Any
>
args
(
1
);
Sequence
<
Any
>
args
(
1
);
args
[
0
]
<<=
aNewName
;
args
[
0
]
<<=
aNewName
;
...
@@ -1006,16 +1024,16 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
...
@@ -1006,16 +1024,16 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
if
(
aChildNode
->
getType
()
==
browse
::
BrowseNodeTypes
::
SCRIPT
)
if
(
aChildNode
->
getType
()
==
browse
::
BrowseNodeTypes
::
SCRIPT
)
{
{
SAL_WNODEPRECATED_DECLARATIONS_PUSH
SAL_WNODEPRECATED_DECLARATIONS_PUSH
pNewEntry
=
aScriptsBox
.
insertEntry
(
aChildName
,
pNewEntry
=
m_pScriptsBox
->
insertEntry
(
aChildName
,
IMG_MACRO
,
pEntry
,
false
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_METHOD
,
aChildNode
,
xDocumentModel
)
)
);
RID_CUI
IMG_MACRO
,
pEntry
,
false
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_METHOD
,
aChildNode
,
xDocumentModel
)
)
);
SAL_WNODEPRECATED_DECLARATIONS_POP
SAL_WNODEPRECATED_DECLARATIONS_POP
}
}
else
else
{
{
SAL_WNODEPRECATED_DECLARATIONS_PUSH
SAL_WNODEPRECATED_DECLARATIONS_PUSH
pNewEntry
=
aScriptsBox
.
insertEntry
(
aChildName
,
pNewEntry
=
m_pScriptsBox
->
insertEntry
(
aChildName
,
IMG_LIB
,
pEntry
,
false
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_SCRIPTCONTAINER
,
aChildNode
,
xDocumentModel
)
)
);
RID_CUI
IMG_LIB
,
pEntry
,
false
,
std
::
auto_ptr
<
SFEntry
>
(
new
SFEntry
(
OBJTYPE_SCRIPTCONTAINER
,
aChildNode
,
xDocumentModel
)
)
);
SAL_WNODEPRECATED_DECLARATIONS_POP
SAL_WNODEPRECATED_DECLARATIONS_POP
// If the Parent is not loaded then set to
// If the Parent is not loaded then set to
...
@@ -1028,8 +1046,8 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
...
@@ -1028,8 +1046,8 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
userData
->
setLoaded
();
userData
->
setLoaded
();
}
}
}
}
aScriptsBox
.
SetCurEntry
(
pNewEntry
);
m_pScriptsBox
->
SetCurEntry
(
pNewEntry
);
aScriptsBox
.
Select
(
aScriptsBox
.
GetCurEntry
()
);
m_pScriptsBox
->
Select
(
m_pScriptsBox
->
GetCurEntry
()
);
}
}
else
else
...
@@ -1105,9 +1123,9 @@ void SvxScriptOrgDialog::renameEntry( SvTreeListEntry* pEntry )
...
@@ -1105,9 +1123,9 @@ void SvxScriptOrgDialog::renameEntry( SvTreeListEntry* pEntry )
}
}
if
(
aChildNode
.
is
()
)
if
(
aChildNode
.
is
()
)
{
{
aScriptsBox
.
SetEntryText
(
pEntry
,
aChildNode
->
getName
()
);
m_pScriptsBox
->
SetEntryText
(
pEntry
,
aChildNode
->
getName
()
);
aScriptsBox
.
SetCurEntry
(
pEntry
);
m_pScriptsBox
->
SetCurEntry
(
pEntry
);
aScriptsBox
.
Select
(
aScriptsBox
.
GetCurEntry
()
);
m_pScriptsBox
->
Select
(
m_pScriptsBox
->
GetCurEntry
()
);
}
}
else
else
...
@@ -1155,8 +1173,8 @@ void SvxScriptOrgDialog::deleteEntry( SvTreeListEntry* pEntry )
...
@@ -1155,8 +1173,8 @@ void SvxScriptOrgDialog::deleteEntry( SvTreeListEntry* pEntry )
if
(
result
==
sal_True
)
if
(
result
==
sal_True
)
{
{
aScriptsBox
.
deleteTree
(
pEntry
);
m_pScriptsBox
->
deleteTree
(
pEntry
);
aScriptsBox
.
GetModel
()
->
Remove
(
pEntry
);
m_pScriptsBox
->
GetModel
()
->
Remove
(
pEntry
);
}
}
else
else
{
{
...
@@ -1220,13 +1238,13 @@ Selection_hash SvxScriptOrgDialog::m_lastSelection;
...
@@ -1220,13 +1238,13 @@ Selection_hash SvxScriptOrgDialog::m_lastSelection;
void
SvxScriptOrgDialog
::
StoreCurrentSelection
()
void
SvxScriptOrgDialog
::
StoreCurrentSelection
()
{
{
String
aDescription
;
String
aDescription
;
if
(
aScriptsBox
.
IsSelected
(
aScriptsBox
.
GetHdlEntry
()
)
)
if
(
m_pScriptsBox
->
IsSelected
(
m_pScriptsBox
->
GetHdlEntry
()
)
)
{
{
SvTreeListEntry
*
pEntry
=
aScriptsBox
.
GetHdlEntry
();
SvTreeListEntry
*
pEntry
=
m_pScriptsBox
->
GetHdlEntry
();
while
(
pEntry
)
while
(
pEntry
)
{
{
aDescription
.
Insert
(
aScriptsBox
.
GetEntryText
(
pEntry
),
0
);
aDescription
.
Insert
(
m_pScriptsBox
->
GetEntryText
(
pEntry
),
0
);
pEntry
=
aScriptsBox
.
GetParent
(
pEntry
);
pEntry
=
m_pScriptsBox
->
GetParent
(
pEntry
);
if
(
pEntry
)
if
(
pEntry
)
aDescription
.
Insert
(
';'
,
0
);
aDescription
.
Insert
(
';'
,
0
);
}
}
...
@@ -1245,21 +1263,21 @@ void SvxScriptOrgDialog::RestorePreviousSelection()
...
@@ -1245,21 +1263,21 @@ void SvxScriptOrgDialog::RestorePreviousSelection()
while
(
nIndex
!=
STRING_NOTFOUND
)
while
(
nIndex
!=
STRING_NOTFOUND
)
{
{
String
aTmp
(
aStoredEntry
.
GetToken
(
0
,
';'
,
nIndex
)
);
String
aTmp
(
aStoredEntry
.
GetToken
(
0
,
';'
,
nIndex
)
);
SvTreeListEntry
*
pTmpEntry
=
aScriptsBox
.
FirstChild
(
pEntry
);
SvTreeListEntry
*
pTmpEntry
=
m_pScriptsBox
->
FirstChild
(
pEntry
);
while
(
pTmpEntry
)
while
(
pTmpEntry
)
{
{
if
(
aScriptsBox
.
GetEntryText
(
pTmpEntry
)
==
aTmp
)
if
(
m_pScriptsBox
->
GetEntryText
(
pTmpEntry
)
==
aTmp
)
{
{
pEntry
=
pTmpEntry
;
pEntry
=
pTmpEntry
;
break
;
break
;
}
}
pTmpEntry
=
aScriptsBox
.
NextSibling
(
pTmpEntry
);
pTmpEntry
=
m_pScriptsBox
->
NextSibling
(
pTmpEntry
);
}
}
if
(
!
pTmpEntry
)
if
(
!
pTmpEntry
)
break
;
break
;
aScriptsBox
.
RequestingChildren
(
pEntry
);
m_pScriptsBox
->
RequestingChildren
(
pEntry
);
}
}
aScriptsBox
.
SetCurEntry
(
pEntry
);
m_pScriptsBox
->
SetCurEntry
(
pEntry
);
}
}
::
rtl
::
OUString
ReplaceString
(
::
rtl
::
OUString
ReplaceString
(
...
...
cui/source/dialogs/scriptdlg.hrc
Dosyayı görüntüle @
3f7f957e
...
@@ -21,22 +21,6 @@
...
@@ -21,22 +21,6 @@
#include <svl/solar.hrc>
#include <svl/solar.hrc>
// ScriptOrgDialog
#define SF_TXT_SCRIPTS 1
#define SF_CTRL_SCRIPTSBOX 2
#define SF_PB_RUN 3
#define SF_PB_CLOSE 4
#define SF_PB_CREATE 5
#define SF_PB_EDIT 6
#define SF_PB_RENAME 7
#define SF_PB_DEL 8
#define SF_PB_HELP 9
#define IMG_HARDDISK 1
#define IMG_LIB 3
#define IMG_MACRO 5
#define IMG_DOCUMENT 7
// NewObjectDialog
// NewObjectDialog
#define FT_NEWLIB 10
#define FT_NEWLIB 10
#define STR_FT_NEWMACRO 11
#define STR_FT_NEWMACRO 11
...
@@ -48,15 +32,4 @@
...
@@ -48,15 +32,4 @@
#define STR_FT_RENAME 18
#define STR_FT_RENAME 18
#define STR_RENAME 19
#define STR_RENAME 19
// Others
#endif
/*
Please be aware that these strings are global resources, don't use self-defined values!
You have to use the RID_SVXSTART macro do avoid ID clashes with other resource files. Sfx2 delivers
some of its own resource files to svx - where they are added to svx resource file!!
*/
#define STR_MYMACROS 32
#define STR_PRODMACROS 33
#endif // _SCRIPTDLG_HRC
cui/source/dialogs/scriptdlg.src
Dosyayı görüntüle @
3f7f957e
...
@@ -20,116 +20,6 @@
...
@@ -20,116 +20,6 @@
#include "scriptdlg.hrc"
#include "scriptdlg.hrc"
#include "helpid.hrc"
#include "helpid.hrc"
#define MASKCOLOR MaskColor = \
Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; };
ModalDialog RID_DLG_SCRIPTORGANIZER
{
OutputSize = TRUE ;
Size = MAP_APPFONT ( 210 , 165 ) ;
Moveable = TRUE ;
Text [ en-US ] = "%MACROLANG Macros";
Closeable = TRUE ;
HelpId = HID_SCRIPTORG_DIALOG;
FixedText SF_TXT_SCRIPTS
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 100 , 10 ) ;
Text [ en-US ] = "~Macros" ;
};
Control SF_CTRL_SCRIPTSBOX
{
HelpId = HID_SCRIPTSBOX ;
Border = TRUE ;
Pos = MAP_APPFONT ( 6 , 16 ) ;
Size = MAP_APPFONT ( 130 , 144 ) ;
TabStop = TRUE ;
Image IMG_HARDDISK
{
ImageBitmap = Bitmap { File = "harddisk_16.bmp" ; };
MASKCOLOR
};
Image IMG_LIB
{
ImageBitmap = Bitmap { File = "im30820.png"; };
MASKCOLOR
};
Image IMG_MACRO
{
ImageBitmap = Bitmap { File = "im30821.png"; };
MASKCOLOR
};
Image IMG_DOCUMENT
{
ImageBitmap = Bitmap { File = "im30826.png"; };
MASKCOLOR
};
String STR_MYMACROS
{
Text [ en-US ] = "My Macros";
};
String STR_PRODMACROS
{
Text [ en-US ] = "%PRODUCTNAME Macros";
};
};
PushButton SF_PB_RUN
{
HelpID = "cui:PushButton:RID_DLG_SCRIPTORGANIZER:SF_PB_RUN";
Pos = MAP_APPFONT ( 144 , 6 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
DefButton = TRUE;
Text [ en-US ] = "R~un" ;
};
CancelButton SF_PB_CLOSE
{
Pos = MAP_APPFONT ( 144 , 23 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
TabStop = TRUE ;
Text [ en-US ] = "Close" ;
};
PushButton SF_PB_CREATE
{
HelpID = "cui:PushButton:RID_DLG_SCRIPTORGANIZER:SF_PB_CREATE";
Size = MAP_APPFONT ( 60 , 14 ) ;
Pos = MAP_APPFONT ( 144 , 60 ) ;
Text [ en-US ] = "~Create..." ;
TabStop = TRUE ;
};
PushButton SF_PB_EDIT
{
HelpID = "cui:PushButton:RID_DLG_SCRIPTORGANIZER:SF_PB_EDIT";
Size = MAP_APPFONT ( 60 , 14 ) ;
Pos = MAP_APPFONT ( 144 , 77 ) ;
Text [ en-US ] = "~Edit" ;
TabStop = TRUE ;
};
PushButton SF_PB_RENAME
{
HelpID = "cui:PushButton:RID_DLG_SCRIPTORGANIZER:SF_PB_RENAME";
Pos = MAP_APPFONT ( 144 , 94 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
Text [ en-US ] = "Rename..." ;
};
PushButton SF_PB_DEL
{
HelpID = "cui:PushButton:RID_DLG_SCRIPTORGANIZER:SF_PB_DEL";
Pos = MAP_APPFONT ( 144 , 114 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
Text [ en-US ] = "~Delete..." ;
TabStop = TRUE ;
};
HelpButton SF_PB_HELP
{
Pos = MAP_APPFONT ( 144 , 131 ) ;
Size = MAP_APPFONT ( 60 , 14 ) ;
TabStop = TRUE ;
};
};
ModalDialog RID_DLG_NEWLIB
ModalDialog RID_DLG_NEWLIB
{
{
HelpID = "cui:ModalDialog:RID_DLG_NEWLIB";
HelpID = "cui:ModalDialog:RID_DLG_NEWLIB";
...
...
cui/source/inc/helpid.hrc
Dosyayı görüntüle @
3f7f957e
...
@@ -250,8 +250,6 @@
...
@@ -250,8 +250,6 @@
#define HID_HANGULHANJA_EDIT_DLG "CUI_HID_HANGULHANJA_EDIT_DLG"
#define HID_HANGULHANJA_EDIT_DLG "CUI_HID_HANGULHANJA_EDIT_DLG"
#define HID_HANGULHANJA_OPT_DICTS_LB "CUI_HID_HANGULHANJA_OPT_DICTS_LB"
#define HID_HANGULHANJA_OPT_DICTS_LB "CUI_HID_HANGULHANJA_OPT_DICTS_LB"
#define HID_MULTIPATH "CUI_HID_MULTIPATH"
#define HID_MULTIPATH "CUI_HID_MULTIPATH"
#define HID_SCRIPTORG_DIALOG "CUI_HID_SCRIPTORG_DIALOG"
#define HID_SCRIPTSBOX "CUI_HID_SCRIPTSBOX"
#define HID_SPELLCHECK "CUI_HID_SPELLCHECK"
#define HID_SPELLCHECK "CUI_HID_SPELLCHECK"
#define HID_TPSIZE_CTRL "CUI_HID_TPSIZE_CTRL"
#define HID_TPSIZE_CTRL "CUI_HID_TPSIZE_CTRL"
#define HID_TPROTATION_CTRL1 "CUI_HID_TPROTATION_CTRL1"
#define HID_TPROTATION_CTRL1 "CUI_HID_TPROTATION_CTRL1"
...
...
cui/source/inc/scriptdlg.hxx
Dosyayı görüntüle @
3f7f957e
...
@@ -69,6 +69,8 @@ private:
...
@@ -69,6 +69,8 @@ private:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
getDocumentModel
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xCtx
,
::
rtl
::
OUString
&
docName
);
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
getDocumentModel
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xCtx
,
::
rtl
::
OUString
&
docName
);
void
Init
();
protected
:
protected
:
void
ExpandTree
(
SvTreeListEntry
*
pRootEntry
);
void
ExpandTree
(
SvTreeListEntry
*
pRootEntry
);
virtual
void
RequestingChildren
(
SvTreeListEntry
*
pParent
);
virtual
void
RequestingChildren
(
SvTreeListEntry
*
pParent
);
...
@@ -78,7 +80,8 @@ public:
...
@@ -78,7 +80,8 @@ public:
void
Init
(
const
::
rtl
::
OUString
&
language
);
void
Init
(
const
::
rtl
::
OUString
&
language
);
void
RequestSubEntries
(
SvTreeListEntry
*
pRootEntry
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
script
::
browse
::
XBrowseNode
>&
node
,
void
RequestSubEntries
(
SvTreeListEntry
*
pRootEntry
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
script
::
browse
::
XBrowseNode
>&
node
,
::
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XModel
>&
model
);
::
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XModel
>&
model
);
SFTreeListBox
(
Window
*
pParent
,
const
ResId
&
rRes
);
SFTreeListBox
(
Window
*
pParent
,
const
ResId
&
rRes
);
SFTreeListBox
(
Window
*
pParent
);
~
SFTreeListBox
();
~
SFTreeListBox
();
void
ExpandAllTrees
();
void
ExpandAllTrees
();
...
@@ -139,16 +142,14 @@ public:
...
@@ -139,16 +142,14 @@ public:
class
SvxScriptOrgDialog
:
public
SfxModalDialog
class
SvxScriptOrgDialog
:
public
SfxModalDialog
{
{
protected
:
protected
:
FixedText
aScriptsTxt
;
SFTreeListBox
*
m_pScriptsBox
;
SFTreeListBox
aScriptsBox
;
PushButton
*
m_pRunButton
;
PushButton
aRunButton
;
PushButton
*
m_pCloseButton
;
CancelButton
aCloseButton
;
PushButton
*
m_pCreateButton
;
PushButton
aCreateButton
;
PushButton
*
m_pEditButton
;
PushButton
aEditButton
;
PushButton
*
m_pRenameButton
;
PushButton
aRenameButton
;
PushButton
*
m_pDelButton
;
PushButton
aDelButton
;
HelpButton
aHelpButton
;
::
rtl
::
OUString
m_sLanguage
;
::
rtl
::
OUString
m_sLanguage
;
static
Selection_hash
m_lastSelection
;
static
Selection_hash
m_lastSelection
;
...
...
cui/uiconfig/ui/scriptorganizer.ui
0 → 100644
Dosyayı görüntüle @
3f7f957e
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkDialog"
id=
"ScriptOrganizerDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
5
</property>
<property
name=
"title"
translatable=
"yes"
>
%MACROLANG Macros
</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=
"spacing"
>
2
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
id=
"dialog-action_area1"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"layout_style"
>
start
</property>
<child>
<object
class=
"GtkButton"
id=
"run"
>
<property
name=
"label"
>
Run
</property>
<property
name=
"use_action_appearance"
>
False
</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_action_appearance"
>
False
</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=
"close"
>
<property
name=
"label"
>
gtk-close
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_action_appearance"
>
False
</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=
"create"
>
<property
name=
"label"
>
Create...
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_action_appearance"
>
False
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
<property
name=
"secondary"
>
True
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"edit"
>
<property
name=
"label"
>
gtk-edit
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"use_stock"
>
True
</property>
<property
name=
"image_position"
>
bottom
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
3
</property>
<property
name=
"secondary"
>
True
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"rename"
>
<property
name=
"label"
>
Rename...
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_action_appearance"
>
False
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
4
</property>
<property
name=
"secondary"
>
True
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"delete"
>
<property
name=
"label"
>
Delete...
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_action_appearance"
>
False
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
5
</property>
<property
name=
"secondary"
>
True
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"help"
>
<property
name=
"label"
>
gtk-help
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
6
</property>
<property
name=
"secondary"
>
True
</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=
"frame2"
>
<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=
"alignment2"
>
<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=
"cuilo:SFTreeListBox"
id=
"scripts"
>
<property
name=
"height_request"
>
300
</property>
<property
name=
"width_request"
>
280
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
</object>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"macrosft"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Macros
</property>
<attributes>
<attribute
name=
"weight"
value=
"bold"
/>
</attributes>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget
response=
"0"
>
run
</action-widget>
<action-widget
response=
"0"
>
close
</action-widget>
<action-widget
response=
"0"
>
create
</action-widget>
<action-widget
response=
"0"
>
edit
</action-widget>
<action-widget
response=
"0"
>
rename
</action-widget>
<action-widget
response=
"0"
>
delete
</action-widget>
<action-widget
response=
"0"
>
help
</action-widget>
</action-widgets>
</object>
</interface>
cui/util/hidother.src
Dosyayı görüntüle @
3f7f957e
...
@@ -148,7 +148,6 @@ hidspecial HID_REDLINING_DLG { HelpID = HID_REDLINING_DLG; };
...
@@ -148,7 +148,6 @@ hidspecial HID_REDLINING_DLG { HelpID = HID_REDLINING_DLG; };
hidspecial HID_REDLINING_EDIT { HelpID = HID_REDLINING_EDIT; };
hidspecial HID_REDLINING_EDIT { HelpID = HID_REDLINING_EDIT; };
hidspecial HID_REDLINING_NEXT { HelpID = HID_REDLINING_NEXT; };
hidspecial HID_REDLINING_NEXT { HelpID = HID_REDLINING_NEXT; };
hidspecial HID_REDLINING_PREV { HelpID = HID_REDLINING_PREV; };
hidspecial HID_REDLINING_PREV { HelpID = HID_REDLINING_PREV; };
hidspecial HID_SCRIPTSBOX { HelpId = HID_SCRIPTSBOX; };
hidspecial HID_SPLDLG_BUTTON_CHANGE { HelpID = HID_SPLDLG_BUTTON_CHANGE ; };
hidspecial HID_SPLDLG_BUTTON_CHANGE { HelpID = HID_SPLDLG_BUTTON_CHANGE ; };
hidspecial HID_SPLDLG_BUTTON_CHANGEALL { HelpID = HID_SPLDLG_BUTTON_CHANGEALL ; };
hidspecial HID_SPLDLG_BUTTON_CHANGEALL { HelpID = HID_SPLDLG_BUTTON_CHANGEALL ; };
hidspecial HID_SPLDLG_BUTTON_CLOSE { HelpID = HID_SPLDLG_BUTTON_CLOSE ; };
hidspecial HID_SPLDLG_BUTTON_CLOSE { HelpID = HID_SPLDLG_BUTTON_CLOSE ; };
...
...
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