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
c3b26856
Kaydet (Commit)
c3b26856
authored
Şub 19, 2017
tarafından
Pranav Kant
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sd lok: Implement ViewAnnotations command
Change-Id: I87dde393adc82dc59c08ec96d1fd79145de6f3c6
üst
6b410398
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
unomodel.hxx
sd/source/ui/inc/unomodel.hxx
+2
-0
unomodel.cxx
sd/source/ui/unoidl/unomodel.cxx
+37
-0
No files found.
sd/source/ui/inc/unomodel.hxx
Dosyayı görüntüle @
c3b26856
...
@@ -264,6 +264,8 @@ public:
...
@@ -264,6 +264,8 @@ public:
virtual
bool
isMimeTypeSupported
()
override
;
virtual
bool
isMimeTypeSupported
()
override
;
/// @see vcl::ITiledRenderable::getPointer().
/// @see vcl::ITiledRenderable::getPointer().
virtual
Pointer
getPointer
()
override
;
virtual
Pointer
getPointer
()
override
;
/// @see vcl::ITiledRenderable::getPostIts().
virtual
OUString
getPostIts
()
override
;
// XComponent
// XComponent
...
...
sd/source/ui/unoidl/unomodel.cxx
Dosyayı görüntüle @
c3b26856
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <boost/property_tree/json_parser.hpp>
#include <com/sun/star/presentation/XPresentation2.hpp>
#include <com/sun/star/presentation/XPresentation2.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
...
@@ -66,6 +68,7 @@
...
@@ -66,6 +68,7 @@
#include <svx/unoshape.hxx>
#include <svx/unoshape.hxx>
#include <editeng/unonrule.hxx>
#include <editeng/unonrule.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/eeitem.hxx>
#include <unotools/datetime.hxx>
#include <unotools/saveopt.hxx>
#include <unotools/saveopt.hxx>
// Support creation of GraphicObjectResolver and EmbeddedObjectResolver
// Support creation of GraphicObjectResolver and EmbeddedObjectResolver
...
@@ -2361,6 +2364,40 @@ Size SdXImpressDocument::getDocumentSize()
...
@@ -2361,6 +2364,40 @@ Size SdXImpressDocument::getDocumentSize()
return
Size
(
convertMm100ToTwip
(
aSize
.
getWidth
()),
convertMm100ToTwip
(
aSize
.
getHeight
()));
return
Size
(
convertMm100ToTwip
(
aSize
.
getWidth
()),
convertMm100ToTwip
(
aSize
.
getHeight
()));
}
}
OUString
SdXImpressDocument
::
getPostIts
()
{
boost
::
property_tree
::
ptree
aAnnotations
;
// Return annotations on master pages too ?
const
sal_uInt16
nMaxPages
=
mpDoc
->
GetPageCount
();
SdPage
*
pPage
;
for
(
sal_uInt16
nPage
=
0
;
nPage
<
nMaxPages
;
++
nPage
)
{
pPage
=
static_cast
<
SdPage
*>
(
mpDoc
->
GetPage
(
nPage
));
const
sd
::
AnnotationVector
&
aPageAnnotations
=
pPage
->
getAnnotations
();
for
(
const
auto
&
aPageAnnotation
:
aPageAnnotations
)
{
uno
::
Reference
<
office
::
XAnnotation
>
xAnnotation
(
aPageAnnotation
);
boost
::
property_tree
::
ptree
aAnnotation
;
aAnnotation
.
put
(
"author"
,
xAnnotation
->
getAuthor
());
aAnnotation
.
put
(
"dateTime"
,
utl
::
toISO8601
(
xAnnotation
->
getDateTime
()));
uno
::
Reference
<
text
::
XText
>
xText
(
xAnnotation
->
getTextRange
());
aAnnotation
.
put
(
"text"
,
xText
->
getString
());
aAnnotations
.
push_back
(
std
::
make_pair
(
""
,
aAnnotation
));
}
}
boost
::
property_tree
::
ptree
aTree
;
aTree
.
add_child
(
"comments"
,
aAnnotations
);
std
::
stringstream
aStream
;
boost
::
property_tree
::
write_json
(
aStream
,
aTree
);
return
OUString
::
createFromAscii
(
aStream
.
str
().
c_str
());
}
void
SdXImpressDocument
::
initializeForTiledRendering
(
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
rArguments
)
void
SdXImpressDocument
::
initializeForTiledRendering
(
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
rArguments
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
...
...
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