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
7895ebda
Kaydet (Commit)
7895ebda
authored
Eki 03, 2012
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add "External Edit" menu function for bitmaps to Impress and Draw
Change-Id: I77f2c03d9e4aadebe2468c13f0a703eb389155d7
üst
bd24ac7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
_drvwsh.sdi
sd/sdi/_drvwsh.sdi
+5
-0
popup2_tmpl.src
sd/source/ui/app/popup2_tmpl.src
+1
-0
drviews2.cxx
sd/source/ui/view/drviews2.cxx
+47
-0
No files found.
sd/sdi/_drvwsh.sdi
Dosyayı görüntüle @
7895ebda
...
...
@@ -80,6 +80,11 @@ interface DrawView
ExecMethod = FuTemporary ;
StateMethod = GetMenuState ;
]
SID_EXTERNAL_EDIT
[
ExecMethod = FuTemporary ;
StateMethod = GetMenuState ;
]
SID_CUT // ole : no, status : ?
[
ExecMethod = FuSupport ;
...
...
sd/source/ui/app/popup2_tmpl.src
Dosyayı görüntüle @
7895ebda
...
...
@@ -660,6 +660,7 @@
SEPARATOR
MenuItem { ITEM_SAVE_GRAPHIC };
MenuItem { ITEM_COMPRESS_GRAPHIC };
MenuItem { ITEM_EXTERNAL_EDIT };
};
};
...
...
sd/source/ui/view/drviews2.cxx
Dosyayı görüntüle @
7895ebda
...
...
@@ -49,6 +49,7 @@
#include <svx/xlineit0.hxx>
#include <svx/graphichelper.hxx>
#include <svx/compressgraphicdialog.hxx>
#include <svx/extedit.hxx>
#include <svx/svdoutl.hxx>
#include <svx/xlnwtit.hxx>
#include <svx/svdoattr.hxx>
...
...
@@ -93,6 +94,34 @@ using namespace ::com::sun::star::uno;
namespace
sd
{
class
SdExternalToolEdit
:
public
ExternalToolEdit
{
FmFormView
*
m_pView
;
SdrObject
*
m_pObj
;
public
:
SdExternalToolEdit
(
FmFormView
*
pView
,
SdrObject
*
pObj
)
:
m_pView
(
pView
),
m_pObj
(
pObj
)
{}
virtual
void
Update
(
Graphic
&
aGraphic
)
{
SdrPageView
*
pPageView
=
m_pView
->
GetSdrPageView
();
if
(
pPageView
)
{
SdrGrafObj
*
pNewObj
=
(
SdrGrafObj
*
)
m_pObj
->
Clone
();
String
aStr
(
m_pView
->
GetDescriptionOfMarkedObjects
()
);
aStr
.
Append
(
sal_Unicode
(
' '
)
);
aStr
.
Append
(
String
(
"External Edit"
)
);
m_pView
->
BegUndo
(
aStr
);
pNewObj
->
SetGraphicObject
(
aGraphic
);
m_pView
->
ReplaceObjectAtView
(
m_pObj
,
*
pPageView
,
pNewObj
);
m_pView
->
EndUndo
();
}
}
};
/*************************************************************************
|*
|* SfxRequests fuer temporaere Funktionen
...
...
@@ -950,6 +979,24 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
}
break
;
case
SID_EXTERNAL_EDIT
:
{
const
SdrMarkList
&
rMarkList
=
mpDrawView
->
GetMarkedObjectList
();
if
(
rMarkList
.
GetMarkCount
()
==
1
)
{
SdrObject
*
pObj
=
rMarkList
.
GetMark
(
0
)
->
GetMarkedSdrObj
();
if
(
pObj
&&
pObj
->
ISA
(
SdrGrafObj
)
&&
(
(
SdrGrafObj
*
)
pObj
)
->
GetGraphicType
()
==
GRAPHIC_BITMAP
)
{
GraphicObject
aGraphicObject
(
(
(
SdrGrafObj
*
)
pObj
)
->
GetGraphicObject
()
);
SdExternalToolEdit
*
aExternalToolEdit
=
new
SdExternalToolEdit
(
mpDrawView
,
pObj
);
aExternalToolEdit
->
Edit
(
&
aGraphicObject
);
}
}
Cancel
();
rReq
.
Ignore
();
}
break
;
case
SID_COMPRESS_GRAPHIC
:
{
const
SdrMarkList
&
rMarkList
=
mpDrawView
->
GetMarkedObjectList
();
...
...
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