Класс Aspose::Words::Bibliography::Source

Source class

Представляет отдельный источник, такой как книга, статья в журнале или интервью.

class Source : public System::Object

Методы

МетодОписание
get_AbbreviatedCaseNumber() constВозвращает или задает сокращённый номер дела источника.
get_AlbumTitle() constВозвращает или задает название альбома источника.
get_BookTitle() constВозвращает или задает название книги источника.
get_Broadcaster() constВозвращает или задает вещателя источника.
get_BroadcastTitle() constВозвращает или задает название трансляции источника.
get_CaseNumber() constВозвращает или задает номер дела источника.
get_ChapterNumber() constВозвращает или задает номер главы источника.
get_City() constВозвращает или задает город источника.
get_Comments() constВозвращает или задает комментарии к источнику.
get_ConferenceName() constВозвращает или задает название конференции или сборника статей источника.
get_Contributors() constВозвращает список участников (автор, редактор, писатель и т.д.) источника.
get_CountryOrRegion() constВозвращает или задает страну или регион источника.
get_Court() constВозвращает или задает суд источника.
get_Day() constВозвращает или задает день источника.
get_DayAccessed() constВозвращает или задает день доступа к источнику.
get_Department() constВозвращает или задает отдел источника.
get_Distributor() constВозвращает или задает дистрибьютора источника.
get_Doi() constВозвращает или задает цифровой идентификатор объекта.
get_Edition() constПолучает или задает редактора источника.
get_Guid() constВозвращает или задает GUID источника.
get_Institution() constПолучает или задает учреждение источника.
get_InternetSiteTitle() constПолучает или задает заголовок интернет‑сайта источника.
get_Issue() constПолучает или задает выпуск источника.
get_JournalName() constПолучает или задает название журнала источника.
get_Lcid() constПолучает или задает идентификатор локали источника.
get_Medium() constПолучает или задает среду источника.
get_Month() constПолучает или задает месяц источника.
get_MonthAccessed() constПолучает или задает месяц доступа источника.
get_NumberVolumes() constПолучает или задает количество томов источника.
get_Pages() constПолучает или задает страницы источника.
get_PatentNumber() constПолучает или задает номер патента источника.
get_PeriodicalTitle() constПолучает или задает название периодического издания источника.
get_ProductionCompany() constПолучает или задает компанию‑производитель источника.
get_PublicationTitle() constПолучает или задает название публикации источника.
get_Publisher() constПолучает или задает издателя источника.
get_RecordingNumber() constПолучает или задает номер записи источника.
get_RefOrder() constПолучает или задает порядок ссылки источника.
get_Reporter() constПолучает или задает репортера источника.
get_ShortTitle() constПолучает или задает краткое название источника.
get_SourceType() constПолучает или задает тип источника.
get_StandardNumber() constПолучает или задает номер стандарта источника.
get_StateOrProvince() constПолучает или задает штат или провинцию источника.
get_Station() constПолучает или задает станцию источника.
get_Tag() constПолучает или задает имя идентифицирующего тега источника.
get_Theater() constПолучает или задает театр источника.
get_ThesisType() constПолучает или задает тип тезиса источника.
get_Title() constПолучает или задает название источника.
get_Type() constПолучает или задает тип источника.
get_Url() constПолучает или задает URL источника.
get_Version() constПолучает или задает версию источника.
get_Volume() constПолучает или задает том источника.
get_Year() constПолучает или задает год источника.
get_YearAccessed() constПолучает или задает год доступа к источнику.
GetType() const override
Is(const System::TypeInfo&) const override
set_AbbreviatedCaseNumber(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_AbbreviatedCaseNumber.
set_AlbumTitle(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_AlbumTitle.
set_BookTitle(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_BookTitle.
set_Broadcaster(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Broadcaster.
set_BroadcastTitle(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_BroadcastTitle.
set_CaseNumber(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_CaseNumber.
set_ChapterNumber(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_ChapterNumber.
set_City(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_City.
set_Comments(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Comments.
set_ConferenceName(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_ConferenceName.
set_CountryOrRegion(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_CountryOrRegion.
set_Court(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Court.
set_Day(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Day.
set_DayAccessed(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_DayAccessed.
set_Department(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Department.
set_Distributor(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Distributor.
set_Doi(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Doi.
set_Edition(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Edition.
set_Guid(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Guid.
set_Institution(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Institution.
set_InternetSiteTitle(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_InternetSiteTitle.
set_Issue(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Issue.
set_JournalName(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_JournalName.
set_Lcid(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Lcid.
set_Medium(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Medium.
set_Month(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Month.
set_MonthAccessed(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_MonthAccessed.
set_NumberVolumes(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_NumberVolumes.
set_Pages(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Pages.
set_PatentNumber(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_PatentNumber.
set_PeriodicalTitle(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_PeriodicalTitle.
set_ProductionCompany(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_ProductionCompany.
set_PublicationTitle(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_PublicationTitle.
set_Publisher(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Publisher.
set_RecordingNumber(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_RecordingNumber.
set_RefOrder(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_RefOrder.
set_Reporter(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Reporter.
set_ShortTitle(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_ShortTitle.
set_SourceType(Aspose::Words::Bibliography::SourceType)Сеттер для Aspose::Words::Bibliography::Source::get_SourceType.
set_StandardNumber(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_StandardNumber.
set_StateOrProvince(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_StateOrProvince.
set_Station(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Station.
set_Tag(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Tag.
set_Theater(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Theater.
set_ThesisType(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_ThesisType.
set_Title(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Title.
set_Type(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Type.
set_Url(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Url.
set_Version(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Version.
set_Volume(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Volume.
set_Year(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_Year.
set_YearAccessed(const System::String&)Сеттер для Aspose::Words::Bibliography::Source::get_YearAccessed.
Source(const System::String&, Aspose::Words::Bibliography::SourceType)Инициализировать новый экземпляр класса Source.
static Type()

Примеры

Показывает, как получить доступные в документе библиографические источники.

auto document = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Bibliography sources.docx");

System::SharedPtr<Aspose::Words::Bibliography::Bibliography> bibliography = document->get_Bibliography();
ASSERT_EQ(12, bibliography->get_Sources()->get_Count());

// Получить данные по умолчанию из библиографических источников.
System::SharedPtr<Aspose::Words::Bibliography::Source> source = bibliography->get_Sources()->LINQ_FirstOrDefault();
ASSERT_EQ(u"Book 0 (No LCID)", source->get_Title());
ASSERT_EQ(Aspose::Words::Bibliography::SourceType::Book, source->get_SourceType());
ASSERT_EQ(3, source->get_Contributors()->LINQ_Count());
ASSERT_TRUE(System::TestTools::IsNull(source->get_AbbreviatedCaseNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_AlbumTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_BookTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Broadcaster()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_BroadcastTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_CaseNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ChapterNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Comments()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ConferenceName()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_CountryOrRegion()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Court()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Day()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_DayAccessed()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Department()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Distributor()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Doi()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Edition()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Guid()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Institution()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_InternetSiteTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Issue()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_JournalName()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Lcid()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Medium()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Month()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_MonthAccessed()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_NumberVolumes()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Pages()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_PatentNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_PeriodicalTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ProductionCompany()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_PublicationTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Publisher()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_RecordingNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_RefOrder()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Reporter()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ShortTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_StandardNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_StateOrProvince()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Station()));
ASSERT_EQ(u"BookNoLCID", source->get_Tag());
ASSERT_TRUE(System::TestTools::IsNull(source->get_Theater()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ThesisType()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Type()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Url()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Version()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Volume()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Year()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_YearAccessed()));

// Также можно создать новый источник.
auto newSource = System::MakeObject<Aspose::Words::Bibliography::Source>(u"New source", Aspose::Words::Bibliography::SourceType::Misc);

System::SharedPtr<Aspose::Words::Bibliography::ContributorCollection> contributors = source->get_Contributors();
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Artist()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_BookAuthor()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Compiler()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Composer()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Conductor()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Counsel()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Director()));
ASSERT_FALSE(System::TestTools::IsNull(contributors->get_Editor()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Interviewee()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Interviewer()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Inventor()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Performer()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Producer()));
ASSERT_FALSE(System::TestTools::IsNull(contributors->get_Translator()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Writer()));

System::SharedPtr<Aspose::Words::Bibliography::Contributor> editor = contributors->get_Editor();
ASSERT_EQ(2, (System::ExplicitCast<Aspose::Words::Bibliography::PersonCollection>(editor))->LINQ_Count());

auto authors = System::ExplicitCast<Aspose::Words::Bibliography::PersonCollection>(contributors->get_Author());
ASSERT_EQ(2, authors->LINQ_Count());

System::SharedPtr<Aspose::Words::Bibliography::Person> person = authors->idx_get(0);
ASSERT_EQ(u"Roxanne", person->get_First());
ASSERT_EQ(u"Brielle", person->get_Middle());
ASSERT_EQ(u"Tejeda", person->get_Last());

См. также