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
258483a5
Kaydet (Commit)
258483a5
authored
Eki 10, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert insert plugin to .ui
Change-Id: I229b152ba132329ca20cff0afd4f84e1c052b97f
üst
f9775fcb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
112 deletions
+52
-112
UI_cui.mk
cui/UI_cui.mk
+1
-0
insdlg.cxx
cui/source/dialogs/insdlg.cxx
+20
-16
svuidlg.hrc
cui/source/dialogs/svuidlg.hrc
+0
-7
svuidlg.src
cui/source/dialogs/svuidlg.src
+0
-60
insdlg.hxx
cui/source/inc/insdlg.hxx
+14
-18
insertplugin.ui
cui/uiconfig/ui/insertplugin.ui
+17
-11
No files found.
cui/UI_cui.mk
Dosyayı görüntüle @
258483a5
...
...
@@ -13,6 +13,7 @@ $(eval $(call gb_UI_add_uifiles,cui,\
cui/uiconfig/ui/charnamepage \
cui/uiconfig/ui/effectspage \
cui/uiconfig/ui/hyphenate \
cui/uiconfig/ui/insertplugin \
cui/uiconfig/ui/positionpage \
cui/uiconfig/ui/specialcharacters \
cui/uiconfig/ui/thesaurus \
...
...
cui/source/dialogs/insdlg.cxx
Dosyayı görüntüle @
258483a5
...
...
@@ -39,13 +39,13 @@
#include <tools/urlobj.hxx>
#include <tools/debug.hxx>
#include <svl/urihelper.hxx>
#include <svtools/svmedit.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/group.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx>
#include <vcl/vclmedit.hxx>
#include <sot/clsids.hxx>
#include <sfx2/frmdescr.hxx>
#include <sfx2/viewsh.hxx>
...
...
@@ -98,6 +98,15 @@ InsertObjectDialog_Impl::InsertObjectDialog_Impl( Window * pParent, const ResId
{
}
InsertObjectDialog_Impl
::
InsertObjectDialog_Impl
(
Window
*
pParent
,
const
OString
&
rID
,
const
OUString
&
rUIXMLDescription
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XStorage
>&
xStorage
)
:
ModalDialog
(
pParent
,
rID
,
rUIXMLDescription
)
,
m_xStorage
(
xStorage
)
,
aCnt
(
m_xStorage
)
{
}
// -----------------------------------------------------------------------
IMPL_LINK_NOARG_INLINE_START
(
SvInsertOleDlg
,
DoubleClickHdl
)
...
...
@@ -411,7 +420,7 @@ IMPL_LINK_NOARG(SvInsertPlugInDialog, BrowseHdl)
{
Sequence
<
OUString
>
aPathSeq
(
xFilePicker
->
getFiles
()
);
INetURLObject
aObj
(
aPathSeq
[
0
]
);
aEdFileurl
.
SetText
(
aObj
.
PathToFileName
()
);
m_pEdFileurl
->
SetText
(
aObj
.
PathToFileName
()
);
}
}
}
...
...
@@ -421,20 +430,15 @@ IMPL_LINK_NOARG(SvInsertPlugInDialog, BrowseHdl)
// -----------------------------------------------------------------------
SvInsertPlugInDialog
::
SvInsertPlugInDialog
(
Window
*
pParent
,
const
uno
::
Reference
<
embed
::
XStorage
>&
xStorage
)
:
InsertObjectDialog_Impl
(
pParent
,
CUI_RES
(
MD_INSERT_OBJECT_PLUGIN
),
xStorage
),
aGbFileurl
(
this
,
CUI_RES
(
GB_FILEURL
)
),
aEdFileurl
(
this
,
CUI_RES
(
ED_FILEURL
)
),
aBtnFileurl
(
this
,
CUI_RES
(
BTN_FILEURL
)
),
aGbPluginsOptions
(
this
,
CUI_RES
(
GB_PLUGINS_OPTIONS
)
),
aEdPluginsOptions
(
this
,
CUI_RES
(
ED_PLUGINS_OPTIONS
)
),
aOKButton1
(
this
,
CUI_RES
(
1
)
),
aCancelButton1
(
this
,
CUI_RES
(
1
)
),
aHelpButton1
(
this
,
CUI_RES
(
1
)
),
m_pURL
(
0
)
SvInsertPlugInDialog
::
SvInsertPlugInDialog
(
Window
*
pParent
,
const
uno
::
Reference
<
embed
::
XStorage
>&
xStorage
)
:
InsertObjectDialog_Impl
(
pParent
,
"InsertPluginDialog"
,
"cui/ui/insertplugin.ui"
,
xStorage
)
,
m_pURL
(
0
)
{
FreeResource
();
aBtnFileurl
.
SetClickHdl
(
LINK
(
this
,
SvInsertPlugInDialog
,
BrowseHdl
)
);
get
(
m_pEdFileurl
,
"urled"
);
get
(
m_pBtnFileurl
,
"urlbtn"
);
get
(
m_pEdPluginsOptions
,
"pluginoptions"
);
m_pBtnFileurl
->
SetClickHdl
(
LINK
(
this
,
SvInsertPlugInDialog
,
BrowseHdl
));
}
SvInsertPlugInDialog
::~
SvInsertPlugInDialog
()
...
...
@@ -464,7 +468,7 @@ static void Plugin_ImplFillCommandSequence( const String& aCommands, uno::Sequen
short
SvInsertPlugInDialog
::
Execute
()
{
short
nRet
=
RET_OK
;
m_aCommands
.
Erase
();
m_aCommands
=
OUString
();
DBG_ASSERT
(
m_xStorage
.
is
(),
"No storage!"
);
if
(
m_xStorage
.
is
()
&&
(
nRet
=
Dialog
::
Execute
()
)
==
RET_OK
)
{
...
...
cui/source/dialogs/svuidlg.hrc
Dosyayı görüntüle @
258483a5
...
...
@@ -73,13 +73,6 @@
#define BTN_FILEPATH 11
#define CB_FILELINK 12
#define MD_INSERT_OBJECT_PLUGIN 32008
#define ED_FILEURL 10
#define BTN_FILEURL 11
#define GB_FILEURL 12
#define ED_PLUGINS_OPTIONS 20
#define GB_PLUGINS_OPTIONS 21
#define MD_INSERT_OBJECT_APPLET 32009
#define FT_CLASSFILE 10
#define ED_CLASSFILE 11
...
...
cui/source/dialogs/svuidlg.src
Dosyayı görüntüle @
258483a5
...
...
@@ -385,66 +385,6 @@ ModalDialog MD_INSERT_OLEOBJECT
};
Text [ en-US ] = "Insert OLE Object" ;
};
ModalDialog MD_INSERT_OBJECT_PLUGIN
{
HelpID = "cui:ModalDialog:MD_INSERT_OBJECT_PLUGIN";
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 284 , 123 ) ;
Moveable = TRUE ;
Edit ED_FILEURL
{
HelpID = "cui:Edit:MD_INSERT_OBJECT_PLUGIN:ED_FILEURL";
Border = TRUE ;
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 204 , 12 ) ;
};
PushButton BTN_FILEURL
{
HelpID = "cui:PushButton:MD_INSERT_OBJECT_PLUGIN:BTN_FILEURL";
Pos = MAP_APPFONT ( 166 , 29 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Browse..." ;
};
FixedLine GB_FILEURL
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 216 , 8 ) ;
Text [ en-US ] = "File / URL" ;
};
MultiLineEdit ED_PLUGINS_OPTIONS
{
HelpID = "cui:MultiLineEdit:MD_INSERT_OBJECT_PLUGIN:ED_PLUGINS_OPTIONS";
Border = TRUE ;
Pos = MAP_APPFONT ( 12 , 66 ) ;
Size = MAP_APPFONT ( 204 , 45 ) ;
VScroll = TRUE ;
IgnoreTab = TRUE;
};
FixedLine GB_PLUGINS_OPTIONS
{
Pos = MAP_APPFONT ( 6 , 55 ) ;
Size = MAP_APPFONT ( 216 , 8 ) ;
Text [ en-US ] = "Options" ;
};
OKButton 1
{
Pos = MAP_APPFONT ( 228 , 6 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
DefButton = TRUE ;
};
CancelButton 1
{
Pos = MAP_APPFONT ( 228 , 23 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
HelpButton 1
{
Pos = MAP_APPFONT ( 228 , 43 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
Text [ en-US ] = "Insert Plug-in" ;
};
ModalDialog MD_INSERT_OBJECT_APPLET
{
HelpID = "cui:ModalDialog:MD_INSERT_OBJECT_APPLET";
...
...
cui/source/inc/insdlg.hxx
Dosyayı görüntüle @
258483a5
...
...
@@ -43,6 +43,9 @@ protected:
comphelper
::
EmbeddedObjectContainer
aCnt
;
InsertObjectDialog_Impl
(
Window
*
pParent
,
const
ResId
&
rResId
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XStorage
>&
xStorage
);
InsertObjectDialog_Impl
(
Window
*
pParent
,
const
OString
&
rID
,
const
OUString
&
rUIXMLDescription
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XStorage
>&
xStorage
);
public
:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XEmbeddedObject
>
GetObject
()
{
return
m_xObj
;
}
...
...
@@ -92,28 +95,21 @@ public:
class
SvInsertPlugInDialog
:
public
InsertObjectDialog_Impl
{
private
:
FixedLine
aGbFileurl
;
Edit
aEdFileurl
;
PushButton
aBtnFileurl
;
FixedLine
aGbPluginsOptions
;
MultiLineEdit
aEdPluginsOptions
;
OKButton
aOKButton1
;
CancelButton
aCancelButton1
;
HelpButton
aHelpButton1
;
INetURLObject
*
m_pURL
;
String
m_aCommands
;
Edit
*
m_pEdFileurl
;
PushButton
*
m_pBtnFileurl
;
VCLMultiLineEdit
*
m_pEdPluginsOptions
;
INetURLObject
*
m_pURL
;
OUString
m_aCommands
;
DECL_LINK
(
BrowseHdl
,
void
*
);
String
GetPlugInFile
()
const
{
return
aEdFileurl
.
GetText
();
}
String
GetPlugInOptions
()
const
{
return
aEdPluginsOptions
.
GetText
();
}
OUString
GetPlugInFile
()
const
{
return
m_pEdFileurl
->
GetText
();
}
OUString
GetPlugInOptions
()
const
{
return
m_pEdPluginsOptions
->
GetText
();
}
public
:
SvInsertPlugInDialog
(
Window
*
pParent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XStorage
>&
xStorage
);
~
SvInsertPlugInDialog
();
virtual
short
Execute
();
SvInsertPlugInDialog
(
Window
*
pParent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
embed
::
XStorage
>&
xStorage
);
~
SvInsertPlugInDialog
();
virtual
short
Execute
();
};
class
SfxInsertFloatingFrameDialog
:
public
InsertObjectDialog_Impl
...
...
cui/uiconfig/ui/insertplugin.ui
Dosyayı görüntüle @
258483a5
...
...
@@ -27,24 +27,26 @@
<property
name=
"can_focus"
>
False
</property>
<property
name=
"left_padding"
>
12
</property>
<child>
<object
class=
"Gtk
Box"
id=
"box
1"
>
<object
class=
"Gtk
Grid"
id=
"grid
1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"spacing"
>
6
</property>
<child>
<object
class=
"GtkEntry"
id=
"
entry1
"
>
<object
class=
"GtkEntry"
id=
"
urled
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
<property
name=
"invisible_char_set"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"
button1
"
>
<object
class=
"GtkButton"
id=
"
urlbtn
"
>
<property
name=
"label"
translatable=
"yes"
>
Browse...
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
...
...
@@ -53,9 +55,10 @@
<property
name=
"use_action_appearance"
>
False
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
...
...
@@ -90,14 +93,17 @@
<property
name=
"left_padding"
>
12
</property>
<child>
<object
class=
"GtkScrolledWindow"
id=
"scrolledwindow1"
>
<property
name=
"width_request"
>
400
</property>
<property
name=
"height_request"
>
80
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"hscrollbar_policy"
>
never
</property>
<property
name=
"vscrollbar_policy"
>
always
</property>
<property
name=
"shadow_type"
>
in
</property>
<child>
<object
class=
"GtkTextView"
id=
"
textview1
"
>
<object
class=
"GtkTextView"
id=
"
pluginoptions
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"wrap_mode"
>
char
</property>
...
...
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